/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace OpsWorksCM { namespace Model { /** */ class CreateBackupRequest : public OpsWorksCMRequest { public: AWS_OPSWORKSCM_API CreateBackupRequest(); // 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 "CreateBackup"; } AWS_OPSWORKSCM_API Aws::String SerializePayload() const override; AWS_OPSWORKSCM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the server that you want to back up.

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

The name of the server that you want to back up.

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

The name of the server that you want to back up.

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

The name of the server that you want to back up.

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

The name of the server that you want to back up.

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

The name of the server that you want to back up.

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

The name of the server that you want to back up.

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

The name of the server that you want to back up.

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

A user-defined description of the backup.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A user-defined description of the backup.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A user-defined description of the backup.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A user-defined description of the backup.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A user-defined description of the backup.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A user-defined description of the backup.

*/ inline CreateBackupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A user-defined description of the backup.

*/ inline CreateBackupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A user-defined description of the backup.

*/ inline CreateBackupRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM * server backup.

  • The key cannot be empty.

  • The * key can be a maximum of 127 characters, and can contain only Unicode letters, * numbers, or separators, or the following special characters: + - = . _ : * /

  • The value can be a maximum 255 characters, and * contain only Unicode letters, numbers, or separators, or the following special * characters: + - = . _ : /

  • Leading and trailing * white spaces are trimmed from both the key and value.

  • A * maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM * resources.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM * server backup.

  • The key cannot be empty.

  • The * key can be a maximum of 127 characters, and can contain only Unicode letters, * numbers, or separators, or the following special characters: + - = . _ : * /

  • The value can be a maximum 255 characters, and * contain only Unicode letters, numbers, or separators, or the following special * characters: + - = . _ : /

  • Leading and trailing * white spaces are trimmed from both the key and value.

  • A * maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM * resources.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM * server backup.

  • The key cannot be empty.

  • The * key can be a maximum of 127 characters, and can contain only Unicode letters, * numbers, or separators, or the following special characters: + - = . _ : * /

  • The value can be a maximum 255 characters, and * contain only Unicode letters, numbers, or separators, or the following special * characters: + - = . _ : /

  • Leading and trailing * white spaces are trimmed from both the key and value.

  • A * maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM * resources.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM * server backup.

  • The key cannot be empty.

  • The * key can be a maximum of 127 characters, and can contain only Unicode letters, * numbers, or separators, or the following special characters: + - = . _ : * /

  • The value can be a maximum 255 characters, and * contain only Unicode letters, numbers, or separators, or the following special * characters: + - = . _ : /

  • Leading and trailing * white spaces are trimmed from both the key and value.

  • A * maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM * resources.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM * server backup.

  • The key cannot be empty.

  • The * key can be a maximum of 127 characters, and can contain only Unicode letters, * numbers, or separators, or the following special characters: + - = . _ : * /

  • The value can be a maximum 255 characters, and * contain only Unicode letters, numbers, or separators, or the following special * characters: + - = . _ : /

  • Leading and trailing * white spaces are trimmed from both the key and value.

  • A * maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM * resources.

*/ inline CreateBackupRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM * server backup.

  • The key cannot be empty.

  • The * key can be a maximum of 127 characters, and can contain only Unicode letters, * numbers, or separators, or the following special characters: + - = . _ : * /

  • The value can be a maximum 255 characters, and * contain only Unicode letters, numbers, or separators, or the following special * characters: + - = . _ : /

  • Leading and trailing * white spaces are trimmed from both the key and value.

  • A * maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM * resources.

*/ inline CreateBackupRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM * server backup.

  • The key cannot be empty.

  • The * key can be a maximum of 127 characters, and can contain only Unicode letters, * numbers, or separators, or the following special characters: + - = . _ : * /

  • The value can be a maximum 255 characters, and * contain only Unicode letters, numbers, or separators, or the following special * characters: + - = . _ : /

  • Leading and trailing * white spaces are trimmed from both the key and value.

  • A * maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM * resources.

*/ inline CreateBackupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM * server backup.

  • The key cannot be empty.

  • The * key can be a maximum of 127 characters, and can contain only Unicode letters, * numbers, or separators, or the following special characters: + - = . _ : * /

  • The value can be a maximum 255 characters, and * contain only Unicode letters, numbers, or separators, or the following special * characters: + - = . _ : /

  • Leading and trailing * white spaces are trimmed from both the key and value.

  • A * maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM * resources.

*/ inline CreateBackupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_serverName; bool m_serverNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws