/** * 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 #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpsWorksCM { namespace Model { /** *

Describes a configuration management server.

See Also:

AWS * API Reference

*/ class Server { public: AWS_OPSWORKSCM_API Server(); AWS_OPSWORKSCM_API Server(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKSCM_API Server& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKSCM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Associate a public IP address with a server that you are launching.

*/ inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; } /** *

Associate a public IP address with a server that you are launching.

*/ inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; } /** *

Associate a public IP address with a server that you are launching.

*/ inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; } /** *

Associate a public IP address with a server that you are launching.

*/ inline Server& WithAssociatePublicIpAddress(bool value) { SetAssociatePublicIpAddress(value); return *this;} /** *

The number of automated backups to keep.

*/ inline int GetBackupRetentionCount() const{ return m_backupRetentionCount; } /** *

The number of automated backups to keep.

*/ inline bool BackupRetentionCountHasBeenSet() const { return m_backupRetentionCountHasBeenSet; } /** *

The number of automated backups to keep.

*/ inline void SetBackupRetentionCount(int value) { m_backupRetentionCountHasBeenSet = true; m_backupRetentionCount = value; } /** *

The number of automated backups to keep.

*/ inline Server& WithBackupRetentionCount(int value) { SetBackupRetentionCount(value); return *this;} /** *

The name of the server.

*/ inline const Aws::String& GetServerName() const{ return m_serverName; } /** *

The name of the server.

*/ inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; } /** *

The name of the server.

*/ inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; } /** *

The name of the server.

*/ inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); } /** *

The name of the server.

*/ inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); } /** *

The name of the server.

*/ inline Server& WithServerName(const Aws::String& value) { SetServerName(value); return *this;} /** *

The name of the server.

*/ inline Server& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;} /** *

The name of the server.

*/ inline Server& WithServerName(const char* value) { SetServerName(value); return *this;} /** *

Time stamp of server creation. Example 2016-07-29T13:38:47.520Z *

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

Time stamp of server creation. Example 2016-07-29T13:38:47.520Z *

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

Time stamp of server creation. Example 2016-07-29T13:38:47.520Z *

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

Time stamp of server creation. Example 2016-07-29T13:38:47.520Z *

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

Time stamp of server creation. Example 2016-07-29T13:38:47.520Z *

*/ inline Server& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

Time stamp of server creation. Example 2016-07-29T13:38:47.520Z *

*/ inline Server& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The ARN of the CloudFormation stack that was used to create the server.

*/ inline const Aws::String& GetCloudFormationStackArn() const{ return m_cloudFormationStackArn; } /** *

The ARN of the CloudFormation stack that was used to create the server.

*/ inline bool CloudFormationStackArnHasBeenSet() const { return m_cloudFormationStackArnHasBeenSet; } /** *

The ARN of the CloudFormation stack that was used to create the server.

*/ inline void SetCloudFormationStackArn(const Aws::String& value) { m_cloudFormationStackArnHasBeenSet = true; m_cloudFormationStackArn = value; } /** *

The ARN of the CloudFormation stack that was used to create the server.

*/ inline void SetCloudFormationStackArn(Aws::String&& value) { m_cloudFormationStackArnHasBeenSet = true; m_cloudFormationStackArn = std::move(value); } /** *

The ARN of the CloudFormation stack that was used to create the server.

*/ inline void SetCloudFormationStackArn(const char* value) { m_cloudFormationStackArnHasBeenSet = true; m_cloudFormationStackArn.assign(value); } /** *

The ARN of the CloudFormation stack that was used to create the server.

*/ inline Server& WithCloudFormationStackArn(const Aws::String& value) { SetCloudFormationStackArn(value); return *this;} /** *

The ARN of the CloudFormation stack that was used to create the server.

*/ inline Server& WithCloudFormationStackArn(Aws::String&& value) { SetCloudFormationStackArn(std::move(value)); return *this;} /** *

The ARN of the CloudFormation stack that was used to create the server.

*/ inline Server& WithCloudFormationStackArn(const char* value) { SetCloudFormationStackArn(value); return *this;} /** *

An optional public endpoint of a server, such as * https://aws.my-company.com. You cannot access the server by using * the Endpoint value if the server has a CustomDomain * specified.

*/ inline const Aws::String& GetCustomDomain() const{ return m_customDomain; } /** *

An optional public endpoint of a server, such as * https://aws.my-company.com. You cannot access the server by using * the Endpoint value if the server has a CustomDomain * specified.

*/ inline bool CustomDomainHasBeenSet() const { return m_customDomainHasBeenSet; } /** *

An optional public endpoint of a server, such as * https://aws.my-company.com. You cannot access the server by using * the Endpoint value if the server has a CustomDomain * specified.

*/ inline void SetCustomDomain(const Aws::String& value) { m_customDomainHasBeenSet = true; m_customDomain = value; } /** *

An optional public endpoint of a server, such as * https://aws.my-company.com. You cannot access the server by using * the Endpoint value if the server has a CustomDomain * specified.

*/ inline void SetCustomDomain(Aws::String&& value) { m_customDomainHasBeenSet = true; m_customDomain = std::move(value); } /** *

An optional public endpoint of a server, such as * https://aws.my-company.com. You cannot access the server by using * the Endpoint value if the server has a CustomDomain * specified.

*/ inline void SetCustomDomain(const char* value) { m_customDomainHasBeenSet = true; m_customDomain.assign(value); } /** *

An optional public endpoint of a server, such as * https://aws.my-company.com. You cannot access the server by using * the Endpoint value if the server has a CustomDomain * specified.

*/ inline Server& WithCustomDomain(const Aws::String& value) { SetCustomDomain(value); return *this;} /** *

An optional public endpoint of a server, such as * https://aws.my-company.com. You cannot access the server by using * the Endpoint value if the server has a CustomDomain * specified.

*/ inline Server& WithCustomDomain(Aws::String&& value) { SetCustomDomain(std::move(value)); return *this;} /** *

An optional public endpoint of a server, such as * https://aws.my-company.com. You cannot access the server by using * the Endpoint value if the server has a CustomDomain * specified.

*/ inline Server& WithCustomDomain(const char* value) { SetCustomDomain(value); return *this;} /** *

Disables automated backups. The number of stored backups is dependent on the * value of PreferredBackupCount.

*/ inline bool GetDisableAutomatedBackup() const{ return m_disableAutomatedBackup; } /** *

Disables automated backups. The number of stored backups is dependent on the * value of PreferredBackupCount.

*/ inline bool DisableAutomatedBackupHasBeenSet() const { return m_disableAutomatedBackupHasBeenSet; } /** *

Disables automated backups. The number of stored backups is dependent on the * value of PreferredBackupCount.

*/ inline void SetDisableAutomatedBackup(bool value) { m_disableAutomatedBackupHasBeenSet = true; m_disableAutomatedBackup = value; } /** *

Disables automated backups. The number of stored backups is dependent on the * value of PreferredBackupCount.

*/ inline Server& WithDisableAutomatedBackup(bool value) { SetDisableAutomatedBackup(value); return *this;} /** *

A DNS name that can be used to access the engine. Example: * myserver-asdfghjkl.us-east-1.opsworks.io. You cannot access the * server by using the Endpoint value if the server has a * CustomDomain specified.

*/ inline const Aws::String& GetEndpoint() const{ return m_endpoint; } /** *

A DNS name that can be used to access the engine. Example: * myserver-asdfghjkl.us-east-1.opsworks.io. You cannot access the * server by using the Endpoint value if the server has a * CustomDomain specified.

*/ inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; } /** *

A DNS name that can be used to access the engine. Example: * myserver-asdfghjkl.us-east-1.opsworks.io. You cannot access the * server by using the Endpoint value if the server has a * CustomDomain specified.

*/ inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; } /** *

A DNS name that can be used to access the engine. Example: * myserver-asdfghjkl.us-east-1.opsworks.io. You cannot access the * server by using the Endpoint value if the server has a * CustomDomain specified.

*/ inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } /** *

A DNS name that can be used to access the engine. Example: * myserver-asdfghjkl.us-east-1.opsworks.io. You cannot access the * server by using the Endpoint value if the server has a * CustomDomain specified.

*/ inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); } /** *

A DNS name that can be used to access the engine. Example: * myserver-asdfghjkl.us-east-1.opsworks.io. You cannot access the * server by using the Endpoint value if the server has a * CustomDomain specified.

*/ inline Server& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} /** *

A DNS name that can be used to access the engine. Example: * myserver-asdfghjkl.us-east-1.opsworks.io. You cannot access the * server by using the Endpoint value if the server has a * CustomDomain specified.

*/ inline Server& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} /** *

A DNS name that can be used to access the engine. Example: * myserver-asdfghjkl.us-east-1.opsworks.io. You cannot access the * server by using the Endpoint value if the server has a * CustomDomain specified.

*/ inline Server& WithEndpoint(const char* value) { SetEndpoint(value); return *this;} /** *

The engine type of the server. Valid values in this release include * ChefAutomate and Puppet.

*/ inline const Aws::String& GetEngine() const{ return m_engine; } /** *

The engine type of the server. Valid values in this release include * ChefAutomate and Puppet.

*/ inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; } /** *

The engine type of the server. Valid values in this release include * ChefAutomate and Puppet.

*/ inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; } /** *

The engine type of the server. Valid values in this release include * ChefAutomate and Puppet.

*/ inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); } /** *

The engine type of the server. Valid values in this release include * ChefAutomate and Puppet.

*/ inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); } /** *

The engine type of the server. Valid values in this release include * ChefAutomate and Puppet.

*/ inline Server& WithEngine(const Aws::String& value) { SetEngine(value); return *this;} /** *

The engine type of the server. Valid values in this release include * ChefAutomate and Puppet.

*/ inline Server& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;} /** *

The engine type of the server. Valid values in this release include * ChefAutomate and Puppet.

*/ inline Server& WithEngine(const char* value) { SetEngine(value); return *this;} /** *

The engine model of the server. Valid values in this release include * Monolithic for Puppet and Single for Chef.

*/ inline const Aws::String& GetEngineModel() const{ return m_engineModel; } /** *

The engine model of the server. Valid values in this release include * Monolithic for Puppet and Single for Chef.

*/ inline bool EngineModelHasBeenSet() const { return m_engineModelHasBeenSet; } /** *

The engine model of the server. Valid values in this release include * Monolithic for Puppet and Single for Chef.

*/ inline void SetEngineModel(const Aws::String& value) { m_engineModelHasBeenSet = true; m_engineModel = value; } /** *

The engine model of the server. Valid values in this release include * Monolithic for Puppet and Single for Chef.

*/ inline void SetEngineModel(Aws::String&& value) { m_engineModelHasBeenSet = true; m_engineModel = std::move(value); } /** *

The engine model of the server. Valid values in this release include * Monolithic for Puppet and Single for Chef.

*/ inline void SetEngineModel(const char* value) { m_engineModelHasBeenSet = true; m_engineModel.assign(value); } /** *

The engine model of the server. Valid values in this release include * Monolithic for Puppet and Single for Chef.

*/ inline Server& WithEngineModel(const Aws::String& value) { SetEngineModel(value); return *this;} /** *

The engine model of the server. Valid values in this release include * Monolithic for Puppet and Single for Chef.

*/ inline Server& WithEngineModel(Aws::String&& value) { SetEngineModel(std::move(value)); return *this;} /** *

The engine model of the server. Valid values in this release include * Monolithic for Puppet and Single for Chef.

*/ inline Server& WithEngineModel(const char* value) { SetEngineModel(value); return *this;} /** *

The response of a createServer() request returns the master credential to * access the server in EngineAttributes. These credentials are not stored by AWS * OpsWorks CM; they are returned only as part of the result of createServer(). *

Attributes returned in a createServer response for * Chef

  • CHEF_AUTOMATE_PIVOTAL_KEY: A * base64-encoded RSA private key that is generated by AWS OpsWorks for Chef * Automate. This private key is required to access the Chef API.

  • *

    CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Chef starter kit, which includes a README, a configuration file, and * the required RSA private key. Save this file, unzip it, and then change to the * directory where you've unzipped the file contents. From this directory, you can * run Knife commands.

Attributes returned in * a createServer response for Puppet

  • * PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Puppet starter kit, including a README and a required private key. * Save this file, unzip it, and then change to the directory where you've unzipped * the file contents.

  • PUPPET_ADMIN_PASSWORD: An * administrator password that you can use to sign in to the Puppet Enterprise * console after the server is online.

*/ inline const Aws::Vector& GetEngineAttributes() const{ return m_engineAttributes; } /** *

The response of a createServer() request returns the master credential to * access the server in EngineAttributes. These credentials are not stored by AWS * OpsWorks CM; they are returned only as part of the result of createServer(). *

Attributes returned in a createServer response for * Chef

  • CHEF_AUTOMATE_PIVOTAL_KEY: A * base64-encoded RSA private key that is generated by AWS OpsWorks for Chef * Automate. This private key is required to access the Chef API.

  • *

    CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Chef starter kit, which includes a README, a configuration file, and * the required RSA private key. Save this file, unzip it, and then change to the * directory where you've unzipped the file contents. From this directory, you can * run Knife commands.

Attributes returned in * a createServer response for Puppet

  • * PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Puppet starter kit, including a README and a required private key. * Save this file, unzip it, and then change to the directory where you've unzipped * the file contents.

  • PUPPET_ADMIN_PASSWORD: An * administrator password that you can use to sign in to the Puppet Enterprise * console after the server is online.

*/ inline bool EngineAttributesHasBeenSet() const { return m_engineAttributesHasBeenSet; } /** *

The response of a createServer() request returns the master credential to * access the server in EngineAttributes. These credentials are not stored by AWS * OpsWorks CM; they are returned only as part of the result of createServer(). *

Attributes returned in a createServer response for * Chef

  • CHEF_AUTOMATE_PIVOTAL_KEY: A * base64-encoded RSA private key that is generated by AWS OpsWorks for Chef * Automate. This private key is required to access the Chef API.

  • *

    CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Chef starter kit, which includes a README, a configuration file, and * the required RSA private key. Save this file, unzip it, and then change to the * directory where you've unzipped the file contents. From this directory, you can * run Knife commands.

Attributes returned in * a createServer response for Puppet

  • * PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Puppet starter kit, including a README and a required private key. * Save this file, unzip it, and then change to the directory where you've unzipped * the file contents.

  • PUPPET_ADMIN_PASSWORD: An * administrator password that you can use to sign in to the Puppet Enterprise * console after the server is online.

*/ inline void SetEngineAttributes(const Aws::Vector& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = value; } /** *

The response of a createServer() request returns the master credential to * access the server in EngineAttributes. These credentials are not stored by AWS * OpsWorks CM; they are returned only as part of the result of createServer(). *

Attributes returned in a createServer response for * Chef

  • CHEF_AUTOMATE_PIVOTAL_KEY: A * base64-encoded RSA private key that is generated by AWS OpsWorks for Chef * Automate. This private key is required to access the Chef API.

  • *

    CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Chef starter kit, which includes a README, a configuration file, and * the required RSA private key. Save this file, unzip it, and then change to the * directory where you've unzipped the file contents. From this directory, you can * run Knife commands.

Attributes returned in * a createServer response for Puppet

  • * PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Puppet starter kit, including a README and a required private key. * Save this file, unzip it, and then change to the directory where you've unzipped * the file contents.

  • PUPPET_ADMIN_PASSWORD: An * administrator password that you can use to sign in to the Puppet Enterprise * console after the server is online.

*/ inline void SetEngineAttributes(Aws::Vector&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = std::move(value); } /** *

The response of a createServer() request returns the master credential to * access the server in EngineAttributes. These credentials are not stored by AWS * OpsWorks CM; they are returned only as part of the result of createServer(). *

Attributes returned in a createServer response for * Chef

  • CHEF_AUTOMATE_PIVOTAL_KEY: A * base64-encoded RSA private key that is generated by AWS OpsWorks for Chef * Automate. This private key is required to access the Chef API.

  • *

    CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Chef starter kit, which includes a README, a configuration file, and * the required RSA private key. Save this file, unzip it, and then change to the * directory where you've unzipped the file contents. From this directory, you can * run Knife commands.

Attributes returned in * a createServer response for Puppet

  • * PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Puppet starter kit, including a README and a required private key. * Save this file, unzip it, and then change to the directory where you've unzipped * the file contents.

  • PUPPET_ADMIN_PASSWORD: An * administrator password that you can use to sign in to the Puppet Enterprise * console after the server is online.

*/ inline Server& WithEngineAttributes(const Aws::Vector& value) { SetEngineAttributes(value); return *this;} /** *

The response of a createServer() request returns the master credential to * access the server in EngineAttributes. These credentials are not stored by AWS * OpsWorks CM; they are returned only as part of the result of createServer(). *

Attributes returned in a createServer response for * Chef

  • CHEF_AUTOMATE_PIVOTAL_KEY: A * base64-encoded RSA private key that is generated by AWS OpsWorks for Chef * Automate. This private key is required to access the Chef API.

  • *

    CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Chef starter kit, which includes a README, a configuration file, and * the required RSA private key. Save this file, unzip it, and then change to the * directory where you've unzipped the file contents. From this directory, you can * run Knife commands.

Attributes returned in * a createServer response for Puppet

  • * PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Puppet starter kit, including a README and a required private key. * Save this file, unzip it, and then change to the directory where you've unzipped * the file contents.

  • PUPPET_ADMIN_PASSWORD: An * administrator password that you can use to sign in to the Puppet Enterprise * console after the server is online.

*/ inline Server& WithEngineAttributes(Aws::Vector&& value) { SetEngineAttributes(std::move(value)); return *this;} /** *

The response of a createServer() request returns the master credential to * access the server in EngineAttributes. These credentials are not stored by AWS * OpsWorks CM; they are returned only as part of the result of createServer(). *

Attributes returned in a createServer response for * Chef

  • CHEF_AUTOMATE_PIVOTAL_KEY: A * base64-encoded RSA private key that is generated by AWS OpsWorks for Chef * Automate. This private key is required to access the Chef API.

  • *

    CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Chef starter kit, which includes a README, a configuration file, and * the required RSA private key. Save this file, unzip it, and then change to the * directory where you've unzipped the file contents. From this directory, you can * run Knife commands.

Attributes returned in * a createServer response for Puppet

  • * PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Puppet starter kit, including a README and a required private key. * Save this file, unzip it, and then change to the directory where you've unzipped * the file contents.

  • PUPPET_ADMIN_PASSWORD: An * administrator password that you can use to sign in to the Puppet Enterprise * console after the server is online.

*/ inline Server& AddEngineAttributes(const EngineAttribute& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(value); return *this; } /** *

The response of a createServer() request returns the master credential to * access the server in EngineAttributes. These credentials are not stored by AWS * OpsWorks CM; they are returned only as part of the result of createServer(). *

Attributes returned in a createServer response for * Chef

  • CHEF_AUTOMATE_PIVOTAL_KEY: A * base64-encoded RSA private key that is generated by AWS OpsWorks for Chef * Automate. This private key is required to access the Chef API.

  • *

    CHEF_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Chef starter kit, which includes a README, a configuration file, and * the required RSA private key. Save this file, unzip it, and then change to the * directory where you've unzipped the file contents. From this directory, you can * run Knife commands.

Attributes returned in * a createServer response for Puppet

  • * PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file * contains a Puppet starter kit, including a README and a required private key. * Save this file, unzip it, and then change to the directory where you've unzipped * the file contents.

  • PUPPET_ADMIN_PASSWORD: An * administrator password that you can use to sign in to the Puppet Enterprise * console after the server is online.

*/ inline Server& AddEngineAttributes(EngineAttribute&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(std::move(value)); return *this; } /** *

The engine version of the server. For a Chef server, the valid value for * EngineVersion is currently 2. For a Puppet server, specify either * 2019 or 2017.

*/ inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; } /** *

The engine version of the server. For a Chef server, the valid value for * EngineVersion is currently 2. For a Puppet server, specify either * 2019 or 2017.

*/ inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } /** *

The engine version of the server. For a Chef server, the valid value for * EngineVersion is currently 2. For a Puppet server, specify either * 2019 or 2017.

*/ inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } /** *

The engine version of the server. For a Chef server, the valid value for * EngineVersion is currently 2. For a Puppet server, specify either * 2019 or 2017.

*/ inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } /** *

The engine version of the server. For a Chef server, the valid value for * EngineVersion is currently 2. For a Puppet server, specify either * 2019 or 2017.

*/ inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); } /** *

The engine version of the server. For a Chef server, the valid value for * EngineVersion is currently 2. For a Puppet server, specify either * 2019 or 2017.

*/ inline Server& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;} /** *

The engine version of the server. For a Chef server, the valid value for * EngineVersion is currently 2. For a Puppet server, specify either * 2019 or 2017.

*/ inline Server& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;} /** *

The engine version of the server. For a Chef server, the valid value for * EngineVersion is currently 2. For a Puppet server, specify either * 2019 or 2017.

*/ inline Server& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} /** *

The instance profile ARN of the server.

*/ inline const Aws::String& GetInstanceProfileArn() const{ return m_instanceProfileArn; } /** *

The instance profile ARN of the server.

*/ inline bool InstanceProfileArnHasBeenSet() const { return m_instanceProfileArnHasBeenSet; } /** *

The instance profile ARN of the server.

*/ inline void SetInstanceProfileArn(const Aws::String& value) { m_instanceProfileArnHasBeenSet = true; m_instanceProfileArn = value; } /** *

The instance profile ARN of the server.

*/ inline void SetInstanceProfileArn(Aws::String&& value) { m_instanceProfileArnHasBeenSet = true; m_instanceProfileArn = std::move(value); } /** *

The instance profile ARN of the server.

*/ inline void SetInstanceProfileArn(const char* value) { m_instanceProfileArnHasBeenSet = true; m_instanceProfileArn.assign(value); } /** *

The instance profile ARN of the server.

*/ inline Server& WithInstanceProfileArn(const Aws::String& value) { SetInstanceProfileArn(value); return *this;} /** *

The instance profile ARN of the server.

*/ inline Server& WithInstanceProfileArn(Aws::String&& value) { SetInstanceProfileArn(std::move(value)); return *this;} /** *

The instance profile ARN of the server.

*/ inline Server& WithInstanceProfileArn(const char* value) { SetInstanceProfileArn(value); return *this;} /** *

The instance type for the server, as specified in the CloudFormation stack. * This might not be the same instance type that is shown in the EC2 console.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The instance type for the server, as specified in the CloudFormation stack. * This might not be the same instance type that is shown in the EC2 console.

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

The instance type for the server, as specified in the CloudFormation stack. * This might not be the same instance type that is shown in the EC2 console.

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

The instance type for the server, as specified in the CloudFormation stack. * This might not be the same instance type that is shown in the EC2 console.

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

The instance type for the server, as specified in the CloudFormation stack. * This might not be the same instance type that is shown in the EC2 console.

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

The instance type for the server, as specified in the CloudFormation stack. * This might not be the same instance type that is shown in the EC2 console.

*/ inline Server& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The instance type for the server, as specified in the CloudFormation stack. * This might not be the same instance type that is shown in the EC2 console.

*/ inline Server& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The instance type for the server, as specified in the CloudFormation stack. * This might not be the same instance type that is shown in the EC2 console.

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

The key pair associated with the server.

*/ inline const Aws::String& GetKeyPair() const{ return m_keyPair; } /** *

The key pair associated with the server.

*/ inline bool KeyPairHasBeenSet() const { return m_keyPairHasBeenSet; } /** *

The key pair associated with the server.

*/ inline void SetKeyPair(const Aws::String& value) { m_keyPairHasBeenSet = true; m_keyPair = value; } /** *

The key pair associated with the server.

*/ inline void SetKeyPair(Aws::String&& value) { m_keyPairHasBeenSet = true; m_keyPair = std::move(value); } /** *

The key pair associated with the server.

*/ inline void SetKeyPair(const char* value) { m_keyPairHasBeenSet = true; m_keyPair.assign(value); } /** *

The key pair associated with the server.

*/ inline Server& WithKeyPair(const Aws::String& value) { SetKeyPair(value); return *this;} /** *

The key pair associated with the server.

*/ inline Server& WithKeyPair(Aws::String&& value) { SetKeyPair(std::move(value)); return *this;} /** *

The key pair associated with the server.

*/ inline Server& WithKeyPair(const char* value) { SetKeyPair(value); return *this;} /** *

The status of the most recent server maintenance run. Shows * SUCCESS or FAILED.

*/ inline const MaintenanceStatus& GetMaintenanceStatus() const{ return m_maintenanceStatus; } /** *

The status of the most recent server maintenance run. Shows * SUCCESS or FAILED.

*/ inline bool MaintenanceStatusHasBeenSet() const { return m_maintenanceStatusHasBeenSet; } /** *

The status of the most recent server maintenance run. Shows * SUCCESS or FAILED.

*/ inline void SetMaintenanceStatus(const MaintenanceStatus& value) { m_maintenanceStatusHasBeenSet = true; m_maintenanceStatus = value; } /** *

The status of the most recent server maintenance run. Shows * SUCCESS or FAILED.

*/ inline void SetMaintenanceStatus(MaintenanceStatus&& value) { m_maintenanceStatusHasBeenSet = true; m_maintenanceStatus = std::move(value); } /** *

The status of the most recent server maintenance run. Shows * SUCCESS or FAILED.

*/ inline Server& WithMaintenanceStatus(const MaintenanceStatus& value) { SetMaintenanceStatus(value); return *this;} /** *

The status of the most recent server maintenance run. Shows * SUCCESS or FAILED.

*/ inline Server& WithMaintenanceStatus(MaintenanceStatus&& value) { SetMaintenanceStatus(std::move(value)); return *this;} /** *

The preferred maintenance period specified for the server.

*/ inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; } /** *

The preferred maintenance period specified for the server.

*/ inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; } /** *

The preferred maintenance period specified for the server.

*/ inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; } /** *

The preferred maintenance period specified for the server.

*/ inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); } /** *

The preferred maintenance period specified for the server.

*/ inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); } /** *

The preferred maintenance period specified for the server.

*/ inline Server& WithPreferredMaintenanceWindow(const Aws::String& value) { SetPreferredMaintenanceWindow(value); return *this;} /** *

The preferred maintenance period specified for the server.

*/ inline Server& WithPreferredMaintenanceWindow(Aws::String&& value) { SetPreferredMaintenanceWindow(std::move(value)); return *this;} /** *

The preferred maintenance period specified for the server.

*/ inline Server& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;} /** *

The preferred backup period specified for the server.

*/ inline const Aws::String& GetPreferredBackupWindow() const{ return m_preferredBackupWindow; } /** *

The preferred backup period specified for the server.

*/ inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; } /** *

The preferred backup period specified for the server.

*/ inline void SetPreferredBackupWindow(const Aws::String& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = value; } /** *

The preferred backup period specified for the server.

*/ inline void SetPreferredBackupWindow(Aws::String&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = std::move(value); } /** *

The preferred backup period specified for the server.

*/ inline void SetPreferredBackupWindow(const char* value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow.assign(value); } /** *

The preferred backup period specified for the server.

*/ inline Server& WithPreferredBackupWindow(const Aws::String& value) { SetPreferredBackupWindow(value); return *this;} /** *

The preferred backup period specified for the server.

*/ inline Server& WithPreferredBackupWindow(Aws::String&& value) { SetPreferredBackupWindow(std::move(value)); return *this;} /** *

The preferred backup period specified for the server.

*/ inline Server& WithPreferredBackupWindow(const char* value) { SetPreferredBackupWindow(value); return *this;} /** *

The security group IDs for the server, as specified in the CloudFormation * stack. These might not be the same security groups that are shown in the EC2 * console.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

The security group IDs for the server, as specified in the CloudFormation * stack. These might not be the same security groups that are shown in the EC2 * console.

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

The security group IDs for the server, as specified in the CloudFormation * stack. These might not be the same security groups that are shown in the EC2 * console.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

The security group IDs for the server, as specified in the CloudFormation * stack. These might not be the same security groups that are shown in the EC2 * console.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

The security group IDs for the server, as specified in the CloudFormation * stack. These might not be the same security groups that are shown in the EC2 * console.

*/ inline Server& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

The security group IDs for the server, as specified in the CloudFormation * stack. These might not be the same security groups that are shown in the EC2 * console.

*/ inline Server& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

The security group IDs for the server, as specified in the CloudFormation * stack. These might not be the same security groups that are shown in the EC2 * console.

*/ inline Server& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The security group IDs for the server, as specified in the CloudFormation * stack. These might not be the same security groups that are shown in the EC2 * console.

*/ inline Server& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

The security group IDs for the server, as specified in the CloudFormation * stack. These might not be the same security groups that are shown in the EC2 * console.

*/ inline Server& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The service role ARN used to create the server.

*/ inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; } /** *

The service role ARN used to create the server.

*/ inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; } /** *

The service role ARN used to create the server.

*/ inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; } /** *

The service role ARN used to create the server.

*/ inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::move(value); } /** *

The service role ARN used to create the server.

*/ inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); } /** *

The service role ARN used to create the server.

*/ inline Server& WithServiceRoleArn(const Aws::String& value) { SetServiceRoleArn(value); return *this;} /** *

The service role ARN used to create the server.

*/ inline Server& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(std::move(value)); return *this;} /** *

The service role ARN used to create the server.

*/ inline Server& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;} /** *

The server's status. This field displays the states of actions in progress, * such as creating, running, or backing up the server, as well as the server's * health state.

*/ inline const ServerStatus& GetStatus() const{ return m_status; } /** *

The server's status. This field displays the states of actions in progress, * such as creating, running, or backing up the server, as well as the server's * health state.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The server's status. This field displays the states of actions in progress, * such as creating, running, or backing up the server, as well as the server's * health state.

*/ inline void SetStatus(const ServerStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The server's status. This field displays the states of actions in progress, * such as creating, running, or backing up the server, as well as the server's * health state.

*/ inline void SetStatus(ServerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The server's status. This field displays the states of actions in progress, * such as creating, running, or backing up the server, as well as the server's * health state.

*/ inline Server& WithStatus(const ServerStatus& value) { SetStatus(value); return *this;} /** *

The server's status. This field displays the states of actions in progress, * such as creating, running, or backing up the server, as well as the server's * health state.

*/ inline Server& WithStatus(ServerStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Depending on the server status, this field has either a human-readable * message (such as a create or backup error), or an escaped block of JSON (used * for health check results).

*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *

Depending on the server status, this field has either a human-readable * message (such as a create or backup error), or an escaped block of JSON (used * for health check results).

*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *

Depending on the server status, this field has either a human-readable * message (such as a create or backup error), or an escaped block of JSON (used * for health check results).

*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *

Depending on the server status, this field has either a human-readable * message (such as a create or backup error), or an escaped block of JSON (used * for health check results).

*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *

Depending on the server status, this field has either a human-readable * message (such as a create or backup error), or an escaped block of JSON (used * for health check results).

*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *

Depending on the server status, this field has either a human-readable * message (such as a create or backup error), or an escaped block of JSON (used * for health check results).

*/ inline Server& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *

Depending on the server status, this field has either a human-readable * message (such as a create or backup error), or an escaped block of JSON (used * for health check results).

*/ inline Server& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *

Depending on the server status, this field has either a human-readable * message (such as a create or backup error), or an escaped block of JSON (used * for health check results).

*/ inline Server& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *

The subnet IDs specified in a CreateServer request.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The subnet IDs specified in a CreateServer request.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The subnet IDs specified in a CreateServer request.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The subnet IDs specified in a CreateServer request.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The subnet IDs specified in a CreateServer request.

*/ inline Server& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The subnet IDs specified in a CreateServer request.

*/ inline Server& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The subnet IDs specified in a CreateServer request.

*/ inline Server& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The subnet IDs specified in a CreateServer request.

*/ inline Server& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The subnet IDs specified in a CreateServer request.

*/ inline Server& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The ARN of the server.

*/ inline const Aws::String& GetServerArn() const{ return m_serverArn; } /** *

The ARN of the server.

*/ inline bool ServerArnHasBeenSet() const { return m_serverArnHasBeenSet; } /** *

The ARN of the server.

*/ inline void SetServerArn(const Aws::String& value) { m_serverArnHasBeenSet = true; m_serverArn = value; } /** *

The ARN of the server.

*/ inline void SetServerArn(Aws::String&& value) { m_serverArnHasBeenSet = true; m_serverArn = std::move(value); } /** *

The ARN of the server.

*/ inline void SetServerArn(const char* value) { m_serverArnHasBeenSet = true; m_serverArn.assign(value); } /** *

The ARN of the server.

*/ inline Server& WithServerArn(const Aws::String& value) { SetServerArn(value); return *this;} /** *

The ARN of the server.

*/ inline Server& WithServerArn(Aws::String&& value) { SetServerArn(std::move(value)); return *this;} /** *

The ARN of the server.

*/ inline Server& WithServerArn(const char* value) { SetServerArn(value); return *this;} private: bool m_associatePublicIpAddress; bool m_associatePublicIpAddressHasBeenSet = false; int m_backupRetentionCount; bool m_backupRetentionCountHasBeenSet = false; Aws::String m_serverName; bool m_serverNameHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_cloudFormationStackArn; bool m_cloudFormationStackArnHasBeenSet = false; Aws::String m_customDomain; bool m_customDomainHasBeenSet = false; bool m_disableAutomatedBackup; bool m_disableAutomatedBackupHasBeenSet = false; Aws::String m_endpoint; bool m_endpointHasBeenSet = false; Aws::String m_engine; bool m_engineHasBeenSet = false; Aws::String m_engineModel; bool m_engineModelHasBeenSet = false; Aws::Vector m_engineAttributes; bool m_engineAttributesHasBeenSet = false; Aws::String m_engineVersion; bool m_engineVersionHasBeenSet = false; Aws::String m_instanceProfileArn; bool m_instanceProfileArnHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_keyPair; bool m_keyPairHasBeenSet = false; MaintenanceStatus m_maintenanceStatus; bool m_maintenanceStatusHasBeenSet = false; Aws::String m_preferredMaintenanceWindow; bool m_preferredMaintenanceWindowHasBeenSet = false; Aws::String m_preferredBackupWindow; bool m_preferredBackupWindowHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; Aws::String m_serviceRoleArn; bool m_serviceRoleArnHasBeenSet = false; ServerStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusReason; bool m_statusReasonHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::String m_serverArn; bool m_serverArnHasBeenSet = false; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws