/*
 * 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;

/**
 * Describes what part of the Dataset is to be exported, the destination of the export and how to
 * export.
 *
 * <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 GoogleCloudAiplatformV1beta1ExportDataConfig extends com.google.api.client.json.GenericJson {

  /**
   * An expression for filtering what part of the Dataset is to be exported. Only Annotations that
   * match this filter will be exported. The filter syntax is the same as in ListAnnotations.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String annotationsFilter;

  /**
   * Split based on fractions defining the size of each set.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1beta1ExportFractionSplit fractionSplit;

  /**
   * The Google Cloud Storage location where the output is to be written to. In the given directory
   * a new directory will be created with name: `export-data--` where timestamp is in YYYY-MM-
   * DDThh:mm:ss.sssZ ISO-8601 format. All export output will be written into that directory. Inside
   * that directory, annotations with the same schema will be grouped into sub directories which are
   * named with the corresponding annotations' schema title. Inside these sub directories, a
   * schema.yaml will be created to describe the output format.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1beta1GcsDestination gcsDestination;

  /**
   * An expression for filtering what part of the Dataset is to be exported. Only Annotations that
   * match this filter will be exported. The filter syntax is the same as in ListAnnotations.
   * @return value or {@code null} for none
   */
  public java.lang.String getAnnotationsFilter() {
    return annotationsFilter;
  }

  /**
   * An expression for filtering what part of the Dataset is to be exported. Only Annotations that
   * match this filter will be exported. The filter syntax is the same as in ListAnnotations.
   * @param annotationsFilter annotationsFilter or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1ExportDataConfig setAnnotationsFilter(java.lang.String annotationsFilter) {
    this.annotationsFilter = annotationsFilter;
    return this;
  }

  /**
   * Split based on fractions defining the size of each set.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1ExportFractionSplit getFractionSplit() {
    return fractionSplit;
  }

  /**
   * Split based on fractions defining the size of each set.
   * @param fractionSplit fractionSplit or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1ExportDataConfig setFractionSplit(GoogleCloudAiplatformV1beta1ExportFractionSplit fractionSplit) {
    this.fractionSplit = fractionSplit;
    return this;
  }

  /**
   * The Google Cloud Storage location where the output is to be written to. In the given directory
   * a new directory will be created with name: `export-data--` where timestamp is in YYYY-MM-
   * DDThh:mm:ss.sssZ ISO-8601 format. All export output will be written into that directory. Inside
   * that directory, annotations with the same schema will be grouped into sub directories which are
   * named with the corresponding annotations' schema title. Inside these sub directories, a
   * schema.yaml will be created to describe the output format.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1GcsDestination getGcsDestination() {
    return gcsDestination;
  }

  /**
   * The Google Cloud Storage location where the output is to be written to. In the given directory
   * a new directory will be created with name: `export-data--` where timestamp is in YYYY-MM-
   * DDThh:mm:ss.sssZ ISO-8601 format. All export output will be written into that directory. Inside
   * that directory, annotations with the same schema will be grouped into sub directories which are
   * named with the corresponding annotations' schema title. Inside these sub directories, a
   * schema.yaml will be created to describe the output format.
   * @param gcsDestination gcsDestination or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1ExportDataConfig setGcsDestination(GoogleCloudAiplatformV1beta1GcsDestination gcsDestination) {
    this.gcsDestination = gcsDestination;
    return this;
  }

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

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

}
