/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.aiplatform.v1beta1.model;

/**
 * Represents one resource that exists in automl.googleapis.com, datalabeling.googleapis.com or
 * ml.googleapis.com.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudAiplatformV1beta1MigratableResource extends com.google.api.client.json.GenericJson {

  /**
   * Output only. Represents one Dataset in automl.googleapis.com.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1beta1MigratableResourceAutomlDataset automlDataset;

  /**
   * Output only. Represents one Model in automl.googleapis.com.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1beta1MigratableResourceAutomlModel automlModel;

  /**
   * Output only. Represents one Dataset in datalabeling.googleapis.com.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1beta1MigratableResourceDataLabelingDataset dataLabelingDataset;

  /**
   * Output only. Timestamp when the last migration attempt on this MigratableResource started. Will
   * not be set if there's no migration attempt on this MigratableResource.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String lastMigrateTime;

  /**
   * Output only. Timestamp when this MigratableResource was last updated.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String lastUpdateTime;

  /**
   * Output only. Represents one Version in ml.googleapis.com.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1beta1MigratableResourceMlEngineModelVersion mlEngineModelVersion;

  /**
   * Output only. Represents one Dataset in automl.googleapis.com.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1MigratableResourceAutomlDataset getAutomlDataset() {
    return automlDataset;
  }

  /**
   * Output only. Represents one Dataset in automl.googleapis.com.
   * @param automlDataset automlDataset or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1MigratableResource setAutomlDataset(GoogleCloudAiplatformV1beta1MigratableResourceAutomlDataset automlDataset) {
    this.automlDataset = automlDataset;
    return this;
  }

  /**
   * Output only. Represents one Model in automl.googleapis.com.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1MigratableResourceAutomlModel getAutomlModel() {
    return automlModel;
  }

  /**
   * Output only. Represents one Model in automl.googleapis.com.
   * @param automlModel automlModel or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1MigratableResource setAutomlModel(GoogleCloudAiplatformV1beta1MigratableResourceAutomlModel automlModel) {
    this.automlModel = automlModel;
    return this;
  }

  /**
   * Output only. Represents one Dataset in datalabeling.googleapis.com.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1MigratableResourceDataLabelingDataset getDataLabelingDataset() {
    return dataLabelingDataset;
  }

  /**
   * Output only. Represents one Dataset in datalabeling.googleapis.com.
   * @param dataLabelingDataset dataLabelingDataset or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1MigratableResource setDataLabelingDataset(GoogleCloudAiplatformV1beta1MigratableResourceDataLabelingDataset dataLabelingDataset) {
    this.dataLabelingDataset = dataLabelingDataset;
    return this;
  }

  /**
   * Output only. Timestamp when the last migration attempt on this MigratableResource started. Will
   * not be set if there's no migration attempt on this MigratableResource.
   * @return value or {@code null} for none
   */
  public String getLastMigrateTime() {
    return lastMigrateTime;
  }

  /**
   * Output only. Timestamp when the last migration attempt on this MigratableResource started. Will
   * not be set if there's no migration attempt on this MigratableResource.
   * @param lastMigrateTime lastMigrateTime or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1MigratableResource setLastMigrateTime(String lastMigrateTime) {
    this.lastMigrateTime = lastMigrateTime;
    return this;
  }

  /**
   * Output only. Timestamp when this MigratableResource was last updated.
   * @return value or {@code null} for none
   */
  public String getLastUpdateTime() {
    return lastUpdateTime;
  }

  /**
   * Output only. Timestamp when this MigratableResource was last updated.
   * @param lastUpdateTime lastUpdateTime or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1MigratableResource setLastUpdateTime(String lastUpdateTime) {
    this.lastUpdateTime = lastUpdateTime;
    return this;
  }

  /**
   * Output only. Represents one Version in ml.googleapis.com.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1MigratableResourceMlEngineModelVersion getMlEngineModelVersion() {
    return mlEngineModelVersion;
  }

  /**
   * Output only. Represents one Version in ml.googleapis.com.
   * @param mlEngineModelVersion mlEngineModelVersion or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1MigratableResource setMlEngineModelVersion(GoogleCloudAiplatformV1beta1MigratableResourceMlEngineModelVersion mlEngineModelVersion) {
    this.mlEngineModelVersion = mlEngineModelVersion;
    return this;
  }

  @Override
  public GoogleCloudAiplatformV1beta1MigratableResource set(String fieldName, Object value) {
    return (GoogleCloudAiplatformV1beta1MigratableResource) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudAiplatformV1beta1MigratableResource clone() {
    return (GoogleCloudAiplatformV1beta1MigratableResource) super.clone();
  }

}
