com.amazonaws.services.opsworkscm.model.Server Maven / Gradle / Ivy
Show all versions of aws-java-sdk-opsworkscm Show documentation
/*
* Copyright 2017-2022 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.opsworkscm.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Describes a configuration management server.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Server implements Serializable, Cloneable, StructuredPojo {
/**
*
* Associate a public IP address with a server that you are launching.
*
*/
private Boolean associatePublicIpAddress;
/**
*
* The number of automated backups to keep.
*
*/
private Integer backupRetentionCount;
/**
*
* The name of the server.
*
*/
private String serverName;
/**
*
* Time stamp of server creation. Example 2016-07-29T13:38:47.520Z
*
*/
private java.util.Date createdAt;
/**
*
* The ARN of the CloudFormation stack that was used to create the server.
*
*/
private String cloudFormationStackArn;
/**
*
* An optional public endpoint of a server, such as https://aws.my-company.com
. You cannot access the
* server by using the Endpoint
value if the server has a CustomDomain
specified.
*
*/
private String customDomain;
/**
*
* Disables automated backups. The number of stored backups is dependent on the value of PreferredBackupCount.
*
*/
private Boolean disableAutomatedBackup;
/**
*
* A DNS name that can be used to access the engine. Example: myserver-asdfghjkl.us-east-1.opsworks.io
.
* You cannot access the server by using the Endpoint
value if the server has a
* CustomDomain
specified.
*
*/
private String endpoint;
/**
*
* The engine type of the server. Valid values in this release include ChefAutomate
and
* Puppet
.
*
*/
private String engine;
/**
*
* The engine model of the server. Valid values in this release include Monolithic
for Puppet and
* Single
for Chef.
*
*/
private String engineModel;
/**
*
* The response of a createServer() request returns the master credential to access the server in EngineAttributes.
* These credentials are not stored by AWS OpsWorks CM; they are returned only as part of the result of
* createServer().
*
*
* Attributes returned in a createServer response for Chef
*
*
* -
*
* CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA private key that is generated by AWS OpsWorks for
* Chef Automate. This private key is required to access the Chef API.
*
*
* -
*
* CHEF_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which
* includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and then
* change to the directory where you've unzipped the file contents. From this directory, you can run Knife commands.
*
*
*
*
* Attributes returned in a createServer response for Puppet
*
*
* -
*
* PUPPET_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit, including
* a README and a required private key. Save this file, unzip it, and then change to the directory where you've
* unzipped the file contents.
*
*
* -
*
* PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet
* Enterprise console after the server is online.
*
*
*
*/
private java.util.List engineAttributes;
/**
*
* The engine version of the server. For a Chef server, the valid value for EngineVersion is currently
* 2
. For a Puppet server, specify either 2019
or 2017
.
*
*/
private String engineVersion;
/**
*
* The instance profile ARN of the server.
*
*/
private String instanceProfileArn;
/**
*
* The instance type for the server, as specified in the CloudFormation stack. This might not be the same instance
* type that is shown in the EC2 console.
*
*/
private String instanceType;
/**
*
* The key pair associated with the server.
*
*/
private String keyPair;
/**
*
* The status of the most recent server maintenance run. Shows SUCCESS
or FAILED
.
*
*/
private String maintenanceStatus;
/**
*
* The preferred maintenance period specified for the server.
*
*/
private String preferredMaintenanceWindow;
/**
*
* The preferred backup period specified for the server.
*
*/
private String preferredBackupWindow;
/**
*
* The security group IDs for the server, as specified in the CloudFormation stack. These might not be the same
* security groups that are shown in the EC2 console.
*
*/
private java.util.List securityGroupIds;
/**
*
* The service role ARN used to create the server.
*
*/
private String serviceRoleArn;
/**
*
* The server's status. This field displays the states of actions in progress, such as creating, running, or backing
* up the server, as well as the server's health state.
*
*/
private String status;
/**
*
* Depending on the server status, this field has either a human-readable message (such as a create or backup
* error), or an escaped block of JSON (used for health check results).
*
*/
private String statusReason;
/**
*
* The subnet IDs specified in a CreateServer request.
*
*/
private java.util.List subnetIds;
/**
*
* The ARN of the server.
*
*/
private String serverArn;
/**
*
* Associate a public IP address with a server that you are launching.
*
*
* @param associatePublicIpAddress
* Associate a public IP address with a server that you are launching.
*/
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress) {
this.associatePublicIpAddress = associatePublicIpAddress;
}
/**
*
* Associate a public IP address with a server that you are launching.
*
*
* @return Associate a public IP address with a server that you are launching.
*/
public Boolean getAssociatePublicIpAddress() {
return this.associatePublicIpAddress;
}
/**
*
* Associate a public IP address with a server that you are launching.
*
*
* @param associatePublicIpAddress
* Associate a public IP address with a server that you are launching.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withAssociatePublicIpAddress(Boolean associatePublicIpAddress) {
setAssociatePublicIpAddress(associatePublicIpAddress);
return this;
}
/**
*
* Associate a public IP address with a server that you are launching.
*
*
* @return Associate a public IP address with a server that you are launching.
*/
public Boolean isAssociatePublicIpAddress() {
return this.associatePublicIpAddress;
}
/**
*
* The number of automated backups to keep.
*
*
* @param backupRetentionCount
* The number of automated backups to keep.
*/
public void setBackupRetentionCount(Integer backupRetentionCount) {
this.backupRetentionCount = backupRetentionCount;
}
/**
*
* The number of automated backups to keep.
*
*
* @return The number of automated backups to keep.
*/
public Integer getBackupRetentionCount() {
return this.backupRetentionCount;
}
/**
*
* The number of automated backups to keep.
*
*
* @param backupRetentionCount
* The number of automated backups to keep.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withBackupRetentionCount(Integer backupRetentionCount) {
setBackupRetentionCount(backupRetentionCount);
return this;
}
/**
*
* The name of the server.
*
*
* @param serverName
* The name of the server.
*/
public void setServerName(String serverName) {
this.serverName = serverName;
}
/**
*
* The name of the server.
*
*
* @return The name of the server.
*/
public String getServerName() {
return this.serverName;
}
/**
*
* The name of the server.
*
*
* @param serverName
* The name of the server.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withServerName(String serverName) {
setServerName(serverName);
return this;
}
/**
*
* Time stamp of server creation. Example 2016-07-29T13:38:47.520Z
*
*
* @param createdAt
* Time stamp of server creation. Example 2016-07-29T13:38:47.520Z
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* Time stamp of server creation. Example 2016-07-29T13:38:47.520Z
*
*
* @return Time stamp of server creation. Example 2016-07-29T13:38:47.520Z
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* Time stamp of server creation. Example 2016-07-29T13:38:47.520Z
*
*
* @param createdAt
* Time stamp of server creation. Example 2016-07-29T13:38:47.520Z
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The ARN of the CloudFormation stack that was used to create the server.
*
*
* @param cloudFormationStackArn
* The ARN of the CloudFormation stack that was used to create the server.
*/
public void setCloudFormationStackArn(String cloudFormationStackArn) {
this.cloudFormationStackArn = cloudFormationStackArn;
}
/**
*
* The ARN of the CloudFormation stack that was used to create the server.
*
*
* @return The ARN of the CloudFormation stack that was used to create the server.
*/
public String getCloudFormationStackArn() {
return this.cloudFormationStackArn;
}
/**
*
* The ARN of the CloudFormation stack that was used to create the server.
*
*
* @param cloudFormationStackArn
* The ARN of the CloudFormation stack that was used to create the server.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withCloudFormationStackArn(String cloudFormationStackArn) {
setCloudFormationStackArn(cloudFormationStackArn);
return this;
}
/**
*
* An optional public endpoint of a server, such as https://aws.my-company.com
. You cannot access the
* server by using the Endpoint
value if the server has a CustomDomain
specified.
*
*
* @param customDomain
* An optional public endpoint of a server, such as https://aws.my-company.com
. You cannot
* access the server by using the Endpoint
value if the server has a CustomDomain
* specified.
*/
public void setCustomDomain(String customDomain) {
this.customDomain = customDomain;
}
/**
*
* An optional public endpoint of a server, such as https://aws.my-company.com
. You cannot access the
* server by using the Endpoint
value if the server has a CustomDomain
specified.
*
*
* @return An optional public endpoint of a server, such as https://aws.my-company.com
. You cannot
* access the server by using the Endpoint
value if the server has a CustomDomain
* specified.
*/
public String getCustomDomain() {
return this.customDomain;
}
/**
*
* An optional public endpoint of a server, such as https://aws.my-company.com
. You cannot access the
* server by using the Endpoint
value if the server has a CustomDomain
specified.
*
*
* @param customDomain
* An optional public endpoint of a server, such as https://aws.my-company.com
. You cannot
* access the server by using the Endpoint
value if the server has a CustomDomain
* specified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withCustomDomain(String customDomain) {
setCustomDomain(customDomain);
return this;
}
/**
*
* Disables automated backups. The number of stored backups is dependent on the value of PreferredBackupCount.
*
*
* @param disableAutomatedBackup
* Disables automated backups. The number of stored backups is dependent on the value of
* PreferredBackupCount.
*/
public void setDisableAutomatedBackup(Boolean disableAutomatedBackup) {
this.disableAutomatedBackup = disableAutomatedBackup;
}
/**
*
* Disables automated backups. The number of stored backups is dependent on the value of PreferredBackupCount.
*
*
* @return Disables automated backups. The number of stored backups is dependent on the value of
* PreferredBackupCount.
*/
public Boolean getDisableAutomatedBackup() {
return this.disableAutomatedBackup;
}
/**
*
* Disables automated backups. The number of stored backups is dependent on the value of PreferredBackupCount.
*
*
* @param disableAutomatedBackup
* Disables automated backups. The number of stored backups is dependent on the value of
* PreferredBackupCount.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withDisableAutomatedBackup(Boolean disableAutomatedBackup) {
setDisableAutomatedBackup(disableAutomatedBackup);
return this;
}
/**
*
* Disables automated backups. The number of stored backups is dependent on the value of PreferredBackupCount.
*
*
* @return Disables automated backups. The number of stored backups is dependent on the value of
* PreferredBackupCount.
*/
public Boolean isDisableAutomatedBackup() {
return this.disableAutomatedBackup;
}
/**
*
* A DNS name that can be used to access the engine. Example: myserver-asdfghjkl.us-east-1.opsworks.io
.
* You cannot access the server by using the Endpoint
value if the server has a
* CustomDomain
specified.
*
*
* @param endpoint
* A DNS name that can be used to access the engine. Example:
* myserver-asdfghjkl.us-east-1.opsworks.io
. You cannot access the server by using the
* Endpoint
value if the server has a CustomDomain
specified.
*/
public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}
/**
*
* A DNS name that can be used to access the engine. Example: myserver-asdfghjkl.us-east-1.opsworks.io
.
* You cannot access the server by using the Endpoint
value if the server has a
* CustomDomain
specified.
*
*
* @return A DNS name that can be used to access the engine. Example:
* myserver-asdfghjkl.us-east-1.opsworks.io
. You cannot access the server by using the
* Endpoint
value if the server has a CustomDomain
specified.
*/
public String getEndpoint() {
return this.endpoint;
}
/**
*
* A DNS name that can be used to access the engine. Example: myserver-asdfghjkl.us-east-1.opsworks.io
.
* You cannot access the server by using the Endpoint
value if the server has a
* CustomDomain
specified.
*
*
* @param endpoint
* A DNS name that can be used to access the engine. Example:
* myserver-asdfghjkl.us-east-1.opsworks.io
. You cannot access the server by using the
* Endpoint
value if the server has a CustomDomain
specified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withEndpoint(String endpoint) {
setEndpoint(endpoint);
return this;
}
/**
*
* The engine type of the server. Valid values in this release include ChefAutomate
and
* Puppet
.
*
*
* @param engine
* The engine type of the server. Valid values in this release include ChefAutomate
and
* Puppet
.
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
*
* The engine type of the server. Valid values in this release include ChefAutomate
and
* Puppet
.
*
*
* @return The engine type of the server. Valid values in this release include ChefAutomate
and
* Puppet
.
*/
public String getEngine() {
return this.engine;
}
/**
*
* The engine type of the server. Valid values in this release include ChefAutomate
and
* Puppet
.
*
*
* @param engine
* The engine type of the server. Valid values in this release include ChefAutomate
and
* Puppet
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withEngine(String engine) {
setEngine(engine);
return this;
}
/**
*
* The engine model of the server. Valid values in this release include Monolithic
for Puppet and
* Single
for Chef.
*
*
* @param engineModel
* The engine model of the server. Valid values in this release include Monolithic
for Puppet
* and Single
for Chef.
*/
public void setEngineModel(String engineModel) {
this.engineModel = engineModel;
}
/**
*
* The engine model of the server. Valid values in this release include Monolithic
for Puppet and
* Single
for Chef.
*
*
* @return The engine model of the server. Valid values in this release include Monolithic
for Puppet
* and Single
for Chef.
*/
public String getEngineModel() {
return this.engineModel;
}
/**
*
* The engine model of the server. Valid values in this release include Monolithic
for Puppet and
* Single
for Chef.
*
*
* @param engineModel
* The engine model of the server. Valid values in this release include Monolithic
for Puppet
* and Single
for Chef.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withEngineModel(String engineModel) {
setEngineModel(engineModel);
return this;
}
/**
*
* The response of a createServer() request returns the master credential to access the server in EngineAttributes.
* These credentials are not stored by AWS OpsWorks CM; they are returned only as part of the result of
* createServer().
*
*
* Attributes returned in a createServer response for Chef
*
*
* -
*
* CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA private key that is generated by AWS OpsWorks for
* Chef Automate. This private key is required to access the Chef API.
*
*
* -
*
* CHEF_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which
* includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and then
* change to the directory where you've unzipped the file contents. From this directory, you can run Knife commands.
*
*
*
*
* Attributes returned in a createServer response for Puppet
*
*
* -
*
* PUPPET_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit, including
* a README and a required private key. Save this file, unzip it, and then change to the directory where you've
* unzipped the file contents.
*
*
* -
*
* PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet
* Enterprise console after the server is online.
*
*
*
*
* @return The response of a createServer() request returns the master credential to access the server in
* EngineAttributes. These credentials are not stored by AWS OpsWorks CM; they are returned only as part of
* the result of createServer().
*
* Attributes returned in a createServer response for Chef
*
*
* -
*
* CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA private key that is generated by AWS
* OpsWorks for Chef Automate. This private key is required to access the Chef API.
*
*
* -
*
* CHEF_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which
* includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and
* then change to the directory where you've unzipped the file contents. From this directory, you can run
* Knife commands.
*
*
*
*
* Attributes returned in a createServer response for Puppet
*
*
* -
*
* PUPPET_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit,
* including a README and a required private key. Save this file, unzip it, and then change to the directory
* where you've unzipped the file contents.
*
*
* -
*
* PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet
* Enterprise console after the server is online.
*
*
*/
public java.util.List getEngineAttributes() {
return engineAttributes;
}
/**
*
* The response of a createServer() request returns the master credential to access the server in EngineAttributes.
* These credentials are not stored by AWS OpsWorks CM; they are returned only as part of the result of
* createServer().
*
*
* Attributes returned in a createServer response for Chef
*
*
* -
*
* CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA private key that is generated by AWS OpsWorks for
* Chef Automate. This private key is required to access the Chef API.
*
*
* -
*
* CHEF_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which
* includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and then
* change to the directory where you've unzipped the file contents. From this directory, you can run Knife commands.
*
*
*
*
* Attributes returned in a createServer response for Puppet
*
*
* -
*
* PUPPET_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit, including
* a README and a required private key. Save this file, unzip it, and then change to the directory where you've
* unzipped the file contents.
*
*
* -
*
* PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet
* Enterprise console after the server is online.
*
*
*
*
* @param engineAttributes
* The response of a createServer() request returns the master credential to access the server in
* EngineAttributes. These credentials are not stored by AWS OpsWorks CM; they are returned only as part of
* the result of createServer().
*
* Attributes returned in a createServer response for Chef
*
*
* -
*
* CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA private key that is generated by AWS OpsWorks
* for Chef Automate. This private key is required to access the Chef API.
*
*
* -
*
* CHEF_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which
* includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and
* then change to the directory where you've unzipped the file contents. From this directory, you can run
* Knife commands.
*
*
*
*
* Attributes returned in a createServer response for Puppet
*
*
* -
*
* PUPPET_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit,
* including a README and a required private key. Save this file, unzip it, and then change to the directory
* where you've unzipped the file contents.
*
*
* -
*
* PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet
* Enterprise console after the server is online.
*
*
*/
public void setEngineAttributes(java.util.Collection engineAttributes) {
if (engineAttributes == null) {
this.engineAttributes = null;
return;
}
this.engineAttributes = new java.util.ArrayList(engineAttributes);
}
/**
*
* The response of a createServer() request returns the master credential to access the server in EngineAttributes.
* These credentials are not stored by AWS OpsWorks CM; they are returned only as part of the result of
* createServer().
*
*
* Attributes returned in a createServer response for Chef
*
*
* -
*
* CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA private key that is generated by AWS OpsWorks for
* Chef Automate. This private key is required to access the Chef API.
*
*
* -
*
* CHEF_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which
* includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and then
* change to the directory where you've unzipped the file contents. From this directory, you can run Knife commands.
*
*
*
*
* Attributes returned in a createServer response for Puppet
*
*
* -
*
* PUPPET_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit, including
* a README and a required private key. Save this file, unzip it, and then change to the directory where you've
* unzipped the file contents.
*
*
* -
*
* PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet
* Enterprise console after the server is online.
*
*
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setEngineAttributes(java.util.Collection)} or {@link #withEngineAttributes(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param engineAttributes
* The response of a createServer() request returns the master credential to access the server in
* EngineAttributes. These credentials are not stored by AWS OpsWorks CM; they are returned only as part of
* the result of createServer().
*
* Attributes returned in a createServer response for Chef
*
*
* -
*
* CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA private key that is generated by AWS OpsWorks
* for Chef Automate. This private key is required to access the Chef API.
*
*
* -
*
* CHEF_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which
* includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and
* then change to the directory where you've unzipped the file contents. From this directory, you can run
* Knife commands.
*
*
*
*
* Attributes returned in a createServer response for Puppet
*
*
* -
*
* PUPPET_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit,
* including a README and a required private key. Save this file, unzip it, and then change to the directory
* where you've unzipped the file contents.
*
*
* -
*
* PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet
* Enterprise console after the server is online.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withEngineAttributes(EngineAttribute... engineAttributes) {
if (this.engineAttributes == null) {
setEngineAttributes(new java.util.ArrayList(engineAttributes.length));
}
for (EngineAttribute ele : engineAttributes) {
this.engineAttributes.add(ele);
}
return this;
}
/**
*
* The response of a createServer() request returns the master credential to access the server in EngineAttributes.
* These credentials are not stored by AWS OpsWorks CM; they are returned only as part of the result of
* createServer().
*
*
* Attributes returned in a createServer response for Chef
*
*
* -
*
* CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA private key that is generated by AWS OpsWorks for
* Chef Automate. This private key is required to access the Chef API.
*
*
* -
*
* CHEF_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which
* includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and then
* change to the directory where you've unzipped the file contents. From this directory, you can run Knife commands.
*
*
*
*
* Attributes returned in a createServer response for Puppet
*
*
* -
*
* PUPPET_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit, including
* a README and a required private key. Save this file, unzip it, and then change to the directory where you've
* unzipped the file contents.
*
*
* -
*
* PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet
* Enterprise console after the server is online.
*
*
*
*
* @param engineAttributes
* The response of a createServer() request returns the master credential to access the server in
* EngineAttributes. These credentials are not stored by AWS OpsWorks CM; they are returned only as part of
* the result of createServer().
*
* Attributes returned in a createServer response for Chef
*
*
* -
*
* CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA private key that is generated by AWS OpsWorks
* for Chef Automate. This private key is required to access the Chef API.
*
*
* -
*
* CHEF_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which
* includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and
* then change to the directory where you've unzipped the file contents. From this directory, you can run
* Knife commands.
*
*
*
*
* Attributes returned in a createServer response for Puppet
*
*
* -
*
* PUPPET_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit,
* including a README and a required private key. Save this file, unzip it, and then change to the directory
* where you've unzipped the file contents.
*
*
* -
*
* PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet
* Enterprise console after the server is online.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withEngineAttributes(java.util.Collection engineAttributes) {
setEngineAttributes(engineAttributes);
return this;
}
/**
*
* The engine version of the server. For a Chef server, the valid value for EngineVersion is currently
* 2
. For a Puppet server, specify either 2019
or 2017
.
*
*
* @param engineVersion
* The engine version of the server. For a Chef server, the valid value for EngineVersion is currently
* 2
. For a Puppet server, specify either 2019
or 2017
.
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* The engine version of the server. For a Chef server, the valid value for EngineVersion is currently
* 2
. For a Puppet server, specify either 2019
or 2017
.
*
*
* @return The engine version of the server. For a Chef server, the valid value for EngineVersion is currently
* 2
. For a Puppet server, specify either 2019
or 2017
.
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* The engine version of the server. For a Chef server, the valid value for EngineVersion is currently
* 2
. For a Puppet server, specify either 2019
or 2017
.
*
*
* @param engineVersion
* The engine version of the server. For a Chef server, the valid value for EngineVersion is currently
* 2
. For a Puppet server, specify either 2019
or 2017
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* The instance profile ARN of the server.
*
*
* @param instanceProfileArn
* The instance profile ARN of the server.
*/
public void setInstanceProfileArn(String instanceProfileArn) {
this.instanceProfileArn = instanceProfileArn;
}
/**
*
* The instance profile ARN of the server.
*
*
* @return The instance profile ARN of the server.
*/
public String getInstanceProfileArn() {
return this.instanceProfileArn;
}
/**
*
* The instance profile ARN of the server.
*
*
* @param instanceProfileArn
* The instance profile ARN of the server.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withInstanceProfileArn(String instanceProfileArn) {
setInstanceProfileArn(instanceProfileArn);
return this;
}
/**
*
* The instance type for the server, as specified in the CloudFormation stack. This might not be the same instance
* type that is shown in the EC2 console.
*
*
* @param instanceType
* The instance type for the server, as specified in the CloudFormation stack. This might not be the same
* instance type that is shown in the EC2 console.
*/
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
}
/**
*
* The instance type for the server, as specified in the CloudFormation stack. This might not be the same instance
* type that is shown in the EC2 console.
*
*
* @return The instance type for the server, as specified in the CloudFormation stack. This might not be the same
* instance type that is shown in the EC2 console.
*/
public String getInstanceType() {
return this.instanceType;
}
/**
*
* The instance type for the server, as specified in the CloudFormation stack. This might not be the same instance
* type that is shown in the EC2 console.
*
*
* @param instanceType
* The instance type for the server, as specified in the CloudFormation stack. This might not be the same
* instance type that is shown in the EC2 console.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withInstanceType(String instanceType) {
setInstanceType(instanceType);
return this;
}
/**
*
* The key pair associated with the server.
*
*
* @param keyPair
* The key pair associated with the server.
*/
public void setKeyPair(String keyPair) {
this.keyPair = keyPair;
}
/**
*
* The key pair associated with the server.
*
*
* @return The key pair associated with the server.
*/
public String getKeyPair() {
return this.keyPair;
}
/**
*
* The key pair associated with the server.
*
*
* @param keyPair
* The key pair associated with the server.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withKeyPair(String keyPair) {
setKeyPair(keyPair);
return this;
}
/**
*
* The status of the most recent server maintenance run. Shows SUCCESS
or FAILED
.
*
*
* @param maintenanceStatus
* The status of the most recent server maintenance run. Shows SUCCESS
or FAILED
.
* @see MaintenanceStatus
*/
public void setMaintenanceStatus(String maintenanceStatus) {
this.maintenanceStatus = maintenanceStatus;
}
/**
*
* The status of the most recent server maintenance run. Shows SUCCESS
or FAILED
.
*
*
* @return The status of the most recent server maintenance run. Shows SUCCESS
or FAILED
.
* @see MaintenanceStatus
*/
public String getMaintenanceStatus() {
return this.maintenanceStatus;
}
/**
*
* The status of the most recent server maintenance run. Shows SUCCESS
or FAILED
.
*
*
* @param maintenanceStatus
* The status of the most recent server maintenance run. Shows SUCCESS
or FAILED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MaintenanceStatus
*/
public Server withMaintenanceStatus(String maintenanceStatus) {
setMaintenanceStatus(maintenanceStatus);
return this;
}
/**
*
* The status of the most recent server maintenance run. Shows SUCCESS
or FAILED
.
*
*
* @param maintenanceStatus
* The status of the most recent server maintenance run. Shows SUCCESS
or FAILED
.
* @see MaintenanceStatus
*/
public void setMaintenanceStatus(MaintenanceStatus maintenanceStatus) {
withMaintenanceStatus(maintenanceStatus);
}
/**
*
* The status of the most recent server maintenance run. Shows SUCCESS
or FAILED
.
*
*
* @param maintenanceStatus
* The status of the most recent server maintenance run. Shows SUCCESS
or FAILED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MaintenanceStatus
*/
public Server withMaintenanceStatus(MaintenanceStatus maintenanceStatus) {
this.maintenanceStatus = maintenanceStatus.toString();
return this;
}
/**
*
* The preferred maintenance period specified for the server.
*
*
* @param preferredMaintenanceWindow
* The preferred maintenance period specified for the server.
*/
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
this.preferredMaintenanceWindow = preferredMaintenanceWindow;
}
/**
*
* The preferred maintenance period specified for the server.
*
*
* @return The preferred maintenance period specified for the server.
*/
public String getPreferredMaintenanceWindow() {
return this.preferredMaintenanceWindow;
}
/**
*
* The preferred maintenance period specified for the server.
*
*
* @param preferredMaintenanceWindow
* The preferred maintenance period specified for the server.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
setPreferredMaintenanceWindow(preferredMaintenanceWindow);
return this;
}
/**
*
* The preferred backup period specified for the server.
*
*
* @param preferredBackupWindow
* The preferred backup period specified for the server.
*/
public void setPreferredBackupWindow(String preferredBackupWindow) {
this.preferredBackupWindow = preferredBackupWindow;
}
/**
*
* The preferred backup period specified for the server.
*
*
* @return The preferred backup period specified for the server.
*/
public String getPreferredBackupWindow() {
return this.preferredBackupWindow;
}
/**
*
* The preferred backup period specified for the server.
*
*
* @param preferredBackupWindow
* The preferred backup period specified for the server.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withPreferredBackupWindow(String preferredBackupWindow) {
setPreferredBackupWindow(preferredBackupWindow);
return this;
}
/**
*
* The security group IDs for the server, as specified in the CloudFormation stack. These might not be the same
* security groups that are shown in the EC2 console.
*
*
* @return The security group IDs for the server, as specified in the CloudFormation stack. These might not be the
* same security groups that are shown in the EC2 console.
*/
public java.util.List getSecurityGroupIds() {
return securityGroupIds;
}
/**
*
* The security group IDs for the server, as specified in the CloudFormation stack. These might not be the same
* security groups that are shown in the EC2 console.
*
*
* @param securityGroupIds
* The security group IDs for the server, as specified in the CloudFormation stack. These might not be the
* same security groups that are shown in the EC2 console.
*/
public void setSecurityGroupIds(java.util.Collection securityGroupIds) {
if (securityGroupIds == null) {
this.securityGroupIds = null;
return;
}
this.securityGroupIds = new java.util.ArrayList(securityGroupIds);
}
/**
*
* The security group IDs for the server, as specified in the CloudFormation stack. These might not be the same
* security groups that are shown in the EC2 console.
*
*
* 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 security group IDs for the server, as specified in the CloudFormation stack. These might not be the
* same security groups that are shown in the EC2 console.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withSecurityGroupIds(String... securityGroupIds) {
if (this.securityGroupIds == null) {
setSecurityGroupIds(new java.util.ArrayList(securityGroupIds.length));
}
for (String ele : securityGroupIds) {
this.securityGroupIds.add(ele);
}
return this;
}
/**
*
* The security group IDs for the server, as specified in the CloudFormation stack. These might not be the same
* security groups that are shown in the EC2 console.
*
*
* @param securityGroupIds
* The security group IDs for the server, as specified in the CloudFormation stack. These might not be the
* same security groups that are shown in the EC2 console.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withSecurityGroupIds(java.util.Collection securityGroupIds) {
setSecurityGroupIds(securityGroupIds);
return this;
}
/**
*
* The service role ARN used to create the server.
*
*
* @param serviceRoleArn
* The service role ARN used to create the server.
*/
public void setServiceRoleArn(String serviceRoleArn) {
this.serviceRoleArn = serviceRoleArn;
}
/**
*
* The service role ARN used to create the server.
*
*
* @return The service role ARN used to create the server.
*/
public String getServiceRoleArn() {
return this.serviceRoleArn;
}
/**
*
* The service role ARN used to create the server.
*
*
* @param serviceRoleArn
* The service role ARN used to create the server.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withServiceRoleArn(String serviceRoleArn) {
setServiceRoleArn(serviceRoleArn);
return this;
}
/**
*
* The server's status. This field displays the states of actions in progress, such as creating, running, or backing
* up the server, as well as the server's health state.
*
*
* @param status
* The server's status. This field displays the states of actions in progress, such as creating, running, or
* backing up the server, as well as the server's health state.
* @see ServerStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The server's status. This field displays the states of actions in progress, such as creating, running, or backing
* up the server, as well as the server's health state.
*
*
* @return The server's status. This field displays the states of actions in progress, such as creating, running, or
* backing up the server, as well as the server's health state.
* @see ServerStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The server's status. This field displays the states of actions in progress, such as creating, running, or backing
* up the server, as well as the server's health state.
*
*
* @param status
* The server's status. This field displays the states of actions in progress, such as creating, running, or
* backing up the server, as well as the server's health state.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ServerStatus
*/
public Server withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The server's status. This field displays the states of actions in progress, such as creating, running, or backing
* up the server, as well as the server's health state.
*
*
* @param status
* The server's status. This field displays the states of actions in progress, such as creating, running, or
* backing up the server, as well as the server's health state.
* @see ServerStatus
*/
public void setStatus(ServerStatus status) {
withStatus(status);
}
/**
*
* The server's status. This field displays the states of actions in progress, such as creating, running, or backing
* up the server, as well as the server's health state.
*
*
* @param status
* The server's status. This field displays the states of actions in progress, such as creating, running, or
* backing up the server, as well as the server's health state.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ServerStatus
*/
public Server withStatus(ServerStatus status) {
this.status = status.toString();
return this;
}
/**
*
* Depending on the server status, this field has either a human-readable message (such as a create or backup
* error), or an escaped block of JSON (used for health check results).
*
*
* @param statusReason
* Depending on the server status, this field has either a human-readable message (such as a create or backup
* error), or an escaped block of JSON (used for health check results).
*/
public void setStatusReason(String statusReason) {
this.statusReason = statusReason;
}
/**
*
* Depending on the server status, this field has either a human-readable message (such as a create or backup
* error), or an escaped block of JSON (used for health check results).
*
*
* @return Depending on the server status, this field has either a human-readable message (such as a create or
* backup error), or an escaped block of JSON (used for health check results).
*/
public String getStatusReason() {
return this.statusReason;
}
/**
*
* Depending on the server status, this field has either a human-readable message (such as a create or backup
* error), or an escaped block of JSON (used for health check results).
*
*
* @param statusReason
* Depending on the server status, this field has either a human-readable message (such as a create or backup
* error), or an escaped block of JSON (used for health check results).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withStatusReason(String statusReason) {
setStatusReason(statusReason);
return this;
}
/**
*
* The subnet IDs specified in a CreateServer request.
*
*
* @return The subnet IDs specified in a CreateServer request.
*/
public java.util.List getSubnetIds() {
return subnetIds;
}
/**
*
* The subnet IDs specified in a CreateServer request.
*
*
* @param subnetIds
* The subnet IDs specified in a CreateServer request.
*/
public void setSubnetIds(java.util.Collection subnetIds) {
if (subnetIds == null) {
this.subnetIds = null;
return;
}
this.subnetIds = new java.util.ArrayList(subnetIds);
}
/**
*
* The subnet IDs specified in a CreateServer request.
*
*
* 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 subnet IDs specified in a CreateServer request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withSubnetIds(String... subnetIds) {
if (this.subnetIds == null) {
setSubnetIds(new java.util.ArrayList(subnetIds.length));
}
for (String ele : subnetIds) {
this.subnetIds.add(ele);
}
return this;
}
/**
*
* The subnet IDs specified in a CreateServer request.
*
*
* @param subnetIds
* The subnet IDs specified in a CreateServer request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withSubnetIds(java.util.Collection subnetIds) {
setSubnetIds(subnetIds);
return this;
}
/**
*
* The ARN of the server.
*
*
* @param serverArn
* The ARN of the server.
*/
public void setServerArn(String serverArn) {
this.serverArn = serverArn;
}
/**
*
* The ARN of the server.
*
*
* @return The ARN of the server.
*/
public String getServerArn() {
return this.serverArn;
}
/**
*
* The ARN of the server.
*
*
* @param serverArn
* The ARN of the server.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Server withServerArn(String serverArn) {
setServerArn(serverArn);
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 (getAssociatePublicIpAddress() != null)
sb.append("AssociatePublicIpAddress: ").append(getAssociatePublicIpAddress()).append(",");
if (getBackupRetentionCount() != null)
sb.append("BackupRetentionCount: ").append(getBackupRetentionCount()).append(",");
if (getServerName() != null)
sb.append("ServerName: ").append(getServerName()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getCloudFormationStackArn() != null)
sb.append("CloudFormationStackArn: ").append(getCloudFormationStackArn()).append(",");
if (getCustomDomain() != null)
sb.append("CustomDomain: ").append(getCustomDomain()).append(",");
if (getDisableAutomatedBackup() != null)
sb.append("DisableAutomatedBackup: ").append(getDisableAutomatedBackup()).append(",");
if (getEndpoint() != null)
sb.append("Endpoint: ").append(getEndpoint()).append(",");
if (getEngine() != null)
sb.append("Engine: ").append(getEngine()).append(",");
if (getEngineModel() != null)
sb.append("EngineModel: ").append(getEngineModel()).append(",");
if (getEngineAttributes() != null)
sb.append("EngineAttributes: ").append(getEngineAttributes()).append(",");
if (getEngineVersion() != null)
sb.append("EngineVersion: ").append(getEngineVersion()).append(",");
if (getInstanceProfileArn() != null)
sb.append("InstanceProfileArn: ").append(getInstanceProfileArn()).append(",");
if (getInstanceType() != null)
sb.append("InstanceType: ").append(getInstanceType()).append(",");
if (getKeyPair() != null)
sb.append("KeyPair: ").append(getKeyPair()).append(",");
if (getMaintenanceStatus() != null)
sb.append("MaintenanceStatus: ").append(getMaintenanceStatus()).append(",");
if (getPreferredMaintenanceWindow() != null)
sb.append("PreferredMaintenanceWindow: ").append(getPreferredMaintenanceWindow()).append(",");
if (getPreferredBackupWindow() != null)
sb.append("PreferredBackupWindow: ").append(getPreferredBackupWindow()).append(",");
if (getSecurityGroupIds() != null)
sb.append("SecurityGroupIds: ").append(getSecurityGroupIds()).append(",");
if (getServiceRoleArn() != null)
sb.append("ServiceRoleArn: ").append(getServiceRoleArn()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getStatusReason() != null)
sb.append("StatusReason: ").append(getStatusReason()).append(",");
if (getSubnetIds() != null)
sb.append("SubnetIds: ").append(getSubnetIds()).append(",");
if (getServerArn() != null)
sb.append("ServerArn: ").append(getServerArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Server == false)
return false;
Server other = (Server) obj;
if (other.getAssociatePublicIpAddress() == null ^ this.getAssociatePublicIpAddress() == null)
return false;
if (other.getAssociatePublicIpAddress() != null && other.getAssociatePublicIpAddress().equals(this.getAssociatePublicIpAddress()) == false)
return false;
if (other.getBackupRetentionCount() == null ^ this.getBackupRetentionCount() == null)
return false;
if (other.getBackupRetentionCount() != null && other.getBackupRetentionCount().equals(this.getBackupRetentionCount()) == false)
return false;
if (other.getServerName() == null ^ this.getServerName() == null)
return false;
if (other.getServerName() != null && other.getServerName().equals(this.getServerName()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getCloudFormationStackArn() == null ^ this.getCloudFormationStackArn() == null)
return false;
if (other.getCloudFormationStackArn() != null && other.getCloudFormationStackArn().equals(this.getCloudFormationStackArn()) == false)
return false;
if (other.getCustomDomain() == null ^ this.getCustomDomain() == null)
return false;
if (other.getCustomDomain() != null && other.getCustomDomain().equals(this.getCustomDomain()) == false)
return false;
if (other.getDisableAutomatedBackup() == null ^ this.getDisableAutomatedBackup() == null)
return false;
if (other.getDisableAutomatedBackup() != null && other.getDisableAutomatedBackup().equals(this.getDisableAutomatedBackup()) == false)
return false;
if (other.getEndpoint() == null ^ this.getEndpoint() == null)
return false;
if (other.getEndpoint() != null && other.getEndpoint().equals(this.getEndpoint()) == false)
return false;
if (other.getEngine() == null ^ this.getEngine() == null)
return false;
if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == false)
return false;
if (other.getEngineModel() == null ^ this.getEngineModel() == null)
return false;
if (other.getEngineModel() != null && other.getEngineModel().equals(this.getEngineModel()) == false)
return false;
if (other.getEngineAttributes() == null ^ this.getEngineAttributes() == null)
return false;
if (other.getEngineAttributes() != null && other.getEngineAttributes().equals(this.getEngineAttributes()) == 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.getInstanceProfileArn() == null ^ this.getInstanceProfileArn() == null)
return false;
if (other.getInstanceProfileArn() != null && other.getInstanceProfileArn().equals(this.getInstanceProfileArn()) == 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.getKeyPair() == null ^ this.getKeyPair() == null)
return false;
if (other.getKeyPair() != null && other.getKeyPair().equals(this.getKeyPair()) == false)
return false;
if (other.getMaintenanceStatus() == null ^ this.getMaintenanceStatus() == null)
return false;
if (other.getMaintenanceStatus() != null && other.getMaintenanceStatus().equals(this.getMaintenanceStatus()) == 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.getPreferredBackupWindow() == null ^ this.getPreferredBackupWindow() == null)
return false;
if (other.getPreferredBackupWindow() != null && other.getPreferredBackupWindow().equals(this.getPreferredBackupWindow()) == 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.getServiceRoleArn() == null ^ this.getServiceRoleArn() == null)
return false;
if (other.getServiceRoleArn() != null && other.getServiceRoleArn().equals(this.getServiceRoleArn()) == 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.getSubnetIds() == null ^ this.getSubnetIds() == null)
return false;
if (other.getSubnetIds() != null && other.getSubnetIds().equals(this.getSubnetIds()) == false)
return false;
if (other.getServerArn() == null ^ this.getServerArn() == null)
return false;
if (other.getServerArn() != null && other.getServerArn().equals(this.getServerArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAssociatePublicIpAddress() == null) ? 0 : getAssociatePublicIpAddress().hashCode());
hashCode = prime * hashCode + ((getBackupRetentionCount() == null) ? 0 : getBackupRetentionCount().hashCode());
hashCode = prime * hashCode + ((getServerName() == null) ? 0 : getServerName().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getCloudFormationStackArn() == null) ? 0 : getCloudFormationStackArn().hashCode());
hashCode = prime * hashCode + ((getCustomDomain() == null) ? 0 : getCustomDomain().hashCode());
hashCode = prime * hashCode + ((getDisableAutomatedBackup() == null) ? 0 : getDisableAutomatedBackup().hashCode());
hashCode = prime * hashCode + ((getEndpoint() == null) ? 0 : getEndpoint().hashCode());
hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode());
hashCode = prime * hashCode + ((getEngineModel() == null) ? 0 : getEngineModel().hashCode());
hashCode = prime * hashCode + ((getEngineAttributes() == null) ? 0 : getEngineAttributes().hashCode());
hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode());
hashCode = prime * hashCode + ((getInstanceProfileArn() == null) ? 0 : getInstanceProfileArn().hashCode());
hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode());
hashCode = prime * hashCode + ((getKeyPair() == null) ? 0 : getKeyPair().hashCode());
hashCode = prime * hashCode + ((getMaintenanceStatus() == null) ? 0 : getMaintenanceStatus().hashCode());
hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode());
hashCode = prime * hashCode + ((getPreferredBackupWindow() == null) ? 0 : getPreferredBackupWindow().hashCode());
hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode());
hashCode = prime * hashCode + ((getServiceRoleArn() == null) ? 0 : getServiceRoleArn().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode());
hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode());
hashCode = prime * hashCode + ((getServerArn() == null) ? 0 : getServerArn().hashCode());
return hashCode;
}
@Override
public Server clone() {
try {
return (Server) 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.opsworkscm.model.transform.ServerMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}