/** * 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 ResilienceHub { namespace Model { /** */ class StartAppAssessmentRequest : public ResilienceHubRequest { public: AWS_RESILIENCEHUB_API StartAppAssessmentRequest(); // 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 "StartAppAssessment"; } AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline const Aws::String& GetAppArn() const{ return m_appArn; } /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetAppArn(const Aws::String& value) { m_appArnHasBeenSet = true; m_appArn = value; } /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetAppArn(Aws::String&& value) { m_appArnHasBeenSet = true; m_appArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetAppArn(const char* value) { m_appArnHasBeenSet = true; m_appArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline StartAppAssessmentRequest& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline StartAppAssessmentRequest& WithAppArn(Aws::String&& value) { SetAppArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Resilience Hub application. The format * for this ARN is: * arn:partition:resiliencehub:region:account:app/app-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline StartAppAssessmentRequest& WithAppArn(const char* value) { SetAppArn(value); return *this;} /** *

The version of the application.

*/ inline const Aws::String& GetAppVersion() const{ return m_appVersion; } /** *

The version of the application.

*/ inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; } /** *

The version of the application.

*/ inline void SetAppVersion(const Aws::String& value) { m_appVersionHasBeenSet = true; m_appVersion = value; } /** *

The version of the application.

*/ inline void SetAppVersion(Aws::String&& value) { m_appVersionHasBeenSet = true; m_appVersion = std::move(value); } /** *

The version of the application.

*/ inline void SetAppVersion(const char* value) { m_appVersionHasBeenSet = true; m_appVersion.assign(value); } /** *

The version of the application.

*/ inline StartAppAssessmentRequest& WithAppVersion(const Aws::String& value) { SetAppVersion(value); return *this;} /** *

The version of the application.

*/ inline StartAppAssessmentRequest& WithAppVersion(Aws::String&& value) { SetAppVersion(std::move(value)); return *this;} /** *

The version of the application.

*/ inline StartAppAssessmentRequest& WithAppVersion(const char* value) { SetAppVersion(value); return *this;} /** *

The name for the assessment.

*/ inline const Aws::String& GetAssessmentName() const{ return m_assessmentName; } /** *

The name for the assessment.

*/ inline bool AssessmentNameHasBeenSet() const { return m_assessmentNameHasBeenSet; } /** *

The name for the assessment.

*/ inline void SetAssessmentName(const Aws::String& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = value; } /** *

The name for the assessment.

*/ inline void SetAssessmentName(Aws::String&& value) { m_assessmentNameHasBeenSet = true; m_assessmentName = std::move(value); } /** *

The name for the assessment.

*/ inline void SetAssessmentName(const char* value) { m_assessmentNameHasBeenSet = true; m_assessmentName.assign(value); } /** *

The name for the assessment.

*/ inline StartAppAssessmentRequest& WithAssessmentName(const Aws::String& value) { SetAssessmentName(value); return *this;} /** *

The name for the assessment.

*/ inline StartAppAssessmentRequest& WithAssessmentName(Aws::String&& value) { SetAssessmentName(std::move(value)); return *this;} /** *

The name for the assessment.

*/ inline StartAppAssessmentRequest& WithAssessmentName(const char* value) { SetAssessmentName(value); return *this;} /** *

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

*/ inline StartAppAssessmentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

*/ inline StartAppAssessmentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Used for an idempotency token. A client token is a unique, case-sensitive * string of up to 64 ASCII characters. You should not reuse the same client token * for other API requests.

*/ inline StartAppAssessmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

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

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

*/ inline StartAppAssessmentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

*/ inline StartAppAssessmentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

*/ inline StartAppAssessmentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

*/ inline StartAppAssessmentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

*/ inline StartAppAssessmentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

*/ inline StartAppAssessmentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags assigned to the resource. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key/value pair.

*/ inline StartAppAssessmentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_appArn; bool m_appArnHasBeenSet = false; Aws::String m_appVersion; bool m_appVersionHasBeenSet = false; Aws::String m_assessmentName; bool m_assessmentNameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws