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

The unique name of a framework. This name is 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 a framework. This name is 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 a framework. This name is 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 a framework. This name is 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 a framework. This name is 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 a framework. This name is between 1 and 256 characters, * starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and * underscores (_).

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

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

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

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

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

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

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

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

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

An optional description of the framework with a maximum 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 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 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 1,024 characters.

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

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

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

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

*/ inline UpdateFrameworkRequest& 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 UpdateFrameworkRequest& 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 UpdateFrameworkRequest& 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 UpdateFrameworkRequest& 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 UpdateFrameworkRequest& 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 UpdateFrameworkInput. 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 UpdateFrameworkInput. 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 UpdateFrameworkInput. 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 UpdateFrameworkInput. 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 UpdateFrameworkInput. 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 UpdateFrameworkInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

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

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

*/ inline UpdateFrameworkRequest& 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 UpdateFrameworkInput. Retrying a successful * request with the same idempotency token results in a success message with no * action taken.

*/ inline UpdateFrameworkRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(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; }; } // namespace Model } // namespace Backup } // namespace Aws