/* * 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; /** *
* Describes a snapshot schedule. You can set a regular interval for creating snapshots of a cluster. You can also * schedule snapshots for specific dates. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ModifySnapshotScheduleResult extends com.amazonaws.AmazonWebServiceResult* A list of ScheduleDefinitions. *
*/ private com.amazonaws.internal.SdkInternalList* A unique identifier for the schedule. *
*/ private String scheduleIdentifier; /** ** The description of the schedule. *
*/ private String scheduleDescription; /** ** An optional set of tags describing the schedule. *
*/ private com.amazonaws.internal.SdkInternalList* The number of clusters associated with the schedule. *
*/ private Integer associatedClusterCount; /** ** A list of clusters associated with the schedule. A maximum of 100 clusters is returned. *
*/ private com.amazonaws.internal.SdkInternalList* A list of ScheduleDefinitions. *
* * @return A list of ScheduleDefinitions. */ public java.util.List* A list of ScheduleDefinitions. *
* * @param scheduleDefinitions * A list of ScheduleDefinitions. */ public void setScheduleDefinitions(java.util.Collection* A list of ScheduleDefinitions. *
** 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 * A list of ScheduleDefinitions. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifySnapshotScheduleResult withScheduleDefinitions(String... scheduleDefinitions) { if (this.scheduleDefinitions == null) { setScheduleDefinitions(new com.amazonaws.internal.SdkInternalList* A list of ScheduleDefinitions. *
* * @param scheduleDefinitions * A list of ScheduleDefinitions. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifySnapshotScheduleResult withScheduleDefinitions(java.util.Collection* A unique identifier for the schedule. *
* * @param scheduleIdentifier * A unique identifier for the schedule. */ public void setScheduleIdentifier(String scheduleIdentifier) { this.scheduleIdentifier = scheduleIdentifier; } /** ** A unique identifier for the schedule. *
* * @return A unique identifier for the schedule. */ public String getScheduleIdentifier() { return this.scheduleIdentifier; } /** ** A unique identifier for the schedule. *
* * @param scheduleIdentifier * A unique identifier for the schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifySnapshotScheduleResult withScheduleIdentifier(String scheduleIdentifier) { setScheduleIdentifier(scheduleIdentifier); return this; } /** ** The description of the schedule. *
* * @param scheduleDescription * The description of the schedule. */ public void setScheduleDescription(String scheduleDescription) { this.scheduleDescription = scheduleDescription; } /** ** The description of the schedule. *
* * @return The description of the schedule. */ public String getScheduleDescription() { return this.scheduleDescription; } /** ** The description of the schedule. *
* * @param scheduleDescription * The description of the schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifySnapshotScheduleResult withScheduleDescription(String scheduleDescription) { setScheduleDescription(scheduleDescription); return this; } /** ** An optional set of tags describing the schedule. *
* * @return An optional set of tags describing the schedule. */ public java.util.List* An optional set of tags describing the schedule. *
* * @param tags * An optional set of tags describing the schedule. */ public void setTags(java.util.Collection* An optional set of tags describing 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 describing the schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifySnapshotScheduleResult withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* An optional set of tags describing the schedule. *
* * @param tags * An optional set of tags describing the schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifySnapshotScheduleResult withTags(java.util.Collection* NOTE: This method appends the values to the existing list (if any). Use * {@link #setNextInvocations(java.util.Collection)} or {@link #withNextInvocations(java.util.Collection)} if you * want to override the existing values. *
* * @param nextInvocations * @return Returns a reference to this object so that method calls can be chained together. */ public ModifySnapshotScheduleResult withNextInvocations(java.util.Date... nextInvocations) { if (this.nextInvocations == null) { setNextInvocations(new com.amazonaws.internal.SdkInternalList* The number of clusters associated with the schedule. *
* * @param associatedClusterCount * The number of clusters associated with the schedule. */ public void setAssociatedClusterCount(Integer associatedClusterCount) { this.associatedClusterCount = associatedClusterCount; } /** ** The number of clusters associated with the schedule. *
* * @return The number of clusters associated with the schedule. */ public Integer getAssociatedClusterCount() { return this.associatedClusterCount; } /** ** The number of clusters associated with the schedule. *
* * @param associatedClusterCount * The number of clusters associated with the schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifySnapshotScheduleResult withAssociatedClusterCount(Integer associatedClusterCount) { setAssociatedClusterCount(associatedClusterCount); return this; } /** ** A list of clusters associated with the schedule. A maximum of 100 clusters is returned. *
* * @return A list of clusters associated with the schedule. A maximum of 100 clusters is returned. */ public java.util.List* A list of clusters associated with the schedule. A maximum of 100 clusters is returned. *
* * @param associatedClusters * A list of clusters associated with the schedule. A maximum of 100 clusters is returned. */ public void setAssociatedClusters(java.util.Collection* A list of clusters associated with the schedule. A maximum of 100 clusters is returned. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAssociatedClusters(java.util.Collection)} or {@link #withAssociatedClusters(java.util.Collection)} if * you want to override the existing values. *
* * @param associatedClusters * A list of clusters associated with the schedule. A maximum of 100 clusters is returned. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifySnapshotScheduleResult withAssociatedClusters(ClusterAssociatedToSchedule... associatedClusters) { if (this.associatedClusters == null) { setAssociatedClusters(new com.amazonaws.internal.SdkInternalList* A list of clusters associated with the schedule. A maximum of 100 clusters is returned. *
* * @param associatedClusters * A list of clusters associated with the schedule. A maximum of 100 clusters is returned. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifySnapshotScheduleResult withAssociatedClusters(java.util.Collection