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

com.amazonaws.services.opsworks.model.UpdateInstanceRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS OpsWorks module holds the client classes that are used for communicating with AWS OpsWorks Service

There is a newer version: 1.11.7
Show newest version
/*
 * Copyright 2010-2016 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;

import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 */
public class UpdateInstanceRequest extends AmazonWebServiceRequest implements
        Serializable, Cloneable {

    /**
     * 

* The instance ID. *

*/ private String instanceId; /** *

* The instance's layer IDs. *

*/ private com.amazonaws.internal.SdkInternalList layerIds; /** *

* The instance type, such as t2.micro. For a list of supported * instance types, open the stack in the console, choose Instances, * and choose + Instance. The Size list contains the currently * supported types. 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. *

*/ private String autoScalingType; /** *

* The instance host name. *

*/ private String hostname; /** *

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

*
    *
  • A supported Linux operating system: An Amazon Linux version, such as * Amazon Linux 2015.03, * Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, * or Ubuntu 14.04 LTS.
  • *
  • Microsoft Windows Server 2012 R2 Base.
  • *
  • A custom AMI: Custom.
  • *
*

* For more information on the supported operating systems, see AWS OpsWorks Operating Systems. *

*

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

* You can specify a different Linux operating system for the updated * stack, but you cannot change from Linux to Windows or Windows to * Linux. */ private String os; /** *

* A custom AMI ID to be used to create the instance. The AMI must be based * on one of the supported operating systems. For more information, see Instances *

* If you specify a custom AMI, you must set Os to * Custom. */ 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. *

*/ 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 by manually running * yum (Amazon Linux) or apt-get (Ubuntu) on the * instances. *

* *

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

*
*/ private Boolean installUpdatesOnBoot; /** *

* This property cannot be updated. *

*/ private Boolean ebsOptimized; /** *

* The default AWS OpsWorks agent version. You have the following options: *

*
    *
  • INHERIT - Use the stack's default agent version setting. *
  • *
  • version_number - Use the specified agent version. This value * overrides the stack's default setting. To update the agent version, you * must edit the instance configuration and specify a new version. AWS * OpsWorks then automatically installs that version on the instance.
  • *
*

* The default setting is INHERIT. To specify an agent version, * you must use the complete version number, not the abbreviated number * shown on the console. For a list of available agent version numbers, call * DescribeAgentVersions. *

*/ private String agentVersion; /** *

* The instance ID. *

* * @param instanceId * The instance ID. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** *

* The instance ID. *

* * @return The instance ID. */ public String getInstanceId() { return this.instanceId; } /** *

* The instance ID. *

* * @param instanceId * The instance ID. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateInstanceRequest withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** *

* The instance's layer IDs. *

* * @return The instance's layer IDs. */ public java.util.List getLayerIds() { if (layerIds == null) { layerIds = new com.amazonaws.internal.SdkInternalList(); } return layerIds; } /** *

* The instance's layer IDs. *

* * @param layerIds * The instance's layer IDs. */ public void setLayerIds(java.util.Collection layerIds) { if (layerIds == null) { this.layerIds = null; return; } this.layerIds = new com.amazonaws.internal.SdkInternalList( layerIds); } /** *

* The instance's layer IDs. *

*

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

* * @param layerIds * The instance's layer IDs. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateInstanceRequest withLayerIds(String... layerIds) { if (this.layerIds == null) { setLayerIds(new com.amazonaws.internal.SdkInternalList( layerIds.length)); } for (String ele : layerIds) { this.layerIds.add(ele); } return this; } /** *

* The instance's layer IDs. *

* * @param layerIds * The instance's layer IDs. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateInstanceRequest withLayerIds( java.util.Collection layerIds) { setLayerIds(layerIds); return this; } /** *

* The instance type, such as t2.micro. For a list of supported * instance types, open the stack in the console, choose Instances, * and choose + Instance. The Size list contains the currently * supported types. 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. *

* * @param instanceType * The instance type, such as t2.micro. For a list of * supported instance types, open the stack in the console, choose * Instances, and choose + Instance. The Size * list contains the currently supported types. 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 = instanceType; } /** *

* The instance type, such as t2.micro. For a list of supported * instance types, open the stack in the console, choose Instances, * and choose + Instance. The Size list contains the currently * supported types. 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. *

* * @return The instance type, such as t2.micro. For a list of * supported instance types, open the stack in the console, choose * Instances, and choose + Instance. The Size * list contains the currently supported types. 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 this.instanceType; } /** *

* The instance type, such as t2.micro. For a list of supported * instance types, open the stack in the console, choose Instances, * and choose + Instance. The Size list contains the currently * supported types. 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. *

* * @param instanceType * The instance type, such as t2.micro. For a list of * supported instance types, open the stack in the console, choose * Instances, and choose + Instance. The Size * list contains the currently supported types. 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. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateInstanceRequest withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** *

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

* * @param autoScalingType * For load-based or time-based instances, the type. Windows stacks * can use only time-based instances. * @see AutoScalingType */ public void setAutoScalingType(String autoScalingType) { this.autoScalingType = autoScalingType; } /** *

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

* * @return For load-based or time-based instances, the type. Windows stacks * can use only time-based instances. * @see AutoScalingType */ public String getAutoScalingType() { return this.autoScalingType; } /** *

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

* * @param autoScalingType * For load-based or time-based instances, the type. Windows stacks * can use only time-based instances. * @return Returns a reference to this object so that method calls can be * chained together. * @see AutoScalingType */ public UpdateInstanceRequest withAutoScalingType(String autoScalingType) { setAutoScalingType(autoScalingType); return this; } /** *

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

* * @param autoScalingType * For load-based or time-based instances, the type. Windows stacks * can use only time-based instances. * @see AutoScalingType */ public void setAutoScalingType(AutoScalingType autoScalingType) { this.autoScalingType = autoScalingType.toString(); } /** *

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

* * @param autoScalingType * For load-based or time-based instances, the type. Windows stacks * can use only time-based instances. * @return Returns a reference to this object so that method calls can be * chained together. * @see AutoScalingType */ public UpdateInstanceRequest withAutoScalingType( AutoScalingType autoScalingType) { setAutoScalingType(autoScalingType); return this; } /** *

* The instance host name. *

* * @param hostname * The instance host name. */ public void setHostname(String hostname) { this.hostname = hostname; } /** *

* The instance host name. *

* * @return The instance host name. */ public String getHostname() { return this.hostname; } /** *

* The instance host name. *

* * @param hostname * The instance host name. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateInstanceRequest withHostname(String hostname) { setHostname(hostname); return this; } /** *

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

*
    *
  • A supported Linux operating system: An Amazon Linux version, such as * Amazon Linux 2015.03, * Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, * or Ubuntu 14.04 LTS.
  • *
  • Microsoft Windows Server 2012 R2 Base.
  • *
  • A custom AMI: Custom.
  • *
*

* For more information on the supported operating systems, see AWS OpsWorks Operating Systems. *

*

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

* You can specify a different Linux operating system for the updated * stack, but you cannot change from Linux to Windows or Windows to * Linux. * * @param os * The instance's operating system, which must be set to one of the * following.

*
    *
  • A supported Linux operating system: An Amazon Linux version, * such as Amazon Linux 2015.03, * Red Hat Enterprise Linux 7, * Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • *
  • Microsoft Windows Server 2012 R2 Base.
  • *
  • A custom AMI: Custom.
  • *
*

* For more information on the supported operating systems, see AWS OpsWorks Operating Systems. *

*

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

* You can specify a different Linux operating system for the * updated stack, but you cannot change from Linux to Windows or * Windows to Linux. */ public void setOs(String os) { this.os = os; } /** *

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

*
    *
  • A supported Linux operating system: An Amazon Linux version, such as * Amazon Linux 2015.03, * Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, * or Ubuntu 14.04 LTS.
  • *
  • Microsoft Windows Server 2012 R2 Base.
  • *
  • A custom AMI: Custom.
  • *
*

* For more information on the supported operating systems, see AWS OpsWorks Operating Systems. *

*

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

* You can specify a different Linux operating system for the updated * stack, but you cannot change from Linux to Windows or Windows to * Linux. * * @return The instance's operating system, which must be set to one of the * following.

*
    *
  • A supported Linux operating system: An Amazon Linux version, * such as Amazon Linux 2015.03, * Red Hat Enterprise Linux 7, * Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • *
  • Microsoft Windows Server 2012 R2 Base.
  • *
  • A custom AMI: Custom.
  • *
*

* For more information on the supported operating systems, see AWS OpsWorks Operating Systems. *

*

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

* You can specify a different Linux operating system for the * updated stack, but you cannot change from Linux to Windows or * Windows to Linux. */ public String getOs() { return this.os; } /** *

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

*
    *
  • A supported Linux operating system: An Amazon Linux version, such as * Amazon Linux 2015.03, * Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, * or Ubuntu 14.04 LTS.
  • *
  • Microsoft Windows Server 2012 R2 Base.
  • *
  • A custom AMI: Custom.
  • *
*

* For more information on the supported operating systems, see AWS OpsWorks Operating Systems. *

*

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

* You can specify a different Linux operating system for the updated * stack, but you cannot change from Linux to Windows or Windows to * Linux. * * @param os * The instance's operating system, which must be set to one of the * following.

*
    *
  • A supported Linux operating system: An Amazon Linux version, * such as Amazon Linux 2015.03, * Red Hat Enterprise Linux 7, * Ubuntu 12.04 LTS, or Ubuntu 14.04 LTS.
  • *
  • Microsoft Windows Server 2012 R2 Base.
  • *
  • A custom AMI: Custom.
  • *
*

* For more information on the supported operating systems, see AWS OpsWorks Operating Systems. *

*

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

* You can specify a different Linux operating system for the * updated stack, but you cannot change from Linux to Windows or * Windows to Linux. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateInstanceRequest withOs(String os) { setOs(os); return this; } /** *

* A custom AMI ID to be used to create the instance. The AMI must be based * on one of the supported operating systems. For more information, see Instances *

* If you specify a custom AMI, you must set Os to * Custom. * * @param amiId * A custom AMI ID to be used to create the instance. The AMI must be * based on one of the supported operating systems. For more * information, see Instances

If you specify a custom AMI, you must set * Os to Custom. */ public void setAmiId(String amiId) { this.amiId = amiId; } /** *

* A custom AMI ID to be used to create the instance. The AMI must be based * on one of the supported operating systems. For more information, see Instances *

* If you specify a custom AMI, you must set Os to * Custom. * * @return A custom AMI ID to be used to create the instance. The AMI must * be based on one of the supported operating systems. For more * information, see Instances

If you specify a custom AMI, you must * set Os to Custom. */ public String getAmiId() { return this.amiId; } /** *

* A custom AMI ID to be used to create the instance. The AMI must be based * on one of the supported operating systems. For more information, see Instances *

* If you specify a custom AMI, you must set Os to * Custom. * * @param amiId * A custom AMI ID to be used to create the instance. The AMI must be * based on one of the supported operating systems. For more * information, see Instances

If you specify a custom AMI, you must set * Os to Custom. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateInstanceRequest withAmiId(String amiId) { setAmiId(amiId); return this; } /** *

* The instance's Amazon EC2 key name. *

* * @param sshKeyName * The instance's Amazon EC2 key name. */ public void setSshKeyName(String sshKeyName) { this.sshKeyName = sshKeyName; } /** *

* The instance's Amazon EC2 key name. *

* * @return The instance's Amazon EC2 key name. */ public String getSshKeyName() { return this.sshKeyName; } /** *

* The instance's Amazon EC2 key name. *

* * @param sshKeyName * The instance's Amazon EC2 key name. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateInstanceRequest withSshKeyName(String sshKeyName) { setSshKeyName(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. *

* * @param 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 Architecture */ public void setArchitecture(String architecture) { this.architecture = 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. *

* * @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. * @see Architecture */ public String getArchitecture() { return 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be * chained together. * @see Architecture */ public UpdateInstanceRequest withArchitecture(String architecture) { setArchitecture(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. *

* * @param 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 Architecture */ public void setArchitecture(Architecture architecture) { this.architecture = 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be * chained together. * @see Architecture */ public UpdateInstanceRequest withArchitecture(Architecture architecture) { setArchitecture(architecture); 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 by manually running * yum (Amazon Linux) or apt-get (Ubuntu) on the * instances. *

* *

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

*
* * @param 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 by manually * running yum (Amazon Linux) or apt-get * (Ubuntu) on the instances.

*

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

*/ public void setInstallUpdatesOnBoot(Boolean installUpdatesOnBoot) { this.installUpdatesOnBoot = 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 by manually running * yum (Amazon Linux) or apt-get (Ubuntu) on the * instances. *

* *

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

*
* * @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 by manually * running yum (Amazon Linux) or apt-get * (Ubuntu) on the instances.

*

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

*/ public Boolean getInstallUpdatesOnBoot() { return 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 by manually running * yum (Amazon Linux) or apt-get (Ubuntu) on the * instances. *

* *

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

*
* * @param 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 by manually * running yum (Amazon Linux) or apt-get * (Ubuntu) on the instances.

*

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

* @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateInstanceRequest withInstallUpdatesOnBoot( Boolean installUpdatesOnBoot) { setInstallUpdatesOnBoot(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 by manually running * yum (Amazon Linux) or apt-get (Ubuntu) on the * instances. *

* *

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

*
* * @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 by manually * running yum (Amazon Linux) or apt-get * (Ubuntu) on the instances.

*

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

*/ public Boolean isInstallUpdatesOnBoot() { return this.installUpdatesOnBoot; } /** *

* This property cannot be updated. *

* * @param ebsOptimized * This property cannot be updated. */ public void setEbsOptimized(Boolean ebsOptimized) { this.ebsOptimized = ebsOptimized; } /** *

* This property cannot be updated. *

* * @return This property cannot be updated. */ public Boolean getEbsOptimized() { return this.ebsOptimized; } /** *

* This property cannot be updated. *

* * @param ebsOptimized * This property cannot be updated. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateInstanceRequest withEbsOptimized(Boolean ebsOptimized) { setEbsOptimized(ebsOptimized); return this; } /** *

* This property cannot be updated. *

* * @return This property cannot be updated. */ public Boolean isEbsOptimized() { return this.ebsOptimized; } /** *

* The default AWS OpsWorks agent version. You have the following options: *

*
    *
  • INHERIT - Use the stack's default agent version setting. *
  • *
  • version_number - Use the specified agent version. This value * overrides the stack's default setting. To update the agent version, you * must edit the instance configuration and specify a new version. AWS * OpsWorks then automatically installs that version on the instance.
  • *
*

* The default setting is INHERIT. To specify an agent version, * you must use the complete version number, not the abbreviated number * shown on the console. For a list of available agent version numbers, call * DescribeAgentVersions. *

* * @param agentVersion * The default AWS OpsWorks agent version. You have the following * options:

*
    *
  • INHERIT - Use the stack's default agent version * setting.
  • *
  • version_number - Use the specified agent version. This * value overrides the stack's default setting. To update the agent * version, you must edit the instance configuration and specify a * new version. AWS OpsWorks then automatically installs that version * on the instance.
  • *
*

* The default setting is INHERIT. To specify an agent * version, you must use the complete version number, not the * abbreviated number shown on the console. For a list of available * agent version numbers, call DescribeAgentVersions. */ public void setAgentVersion(String agentVersion) { this.agentVersion = agentVersion; } /** *

* The default AWS OpsWorks agent version. You have the following options: *

*
    *
  • INHERIT - Use the stack's default agent version setting. *
  • *
  • version_number - Use the specified agent version. This value * overrides the stack's default setting. To update the agent version, you * must edit the instance configuration and specify a new version. AWS * OpsWorks then automatically installs that version on the instance.
  • *
*

* The default setting is INHERIT. To specify an agent version, * you must use the complete version number, not the abbreviated number * shown on the console. For a list of available agent version numbers, call * DescribeAgentVersions. *

* * @return The default AWS OpsWorks agent version. You have the following * options:

*
    *
  • INHERIT - Use the stack's default agent version * setting.
  • *
  • version_number - Use the specified agent version. This * value overrides the stack's default setting. To update the agent * version, you must edit the instance configuration and specify a * new version. AWS OpsWorks then automatically installs that * version on the instance.
  • *
*

* The default setting is INHERIT. To specify an agent * version, you must use the complete version number, not the * abbreviated number shown on the console. For a list of available * agent version numbers, call DescribeAgentVersions. */ public String getAgentVersion() { return this.agentVersion; } /** *

* The default AWS OpsWorks agent version. You have the following options: *

*
    *
  • INHERIT - Use the stack's default agent version setting. *
  • *
  • version_number - Use the specified agent version. This value * overrides the stack's default setting. To update the agent version, you * must edit the instance configuration and specify a new version. AWS * OpsWorks then automatically installs that version on the instance.
  • *
*

* The default setting is INHERIT. To specify an agent version, * you must use the complete version number, not the abbreviated number * shown on the console. For a list of available agent version numbers, call * DescribeAgentVersions. *

* * @param agentVersion * The default AWS OpsWorks agent version. You have the following * options:

*
    *
  • INHERIT - Use the stack's default agent version * setting.
  • *
  • version_number - Use the specified agent version. This * value overrides the stack's default setting. To update the agent * version, you must edit the instance configuration and specify a * new version. AWS OpsWorks then automatically installs that version * on the instance.
  • *
*

* The default setting is INHERIT. To specify an agent * version, you must use the complete version number, not the * abbreviated number shown on the console. For a list of available * agent version numbers, call DescribeAgentVersions. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateInstanceRequest withAgentVersion(String agentVersion) { setAgentVersion(agentVersion); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInstanceId() != null) sb.append("InstanceId: " + getInstanceId() + ","); if (getLayerIds() != null) sb.append("LayerIds: " + getLayerIds() + ","); if (getInstanceType() != null) sb.append("InstanceType: " + getInstanceType() + ","); if (getAutoScalingType() != null) sb.append("AutoScalingType: " + getAutoScalingType() + ","); if (getHostname() != null) sb.append("Hostname: " + getHostname() + ","); if (getOs() != null) sb.append("Os: " + getOs() + ","); if (getAmiId() != null) sb.append("AmiId: " + getAmiId() + ","); if (getSshKeyName() != null) sb.append("SshKeyName: " + getSshKeyName() + ","); if (getArchitecture() != null) sb.append("Architecture: " + getArchitecture() + ","); if (getInstallUpdatesOnBoot() != null) sb.append("InstallUpdatesOnBoot: " + getInstallUpdatesOnBoot() + ","); if (getEbsOptimized() != null) sb.append("EbsOptimized: " + getEbsOptimized() + ","); if (getAgentVersion() != null) sb.append("AgentVersion: " + getAgentVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateInstanceRequest == false) return false; UpdateInstanceRequest other = (UpdateInstanceRequest) obj; if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false; if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; if (other.getLayerIds() == null ^ this.getLayerIds() == null) return false; if (other.getLayerIds() != null && other.getLayerIds().equals(this.getLayerIds()) == 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.getAutoScalingType() == null ^ this.getAutoScalingType() == null) return false; if (other.getAutoScalingType() != null && other.getAutoScalingType().equals(this.getAutoScalingType()) == false) return false; if (other.getHostname() == null ^ this.getHostname() == null) return false; if (other.getHostname() != null && other.getHostname().equals(this.getHostname()) == false) return false; if (other.getOs() == null ^ this.getOs() == null) return false; if (other.getOs() != null && other.getOs().equals(this.getOs()) == false) return false; if (other.getAmiId() == null ^ this.getAmiId() == null) return false; if (other.getAmiId() != null && other.getAmiId().equals(this.getAmiId()) == false) return false; if (other.getSshKeyName() == null ^ this.getSshKeyName() == null) return false; if (other.getSshKeyName() != null && other.getSshKeyName().equals(this.getSshKeyName()) == false) return false; if (other.getArchitecture() == null ^ this.getArchitecture() == null) return false; if (other.getArchitecture() != null && other.getArchitecture().equals(this.getArchitecture()) == false) return false; if (other.getInstallUpdatesOnBoot() == null ^ this.getInstallUpdatesOnBoot() == null) return false; if (other.getInstallUpdatesOnBoot() != null && other.getInstallUpdatesOnBoot().equals( this.getInstallUpdatesOnBoot()) == false) return false; if (other.getEbsOptimized() == null ^ this.getEbsOptimized() == null) return false; if (other.getEbsOptimized() != null && other.getEbsOptimized().equals(this.getEbsOptimized()) == false) return false; if (other.getAgentVersion() == null ^ this.getAgentVersion() == null) return false; if (other.getAgentVersion() != null && other.getAgentVersion().equals(this.getAgentVersion()) == false) return false; return true; } @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 + ((getInstallUpdatesOnBoot() == null) ? 0 : getInstallUpdatesOnBoot().hashCode()); hashCode = prime * hashCode + ((getEbsOptimized() == null) ? 0 : getEbsOptimized() .hashCode()); hashCode = prime * hashCode + ((getAgentVersion() == null) ? 0 : getAgentVersion() .hashCode()); return hashCode; } @Override public UpdateInstanceRequest clone() { return (UpdateInstanceRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy