Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 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.opsworks.model;
  
  
Container for the parameters to the UpdateInstance operation.

Updates a specified instance.

Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .

  
  public class UpdateInstanceRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The instance ID.
  
      private String instanceId;

    
The instance's layer IDs.
  
The instance type. AWS OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.
  
      private String instanceType;

    
For load-based or time-based instances, the type. Windows stacks can use only time-based instances.

Constraints:
Allowed Values: load, timer

  
      private String autoScalingType;

    
The instance host name.
  
      private String hostname;

    
The instance's operating system, which must be set to one of the following.

For Windows stacks: Microsoft Windows Server 2012 R2.

For Linux stacks:

  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom

The default option is the current Amazon Linux version. If you set this parameter to Custom, you must use the CreateInstance action's AmiId parameter to specify the custom AMI that you want to use. For more information on the standard operating systems, see Operating SystemsFor more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

  
      private String os;

    
A custom AMI ID to be used to create the instance. The AMI should be based on one of the standard AWS OpsWorks AMIs: Amazon Linux, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS. For more information, see Instances <note>If you specify a custom AMI, you must set Os to Custom.</note>
 
     private String amiId;

    
The instance's Amazon EC2 key name.
 
     private String sshKeyName;

    
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.

Constraints:
Allowed Values: x86_64, i386

 
     private String architecture;

    
Whether to install operating system and package updates when the instance boots. The default value is true. To control when updates are installed, set this value to false. You must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. <note>

We strongly recommend using the default value of true, to ensure that your instances have the latest security updates. </note>

 
     private Boolean installUpdatesOnBoot;

    
Whether this is an Amazon EBS-optimized instance.
 
     private Boolean ebsOptimized;

    
The instance ID.

Returns:
The instance ID.
 
     public String getInstanceId() {
         return ;
     }
    
    
The instance ID.

Parameters:
instanceId The instance ID.
 
     public void setInstanceId(String instanceId) {
         this. = instanceId;
     }
    
    
The instance ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId The instance ID.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public UpdateInstanceRequest withInstanceId(String instanceId) {
         this. = instanceId;
         return this;
     }

    
The instance's layer IDs.

Returns:
The instance's layer IDs.
 
     public java.util.List<StringgetLayerIds() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
The instance's layer IDs.

Parameters:
layerIds The instance's layer IDs.
 
     public void setLayerIds(java.util.Collection<StringlayerIds) {
         if (layerIds == null) {
             this. = null;
             return;
         }
         layerIdsCopy.addAll(layerIds);
         this. = layerIdsCopy;
     }
    
    
The instance's layer IDs.

NOTE: This method appends the values to the existing list (if any). Use setLayerIds(java.util.Collection) or withLayerIds(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
layerIds The instance's layer IDs.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public UpdateInstanceRequest withLayerIds(String... layerIds) {
         if (getLayerIds() == nullsetLayerIds(new java.util.ArrayList<String>(layerIds.length));
         for (String value : layerIds) {
             getLayerIds().add(value);
         }
         return this;
     }
    
    
The instance's layer IDs.

Returns a reference to this object so that method calls can be chained together.

Parameters:
layerIds The instance's layer IDs.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (layerIds == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<StringlayerIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(layerIds.size());
             layerIdsCopy.addAll(layerIds);
             this. = layerIdsCopy;
         }
 
         return this;
     }

    
The instance type. AWS OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.

Returns:
The instance type. AWS OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.
 
     public String getInstanceType() {
         return ;
     }
    
    
The instance type. AWS OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.

Parameters:
instanceType The instance type. AWS OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.
 
     public void setInstanceType(String instanceType) {
         this. = instanceType;
     }
    
    
The instance type. AWS OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceType The instance type. AWS OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public UpdateInstanceRequest withInstanceType(String instanceType) {
         this. = instanceType;
         return this;
     }

    
For load-based or time-based instances, the type. Windows stacks can use only time-based instances.

Constraints:
Allowed Values: load, timer

Returns:
For load-based or time-based instances, the type. Windows stacks can use only time-based instances.
See also:
AutoScalingType
 
     public String getAutoScalingType() {
         return ;
     }
    
    
For load-based or time-based instances, the type. Windows stacks can use only time-based instances.

Constraints:
Allowed Values: load, timer

Parameters:
autoScalingType For load-based or time-based instances, the type. Windows stacks can use only time-based instances.
See also:
AutoScalingType
 
     public void setAutoScalingType(String autoScalingType) {
         this. = autoScalingType;
     }
    
    
For load-based or time-based instances, the type. Windows stacks can use only time-based instances.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: load, timer

Parameters:
autoScalingType For load-based or time-based instances, the type. Windows stacks can use only time-based instances.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
AutoScalingType
 
     public UpdateInstanceRequest withAutoScalingType(String autoScalingType) {
         this. = autoScalingType;
         return this;
     }

    
For load-based or time-based instances, the type. Windows stacks can use only time-based instances.

Constraints:
Allowed Values: load, timer

Parameters:
autoScalingType For load-based or time-based instances, the type. Windows stacks can use only time-based instances.
See also:
AutoScalingType
 
     public void setAutoScalingType(AutoScalingType autoScalingType) {
         this. = autoScalingType.toString();
     }
    
    
For load-based or time-based instances, the type. Windows stacks can use only time-based instances.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: load, timer

Parameters:
autoScalingType For load-based or time-based instances, the type. Windows stacks can use only time-based instances.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
AutoScalingType
 
     public UpdateInstanceRequest withAutoScalingType(AutoScalingType autoScalingType) {
         this. = autoScalingType.toString();
         return this;
     }

    
The instance host name.

Returns:
The instance host name.
 
     public String getHostname() {
         return ;
     }
    
    
The instance host name.

Parameters:
hostname The instance host name.
 
     public void setHostname(String hostname) {
         this. = hostname;
     }
    
    
The instance host name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
hostname The instance host name.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public UpdateInstanceRequest withHostname(String hostname) {
         this. = hostname;
         return this;
     }

    
The instance's operating system, which must be set to one of the following.

For Windows stacks: Microsoft Windows Server 2012 R2.

For Linux stacks:

  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom

The default option is the current Amazon Linux version. If you set this parameter to Custom, you must use the CreateInstance action's AmiId parameter to specify the custom AMI that you want to use. For more information on the standard operating systems, see Operating SystemsFor more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

Returns:
The instance's operating system, which must be set to one of the following.

For Windows stacks: Microsoft Windows Server 2012 R2.

For Linux stacks:

  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom

The default option is the current Amazon Linux version. If you set this parameter to Custom, you must use the CreateInstance action's AmiId parameter to specify the custom AMI that you want to use. For more information on the standard operating systems, see Operating SystemsFor more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

 
     public String getOs() {
         return ;
     }
    
    
The instance's operating system, which must be set to one of the following.

For Windows stacks: Microsoft Windows Server 2012 R2.

For Linux stacks:

  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom

The default option is the current Amazon Linux version. If you set this parameter to Custom, you must use the CreateInstance action's AmiId parameter to specify the custom AMI that you want to use. For more information on the standard operating systems, see Operating SystemsFor more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

Parameters:
os The instance's operating system, which must be set to one of the following.

For Windows stacks: Microsoft Windows Server 2012 R2.

For Linux stacks:

  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom

The default option is the current Amazon Linux version. If you set this parameter to Custom, you must use the CreateInstance action's AmiId parameter to specify the custom AMI that you want to use. For more information on the standard operating systems, see Operating SystemsFor more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

 
     public void setOs(String os) {
         this. = os;
     }
    
    
The instance's operating system, which must be set to one of the following.

For Windows stacks: Microsoft Windows Server 2012 R2.

For Linux stacks:

  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom

The default option is the current Amazon Linux version. If you set this parameter to Custom, you must use the CreateInstance action's AmiId parameter to specify the custom AMI that you want to use. For more information on the standard operating systems, see Operating SystemsFor more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

Returns a reference to this object so that method calls can be chained together.

Parameters:
os The instance's operating system, which must be set to one of the following.

For Windows stacks: Microsoft Windows Server 2012 R2.

For Linux stacks:

  • Standard operating systems: an Amazon Linux version such as Amazon Linux 2014.09, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • Custom AMIs: Custom

The default option is the current Amazon Linux version. If you set this parameter to Custom, you must use the CreateInstance action's AmiId parameter to specify the custom AMI that you want to use. For more information on the standard operating systems, see Operating SystemsFor more information on how to use custom AMIs with OpsWorks, see Using Custom AMIs.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public UpdateInstanceRequest withOs(String os) {
         this. = os;
         return this;
     }

    
A custom AMI ID to be used to create the instance. The AMI should be based on one of the standard AWS OpsWorks AMIs: Amazon Linux, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS. For more information, see Instances <note>If you specify a custom AMI, you must set Os to Custom.</note>

Returns:
A custom AMI ID to be used to create the instance. The AMI should be based on one of the standard AWS OpsWorks AMIs: Amazon Linux, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS. For more information, see Instances <note>If you specify a custom AMI, you must set Os to Custom.</note>
 
     public String getAmiId() {
         return ;
     }
    
    
A custom AMI ID to be used to create the instance. The AMI should be based on one of the standard AWS OpsWorks AMIs: Amazon Linux, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS. For more information, see Instances <note>If you specify a custom AMI, you must set Os to Custom.</note>

Parameters:
amiId A custom AMI ID to be used to create the instance. The AMI should be based on one of the standard AWS OpsWorks AMIs: Amazon Linux, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS. For more information, see Instances <note>If you specify a custom AMI, you must set Os to Custom.</note>
 
     public void setAmiId(String amiId) {
         this. = amiId;
     }
    
    
A custom AMI ID to be used to create the instance. The AMI should be based on one of the standard AWS OpsWorks AMIs: Amazon Linux, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS. For more information, see Instances <note>If you specify a custom AMI, you must set Os to Custom.</note>

Returns a reference to this object so that method calls can be chained together.

Parameters:
amiId A custom AMI ID to be used to create the instance. The AMI should be based on one of the standard AWS OpsWorks AMIs: Amazon Linux, Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS. For more information, see Instances <note>If you specify a custom AMI, you must set Os to Custom.</note>
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public UpdateInstanceRequest withAmiId(String amiId) {
         this. = amiId;
         return this;
     }

    
The instance's Amazon EC2 key name.

Returns:
The instance's Amazon EC2 key name.
 
     public String getSshKeyName() {
         return ;
     }
    
    
The instance's Amazon EC2 key name.

Parameters:
sshKeyName The instance's Amazon EC2 key name.
 
     public void setSshKeyName(String sshKeyName) {
         this. = sshKeyName;
     }
    
    
The instance's Amazon EC2 key name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sshKeyName The instance's Amazon EC2 key name.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public UpdateInstanceRequest withSshKeyName(String sshKeyName) {
         this. = sshKeyName;
         return this;
     }

    
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.

Constraints:
Allowed Values: x86_64, i386

Returns:
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.
See also:
Architecture
 
     public String getArchitecture() {
         return ;
     }
    
    
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.

Constraints:
Allowed Values: x86_64, i386

Parameters:
architecture The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.
See also:
Architecture
 
     public void setArchitecture(String architecture) {
         this. = architecture;
     }
    
    
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: x86_64, i386

Parameters:
architecture The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
Architecture
 
     public UpdateInstanceRequest withArchitecture(String architecture) {
         this. = architecture;
         return this;
     }

    
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.

Constraints:
Allowed Values: x86_64, i386

Parameters:
architecture The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.
See also:
Architecture
 
     public void setArchitecture(Architecture architecture) {
         this. = architecture.toString();
     }
    
    
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: x86_64, i386

Parameters:
architecture The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
Architecture
 
     public UpdateInstanceRequest withArchitecture(Architecture architecture) {
         this. = architecture.toString();
         return this;
     }

    
Whether to install operating system and package updates when the instance boots. The default value is true. To control when updates are installed, set this value to false. You must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. <note>

We strongly recommend using the default value of true, to ensure that your instances have the latest security updates. </note>

Returns:
Whether to install operating system and package updates when the instance boots. The default value is true. To control when updates are installed, set this value to false. You must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. <note>

We strongly recommend using the default value of true, to ensure that your instances have the latest security updates. </note>

 
     public Boolean isInstallUpdatesOnBoot() {
         return ;
     }
    
    
Whether to install operating system and package updates when the instance boots. The default value is true. To control when updates are installed, set this value to false. You must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. <note>

We strongly recommend using the default value of true, to ensure that your instances have the latest security updates. </note>

Parameters:
installUpdatesOnBoot Whether to install operating system and package updates when the instance boots. The default value is true. To control when updates are installed, set this value to false. You must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. <note>

We strongly recommend using the default value of true, to ensure that your instances have the latest security updates. </note>

 
     public void setInstallUpdatesOnBoot(Boolean installUpdatesOnBoot) {
         this. = installUpdatesOnBoot;
     }
    
    
Whether to install operating system and package updates when the instance boots. The default value is true. To control when updates are installed, set this value to false. You must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. <note>

We strongly recommend using the default value of true, to ensure that your instances have the latest security updates. </note>

Returns a reference to this object so that method calls can be chained together.

Parameters:
installUpdatesOnBoot Whether to install operating system and package updates when the instance boots. The default value is true. To control when updates are installed, set this value to false. You must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. <note>

We strongly recommend using the default value of true, to ensure that your instances have the latest security updates. </note>

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public UpdateInstanceRequest withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot) {
         this. = installUpdatesOnBoot;
         return this;
     }

    
Whether to install operating system and package updates when the instance boots. The default value is true. To control when updates are installed, set this value to false. You must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. <note>

We strongly recommend using the default value of true, to ensure that your instances have the latest security updates. </note>

Returns:
Whether to install operating system and package updates when the instance boots. The default value is true. To control when updates are installed, set this value to false. You must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances. <note>

We strongly recommend using the default value of true, to ensure that your instances have the latest security updates. </note>

 
     public Boolean getInstallUpdatesOnBoot() {
         return ;
     }

    
Whether this is an Amazon EBS-optimized instance.

Returns:
Whether this is an Amazon EBS-optimized instance.
 
     public Boolean isEbsOptimized() {
         return ;
     }
    
    
Whether this is an Amazon EBS-optimized instance.

Parameters:
ebsOptimized Whether this is an Amazon EBS-optimized instance.
 
     public void setEbsOptimized(Boolean ebsOptimized) {
         this. = ebsOptimized;
     }
    
    
Whether this is an Amazon EBS-optimized instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ebsOptimized Whether this is an Amazon EBS-optimized instance.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public UpdateInstanceRequest withEbsOptimized(Boolean ebsOptimized) {
         this. = ebsOptimized;
         return this;
     }

    
Whether this is an Amazon EBS-optimized instance.

Returns:
Whether this is an Amazon EBS-optimized instance.
 
     public Boolean getEbsOptimized() {
         return ;
     }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
 
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
         sb.append("{");
         if (getInstanceId() != nullsb.append("InstanceId: " + getInstanceId() + ",");
         if (getLayerIds() != nullsb.append("LayerIds: " + getLayerIds() + ",");
         if (getInstanceType() != nullsb.append("InstanceType: " + getInstanceType() + ",");
         if (getAutoScalingType() != nullsb.append("AutoScalingType: " + getAutoScalingType() + ",");
         if (getHostname() != nullsb.append("Hostname: " + getHostname() + ",");
         if (getOs() != nullsb.append("Os: " + getOs() + ",");
         if (getAmiId() != nullsb.append("AmiId: " + getAmiId() + ",");
         if (getSshKeyName() != nullsb.append("SshKeyName: " + getSshKeyName() + ",");
         if (getArchitecture() != nullsb.append("Architecture: " + getArchitecture() + ",");
         if (isInstallUpdatesOnBoot() != nullsb.append("InstallUpdatesOnBoot: " + isInstallUpdatesOnBoot() + ",");
         if (isEbsOptimized() != nullsb.append("EbsOptimized: " + isEbsOptimized() );
         sb.append("}");
         return sb.toString();
     }
     
     @Override
     public int hashCode() {
         final int prime = 31;
         int hashCode = 1;
         
         hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); 
         hashCode = prime * hashCode + ((getLayerIds() == null) ? 0 : getLayerIds().hashCode()); 
         hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); 
         hashCode = prime * hashCode + ((getAutoScalingType() == null) ? 0 : getAutoScalingType().hashCode()); 
         hashCode = prime * hashCode + ((getHostname() == null) ? 0 : getHostname().hashCode()); 
         hashCode = prime * hashCode + ((getOs() == null) ? 0 : getOs().hashCode()); 
         hashCode = prime * hashCode + ((getAmiId() == null) ? 0 : getAmiId().hashCode()); 
         hashCode = prime * hashCode + ((getSshKeyName() == null) ? 0 : getSshKeyName().hashCode()); 
         hashCode = prime * hashCode + ((getArchitecture() == null) ? 0 : getArchitecture().hashCode()); 
         hashCode = prime * hashCode + ((isInstallUpdatesOnBoot() == null) ? 0 : isInstallUpdatesOnBoot().hashCode()); 
         hashCode = prime * hashCode + ((isEbsOptimized() == null) ? 0 : isEbsOptimized().hashCode()); 
         return hashCode;
     }
     
     @Override
     public boolean equals(Object obj) {
         if (this == objreturn true;
         if (obj == nullreturn false;
 
         if (obj instanceof UpdateInstanceRequest == falsereturn false;
         UpdateInstanceRequest other = (UpdateInstanceRequest)obj;
         
         if (other.getInstanceId() == null ^ this.getInstanceId() == nullreturn false;
         if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == falsereturn false
         if (other.getLayerIds() == null ^ this.getLayerIds() == nullreturn false;
         if (other.getLayerIds() != null && other.getLayerIds().equals(this.getLayerIds()) == falsereturn false
         if (other.getInstanceType() == null ^ this.getInstanceType() == nullreturn false;
         if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == falsereturn false
         if (other.getAutoScalingType() == null ^ this.getAutoScalingType() == nullreturn false;
         if (other.getAutoScalingType() != null && other.getAutoScalingType().equals(this.getAutoScalingType()) == falsereturn false
         if (other.getHostname() == null ^ this.getHostname() == nullreturn false;
         if (other.getHostname() != null && other.getHostname().equals(this.getHostname()) == falsereturn false
         if (other.getOs() == null ^ this.getOs() == nullreturn false;
         if (other.getOs() != null && other.getOs().equals(this.getOs()) == falsereturn false
         if (other.getAmiId() == null ^ this.getAmiId() == nullreturn false;
         if (other.getAmiId() != null && other.getAmiId().equals(this.getAmiId()) == falsereturn false
         if (other.getSshKeyName() == null ^ this.getSshKeyName() == nullreturn false;
         if (other.getSshKeyName() != null && other.getSshKeyName().equals(this.getSshKeyName()) == falsereturn false
         if (other.getArchitecture() == null ^ this.getArchitecture() == nullreturn false;
         if (other.getArchitecture() != null && other.getArchitecture().equals(this.getArchitecture()) == falsereturn false
         if (other.isInstallUpdatesOnBoot() == null ^ this.isInstallUpdatesOnBoot() == nullreturn false;
         if (other.isInstallUpdatesOnBoot() != null && other.isInstallUpdatesOnBoot().equals(this.isInstallUpdatesOnBoot()) == falsereturn false
         if (other.isEbsOptimized() == null ^ this.isEbsOptimized() == nullreturn false;
         if (other.isEbsOptimized() != null && other.isEbsOptimized().equals(this.isEbsOptimized()) == falsereturn false
         return true;
     }
     
    @Override
    public UpdateInstanceRequest clone() {
        
            return (UpdateInstanceRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X