/*
 * 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.cloudasset.v1p7beta1.model;

/**
 * Schedule for scheduled export. This is used to configure scheduled export for both GCS and
 * BigQuery.
 *
 * <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 Cloud Asset 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 ScheduleConfig extends com.google.api.client.json.GenericJson {

  /**
   * Required. Cron-tab formatted schedule by which the job will execute Format: minute, hour, day
   * of month, month, day of week e.g. 0 0 * * WED = every Wednesday More examples:
   * https://crontab.guru/examples.html
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String crontab;

  /**
   * Specifies the time zone to be used in interpreting [crontab]. The value of this field must be a
   * time zone name from the [tz database](https://en.wikipedia.org/wiki/Tz_database). Note that
   * some time zones include a provision for daylight savings time. The rules for daylight saving
   * time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not
   * specified, the default will be in UTC (also known as GMT).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String timeZone;

  /**
   * Required. Cron-tab formatted schedule by which the job will execute Format: minute, hour, day
   * of month, month, day of week e.g. 0 0 * * WED = every Wednesday More examples:
   * https://crontab.guru/examples.html
   * @return value or {@code null} for none
   */
  public java.lang.String getCrontab() {
    return crontab;
  }

  /**
   * Required. Cron-tab formatted schedule by which the job will execute Format: minute, hour, day
   * of month, month, day of week e.g. 0 0 * * WED = every Wednesday More examples:
   * https://crontab.guru/examples.html
   * @param crontab crontab or {@code null} for none
   */
  public ScheduleConfig setCrontab(java.lang.String crontab) {
    this.crontab = crontab;
    return this;
  }

  /**
   * Specifies the time zone to be used in interpreting [crontab]. The value of this field must be a
   * time zone name from the [tz database](https://en.wikipedia.org/wiki/Tz_database). Note that
   * some time zones include a provision for daylight savings time. The rules for daylight saving
   * time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not
   * specified, the default will be in UTC (also known as GMT).
   * @return value or {@code null} for none
   */
  public java.lang.String getTimeZone() {
    return timeZone;
  }

  /**
   * Specifies the time zone to be used in interpreting [crontab]. The value of this field must be a
   * time zone name from the [tz database](https://en.wikipedia.org/wiki/Tz_database). Note that
   * some time zones include a provision for daylight savings time. The rules for daylight saving
   * time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not
   * specified, the default will be in UTC (also known as GMT).
   * @param timeZone timeZone or {@code null} for none
   */
  public ScheduleConfig setTimeZone(java.lang.String timeZone) {
    this.timeZone = timeZone;
    return this;
  }

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

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

}
