/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace OpsWorks { namespace Model { /** */ class UpdateInstanceRequest : public OpsWorksRequest { public: AWS_OPSWORKS_API UpdateInstanceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateInstance"; } AWS_OPSWORKS_API Aws::String SerializePayload() const override; AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The instance ID.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The instance ID.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The instance ID.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The instance ID.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The instance ID.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The instance ID.

*/ inline UpdateInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The instance ID.

*/ inline UpdateInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The instance ID.

*/ inline UpdateInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The instance's layer IDs.

*/ inline const Aws::Vector& GetLayerIds() const{ return m_layerIds; } /** *

The instance's layer IDs.

*/ inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; } /** *

The instance's layer IDs.

*/ inline void SetLayerIds(const Aws::Vector& value) { m_layerIdsHasBeenSet = true; m_layerIds = value; } /** *

The instance's layer IDs.

*/ inline void SetLayerIds(Aws::Vector&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::move(value); } /** *

The instance's layer IDs.

*/ inline UpdateInstanceRequest& WithLayerIds(const Aws::Vector& value) { SetLayerIds(value); return *this;} /** *

The instance's layer IDs.

*/ inline UpdateInstanceRequest& WithLayerIds(Aws::Vector&& value) { SetLayerIds(std::move(value)); return *this;} /** *

The instance's layer IDs.

*/ inline UpdateInstanceRequest& AddLayerIds(const Aws::String& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; } /** *

The instance's layer IDs.

*/ inline UpdateInstanceRequest& AddLayerIds(Aws::String&& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(std::move(value)); return *this; } /** *

The instance's layer IDs.

*/ inline UpdateInstanceRequest& AddLayerIds(const char* value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); 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.

*/ inline const Aws::String& GetInstanceType() const{ return m_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.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

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.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

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.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

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.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

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.

*/ inline UpdateInstanceRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); 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.

*/ inline UpdateInstanceRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); 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.

*/ inline UpdateInstanceRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

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

*/ inline const AutoScalingType& GetAutoScalingType() const{ return m_autoScalingType; } /** *

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

*/ inline bool AutoScalingTypeHasBeenSet() const { return m_autoScalingTypeHasBeenSet; } /** *

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

*/ inline void SetAutoScalingType(const AutoScalingType& value) { m_autoScalingTypeHasBeenSet = true; m_autoScalingType = value; } /** *

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

*/ inline void SetAutoScalingType(AutoScalingType&& value) { m_autoScalingTypeHasBeenSet = true; m_autoScalingType = std::move(value); } /** *

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

*/ inline UpdateInstanceRequest& WithAutoScalingType(const AutoScalingType& value) { SetAutoScalingType(value); return *this;} /** *

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

*/ inline UpdateInstanceRequest& WithAutoScalingType(AutoScalingType&& value) { SetAutoScalingType(std::move(value)); return *this;} /** *

The instance host name.

*/ inline const Aws::String& GetHostname() const{ return m_hostname; } /** *

The instance host name.

*/ inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; } /** *

The instance host name.

*/ inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; } /** *

The instance host name.

*/ inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); } /** *

The instance host name.

*/ inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); } /** *

The instance host name.

*/ inline UpdateInstanceRequest& WithHostname(const Aws::String& value) { SetHostname(value); return *this;} /** *

The instance host name.

*/ inline UpdateInstanceRequest& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;} /** *

The instance host name.

*/ inline UpdateInstanceRequest& WithHostname(const char* value) { SetHostname(value); return *this;} /** *

The instance's operating system, which must be set to one of the following. * You cannot update an instance that is using a custom AMI.

  • A * supported Linux operating system: An Amazon Linux version, such as Amazon * Linux 2018.03, Amazon Linux 2017.09, Amazon Linux * 2017.03, Amazon Linux 2016.09, Amazon Linux * 2016.03, Amazon Linux 2015.09, or Amazon Linux * 2015.03.

  • A supported Ubuntu operating system, such as * Ubuntu 16.04 LTS, Ubuntu 14.04 LTS, or Ubuntu * 12.04 LTS.

  • CentOS Linux 7

  • *

    Red Hat Enterprise Linux 7

  • A supported * Windows operating system, such as Microsoft Windows Server 2012 R2 * Base, Microsoft Windows Server 2012 R2 with SQL Server * Express, Microsoft Windows Server 2012 R2 with SQL Server * Standard, or Microsoft Windows Server 2012 R2 with SQL Server * Web.

For more information about supported operating * systems, see AWS * OpsWorks Stacks 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 about supported operating systems, see Operating * Systems. For more information about 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.

*/ inline const Aws::String& GetOs() const{ return m_os; } /** *

The instance's operating system, which must be set to one of the following. * You cannot update an instance that is using a custom AMI.

  • A * supported Linux operating system: An Amazon Linux version, such as Amazon * Linux 2018.03, Amazon Linux 2017.09, Amazon Linux * 2017.03, Amazon Linux 2016.09, Amazon Linux * 2016.03, Amazon Linux 2015.09, or Amazon Linux * 2015.03.

  • A supported Ubuntu operating system, such as * Ubuntu 16.04 LTS, Ubuntu 14.04 LTS, or Ubuntu * 12.04 LTS.

  • CentOS Linux 7

  • *

    Red Hat Enterprise Linux 7

  • A supported * Windows operating system, such as Microsoft Windows Server 2012 R2 * Base, Microsoft Windows Server 2012 R2 with SQL Server * Express, Microsoft Windows Server 2012 R2 with SQL Server * Standard, or Microsoft Windows Server 2012 R2 with SQL Server * Web.

For more information about supported operating * systems, see AWS * OpsWorks Stacks 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 about supported operating systems, see Operating * Systems. For more information about 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.

*/ inline bool OsHasBeenSet() const { return m_osHasBeenSet; } /** *

The instance's operating system, which must be set to one of the following. * You cannot update an instance that is using a custom AMI.

  • A * supported Linux operating system: An Amazon Linux version, such as Amazon * Linux 2018.03, Amazon Linux 2017.09, Amazon Linux * 2017.03, Amazon Linux 2016.09, Amazon Linux * 2016.03, Amazon Linux 2015.09, or Amazon Linux * 2015.03.

  • A supported Ubuntu operating system, such as * Ubuntu 16.04 LTS, Ubuntu 14.04 LTS, or Ubuntu * 12.04 LTS.

  • CentOS Linux 7

  • *

    Red Hat Enterprise Linux 7

  • A supported * Windows operating system, such as Microsoft Windows Server 2012 R2 * Base, Microsoft Windows Server 2012 R2 with SQL Server * Express, Microsoft Windows Server 2012 R2 with SQL Server * Standard, or Microsoft Windows Server 2012 R2 with SQL Server * Web.

For more information about supported operating * systems, see AWS * OpsWorks Stacks 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 about supported operating systems, see Operating * Systems. For more information about 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.

*/ inline void SetOs(const Aws::String& value) { m_osHasBeenSet = true; m_os = value; } /** *

The instance's operating system, which must be set to one of the following. * You cannot update an instance that is using a custom AMI.

  • A * supported Linux operating system: An Amazon Linux version, such as Amazon * Linux 2018.03, Amazon Linux 2017.09, Amazon Linux * 2017.03, Amazon Linux 2016.09, Amazon Linux * 2016.03, Amazon Linux 2015.09, or Amazon Linux * 2015.03.

  • A supported Ubuntu operating system, such as * Ubuntu 16.04 LTS, Ubuntu 14.04 LTS, or Ubuntu * 12.04 LTS.

  • CentOS Linux 7

  • *

    Red Hat Enterprise Linux 7

  • A supported * Windows operating system, such as Microsoft Windows Server 2012 R2 * Base, Microsoft Windows Server 2012 R2 with SQL Server * Express, Microsoft Windows Server 2012 R2 with SQL Server * Standard, or Microsoft Windows Server 2012 R2 with SQL Server * Web.

For more information about supported operating * systems, see AWS * OpsWorks Stacks 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 about supported operating systems, see Operating * Systems. For more information about 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.

*/ inline void SetOs(Aws::String&& value) { m_osHasBeenSet = true; m_os = std::move(value); } /** *

The instance's operating system, which must be set to one of the following. * You cannot update an instance that is using a custom AMI.

  • A * supported Linux operating system: An Amazon Linux version, such as Amazon * Linux 2018.03, Amazon Linux 2017.09, Amazon Linux * 2017.03, Amazon Linux 2016.09, Amazon Linux * 2016.03, Amazon Linux 2015.09, or Amazon Linux * 2015.03.

  • A supported Ubuntu operating system, such as * Ubuntu 16.04 LTS, Ubuntu 14.04 LTS, or Ubuntu * 12.04 LTS.

  • CentOS Linux 7

  • *

    Red Hat Enterprise Linux 7

  • A supported * Windows operating system, such as Microsoft Windows Server 2012 R2 * Base, Microsoft Windows Server 2012 R2 with SQL Server * Express, Microsoft Windows Server 2012 R2 with SQL Server * Standard, or Microsoft Windows Server 2012 R2 with SQL Server * Web.

For more information about supported operating * systems, see AWS * OpsWorks Stacks 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 about supported operating systems, see Operating * Systems. For more information about 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.

*/ inline void SetOs(const char* value) { m_osHasBeenSet = true; m_os.assign(value); } /** *

The instance's operating system, which must be set to one of the following. * You cannot update an instance that is using a custom AMI.

  • A * supported Linux operating system: An Amazon Linux version, such as Amazon * Linux 2018.03, Amazon Linux 2017.09, Amazon Linux * 2017.03, Amazon Linux 2016.09, Amazon Linux * 2016.03, Amazon Linux 2015.09, or Amazon Linux * 2015.03.

  • A supported Ubuntu operating system, such as * Ubuntu 16.04 LTS, Ubuntu 14.04 LTS, or Ubuntu * 12.04 LTS.

  • CentOS Linux 7

  • *

    Red Hat Enterprise Linux 7

  • A supported * Windows operating system, such as Microsoft Windows Server 2012 R2 * Base, Microsoft Windows Server 2012 R2 with SQL Server * Express, Microsoft Windows Server 2012 R2 with SQL Server * Standard, or Microsoft Windows Server 2012 R2 with SQL Server * Web.

For more information about supported operating * systems, see AWS * OpsWorks Stacks 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 about supported operating systems, see Operating * Systems. For more information about 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.

*/ inline UpdateInstanceRequest& WithOs(const Aws::String& value) { SetOs(value); return *this;} /** *

The instance's operating system, which must be set to one of the following. * You cannot update an instance that is using a custom AMI.

  • A * supported Linux operating system: An Amazon Linux version, such as Amazon * Linux 2018.03, Amazon Linux 2017.09, Amazon Linux * 2017.03, Amazon Linux 2016.09, Amazon Linux * 2016.03, Amazon Linux 2015.09, or Amazon Linux * 2015.03.

  • A supported Ubuntu operating system, such as * Ubuntu 16.04 LTS, Ubuntu 14.04 LTS, or Ubuntu * 12.04 LTS.

  • CentOS Linux 7

  • *

    Red Hat Enterprise Linux 7

  • A supported * Windows operating system, such as Microsoft Windows Server 2012 R2 * Base, Microsoft Windows Server 2012 R2 with SQL Server * Express, Microsoft Windows Server 2012 R2 with SQL Server * Standard, or Microsoft Windows Server 2012 R2 with SQL Server * Web.

For more information about supported operating * systems, see AWS * OpsWorks Stacks 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 about supported operating systems, see Operating * Systems. For more information about 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.

*/ inline UpdateInstanceRequest& WithOs(Aws::String&& value) { SetOs(std::move(value)); return *this;} /** *

The instance's operating system, which must be set to one of the following. * You cannot update an instance that is using a custom AMI.

  • A * supported Linux operating system: An Amazon Linux version, such as Amazon * Linux 2018.03, Amazon Linux 2017.09, Amazon Linux * 2017.03, Amazon Linux 2016.09, Amazon Linux * 2016.03, Amazon Linux 2015.09, or Amazon Linux * 2015.03.

  • A supported Ubuntu operating system, such as * Ubuntu 16.04 LTS, Ubuntu 14.04 LTS, or Ubuntu * 12.04 LTS.

  • CentOS Linux 7

  • *

    Red Hat Enterprise Linux 7

  • A supported * Windows operating system, such as Microsoft Windows Server 2012 R2 * Base, Microsoft Windows Server 2012 R2 with SQL Server * Express, Microsoft Windows Server 2012 R2 with SQL Server * Standard, or Microsoft Windows Server 2012 R2 with SQL Server * Web.

For more information about supported operating * systems, see AWS * OpsWorks Stacks 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 about supported operating systems, see Operating * Systems. For more information about 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.

*/ inline UpdateInstanceRequest& WithOs(const char* value) { SetOs(value); return *this;} /** *

The ID of the AMI that was used to create the instance. The value of this * parameter must be the same AMI ID that the instance is already using. You cannot * apply a new AMI to an instance by running UpdateInstance. UpdateInstance does * not work on instances that are using custom AMIs.

*/ inline const Aws::String& GetAmiId() const{ return m_amiId; } /** *

The ID of the AMI that was used to create the instance. The value of this * parameter must be the same AMI ID that the instance is already using. You cannot * apply a new AMI to an instance by running UpdateInstance. UpdateInstance does * not work on instances that are using custom AMIs.

*/ inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; } /** *

The ID of the AMI that was used to create the instance. The value of this * parameter must be the same AMI ID that the instance is already using. You cannot * apply a new AMI to an instance by running UpdateInstance. UpdateInstance does * not work on instances that are using custom AMIs.

*/ inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; } /** *

The ID of the AMI that was used to create the instance. The value of this * parameter must be the same AMI ID that the instance is already using. You cannot * apply a new AMI to an instance by running UpdateInstance. UpdateInstance does * not work on instances that are using custom AMIs.

*/ inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); } /** *

The ID of the AMI that was used to create the instance. The value of this * parameter must be the same AMI ID that the instance is already using. You cannot * apply a new AMI to an instance by running UpdateInstance. UpdateInstance does * not work on instances that are using custom AMIs.

*/ inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); } /** *

The ID of the AMI that was used to create the instance. The value of this * parameter must be the same AMI ID that the instance is already using. You cannot * apply a new AMI to an instance by running UpdateInstance. UpdateInstance does * not work on instances that are using custom AMIs.

*/ inline UpdateInstanceRequest& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;} /** *

The ID of the AMI that was used to create the instance. The value of this * parameter must be the same AMI ID that the instance is already using. You cannot * apply a new AMI to an instance by running UpdateInstance. UpdateInstance does * not work on instances that are using custom AMIs.

*/ inline UpdateInstanceRequest& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;} /** *

The ID of the AMI that was used to create the instance. The value of this * parameter must be the same AMI ID that the instance is already using. You cannot * apply a new AMI to an instance by running UpdateInstance. UpdateInstance does * not work on instances that are using custom AMIs.

*/ inline UpdateInstanceRequest& WithAmiId(const char* value) { SetAmiId(value); return *this;} /** *

The instance's Amazon EC2 key name.

*/ inline const Aws::String& GetSshKeyName() const{ return m_sshKeyName; } /** *

The instance's Amazon EC2 key name.

*/ inline bool SshKeyNameHasBeenSet() const { return m_sshKeyNameHasBeenSet; } /** *

The instance's Amazon EC2 key name.

*/ inline void SetSshKeyName(const Aws::String& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = value; } /** *

The instance's Amazon EC2 key name.

*/ inline void SetSshKeyName(Aws::String&& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = std::move(value); } /** *

The instance's Amazon EC2 key name.

*/ inline void SetSshKeyName(const char* value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName.assign(value); } /** *

The instance's Amazon EC2 key name.

*/ inline UpdateInstanceRequest& WithSshKeyName(const Aws::String& value) { SetSshKeyName(value); return *this;} /** *

The instance's Amazon EC2 key name.

*/ inline UpdateInstanceRequest& WithSshKeyName(Aws::String&& value) { SetSshKeyName(std::move(value)); return *this;} /** *

The instance's Amazon EC2 key name.

*/ inline UpdateInstanceRequest& WithSshKeyName(const char* value) { SetSshKeyName(value); 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.

*/ inline const Architecture& GetArchitecture() const{ return m_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.

*/ inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; } /** *

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.

*/ inline void SetArchitecture(const Architecture& value) { m_architectureHasBeenSet = true; m_architecture = value; } /** *

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.

*/ inline void SetArchitecture(Architecture&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); } /** *

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.

*/ inline UpdateInstanceRequest& WithArchitecture(const Architecture& value) { SetArchitecture(value); 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.

*/ inline UpdateInstanceRequest& WithArchitecture(Architecture&& value) { SetArchitecture(std::move(value)); 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.

*/ inline bool GetInstallUpdatesOnBoot() const{ return m_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.

*/ inline bool InstallUpdatesOnBootHasBeenSet() const { return m_installUpdatesOnBootHasBeenSet; } /** *

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.

*/ inline void SetInstallUpdatesOnBoot(bool value) { m_installUpdatesOnBootHasBeenSet = true; m_installUpdatesOnBoot = value; } /** *

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.

*/ inline UpdateInstanceRequest& WithInstallUpdatesOnBoot(bool value) { SetInstallUpdatesOnBoot(value); return *this;} /** *

This property cannot be updated.

*/ inline bool GetEbsOptimized() const{ return m_ebsOptimized; } /** *

This property cannot be updated.

*/ inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; } /** *

This property cannot be updated.

*/ inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; } /** *

This property cannot be updated.

*/ inline UpdateInstanceRequest& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;} /** *

The default AWS OpsWorks Stacks 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 Stacks 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.

AgentVersion cannot be set to * Chef 12.2.

*/ inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; } /** *

The default AWS OpsWorks Stacks 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 Stacks 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.

AgentVersion cannot be set to * Chef 12.2.

*/ inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; } /** *

The default AWS OpsWorks Stacks 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 Stacks 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.

AgentVersion cannot be set to * Chef 12.2.

*/ inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; } /** *

The default AWS OpsWorks Stacks 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 Stacks 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.

AgentVersion cannot be set to * Chef 12.2.

*/ inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); } /** *

The default AWS OpsWorks Stacks 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 Stacks 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.

AgentVersion cannot be set to * Chef 12.2.

*/ inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); } /** *

The default AWS OpsWorks Stacks 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 Stacks 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.

AgentVersion cannot be set to * Chef 12.2.

*/ inline UpdateInstanceRequest& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;} /** *

The default AWS OpsWorks Stacks 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 Stacks 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.

AgentVersion cannot be set to * Chef 12.2.

*/ inline UpdateInstanceRequest& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;} /** *

The default AWS OpsWorks Stacks 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 Stacks 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.

AgentVersion cannot be set to * Chef 12.2.

*/ inline UpdateInstanceRequest& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::Vector m_layerIds; bool m_layerIdsHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; AutoScalingType m_autoScalingType; bool m_autoScalingTypeHasBeenSet = false; Aws::String m_hostname; bool m_hostnameHasBeenSet = false; Aws::String m_os; bool m_osHasBeenSet = false; Aws::String m_amiId; bool m_amiIdHasBeenSet = false; Aws::String m_sshKeyName; bool m_sshKeyNameHasBeenSet = false; Architecture m_architecture; bool m_architectureHasBeenSet = false; bool m_installUpdatesOnBoot; bool m_installUpdatesOnBootHasBeenSet = false; bool m_ebsOptimized; bool m_ebsOptimizedHasBeenSet = false; Aws::String m_agentVersion; bool m_agentVersionHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws