/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ package com.amazonaws.services.redshift.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateSnapshotScheduleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The definition of the snapshot schedule. The definition is made up of schedule expressions, for example * "cron(30 12 *)" or "rate(12 hours)". *
*/ private com.amazonaws.internal.SdkInternalList* A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier. *
*/ private String scheduleIdentifier; /** ** The description of the snapshot schedule. *
*/ private String scheduleDescription; /** ** An optional set of tags you can use to search for the schedule. *
*/ private com.amazonaws.internal.SdkInternalList* The definition of the snapshot schedule. The definition is made up of schedule expressions, for example * "cron(30 12 *)" or "rate(12 hours)". *
* * @return The definition of the snapshot schedule. The definition is made up of schedule expressions, for example * "cron(30 12 *)" or "rate(12 hours)". */ public java.util.List* The definition of the snapshot schedule. The definition is made up of schedule expressions, for example * "cron(30 12 *)" or "rate(12 hours)". *
* * @param scheduleDefinitions * The definition of the snapshot schedule. The definition is made up of schedule expressions, for example * "cron(30 12 *)" or "rate(12 hours)". */ public void setScheduleDefinitions(java.util.Collection* The definition of the snapshot schedule. The definition is made up of schedule expressions, for example * "cron(30 12 *)" or "rate(12 hours)". *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setScheduleDefinitions(java.util.Collection)} or {@link #withScheduleDefinitions(java.util.Collection)} * if you want to override the existing values. *
* * @param scheduleDefinitions * The definition of the snapshot schedule. The definition is made up of schedule expressions, for example * "cron(30 12 *)" or "rate(12 hours)". * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotScheduleRequest withScheduleDefinitions(String... scheduleDefinitions) { if (this.scheduleDefinitions == null) { setScheduleDefinitions(new com.amazonaws.internal.SdkInternalList* The definition of the snapshot schedule. The definition is made up of schedule expressions, for example * "cron(30 12 *)" or "rate(12 hours)". *
* * @param scheduleDefinitions * The definition of the snapshot schedule. The definition is made up of schedule expressions, for example * "cron(30 12 *)" or "rate(12 hours)". * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotScheduleRequest withScheduleDefinitions(java.util.Collection* A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier. *
* * @param scheduleIdentifier * A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier. */ public void setScheduleIdentifier(String scheduleIdentifier) { this.scheduleIdentifier = scheduleIdentifier; } /** ** A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier. *
* * @return A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier. */ public String getScheduleIdentifier() { return this.scheduleIdentifier; } /** ** A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier. *
* * @param scheduleIdentifier * A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotScheduleRequest withScheduleIdentifier(String scheduleIdentifier) { setScheduleIdentifier(scheduleIdentifier); return this; } /** ** The description of the snapshot schedule. *
* * @param scheduleDescription * The description of the snapshot schedule. */ public void setScheduleDescription(String scheduleDescription) { this.scheduleDescription = scheduleDescription; } /** ** The description of the snapshot schedule. *
* * @return The description of the snapshot schedule. */ public String getScheduleDescription() { return this.scheduleDescription; } /** ** The description of the snapshot schedule. *
* * @param scheduleDescription * The description of the snapshot schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotScheduleRequest withScheduleDescription(String scheduleDescription) { setScheduleDescription(scheduleDescription); return this; } /** ** An optional set of tags you can use to search for the schedule. *
* * @return An optional set of tags you can use to search for the schedule. */ public java.util.List* An optional set of tags you can use to search for the schedule. *
* * @param tags * An optional set of tags you can use to search for the schedule. */ public void setTags(java.util.Collection* An optional set of tags you can use to search for the schedule. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * An optional set of tags you can use to search for the schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotScheduleRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* An optional set of tags you can use to search for the schedule. *
* * @param tags * An optional set of tags you can use to search for the schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSnapshotScheduleRequest withTags(java.util.Collection