/** * 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 UpdateAppVersionRequest : public ResilienceHubRequest { public: AWS_RESILIENCEHUB_API UpdateAppVersionRequest(); // 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 "UpdateAppVersion"; } AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override; /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline const Aws::Map>& GetAdditionalInfo() const{ return m_additionalInfo; } /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; } /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline void SetAdditionalInfo(const Aws::Map>& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; } /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline void SetAdditionalInfo(Aws::Map>&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); } /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline UpdateAppVersionRequest& WithAdditionalInfo(const Aws::Map>& value) { SetAdditionalInfo(value); return *this;} /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline UpdateAppVersionRequest& WithAdditionalInfo(Aws::Map>&& value) { SetAdditionalInfo(std::move(value)); return *this;} /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline UpdateAppVersionRequest& AddAdditionalInfo(const Aws::String& key, const Aws::Vector& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; } /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline UpdateAppVersionRequest& AddAdditionalInfo(Aws::String&& key, const Aws::Vector& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), value); return *this; } /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline UpdateAppVersionRequest& AddAdditionalInfo(const Aws::String& key, Aws::Vector&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; } /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline UpdateAppVersionRequest& AddAdditionalInfo(Aws::String&& key, Aws::Vector&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), std::move(value)); return *this; } /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline UpdateAppVersionRequest& AddAdditionalInfo(const char* key, Aws::Vector&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; } /** *

Additional configuration parameters for an Resilience Hub application. If you * want to implement additionalInfo through the Resilience Hub console * rather than using an API call, see Configure * the application configuration parameters.

Currently, this * parameter accepts a key-value mapping (in a string format) of only one failover * region and one associated account.

Key: "failover-regions" *

Value: "[{"region":"<REGION>", * "accounts":[{"id":"<ACCOUNT_ID>"}]}]"

*/ inline UpdateAppVersionRequest& AddAdditionalInfo(const char* key, const Aws::Vector& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, 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 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 UpdateAppVersionRequest& 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 UpdateAppVersionRequest& 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 UpdateAppVersionRequest& WithAppArn(const char* value) { SetAppArn(value); return *this;} private: Aws::Map> m_additionalInfo; bool m_additionalInfoHasBeenSet = false; Aws::String m_appArn; bool m_appArnHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws