com.amazonaws.services.redshift.model.ModifyClusterSnapshotScheduleRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-redshift Show documentation
/*
* Copyright 2019-2024 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 ModifyClusterSnapshotScheduleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* A unique identifier for the cluster whose snapshot schedule you want to modify.
*
*/
private String clusterIdentifier;
/**
*
* A unique alphanumeric identifier for the schedule that you want to associate with the cluster.
*
*/
private String scheduleIdentifier;
/**
*
* A boolean to indicate whether to remove the assoiciation between the cluster and the schedule.
*
*/
private Boolean disassociateSchedule;
/**
*
* A unique identifier for the cluster whose snapshot schedule you want to modify.
*
*
* @param clusterIdentifier
* A unique identifier for the cluster whose snapshot schedule you want to modify.
*/
public void setClusterIdentifier(String clusterIdentifier) {
this.clusterIdentifier = clusterIdentifier;
}
/**
*
* A unique identifier for the cluster whose snapshot schedule you want to modify.
*
*
* @return A unique identifier for the cluster whose snapshot schedule you want to modify.
*/
public String getClusterIdentifier() {
return this.clusterIdentifier;
}
/**
*
* A unique identifier for the cluster whose snapshot schedule you want to modify.
*
*
* @param clusterIdentifier
* A unique identifier for the cluster whose snapshot schedule you want to modify.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyClusterSnapshotScheduleRequest withClusterIdentifier(String clusterIdentifier) {
setClusterIdentifier(clusterIdentifier);
return this;
}
/**
*
* A unique alphanumeric identifier for the schedule that you want to associate with the cluster.
*
*
* @param scheduleIdentifier
* A unique alphanumeric identifier for the schedule that you want to associate with the cluster.
*/
public void setScheduleIdentifier(String scheduleIdentifier) {
this.scheduleIdentifier = scheduleIdentifier;
}
/**
*
* A unique alphanumeric identifier for the schedule that you want to associate with the cluster.
*
*
* @return A unique alphanumeric identifier for the schedule that you want to associate with the cluster.
*/
public String getScheduleIdentifier() {
return this.scheduleIdentifier;
}
/**
*
* A unique alphanumeric identifier for the schedule that you want to associate with the cluster.
*
*
* @param scheduleIdentifier
* A unique alphanumeric identifier for the schedule that you want to associate with the cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyClusterSnapshotScheduleRequest withScheduleIdentifier(String scheduleIdentifier) {
setScheduleIdentifier(scheduleIdentifier);
return this;
}
/**
*
* A boolean to indicate whether to remove the assoiciation between the cluster and the schedule.
*
*
* @param disassociateSchedule
* A boolean to indicate whether to remove the assoiciation between the cluster and the schedule.
*/
public void setDisassociateSchedule(Boolean disassociateSchedule) {
this.disassociateSchedule = disassociateSchedule;
}
/**
*
* A boolean to indicate whether to remove the assoiciation between the cluster and the schedule.
*
*
* @return A boolean to indicate whether to remove the assoiciation between the cluster and the schedule.
*/
public Boolean getDisassociateSchedule() {
return this.disassociateSchedule;
}
/**
*
* A boolean to indicate whether to remove the assoiciation between the cluster and the schedule.
*
*
* @param disassociateSchedule
* A boolean to indicate whether to remove the assoiciation between the cluster and the schedule.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyClusterSnapshotScheduleRequest withDisassociateSchedule(Boolean disassociateSchedule) {
setDisassociateSchedule(disassociateSchedule);
return this;
}
/**
*
* A boolean to indicate whether to remove the assoiciation between the cluster and the schedule.
*
*
* @return A boolean to indicate whether to remove the assoiciation between the cluster and the schedule.
*/
public Boolean isDisassociateSchedule() {
return this.disassociateSchedule;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getClusterIdentifier() != null)
sb.append("ClusterIdentifier: ").append(getClusterIdentifier()).append(",");
if (getScheduleIdentifier() != null)
sb.append("ScheduleIdentifier: ").append(getScheduleIdentifier()).append(",");
if (getDisassociateSchedule() != null)
sb.append("DisassociateSchedule: ").append(getDisassociateSchedule());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ModifyClusterSnapshotScheduleRequest == false)
return false;
ModifyClusterSnapshotScheduleRequest other = (ModifyClusterSnapshotScheduleRequest) obj;
if (other.getClusterIdentifier() == null ^ this.getClusterIdentifier() == null)
return false;
if (other.getClusterIdentifier() != null && other.getClusterIdentifier().equals(this.getClusterIdentifier()) == false)
return false;
if (other.getScheduleIdentifier() == null ^ this.getScheduleIdentifier() == null)
return false;
if (other.getScheduleIdentifier() != null && other.getScheduleIdentifier().equals(this.getScheduleIdentifier()) == false)
return false;
if (other.getDisassociateSchedule() == null ^ this.getDisassociateSchedule() == null)
return false;
if (other.getDisassociateSchedule() != null && other.getDisassociateSchedule().equals(this.getDisassociateSchedule()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getClusterIdentifier() == null) ? 0 : getClusterIdentifier().hashCode());
hashCode = prime * hashCode + ((getScheduleIdentifier() == null) ? 0 : getScheduleIdentifier().hashCode());
hashCode = prime * hashCode + ((getDisassociateSchedule() == null) ? 0 : getDisassociateSchedule().hashCode());
return hashCode;
}
@Override
public ModifyClusterSnapshotScheduleRequest clone() {
return (ModifyClusterSnapshotScheduleRequest) super.clone();
}
}