All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.memorydb.model.Cluster Maven / Gradle / Ivy

/*
 * Copyright 2016-2021 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.memorydb.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Contains all of the attributes of a specific cluster. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Cluster implements Serializable, Cloneable, StructuredPojo { /** *

* The user-supplied name of the cluster. This identifier is a unique key that identifies a cluster. *

*/ private String name; /** *

* A description of the cluster *

*/ private String description; /** *

* The status of the cluster. For example, Available, Updating, Creating. *

*/ private String status; /** *

* A group of settings that are currently being applied. *

*/ private ClusterPendingUpdates pendingUpdates; /** *

* The number of shards in the cluster *

*/ private Integer numberOfShards; /** *

* A list of shards that are members of the cluster. *

*/ private java.util.List shards; /** *

* Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz). *

*/ private String availabilityMode; /** *

* The cluster's configuration endpoint *

*/ private Endpoint clusterEndpoint; /** *

* The cluster's node type *

*/ private String nodeType; /** *

* The Redis engine version used by the cluster *

*/ private String engineVersion; /** *

* The Redis engine patch version used by the cluster *

*/ private String enginePatchVersion; /** *

* The name of the parameter group used by the cluster *

*/ private String parameterGroupName; /** *

* The status of the parameter group used by the cluster, for example 'active' or 'applying'. *

*/ private String parameterGroupStatus; /** *

* A list of security groups used by the cluster *

*/ private java.util.List securityGroups; /** *

* The name of the subnet group used by the cluster *

*/ private String subnetGroupName; /** *

* A flag to indicate if In-transit encryption is enabled *

*/ private Boolean tLSEnabled; /** *

* The ID of the KMS key used to encrypt the cluster *

*/ private String kmsKeyId; /** *

* The Amazon Resource Name (ARN) of the cluster. *

*/ private String aRN; /** *

* The Amazon Resource Name (ARN) of the SNS notification topic *

*/ private String snsTopicArn; /** *

* The SNS topic must be in Active status to receive notifications *

*/ private String snsTopicStatus; /** *

* The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set * SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted. *

*/ private Integer snapshotRetentionLimit; /** *

* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range * in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. *

*/ private String maintenanceWindow; /** *

* The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: * 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range. *

*/ private String snapshotWindow; /** *

* The name of the Access Control List associated with this cluster. *

*/ private String aCLName; /** *

* When set to true, the cluster will automatically receive minor engine version upgrades after launch. *

*/ private Boolean autoMinorVersionUpgrade; /** *

* The user-supplied name of the cluster. This identifier is a unique key that identifies a cluster. *

* * @param name * The user-supplied name of the cluster. This identifier is a unique key that identifies a cluster. */ public void setName(String name) { this.name = name; } /** *

* The user-supplied name of the cluster. This identifier is a unique key that identifies a cluster. *

* * @return The user-supplied name of the cluster. This identifier is a unique key that identifies a cluster. */ public String getName() { return this.name; } /** *

* The user-supplied name of the cluster. This identifier is a unique key that identifies a cluster. *

* * @param name * The user-supplied name of the cluster. This identifier is a unique key that identifies a cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withName(String name) { setName(name); return this; } /** *

* A description of the cluster *

* * @param description * A description of the cluster */ public void setDescription(String description) { this.description = description; } /** *

* A description of the cluster *

* * @return A description of the cluster */ public String getDescription() { return this.description; } /** *

* A description of the cluster *

* * @param description * A description of the cluster * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withDescription(String description) { setDescription(description); return this; } /** *

* The status of the cluster. For example, Available, Updating, Creating. *

* * @param status * The status of the cluster. For example, Available, Updating, Creating. */ public void setStatus(String status) { this.status = status; } /** *

* The status of the cluster. For example, Available, Updating, Creating. *

* * @return The status of the cluster. For example, Available, Updating, Creating. */ public String getStatus() { return this.status; } /** *

* The status of the cluster. For example, Available, Updating, Creating. *

* * @param status * The status of the cluster. For example, Available, Updating, Creating. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withStatus(String status) { setStatus(status); return this; } /** *

* A group of settings that are currently being applied. *

* * @param pendingUpdates * A group of settings that are currently being applied. */ public void setPendingUpdates(ClusterPendingUpdates pendingUpdates) { this.pendingUpdates = pendingUpdates; } /** *

* A group of settings that are currently being applied. *

* * @return A group of settings that are currently being applied. */ public ClusterPendingUpdates getPendingUpdates() { return this.pendingUpdates; } /** *

* A group of settings that are currently being applied. *

* * @param pendingUpdates * A group of settings that are currently being applied. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withPendingUpdates(ClusterPendingUpdates pendingUpdates) { setPendingUpdates(pendingUpdates); return this; } /** *

* The number of shards in the cluster *

* * @param numberOfShards * The number of shards in the cluster */ public void setNumberOfShards(Integer numberOfShards) { this.numberOfShards = numberOfShards; } /** *

* The number of shards in the cluster *

* * @return The number of shards in the cluster */ public Integer getNumberOfShards() { return this.numberOfShards; } /** *

* The number of shards in the cluster *

* * @param numberOfShards * The number of shards in the cluster * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withNumberOfShards(Integer numberOfShards) { setNumberOfShards(numberOfShards); return this; } /** *

* A list of shards that are members of the cluster. *

* * @return A list of shards that are members of the cluster. */ public java.util.List getShards() { return shards; } /** *

* A list of shards that are members of the cluster. *

* * @param shards * A list of shards that are members of the cluster. */ public void setShards(java.util.Collection shards) { if (shards == null) { this.shards = null; return; } this.shards = new java.util.ArrayList(shards); } /** *

* A list of shards that are members of the cluster. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setShards(java.util.Collection)} or {@link #withShards(java.util.Collection)} if you want to override the * existing values. *

* * @param shards * A list of shards that are members of the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withShards(Shard... shards) { if (this.shards == null) { setShards(new java.util.ArrayList(shards.length)); } for (Shard ele : shards) { this.shards.add(ele); } return this; } /** *

* A list of shards that are members of the cluster. *

* * @param shards * A list of shards that are members of the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withShards(java.util.Collection shards) { setShards(shards); return this; } /** *

* Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz). *

* * @param availabilityMode * Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz). * @see AZStatus */ public void setAvailabilityMode(String availabilityMode) { this.availabilityMode = availabilityMode; } /** *

* Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz). *

* * @return Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz). * @see AZStatus */ public String getAvailabilityMode() { return this.availabilityMode; } /** *

* Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz). *

* * @param availabilityMode * Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz). * @return Returns a reference to this object so that method calls can be chained together. * @see AZStatus */ public Cluster withAvailabilityMode(String availabilityMode) { setAvailabilityMode(availabilityMode); return this; } /** *

* Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz). *

* * @param availabilityMode * Indicates if the cluster has a Multi-AZ configuration (multiaz) or not (singleaz). * @return Returns a reference to this object so that method calls can be chained together. * @see AZStatus */ public Cluster withAvailabilityMode(AZStatus availabilityMode) { this.availabilityMode = availabilityMode.toString(); return this; } /** *

* The cluster's configuration endpoint *

* * @param clusterEndpoint * The cluster's configuration endpoint */ public void setClusterEndpoint(Endpoint clusterEndpoint) { this.clusterEndpoint = clusterEndpoint; } /** *

* The cluster's configuration endpoint *

* * @return The cluster's configuration endpoint */ public Endpoint getClusterEndpoint() { return this.clusterEndpoint; } /** *

* The cluster's configuration endpoint *

* * @param clusterEndpoint * The cluster's configuration endpoint * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withClusterEndpoint(Endpoint clusterEndpoint) { setClusterEndpoint(clusterEndpoint); return this; } /** *

* The cluster's node type *

* * @param nodeType * The cluster's node type */ public void setNodeType(String nodeType) { this.nodeType = nodeType; } /** *

* The cluster's node type *

* * @return The cluster's node type */ public String getNodeType() { return this.nodeType; } /** *

* The cluster's node type *

* * @param nodeType * The cluster's node type * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withNodeType(String nodeType) { setNodeType(nodeType); return this; } /** *

* The Redis engine version used by the cluster *

* * @param engineVersion * The Redis engine version used by the cluster */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

