* The number of instances included in the runtime environment. A standalone runtime environment has a maxiumum of * one instance. Currently, a high availability runtime environment has a maximum of two instances. *
*/ private Integer actualCapacity; /** ** The timestamp when the runtime environment was created. *
*/ private java.util.Date creationTime; /** ** The description of the runtime environment. *
*/ private String description; /** ** The target platform for the runtime environment. *
*/ private String engineType; /** ** The version of the runtime engine. *
*/ private String engineVersion; /** ** The Amazon Resource Name (ARN) of the runtime environment. *
*/ private String environmentArn; /** ** The unique identifier of the runtime environment. *
*/ private String environmentId; /** ** The desired capacity of the high availability configuration for the runtime environment. *
*/ private HighAvailabilityConfig highAvailabilityConfig; /** ** The type of instance underlying the runtime environment. *
*/ private String instanceType; /** ** The identifier of a customer managed key. *
*/ private String kmsKeyId; /** ** The Amazon Resource Name (ARN) for the load balancer used with the runtime environment. *
*/ private String loadBalancerArn; /** ** The name of the runtime environment. Must be unique within the account. *
*/ private String name; /** ** Indicates the pending maintenance scheduled on this environment. *
*/ private PendingMaintenance pendingMaintenance; /** ** Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random * system-generated value will be assigned. *
*/ private String preferredMaintenanceWindow; /** ** Whether applications running in this runtime environment are publicly accessible. *
*/ private Boolean publiclyAccessible; /** ** The unique identifiers of the security groups assigned to this runtime environment. *
*/ private java.util.List* The status of the runtime environment. *
*/ private String status; /** ** The reason for the reported status. *
*/ private String statusReason; /** ** The storage configurations defined for the runtime environment. *
*/ private java.util.List* The unique identifiers of the subnets assigned to this runtime environment. *
*/ private java.util.List* The tags defined for this runtime environment. *
*/ private java.util.Map* The unique identifier for the VPC used with this runtime environment. *
*/ private String vpcId; /** ** The number of instances included in the runtime environment. A standalone runtime environment has a maxiumum of * one instance. Currently, a high availability runtime environment has a maximum of two instances. *
* * @param actualCapacity * The number of instances included in the runtime environment. A standalone runtime environment has a * maxiumum of one instance. Currently, a high availability runtime environment has a maximum of two * instances. */ public void setActualCapacity(Integer actualCapacity) { this.actualCapacity = actualCapacity; } /** ** The number of instances included in the runtime environment. A standalone runtime environment has a maxiumum of * one instance. Currently, a high availability runtime environment has a maximum of two instances. *
* * @return The number of instances included in the runtime environment. A standalone runtime environment has a * maxiumum of one instance. Currently, a high availability runtime environment has a maximum of two * instances. */ public Integer getActualCapacity() { return this.actualCapacity; } /** ** The number of instances included in the runtime environment. A standalone runtime environment has a maxiumum of * one instance. Currently, a high availability runtime environment has a maximum of two instances. *
* * @param actualCapacity * The number of instances included in the runtime environment. A standalone runtime environment has a * maxiumum of one instance. Currently, a high availability runtime environment has a maximum of two * instances. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withActualCapacity(Integer actualCapacity) { setActualCapacity(actualCapacity); return this; } /** ** The timestamp when the runtime environment was created. *
* * @param creationTime * The timestamp when the runtime environment was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The timestamp when the runtime environment was created. *
* * @return The timestamp when the runtime environment was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The timestamp when the runtime environment was created. *
* * @param creationTime * The timestamp when the runtime environment was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The description of the runtime environment. *
* * @param description * The description of the runtime environment. */ public void setDescription(String description) { this.description = description; } /** ** The description of the runtime environment. *
* * @return The description of the runtime environment. */ public String getDescription() { return this.description; } /** ** The description of the runtime environment. *
* * @param description * The description of the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withDescription(String description) { setDescription(description); return this; } /** ** The target platform for the runtime environment. *
* * @param engineType * The target platform for the runtime environment. * @see EngineType */ public void setEngineType(String engineType) { this.engineType = engineType; } /** ** The target platform for the runtime environment. *
* * @return The target platform for the runtime environment. * @see EngineType */ public String getEngineType() { return this.engineType; } /** ** The target platform for the runtime environment. *
* * @param engineType * The target platform for the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public GetEnvironmentResult withEngineType(String engineType) { setEngineType(engineType); return this; } /** ** The target platform for the runtime environment. *
* * @param engineType * The target platform for the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public GetEnvironmentResult withEngineType(EngineType engineType) { this.engineType = engineType.toString(); return this; } /** ** The version of the runtime engine. *
* * @param engineVersion * The version of the runtime engine. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** ** The version of the runtime engine. *
* * @return The version of the runtime engine. */ public String getEngineVersion() { return this.engineVersion; } /** ** The version of the runtime engine. *
* * @param engineVersion * The version of the runtime engine. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** ** The Amazon Resource Name (ARN) of the runtime environment. *
* * @param environmentArn * The Amazon Resource Name (ARN) of the runtime environment. */ public void setEnvironmentArn(String environmentArn) { this.environmentArn = environmentArn; } /** ** The Amazon Resource Name (ARN) of the runtime environment. *
* * @return The Amazon Resource Name (ARN) of the runtime environment. */ public String getEnvironmentArn() { return this.environmentArn; } /** ** The Amazon Resource Name (ARN) of the runtime environment. *
* * @param environmentArn * The Amazon Resource Name (ARN) of the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withEnvironmentArn(String environmentArn) { setEnvironmentArn(environmentArn); return this; } /** ** The unique identifier of the runtime environment. *
* * @param environmentId * The unique identifier of the runtime environment. */ public void setEnvironmentId(String environmentId) { this.environmentId = environmentId; } /** ** The unique identifier of the runtime environment. *
* * @return The unique identifier of the runtime environment. */ public String getEnvironmentId() { return this.environmentId; } /** ** The unique identifier of the runtime environment. *
* * @param environmentId * The unique identifier of the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withEnvironmentId(String environmentId) { setEnvironmentId(environmentId); return this; } /** ** The desired capacity of the high availability configuration for the runtime environment. *
* * @param highAvailabilityConfig * The desired capacity of the high availability configuration for the runtime environment. */ public void setHighAvailabilityConfig(HighAvailabilityConfig highAvailabilityConfig) { this.highAvailabilityConfig = highAvailabilityConfig; } /** ** The desired capacity of the high availability configuration for the runtime environment. *
* * @return The desired capacity of the high availability configuration for the runtime environment. */ public HighAvailabilityConfig getHighAvailabilityConfig() { return this.highAvailabilityConfig; } /** ** The desired capacity of the high availability configuration for the runtime environment. *
* * @param highAvailabilityConfig * The desired capacity of the high availability configuration for the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withHighAvailabilityConfig(HighAvailabilityConfig highAvailabilityConfig) { setHighAvailabilityConfig(highAvailabilityConfig); return this; } /** ** The type of instance underlying the runtime environment. *
* * @param instanceType * The type of instance underlying the runtime environment. */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** ** The type of instance underlying the runtime environment. *
* * @return The type of instance underlying the runtime environment. */ public String getInstanceType() { return this.instanceType; } /** ** The type of instance underlying the runtime environment. *
* * @param instanceType * The type of instance underlying the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** ** The identifier of a customer managed key. *
* * @param kmsKeyId * The identifier of a customer managed key. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** ** The identifier of a customer managed key. *
* * @return The identifier of a customer managed key. */ public String getKmsKeyId() { return this.kmsKeyId; } /** ** The identifier of a customer managed key. *
* * @param kmsKeyId * The identifier of a customer managed key. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** ** The Amazon Resource Name (ARN) for the load balancer used with the runtime environment. *
* * @param loadBalancerArn * The Amazon Resource Name (ARN) for the load balancer used with the runtime environment. */ public void setLoadBalancerArn(String loadBalancerArn) { this.loadBalancerArn = loadBalancerArn; } /** ** The Amazon Resource Name (ARN) for the load balancer used with the runtime environment. *
* * @return The Amazon Resource Name (ARN) for the load balancer used with the runtime environment. */ public String getLoadBalancerArn() { return this.loadBalancerArn; } /** ** The Amazon Resource Name (ARN) for the load balancer used with the runtime environment. *
* * @param loadBalancerArn * The Amazon Resource Name (ARN) for the load balancer used with the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withLoadBalancerArn(String loadBalancerArn) { setLoadBalancerArn(loadBalancerArn); return this; } /** ** The name of the runtime environment. Must be unique within the account. *
* * @param name * The name of the runtime environment. Must be unique within the account. */ public void setName(String name) { this.name = name; } /** ** The name of the runtime environment. Must be unique within the account. *
* * @return The name of the runtime environment. Must be unique within the account. */ public String getName() { return this.name; } /** ** The name of the runtime environment. Must be unique within the account. *
* * @param name * The name of the runtime environment. Must be unique within the account. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withName(String name) { setName(name); return this; } /** ** Indicates the pending maintenance scheduled on this environment. *
* * @param pendingMaintenance * Indicates the pending maintenance scheduled on this environment. */ public void setPendingMaintenance(PendingMaintenance pendingMaintenance) { this.pendingMaintenance = pendingMaintenance; } /** ** Indicates the pending maintenance scheduled on this environment. *
* * @return Indicates the pending maintenance scheduled on this environment. */ public PendingMaintenance getPendingMaintenance() { return this.pendingMaintenance; } /** ** Indicates the pending maintenance scheduled on this environment. *
* * @param pendingMaintenance * Indicates the pending maintenance scheduled on this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withPendingMaintenance(PendingMaintenance pendingMaintenance) { setPendingMaintenance(pendingMaintenance); return this; } /** ** Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random * system-generated value will be assigned. *
* * @param preferredMaintenanceWindow * Configures the maintenance window you want for the runtime environment. If you do not provide a value, a * random system-generated value will be assigned. */ public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) { this.preferredMaintenanceWindow = preferredMaintenanceWindow; } /** ** Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random * system-generated value will be assigned. *
* * @return Configures the maintenance window you want for the runtime environment. If you do not provide a value, a * random system-generated value will be assigned. */ public String getPreferredMaintenanceWindow() { return this.preferredMaintenanceWindow; } /** ** Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random * system-generated value will be assigned. *
* * @param preferredMaintenanceWindow * Configures the maintenance window you want for the runtime environment. If you do not provide a value, a * random system-generated value will be assigned. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withPreferredMaintenanceWindow(String preferredMaintenanceWindow) { setPreferredMaintenanceWindow(preferredMaintenanceWindow); return this; } /** ** Whether applications running in this runtime environment are publicly accessible. *
* * @param publiclyAccessible * Whether applications running in this runtime environment are publicly accessible. */ public void setPubliclyAccessible(Boolean publiclyAccessible) { this.publiclyAccessible = publiclyAccessible; } /** ** Whether applications running in this runtime environment are publicly accessible. *
* * @return Whether applications running in this runtime environment are publicly accessible. */ public Boolean getPubliclyAccessible() { return this.publiclyAccessible; } /** ** Whether applications running in this runtime environment are publicly accessible. *
* * @param publiclyAccessible * Whether applications running in this runtime environment are publicly accessible. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withPubliclyAccessible(Boolean publiclyAccessible) { setPubliclyAccessible(publiclyAccessible); return this; } /** ** Whether applications running in this runtime environment are publicly accessible. *
* * @return Whether applications running in this runtime environment are publicly accessible. */ public Boolean isPubliclyAccessible() { return this.publiclyAccessible; } /** ** The unique identifiers of the security groups assigned to this runtime environment. *
* * @return The unique identifiers of the security groups assigned to this runtime environment. */ public java.util.List* The unique identifiers of the security groups assigned to this runtime environment. *
* * @param securityGroupIds * The unique identifiers of the security groups assigned to this runtime environment. */ public void setSecurityGroupIds(java.util.Collection* The unique identifiers of the security groups assigned to this runtime environment. *
** 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 * The unique identifiers of the security groups assigned to this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withSecurityGroupIds(String... securityGroupIds) { if (this.securityGroupIds == null) { setSecurityGroupIds(new java.util.ArrayList* The unique identifiers of the security groups assigned to this runtime environment. *
* * @param securityGroupIds * The unique identifiers of the security groups assigned to this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withSecurityGroupIds(java.util.Collection* The status of the runtime environment. *
* * @param status * The status of the runtime environment. * @see EnvironmentLifecycle */ public void setStatus(String status) { this.status = status; } /** ** The status of the runtime environment. *
* * @return The status of the runtime environment. * @see EnvironmentLifecycle */ public String getStatus() { return this.status; } /** ** The status of the runtime environment. *
* * @param status * The status of the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. * @see EnvironmentLifecycle */ public GetEnvironmentResult withStatus(String status) { setStatus(status); return this; } /** ** The status of the runtime environment. *
* * @param status * The status of the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. * @see EnvironmentLifecycle */ public GetEnvironmentResult withStatus(EnvironmentLifecycle status) { this.status = status.toString(); return this; } /** ** The reason for the reported status. *
* * @param statusReason * The reason for the reported status. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** ** The reason for the reported status. *
* * @return The reason for the reported status. */ public String getStatusReason() { return this.statusReason; } /** ** The reason for the reported status. *
* * @param statusReason * The reason for the reported status. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withStatusReason(String statusReason) { setStatusReason(statusReason); return this; } /** ** The storage configurations defined for the runtime environment. *
* * @return The storage configurations defined for the runtime environment. */ public java.util.List* The storage configurations defined for the runtime environment. *
* * @param storageConfigurations * The storage configurations defined for the runtime environment. */ public void setStorageConfigurations(java.util.Collection* The storage configurations defined for the runtime environment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStorageConfigurations(java.util.Collection)} or * {@link #withStorageConfigurations(java.util.Collection)} if you want to override the existing values. *
* * @param storageConfigurations * The storage configurations defined for the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withStorageConfigurations(StorageConfiguration... storageConfigurations) { if (this.storageConfigurations == null) { setStorageConfigurations(new java.util.ArrayList* The storage configurations defined for the runtime environment. *
* * @param storageConfigurations * The storage configurations defined for the runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withStorageConfigurations(java.util.Collection* The unique identifiers of the subnets assigned to this runtime environment. *
* * @return The unique identifiers of the subnets assigned to this runtime environment. */ public java.util.List* The unique identifiers of the subnets assigned to this runtime environment. *
* * @param subnetIds * The unique identifiers of the subnets assigned to this runtime environment. */ public void setSubnetIds(java.util.Collection* The unique identifiers of the subnets assigned to this runtime environment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to * override the existing values. *
* * @param subnetIds * The unique identifiers of the subnets assigned to this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new java.util.ArrayList* The unique identifiers of the subnets assigned to this runtime environment. *
* * @param subnetIds * The unique identifiers of the subnets assigned to this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withSubnetIds(java.util.Collection* The tags defined for this runtime environment. *
* * @return The tags defined for this runtime environment. */ public java.util.Map* The tags defined for this runtime environment. *
* * @param tags * The tags defined for this runtime environment. */ public void setTags(java.util.Map* The tags defined for this runtime environment. *
* * @param tags * The tags defined for this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withTags(java.util.Map* The unique identifier for the VPC used with this runtime environment. *
* * @param vpcId * The unique identifier for the VPC used with this runtime environment. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** ** The unique identifier for the VPC used with this runtime environment. *
* * @return The unique identifier for the VPC used with this runtime environment. */ public String getVpcId() { return this.vpcId; } /** ** The unique identifier for the VPC used with this runtime environment. *
* * @param vpcId * The unique identifier for the VPC used with this runtime environment. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEnvironmentResult withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** * 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 (getActualCapacity() != null) sb.append("ActualCapacity: ").append(getActualCapacity()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getEngineType() != null) sb.append("EngineType: ").append(getEngineType()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getEnvironmentArn() != null) sb.append("EnvironmentArn: ").append(getEnvironmentArn()).append(","); if (getEnvironmentId() != null) sb.append("EnvironmentId: ").append(getEnvironmentId()).append(","); if (getHighAvailabilityConfig() != null) sb.append("HighAvailabilityConfig: ").append(getHighAvailabilityConfig()).append(","); if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getLoadBalancerArn() != null) sb.append("LoadBalancerArn: ").append(getLoadBalancerArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getPendingMaintenance() != null) sb.append("PendingMaintenance: ").append(getPendingMaintenance()).append(","); if (getPreferredMaintenanceWindow() != null) sb.append("PreferredMaintenanceWindow: ").append(getPreferredMaintenanceWindow()).append(","); if (getPubliclyAccessible() != null) sb.append("PubliclyAccessible: ").append(getPubliclyAccessible()).append(","); if (getSecurityGroupIds() != null) sb.append("SecurityGroupIds: ").append(getSecurityGroupIds()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()).append(","); if (getStorageConfigurations() != null) sb.append("StorageConfigurations: ").append(getStorageConfigurations()).append(","); if (getSubnetIds() != null) sb.append("SubnetIds: ").append(getSubnetIds()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getVpcId() != null) sb.append("VpcId: ").append(getVpcId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetEnvironmentResult == false) return false; GetEnvironmentResult other = (GetEnvironmentResult) obj; if (other.getActualCapacity() == null ^ this.getActualCapacity() == null) return false; if (other.getActualCapacity() != null && other.getActualCapacity().equals(this.getActualCapacity()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == 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.getEngineType() == null ^ this.getEngineType() == null) return false; if (other.getEngineType() != null && other.getEngineType().equals(this.getEngineType()) == 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.getEnvironmentArn() == null ^ this.getEnvironmentArn() == null) return false; if (other.getEnvironmentArn() != null && other.getEnvironmentArn().equals(this.getEnvironmentArn()) == false) return false; if (other.getEnvironmentId() == null ^ this.getEnvironmentId() == null) return false; if (other.getEnvironmentId() != null && other.getEnvironmentId().equals(this.getEnvironmentId()) == false) return false; if (other.getHighAvailabilityConfig() == null ^ this.getHighAvailabilityConfig() == null) return false; if (other.getHighAvailabilityConfig() != null && other.getHighAvailabilityConfig().equals(this.getHighAvailabilityConfig()) == false) return false; if (other.getInstanceType() == null ^ this.getInstanceType() == null) return false; if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == 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.getLoadBalancerArn() == null ^ this.getLoadBalancerArn() == null) return false; if (other.getLoadBalancerArn() != null && other.getLoadBalancerArn().equals(this.getLoadBalancerArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getPendingMaintenance() == null ^ this.getPendingMaintenance() == null) return false; if (other.getPendingMaintenance() != null && other.getPendingMaintenance().equals(this.getPendingMaintenance()) == false) return false; if (other.getPreferredMaintenanceWindow() == null ^ this.getPreferredMaintenanceWindow() == null) return false; if (other.getPreferredMaintenanceWindow() != null && other.getPreferredMaintenanceWindow().equals(this.getPreferredMaintenanceWindow()) == false) return false; if (other.getPubliclyAccessible() == null ^ this.getPubliclyAccessible() == null) return false; if (other.getPubliclyAccessible() != null && other.getPubliclyAccessible().equals(this.getPubliclyAccessible()) == false) return false; if (other.getSecurityGroupIds() == null ^ this.getSecurityGroupIds() == null) return false; if (other.getSecurityGroupIds() != null && other.getSecurityGroupIds().equals(this.getSecurityGroupIds()) == 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.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) return false; if (other.getStorageConfigurations() == null ^ this.getStorageConfigurations() == null) return false; if (other.getStorageConfigurations() != null && other.getStorageConfigurations().equals(this.getStorageConfigurations()) == false) return false; if (other.getSubnetIds() == null ^ this.getSubnetIds() == null) return false; if (other.getSubnetIds() != null && other.getSubnetIds().equals(this.getSubnetIds()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getVpcId() == null ^ this.getVpcId() == null) return false; if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getActualCapacity() == null) ? 0 : getActualCapacity().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getEngineType() == null) ? 0 : getEngineType().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getEnvironmentArn() == null) ? 0 : getEnvironmentArn().hashCode()); hashCode = prime * hashCode + ((getEnvironmentId() == null) ? 0 : getEnvironmentId().hashCode()); hashCode = prime * hashCode + ((getHighAvailabilityConfig() == null) ? 0 : getHighAvailabilityConfig().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getLoadBalancerArn() == null) ? 0 : getLoadBalancerArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getPendingMaintenance() == null) ? 0 : getPendingMaintenance().hashCode()); hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode()); hashCode = prime * hashCode + ((getPubliclyAccessible() == null) ? 0 : getPubliclyAccessible().hashCode()); hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); hashCode = prime * hashCode + ((getStorageConfigurations() == null) ? 0 : getStorageConfigurations().hashCode()); hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode()); return hashCode; } @Override public GetEnvironmentResult clone() { try { return (GetEnvironmentResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }