com.google.api.services.composer.v1.model.ScheduledSnapshotsConfig Maven / Gradle / Ivy
The newest version!
/*
* 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.composer.v1.model;
/**
* The configuration for scheduled snapshot creation mechanism.
*
* 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 Composer API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ScheduledSnapshotsConfig extends com.google.api.client.json.GenericJson {
/**
* Optional. Whether scheduled snapshots creation is enabled.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean enabled;
/**
* Optional. The cron expression representing the time when snapshots creation mechanism runs.
* This field is subject to additional validation around frequency of execution.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String snapshotCreationSchedule;
/**
* Optional. The Cloud Storage location for storing automatically created snapshots.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String snapshotLocation;
/**
* Optional. Time zone that sets the context to interpret snapshot_creation_schedule.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String timeZone;
/**
* Optional. Whether scheduled snapshots creation is enabled.
* @return value or {@code null} for none
*/
public java.lang.Boolean getEnabled() {
return enabled;
}
/**
* Optional. Whether scheduled snapshots creation is enabled.
* @param enabled enabled or {@code null} for none
*/
public ScheduledSnapshotsConfig setEnabled(java.lang.Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Optional. The cron expression representing the time when snapshots creation mechanism runs.
* This field is subject to additional validation around frequency of execution.
* @return value or {@code null} for none
*/
public java.lang.String getSnapshotCreationSchedule() {
return snapshotCreationSchedule;
}
/**
* Optional. The cron expression representing the time when snapshots creation mechanism runs.
* This field is subject to additional validation around frequency of execution.
* @param snapshotCreationSchedule snapshotCreationSchedule or {@code null} for none
*/
public ScheduledSnapshotsConfig setSnapshotCreationSchedule(java.lang.String snapshotCreationSchedule) {
this.snapshotCreationSchedule = snapshotCreationSchedule;
return this;
}
/**
* Optional. The Cloud Storage location for storing automatically created snapshots.
* @return value or {@code null} for none
*/
public java.lang.String getSnapshotLocation() {
return snapshotLocation;
}
/**
* Optional. The Cloud Storage location for storing automatically created snapshots.
* @param snapshotLocation snapshotLocation or {@code null} for none
*/
public ScheduledSnapshotsConfig setSnapshotLocation(java.lang.String snapshotLocation) {
this.snapshotLocation = snapshotLocation;
return this;
}
/**
* Optional. Time zone that sets the context to interpret snapshot_creation_schedule.
* @return value or {@code null} for none
*/
public java.lang.String getTimeZone() {
return timeZone;
}
/**
* Optional. Time zone that sets the context to interpret snapshot_creation_schedule.
* @param timeZone timeZone or {@code null} for none
*/
public ScheduledSnapshotsConfig setTimeZone(java.lang.String timeZone) {
this.timeZone = timeZone;
return this;
}
@Override
public ScheduledSnapshotsConfig set(String fieldName, Object value) {
return (ScheduledSnapshotsConfig) super.set(fieldName, value);
}
@Override
public ScheduledSnapshotsConfig clone() {
return (ScheduledSnapshotsConfig) super.clone();
}
}