* The Redis engine version used by the cluster *

* * @return The Redis engine version used by the cluster */ public String getEngineVersion() { return this.engineVersion; } /** *

* The Redis engine version used by the cluster *

* * @param engineVersion * The Redis engine version used by the cluster * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** *

* The Redis engine patch version used by the cluster *

* * @param enginePatchVersion * The Redis engine patch version used by the cluster */ public void setEnginePatchVersion(String enginePatchVersion) { this.enginePatchVersion = enginePatchVersion; } /** *

* The Redis engine patch version used by the cluster *

* * @return The Redis engine patch version used by the cluster */ public String getEnginePatchVersion() { return this.enginePatchVersion; } /** *

* The Redis engine patch version used by the cluster *

* * @param enginePatchVersion * The Redis engine patch version used by the cluster * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withEnginePatchVersion(String enginePatchVersion) { setEnginePatchVersion(enginePatchVersion); return this; } /** *

* The name of the parameter group used by the cluster *

* * @param parameterGroupName * The name of the parameter group used by the cluster */ public void setParameterGroupName(String parameterGroupName) { this.parameterGroupName = parameterGroupName; } /** *

* The name of the parameter group used by the cluster *

* * @return The name of the parameter group used by the cluster */ public String getParameterGroupName() { return this.parameterGroupName; } /** *

* The name of the parameter group used by the cluster *

* * @param parameterGroupName * The name of the parameter group used by the cluster * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withParameterGroupName(String parameterGroupName) { setParameterGroupName(parameterGroupName); return this; } /** *

* The status of the parameter group used by the cluster, for example 'active' or 'applying'. *

* * @param parameterGroupStatus * The status of the parameter group used by the cluster, for example 'active' or 'applying'. */ public void setParameterGroupStatus(String parameterGroupStatus) { this.parameterGroupStatus = parameterGroupStatus; } /** *

* The status of the parameter group used by the cluster, for example 'active' or 'applying'. *

* * @return The status of the parameter group used by the cluster, for example 'active' or 'applying'. */ public String getParameterGroupStatus() { return this.parameterGroupStatus; } /** *

* The status of the parameter group used by the cluster, for example 'active' or 'applying'. *

* * @param parameterGroupStatus * The status of the parameter group used by the cluster, for example 'active' or 'applying'. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withParameterGroupStatus(String parameterGroupStatus) { setParameterGroupStatus(parameterGroupStatus); return this; } /** *

* A list of security groups used by the cluster *

* * @return A list of security groups used by the cluster */ public java.util.List getSecurityGroups() { return securityGroups; } /** *

* A list of security groups used by the cluster *

* * @param securityGroups * A list of security groups used by the cluster */ public void setSecurityGroups(java.util.Collection securityGroups) { if (securityGroups == null) { this.securityGroups = null; return; } this.securityGroups = new java.util.ArrayList(securityGroups); } /** *

* A list of security groups used by the cluster *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want * to override the existing values. *

* * @param securityGroups * A list of security groups used by the cluster * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withSecurityGroups(SecurityGroupMembership... securityGroups) { if (this.securityGroups == null) { setSecurityGroups(new java.util.ArrayList(securityGroups.length)); } for (SecurityGroupMembership ele : securityGroups) { this.securityGroups.add(ele); } return this; } /** *

* A list of security groups used by the cluster *

* * @param securityGroups * A list of security groups used by the cluster * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withSecurityGroups(java.util.Collection securityGroups) { setSecurityGroups(securityGroups); return this; } /** *

* The name of the subnet group used by the cluster *

* * @param subnetGroupName * The name of the subnet group used by the cluster */ public void setSubnetGroupName(String subnetGroupName) { this.subnetGroupName = subnetGroupName; } /** *

* The name of the subnet group used by the cluster *

* * @return The name of the subnet group used by the cluster */ public String getSubnetGroupName() { return this.subnetGroupName; } /** *

* The name of the subnet group used by the cluster *

* * @param subnetGroupName * The name of the subnet group used by the cluster * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withSubnetGroupName(String subnetGroupName) { setSubnetGroupName(subnetGroupName); return this; } /** *

* A flag to indicate if In-transit encryption is enabled *

* * @param tLSEnabled * A flag to indicate if In-transit encryption is enabled */ public void setTLSEnabled(Boolean tLSEnabled) { this.tLSEnabled = tLSEnabled; } /** *

* A flag to indicate if In-transit encryption is enabled *

* * @return A flag to indicate if In-transit encryption is enabled */ public Boolean getTLSEnabled() { return this.tLSEnabled; } /** *

* A flag to indicate if In-transit encryption is enabled *

* * @param tLSEnabled * A flag to indicate if In-transit encryption is enabled * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withTLSEnabled(Boolean tLSEnabled) { setTLSEnabled(tLSEnabled); return this; } /** *

* A flag to indicate if In-transit encryption is enabled *

* * @return A flag to indicate if In-transit encryption is enabled */ public Boolean isTLSEnabled() { return this.tLSEnabled; } /** *

* The ID of the KMS key used to encrypt the cluster *

* * @param kmsKeyId * The ID of the KMS key used to encrypt the cluster */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** *

* The ID of the KMS key used to encrypt the cluster *

* * @return The ID of the KMS key used to encrypt the cluster */ public String getKmsKeyId() { return this.kmsKeyId; } /** *

* The ID of the KMS key used to encrypt the cluster *

* * @param kmsKeyId * The ID of the KMS key used to encrypt the cluster * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *

* The Amazon Resource Name (ARN) of the cluster. *

* * @param aRN * The Amazon Resource Name (ARN) of the cluster. */ public void setARN(String aRN) { this.aRN = aRN; } /** *

* The Amazon Resource Name (ARN) of the cluster. *

* * @return The Amazon Resource Name (ARN) of the cluster. */ public String getARN() { return this.aRN; } /** *

* The Amazon Resource Name (ARN) of the cluster. *

* * @param aRN * The Amazon Resource Name (ARN) of the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withARN(String aRN) { setARN(aRN); return this; } /** *

* The Amazon Resource Name (ARN) of the SNS notification topic *

* * @param snsTopicArn * The Amazon Resource Name (ARN) of the SNS notification topic */ public void setSnsTopicArn(String snsTopicArn) { this.snsTopicArn = snsTopicArn; } /** *

* The Amazon Resource Name (ARN) of the SNS notification topic *

* * @return The Amazon Resource Name (ARN) of the SNS notification topic */ public String getSnsTopicArn() { return this.snsTopicArn; } /** *

* The Amazon Resource Name (ARN) of the SNS notification topic *

* * @param snsTopicArn * The Amazon Resource Name (ARN) of the SNS notification topic * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withSnsTopicArn(String snsTopicArn) { setSnsTopicArn(snsTopicArn); return this; } /** *

* The SNS topic must be in Active status to receive notifications *

* * @param snsTopicStatus * The SNS topic must be in Active status to receive notifications */ public void setSnsTopicStatus(String snsTopicStatus) { this.snsTopicStatus = snsTopicStatus; } /** *

* The SNS topic must be in Active status to receive notifications *

* * @return The SNS topic must be in Active status to receive notifications */ public String getSnsTopicStatus() { return this.snsTopicStatus; } /** *

* The SNS topic must be in Active status to receive notifications *

* * @param snsTopicStatus * The SNS topic must be in Active status to receive notifications * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withSnsTopicStatus(String snsTopicStatus) { setSnsTopicStatus(snsTopicStatus); return this; } /** *

* The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set * SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted. *

* * @param snapshotRetentionLimit * The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if * you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being * deleted. */ public void setSnapshotRetentionLimit(Integer snapshotRetentionLimit) { this.snapshotRetentionLimit = snapshotRetentionLimit; } /** *

* The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set * SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted. *

* * @return The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if * you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being * deleted. */ public Integer getSnapshotRetentionLimit() { return this.snapshotRetentionLimit; } /** *

* The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set * SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted. *

* * @param snapshotRetentionLimit * The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if * you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being * deleted. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withSnapshotRetentionLimit(Integer snapshotRetentionLimit) { setSnapshotRetentionLimit(snapshotRetentionLimit); return this; } /** *

* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range * in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. *

* * @param maintenanceWindow * Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a * range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute * period. */ public void setMaintenanceWindow(String maintenanceWindow) { this.maintenanceWindow = maintenanceWindow; } /** *

* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range * in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. *

* * @return Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as * a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 * minute period. */ public String getMaintenanceWindow() { return this.maintenanceWindow; } /** *

* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range * in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. *

* * @param maintenanceWindow * Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a * range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute * period. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withMaintenanceWindow(String maintenanceWindow) { setMaintenanceWindow(maintenanceWindow); return this; } /** *

* The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: * 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range. *

* * @param snapshotWindow * The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: * 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time * range. */ public void setSnapshotWindow(String snapshotWindow) { this.snapshotWindow = snapshotWindow; } /** *

* The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: * 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range. *

* * @return The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. * Example: 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate * time range. */ public String getSnapshotWindow() { return this.snapshotWindow; } /** *

* The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: * 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range. *

* * @param snapshotWindow * The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: * 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time * range. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withSnapshotWindow(String snapshotWindow) { setSnapshotWindow(snapshotWindow); return this; } /** *

* The name of the Access Control List associated with this cluster. *

* * @param aCLName * The name of the Access Control List associated with this cluster. */ public void setACLName(String aCLName) { this.aCLName = aCLName; } /** *

* The name of the Access Control List associated with this cluster. *

* * @return The name of the Access Control List associated with this cluster. */ public String getACLName() { return this.aCLName; } /** *

* The name of the Access Control List associated with this cluster. *

* * @param aCLName * The name of the Access Control List associated with this cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withACLName(String aCLName) { setACLName(aCLName); return this; } /** *

* When set to true, the cluster will automatically receive minor engine version upgrades after launch. *

* * @param autoMinorVersionUpgrade * When set to true, the cluster will automatically receive minor engine version upgrades after launch. */ public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) { this.autoMinorVersionUpgrade = autoMinorVersionUpgrade; } /** *

* When set to true, the cluster will automatically receive minor engine version upgrades after launch. *

* * @return When set to true, the cluster will automatically receive minor engine version upgrades after launch. */ public Boolean getAutoMinorVersionUpgrade() { return this.autoMinorVersionUpgrade; } /** *

* When set to true, the cluster will automatically receive minor engine version upgrades after launch. *

* * @param autoMinorVersionUpgrade * When set to true, the cluster will automatically receive minor engine version upgrades after launch. * @return Returns a reference to this object so that method calls can be chained together. */ public Cluster withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) { setAutoMinorVersionUpgrade(autoMinorVersionUpgrade); return this; } /** *

* When set to true, the cluster will automatically receive minor engine version upgrades after launch. *

* * @return When set to true, the cluster will automatically receive minor engine version upgrades after launch. */ public Boolean isAutoMinorVersionUpgrade() { return this.autoMinorVersionUpgrade; } /** * 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getPendingUpdates() != null) sb.append("PendingUpdates: ").append(getPendingUpdates()).append(","); if (getNumberOfShards() != null) sb.append("NumberOfShards: ").append(getNumberOfShards()).append(","); if (getShards() != null) sb.append("Shards: ").append(getShards()).append(","); if (getAvailabilityMode() != null) sb.append("AvailabilityMode: ").append(getAvailabilityMode()).append(","); if (getClusterEndpoint() != null) sb.append("ClusterEndpoint: ").append(getClusterEndpoint()).append(","); if (getNodeType() != null) sb.append("NodeType: ").append(getNodeType()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getEnginePatchVersion() != null) sb.append("EnginePatchVersion: ").append(getEnginePatchVersion()).append(","); if (getParameterGroupName() != null) sb.append("ParameterGroupName: ").append(getParameterGroupName()).append(","); if (getParameterGroupStatus() != null) sb.append("ParameterGroupStatus: ").append(getParameterGroupStatus()).append(","); if (getSecurityGroups() != null) sb.append("SecurityGroups: ").append(getSecurityGroups()).append(","); if (getSubnetGroupName() != null) sb.append("SubnetGroupName: ").append(getSubnetGroupName()).append(","); if (getTLSEnabled() != null) sb.append("TLSEnabled: ").append(getTLSEnabled()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getARN() != null) sb.append("ARN: ").append(getARN()).append(","); if (getSnsTopicArn() != null) sb.append("SnsTopicArn: ").append(getSnsTopicArn()).append(","); if (getSnsTopicStatus() != null) sb.append("SnsTopicStatus: ").append(getSnsTopicStatus()).append(","); if (getSnapshotRetentionLimit() != null) sb.append("SnapshotRetentionLimit: ").append(getSnapshotRetentionLimit()).append(","); if (getMaintenanceWindow() != null) sb.append("MaintenanceWindow: ").append(getMaintenanceWindow()).append(","); if (getSnapshotWindow() != null) sb.append("SnapshotWindow: ").append(getSnapshotWindow()).append(","); if (getACLName() != null) sb.append("ACLName: ").append(getACLName()).append(","); if (getAutoMinorVersionUpgrade() != null) sb.append("AutoMinorVersionUpgrade: ").append(getAutoMinorVersionUpgrade()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Cluster == false) return false; Cluster other = (Cluster) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getPendingUpdates() == null ^ this.getPendingUpdates() == null) return false; if (other.getPendingUpdates() != null && other.getPendingUpdates().equals(this.getPendingUpdates()) == false) return false; if (other.getNumberOfShards() == null ^ this.getNumberOfShards() == null) return false; if (other.getNumberOfShards() != null && other.getNumberOfShards().equals(this.getNumberOfShards()) == false) return false; if (other.getShards() == null ^ this.getShards() == null) return false; if (other.getShards() != null && other.getShards().equals(this.getShards()) == false) return false; if (other.getAvailabilityMode() == null ^ this.getAvailabilityMode() == null) return false; if (other.getAvailabilityMode() != null && other.getAvailabilityMode().equals(this.getAvailabilityMode()) == false) return false; if (other.getClusterEndpoint() == null ^ this.getClusterEndpoint() == null) return false; if (other.getClusterEndpoint() != null && other.getClusterEndpoint().equals(this.getClusterEndpoint()) == false) return false; if (other.getNodeType() == null ^ this.getNodeType() == null) return false; if (other.getNodeType() != null && other.getNodeType().equals(this.getNodeType()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getEnginePatchVersion() == null ^ this.getEnginePatchVersion() == null) return false; if (other.getEnginePatchVersion() != null && other.getEnginePatchVersion().equals(this.getEnginePatchVersion()) == false) return false; if (other.getParameterGroupName() == null ^ this.getParameterGroupName() == null) return false; if (other.getParameterGroupName() != null && other.getParameterGroupName().equals(this.getParameterGroupName()) == false) return false; if (other.getParameterGroupStatus() == null ^ this.getParameterGroupStatus() == null) return false; if (other.getParameterGroupStatus() != null && other.getParameterGroupStatus().equals(this.getParameterGroupStatus()) == false) return false; if (other.getSecurityGroups() == null ^ this.getSecurityGroups() == null) return false; if (other.getSecurityGroups() != null && other.getSecurityGroups().equals(this.getSecurityGroups()) == false) return false; if (other.getSubnetGroupName() == null ^ this.getSubnetGroupName() == null) return false; if (other.getSubnetGroupName() != null && other.getSubnetGroupName().equals(this.getSubnetGroupName()) == false) return false; if (other.getTLSEnabled() == null ^ this.getTLSEnabled() == null) return false; if (other.getTLSEnabled() != null && other.getTLSEnabled().equals(this.getTLSEnabled()) == false) return false; if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null) return false; if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false) return false; if (other.getARN() == null ^ this.getARN() == null) return false; if (other.getARN() != null && other.getARN().equals(this.getARN()) == false) return false; if (other.getSnsTopicArn() == null ^ this.getSnsTopicArn() == null) return false; if (other.getSnsTopicArn() != null && other.getSnsTopicArn().equals(this.getSnsTopicArn()) == false) return false; if (other.getSnsTopicStatus() == null ^ this.getSnsTopicStatus() == null) return false; if (other.getSnsTopicStatus() != null && other.getSnsTopicStatus().equals(this.getSnsTopicStatus()) == false) return false; if (other.getSnapshotRetentionLimit() == null ^ this.getSnapshotRetentionLimit() == null) return false; if (other.getSnapshotRetentionLimit() != null && other.getSnapshotRetentionLimit().equals(this.getSnapshotRetentionLimit()) == false) return false; if (other.getMaintenanceWindow() == null ^ this.getMaintenanceWindow() == null) return false; if (other.getMaintenanceWindow() != null && other.getMaintenanceWindow().equals(this.getMaintenanceWindow()) == false) return false; if (other.getSnapshotWindow() == null ^ this.getSnapshotWindow() == null) return false; if (other.getSnapshotWindow() != null && other.getSnapshotWindow().equals(this.getSnapshotWindow()) == false) return false; if (other.getACLName() == null ^ this.getACLName() == null) return false; if (other.getACLName() != null && other.getACLName().equals(this.getACLName()) == false) return false; if (other.getAutoMinorVersionUpgrade() == null ^ this.getAutoMinorVersionUpgrade() == null) return false; if (other.getAutoMinorVersionUpgrade() != null && other.getAutoMinorVersionUpgrade().equals(this.getAutoMinorVersionUpgrade()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getPendingUpdates() == null) ? 0 : getPendingUpdates().hashCode()); hashCode = prime * hashCode + ((getNumberOfShards() == null) ? 0 : getNumberOfShards().hashCode()); hashCode = prime * hashCode + ((getShards() == null) ? 0 : getShards().hashCode()); hashCode = prime * hashCode + ((getAvailabilityMode() == null) ? 0 : getAvailabilityMode().hashCode()); hashCode = prime * hashCode + ((getClusterEndpoint() == null) ? 0 : getClusterEndpoint().hashCode()); hashCode = prime * hashCode + ((getNodeType() == null) ? 0 : getNodeType().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getEnginePatchVersion() == null) ? 0 : getEnginePatchVersion().hashCode()); hashCode = prime * hashCode + ((getParameterGroupName() == null) ? 0 : getParameterGroupName().hashCode()); hashCode = prime * hashCode + ((getParameterGroupStatus() == null) ? 0 : getParameterGroupStatus().hashCode()); hashCode = prime * hashCode + ((getSecurityGroups() == null) ? 0 : getSecurityGroups().hashCode()); hashCode = prime * hashCode + ((getSubnetGroupName() == null) ? 0 : getSubnetGroupName().hashCode()); hashCode = prime * hashCode + ((getTLSEnabled() == null) ? 0 : getTLSEnabled().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getARN() == null) ? 0 : getARN().hashCode()); hashCode = prime * hashCode + ((getSnsTopicArn() == null) ? 0 : getSnsTopicArn().hashCode()); hashCode = prime * hashCode + ((getSnsTopicStatus() == null) ? 0 : getSnsTopicStatus().hashCode()); hashCode = prime * hashCode + ((getSnapshotRetentionLimit() == null) ? 0 : getSnapshotRetentionLimit().hashCode()); hashCode = prime * hashCode + ((getMaintenanceWindow() == null) ? 0 : getMaintenanceWindow().hashCode()); hashCode = prime * hashCode + ((getSnapshotWindow() == null) ? 0 : getSnapshotWindow().hashCode()); hashCode = prime * hashCode + ((getACLName() == null) ? 0 : getACLName().hashCode()); hashCode = prime * hashCode + ((getAutoMinorVersionUpgrade() == null) ? 0 : getAutoMinorVersionUpgrade().hashCode()); return hashCode; } @Override public Cluster clone() { try { return (Cluster) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.memorydb.model.transform.ClusterMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy