/** * 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 Backup { namespace Model { /** */ class CreateFrameworkRequest : public BackupRequest { public: AWS_BACKUP_API CreateFrameworkRequest(); // 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 "CreateFramework"; } AWS_BACKUP_API Aws::String SerializePayload() const override; /** *

The unique name of the framework. The name must be between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline const Aws::String& GetFrameworkName() const{ return m_frameworkName; } /** *

The unique name of the framework. The name must be between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline bool FrameworkNameHasBeenSet() const { return m_frameworkNameHasBeenSet; } /** *

The unique name of the framework. The name must be between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline void SetFrameworkName(const Aws::String& value) { m_frameworkNameHasBeenSet = true; m_frameworkName = value; } /** *

The unique name of the framework. The name must be between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline void SetFrameworkName(Aws::String&& value) { m_frameworkNameHasBeenSet = true; m_frameworkName = std::move(value); } /** *

The unique name of the framework. The name must be between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline void SetFrameworkName(const char* value) { m_frameworkNameHasBeenSet = true; m_frameworkName.assign(value); } /** *

The unique name of the framework. The name must be between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline CreateFrameworkRequest& WithFrameworkName(const Aws::String& value) { SetFrameworkName(value); return *this;} /** *

The unique name of the framework. The name must be between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline CreateFrameworkRequest& WithFrameworkName(Aws::String&& value) { SetFrameworkName(std::move(value)); return *this;} /** *

The unique name of the framework. The name must be between 1 and 256 * characters, starting with a letter, and consisting of letters (a-z, A-Z), * numbers (0-9), and underscores (_).

*/ inline CreateFrameworkRequest& WithFrameworkName(const char* value) { SetFrameworkName(value); return *this;} /** *

An optional description of the framework with a maximum of 1,024 * characters.

*/ inline const Aws::String& GetFrameworkDescription() const{ return m_frameworkDescription; } /** *

An optional description of the framework with a maximum of 1,024 * characters.

*/ inline bool FrameworkDescriptionHasBeenSet() const { return m_frameworkDescriptionHasBeenSet; } /** *

An optional description of the framework with a maximum of 1,024 * characters.

*/ inline void SetFrameworkDescription(const Aws::String& value) { m_frameworkDescriptionHasBeenSet = true; m_frameworkDescription = value; } /** *

An optional description of the framework with a maximum of 1,024 * characters.

*/ inline void SetFrameworkDescription(Aws::String&& value) { m_frameworkDescriptionHasBeenSet = true; m_frameworkDescription = std::move(value); } /** *

An optional description of the framework with a maximum of 1,024 * characters.

*/ inline void SetFrameworkDescription(const char* value) { m_frameworkDescriptionHasBeenSet = true; m_frameworkDescription.assign(value); } /** *

An optional description of the framework with a maximum of 1,024 * characters.

*/ inline CreateFrameworkRequest& WithFrameworkDescription(const Aws::String& value) { SetFrameworkDescription(value); return *this;} /** *

An optional description of the framework with a maximum of 1,024 * characters.

*/ inline CreateFrameworkRequest& WithFrameworkDescription(Aws::String&& value) { SetFrameworkDescription(std::move(value)); return *this;} /** *

An optional description of the framework with a maximum of 1,024 * characters.

*/ inline CreateFrameworkRequest& WithFrameworkDescription(const char* value) { SetFrameworkDescription(value); return *this;} /** *

A list of the controls that make up the framework. Each control in the list * has a name, input parameters, and scope.

*/ inline const Aws::Vector& GetFrameworkControls() const{ return m_frameworkControls; } /** *

A list of the controls that make up the framework. Each control in the list * has a name, input parameters, and scope.

*/ inline bool FrameworkControlsHasBeenSet() const { return m_frameworkControlsHasBeenSet; } /** *

A list of the controls that make up the framework. Each control in the list * has a name, input parameters, and scope.

*/ inline void SetFrameworkControls(const Aws::Vector& value) { m_frameworkControlsHasBeenSet = true; m_frameworkControls = value; } /** *

A list of the controls that make up the framework. Each control in the list * has a name, input parameters, and scope.

*/ inline void SetFrameworkControls(Aws::Vector&& value) { m_frameworkControlsHasBeenSet = true; m_frameworkControls = std::move(value); } /** *

A list of the controls that make up the framework. Each control in the list * has a name, input parameters, and scope.

*/ inline CreateFrameworkRequest& WithFrameworkControls(const Aws::Vector& value) { SetFrameworkControls(value); return *this;} /** *

A list of the controls that make up the framework. Each control in the list * has a name, input parameters, and scope.

*/ inline CreateFrameworkRequest& WithFrameworkControls(Aws::Vector&& value) { SetFrameworkControls(std::move(value)); return *this;} /** *

A list of the controls that make up the framework. Each control in the list * has a name, input parameters, and scope.

*/ inline CreateFrameworkRequest& AddFrameworkControls(const FrameworkControl& value) { m_frameworkControlsHasBeenSet = true; m_frameworkControls.push_back(value); return *this; } /** *

A list of the controls that make up the framework. Each control in the list * has a name, input parameters, and scope.

*/ inline CreateFrameworkRequest& AddFrameworkControls(FrameworkControl&& value) { m_frameworkControlsHasBeenSet = true; m_frameworkControls.push_back(std::move(value)); return *this; } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to CreateFrameworkInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to CreateFrameworkInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to CreateFrameworkInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to CreateFrameworkInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to CreateFrameworkInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); } /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to CreateFrameworkInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline CreateFrameworkRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;} /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to CreateFrameworkInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline CreateFrameworkRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;} /** *

A customer-chosen string that you can use to distinguish between otherwise * identical calls to CreateFrameworkInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline CreateFrameworkRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;} /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline const Aws::Map& GetFrameworkTags() const{ return m_frameworkTags; } /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline bool FrameworkTagsHasBeenSet() const { return m_frameworkTagsHasBeenSet; } /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline void SetFrameworkTags(const Aws::Map& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags = value; } /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline void SetFrameworkTags(Aws::Map&& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags = std::move(value); } /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline CreateFrameworkRequest& WithFrameworkTags(const Aws::Map& value) { SetFrameworkTags(value); return *this;} /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline CreateFrameworkRequest& WithFrameworkTags(Aws::Map&& value) { SetFrameworkTags(std::move(value)); return *this;} /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline CreateFrameworkRequest& AddFrameworkTags(const Aws::String& key, const Aws::String& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(key, value); return *this; } /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline CreateFrameworkRequest& AddFrameworkTags(Aws::String&& key, const Aws::String& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(std::move(key), value); return *this; } /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline CreateFrameworkRequest& AddFrameworkTags(const Aws::String& key, Aws::String&& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(key, std::move(value)); return *this; } /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline CreateFrameworkRequest& AddFrameworkTags(Aws::String&& key, Aws::String&& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(std::move(key), std::move(value)); return *this; } /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline CreateFrameworkRequest& AddFrameworkTags(const char* key, Aws::String&& value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(key, std::move(value)); return *this; } /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline CreateFrameworkRequest& AddFrameworkTags(Aws::String&& key, const char* value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(std::move(key), value); return *this; } /** *

Metadata that you can assign to help organize the frameworks that you create. * Each tag is a key-value pair.

*/ inline CreateFrameworkRequest& AddFrameworkTags(const char* key, const char* value) { m_frameworkTagsHasBeenSet = true; m_frameworkTags.emplace(key, value); return *this; } private: Aws::String m_frameworkName; bool m_frameworkNameHasBeenSet = false; Aws::String m_frameworkDescription; bool m_frameworkDescriptionHasBeenSet = false; Aws::Vector m_frameworkControls; bool m_frameworkControlsHasBeenSet = false; Aws::String m_idempotencyToken; bool m_idempotencyTokenHasBeenSet = false; Aws::Map m_frameworkTags; bool m_frameworkTagsHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws