/* * 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.dax.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 UpdateClusterRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the DAX cluster to be modified. *
*/ private String clusterName; /** ** A description of the changes being made to the cluster. *
*/ private String description; /** *
* A range of time when maintenance of DAX cluster software will be performed. For example:
* sun:01:00-sun:09:00
. Cluster maintenance normally takes less than 30 minutes, and is performed
* automatically within the maintenance window.
*
* The Amazon Resource Name (ARN) that identifies the topic. *
*/ private String notificationTopicArn; /** ** The current state of the topic. A value of “active” means that notifications will be sent to the topic. A value * of “inactive” means that notifications will not be sent to the topic. *
*/ private String notificationTopicStatus; /** ** The name of a parameter group for this cluster. *
*/ private String parameterGroupName; /** ** A list of user-specified security group IDs to be assigned to each node in the DAX cluster. If this parameter is * not specified, DAX assigns the default VPC security group to each node. *
*/ private java.util.List* The name of the DAX cluster to be modified. *
* * @param clusterName * The name of the DAX cluster to be modified. */ public void setClusterName(String clusterName) { this.clusterName = clusterName; } /** ** The name of the DAX cluster to be modified. *
* * @return The name of the DAX cluster to be modified. */ public String getClusterName() { return this.clusterName; } /** ** The name of the DAX cluster to be modified. *
* * @param clusterName * The name of the DAX cluster to be modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateClusterRequest withClusterName(String clusterName) { setClusterName(clusterName); return this; } /** ** A description of the changes being made to the cluster. *
* * @param description * A description of the changes being made to the cluster. */ public void setDescription(String description) { this.description = description; } /** ** A description of the changes being made to the cluster. *
* * @return A description of the changes being made to the cluster. */ public String getDescription() { return this.description; } /** ** A description of the changes being made to the cluster. *
* * @param description * A description of the changes being made to the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateClusterRequest withDescription(String description) { setDescription(description); return this; } /** *
* A range of time when maintenance of DAX cluster software will be performed. For example:
* sun:01:00-sun:09:00
. Cluster maintenance normally takes less than 30 minutes, and is performed
* automatically within the maintenance window.
*
sun:01:00-sun:09:00
. Cluster maintenance normally takes less than 30 minutes, and is
* performed automatically within the maintenance window.
*/
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
this.preferredMaintenanceWindow = preferredMaintenanceWindow;
}
/**
*
* A range of time when maintenance of DAX cluster software will be performed. For example:
* sun:01:00-sun:09:00
. Cluster maintenance normally takes less than 30 minutes, and is performed
* automatically within the maintenance window.
*
sun:01:00-sun:09:00
. Cluster maintenance normally takes less than 30 minutes, and is
* performed automatically within the maintenance window.
*/
public String getPreferredMaintenanceWindow() {
return this.preferredMaintenanceWindow;
}
/**
*
* A range of time when maintenance of DAX cluster software will be performed. For example:
* sun:01:00-sun:09:00
. Cluster maintenance normally takes less than 30 minutes, and is performed
* automatically within the maintenance window.
*
sun:01:00-sun:09:00
. Cluster maintenance normally takes less than 30 minutes, and is
* performed automatically within the maintenance window.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateClusterRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
setPreferredMaintenanceWindow(preferredMaintenanceWindow);
return this;
}
/**
* * The Amazon Resource Name (ARN) that identifies the topic. *
* * @param notificationTopicArn * The Amazon Resource Name (ARN) that identifies the topic. */ public void setNotificationTopicArn(String notificationTopicArn) { this.notificationTopicArn = notificationTopicArn; } /** ** The Amazon Resource Name (ARN) that identifies the topic. *
* * @return The Amazon Resource Name (ARN) that identifies the topic. */ public String getNotificationTopicArn() { return this.notificationTopicArn; } /** ** The Amazon Resource Name (ARN) that identifies the topic. *
* * @param notificationTopicArn * The Amazon Resource Name (ARN) that identifies the topic. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateClusterRequest withNotificationTopicArn(String notificationTopicArn) { setNotificationTopicArn(notificationTopicArn); return this; } /** ** The current state of the topic. A value of “active” means that notifications will be sent to the topic. A value * of “inactive” means that notifications will not be sent to the topic. *
* * @param notificationTopicStatus * The current state of the topic. A value of “active” means that notifications will be sent to the topic. A * value of “inactive” means that notifications will not be sent to the topic. */ public void setNotificationTopicStatus(String notificationTopicStatus) { this.notificationTopicStatus = notificationTopicStatus; } /** ** The current state of the topic. A value of “active” means that notifications will be sent to the topic. A value * of “inactive” means that notifications will not be sent to the topic. *
* * @return The current state of the topic. A value of “active” means that notifications will be sent to the topic. A * value of “inactive” means that notifications will not be sent to the topic. */ public String getNotificationTopicStatus() { return this.notificationTopicStatus; } /** ** The current state of the topic. A value of “active” means that notifications will be sent to the topic. A value * of “inactive” means that notifications will not be sent to the topic. *
* * @param notificationTopicStatus * The current state of the topic. A value of “active” means that notifications will be sent to the topic. A * value of “inactive” means that notifications will not be sent to the topic. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateClusterRequest withNotificationTopicStatus(String notificationTopicStatus) { setNotificationTopicStatus(notificationTopicStatus); return this; } /** ** The name of a parameter group for this cluster. *
* * @param parameterGroupName * The name of a parameter group for this cluster. */ public void setParameterGroupName(String parameterGroupName) { this.parameterGroupName = parameterGroupName; } /** ** The name of a parameter group for this cluster. *
* * @return The name of a parameter group for this cluster. */ public String getParameterGroupName() { return this.parameterGroupName; } /** ** The name of a parameter group for this cluster. *
* * @param parameterGroupName * The name of a parameter group for this cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateClusterRequest withParameterGroupName(String parameterGroupName) { setParameterGroupName(parameterGroupName); return this; } /** ** A list of user-specified security group IDs to be assigned to each node in the DAX cluster. If this parameter is * not specified, DAX assigns the default VPC security group to each node. *
* * @return A list of user-specified security group IDs to be assigned to each node in the DAX cluster. If this * parameter is not specified, DAX assigns the default VPC security group to each node. */ public java.util.List* A list of user-specified security group IDs to be assigned to each node in the DAX cluster. If this parameter is * not specified, DAX assigns the default VPC security group to each node. *
* * @param securityGroupIds * A list of user-specified security group IDs to be assigned to each node in the DAX cluster. If this * parameter is not specified, DAX assigns the default VPC security group to each node. */ public void setSecurityGroupIds(java.util.Collection* A list of user-specified security group IDs to be assigned to each node in the DAX cluster. If this parameter is * not specified, DAX assigns the default VPC security group to each node. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you * want to override the existing values. *
* * @param securityGroupIds * A list of user-specified security group IDs to be assigned to each node in the DAX cluster. If this * parameter is not specified, DAX assigns the default VPC security group to each node. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateClusterRequest withSecurityGroupIds(String... securityGroupIds) { if (this.securityGroupIds == null) { setSecurityGroupIds(new java.util.ArrayList* A list of user-specified security group IDs to be assigned to each node in the DAX cluster. If this parameter is * not specified, DAX assigns the default VPC security group to each node. *
* * @param securityGroupIds * A list of user-specified security group IDs to be assigned to each node in the DAX cluster. If this * parameter is not specified, DAX assigns the default VPC security group to each node. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateClusterRequest withSecurityGroupIds(java.util.Collection