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

Currently, there is no supported additional information for resources.

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

Currently, there is no supported additional information for resources.

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

Currently, there is no supported additional information for resources.

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

Currently, there is no supported additional information for resources.

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

Currently, there is no supported additional information for resources.

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

Currently, there is no supported additional information for resources.

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

Currently, there is no supported additional information for resources.

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

Currently, there is no supported additional information for resources.

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

Currently, there is no supported additional information for resources.

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

Currently, there is no supported additional information for resources.

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

Currently, there is no supported additional information for resources.

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

Currently, there is no supported additional information for resources.

*/ inline UpdateAppVersionResourceRequest& 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 UpdateAppVersionResourceRequest& 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 UpdateAppVersionResourceRequest& 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 UpdateAppVersionResourceRequest& WithAppArn(const char* value) { SetAppArn(value); return *this;} /** *

The list of Application Components that this resource belongs to. If an * Application Component is not part of the Resilience Hub application, it will be * added.

*/ inline const Aws::Vector& GetAppComponents() const{ return m_appComponents; } /** *

The list of Application Components that this resource belongs to. If an * Application Component is not part of the Resilience Hub application, it will be * added.

*/ inline bool AppComponentsHasBeenSet() const { return m_appComponentsHasBeenSet; } /** *

The list of Application Components that this resource belongs to. If an * Application Component is not part of the Resilience Hub application, it will be * added.

*/ inline void SetAppComponents(const Aws::Vector& value) { m_appComponentsHasBeenSet = true; m_appComponents = value; } /** *

The list of Application Components that this resource belongs to. If an * Application Component is not part of the Resilience Hub application, it will be * added.

*/ inline void SetAppComponents(Aws::Vector&& value) { m_appComponentsHasBeenSet = true; m_appComponents = std::move(value); } /** *

The list of Application Components that this resource belongs to. If an * Application Component is not part of the Resilience Hub application, it will be * added.

*/ inline UpdateAppVersionResourceRequest& WithAppComponents(const Aws::Vector& value) { SetAppComponents(value); return *this;} /** *

The list of Application Components that this resource belongs to. If an * Application Component is not part of the Resilience Hub application, it will be * added.

*/ inline UpdateAppVersionResourceRequest& WithAppComponents(Aws::Vector&& value) { SetAppComponents(std::move(value)); return *this;} /** *

The list of Application Components that this resource belongs to. If an * Application Component is not part of the Resilience Hub application, it will be * added.

*/ inline UpdateAppVersionResourceRequest& AddAppComponents(const Aws::String& value) { m_appComponentsHasBeenSet = true; m_appComponents.push_back(value); return *this; } /** *

The list of Application Components that this resource belongs to. If an * Application Component is not part of the Resilience Hub application, it will be * added.

*/ inline UpdateAppVersionResourceRequest& AddAppComponents(Aws::String&& value) { m_appComponentsHasBeenSet = true; m_appComponents.push_back(std::move(value)); return *this; } /** *

The list of Application Components that this resource belongs to. If an * Application Component is not part of the Resilience Hub application, it will be * added.

*/ inline UpdateAppVersionResourceRequest& AddAppComponents(const char* value) { m_appComponentsHasBeenSet = true; m_appComponents.push_back(value); return *this; } /** *

The Amazon Web Services account that owns the physical resource.

*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *

The Amazon Web Services account that owns the physical resource.

*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *

The Amazon Web Services account that owns the physical resource.

*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *

The Amazon Web Services account that owns the physical resource.

*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *

The Amazon Web Services account that owns the physical resource.

*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *

The Amazon Web Services account that owns the physical resource.

*/ inline UpdateAppVersionResourceRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *

The Amazon Web Services account that owns the physical resource.

*/ inline UpdateAppVersionResourceRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account that owns the physical resource.

*/ inline UpdateAppVersionResourceRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} /** *

The Amazon Web Services region that owns the physical resource.

*/ inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; } /** *

The Amazon Web Services region that owns the physical resource.

*/ inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; } /** *

The Amazon Web Services region that owns the physical resource.

*/ inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; } /** *

The Amazon Web Services region that owns the physical resource.

*/ inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); } /** *

The Amazon Web Services region that owns the physical resource.

*/ inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); } /** *

The Amazon Web Services region that owns the physical resource.

*/ inline UpdateAppVersionResourceRequest& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;} /** *

The Amazon Web Services region that owns the physical resource.

*/ inline UpdateAppVersionResourceRequest& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;} /** *

The Amazon Web Services region that owns the physical resource.

*/ inline UpdateAppVersionResourceRequest& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;} /** *

Indicates if a resource is excluded from an Resilience Hub application.

*

You can exclude only imported resources from an Resilience Hub * application.

*/ inline bool GetExcluded() const{ return m_excluded; } /** *

Indicates if a resource is excluded from an Resilience Hub application.

*

You can exclude only imported resources from an Resilience Hub * application.

*/ inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; } /** *

Indicates if a resource is excluded from an Resilience Hub application.

*

You can exclude only imported resources from an Resilience Hub * application.

*/ inline void SetExcluded(bool value) { m_excludedHasBeenSet = true; m_excluded = value; } /** *

Indicates if a resource is excluded from an Resilience Hub application.

*

You can exclude only imported resources from an Resilience Hub * application.

*/ inline UpdateAppVersionResourceRequest& WithExcluded(bool value) { SetExcluded(value); return *this;} /** *

The logical identifier of the resource.

*/ inline const LogicalResourceId& GetLogicalResourceId() const{ return m_logicalResourceId; } /** *

The logical identifier of the resource.

*/ inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; } /** *

The logical identifier of the resource.

*/ inline void SetLogicalResourceId(const LogicalResourceId& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; } /** *

The logical identifier of the resource.

*/ inline void SetLogicalResourceId(LogicalResourceId&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); } /** *

The logical identifier of the resource.

*/ inline UpdateAppVersionResourceRequest& WithLogicalResourceId(const LogicalResourceId& value) { SetLogicalResourceId(value); return *this;} /** *

The logical identifier of the resource.

*/ inline UpdateAppVersionResourceRequest& WithLogicalResourceId(LogicalResourceId&& value) { SetLogicalResourceId(std::move(value)); return *this;} /** *

The physical identifier of the resource.

*/ inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; } /** *

The physical identifier of the resource.

*/ inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; } /** *

The physical identifier of the resource.

*/ inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; } /** *

The physical identifier of the resource.

*/ inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); } /** *

The physical identifier of the resource.

*/ inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); } /** *

The physical identifier of the resource.

*/ inline UpdateAppVersionResourceRequest& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;} /** *

The physical identifier of the resource.

*/ inline UpdateAppVersionResourceRequest& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(std::move(value)); return *this;} /** *

The physical identifier of the resource.

*/ inline UpdateAppVersionResourceRequest& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;} /** *

The name of the resource.

*/ inline const Aws::String& GetResourceName() const{ return m_resourceName; } /** *

The name of the resource.

*/ inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; } /** *

The name of the resource.

*/ inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; } /** *

The name of the resource.

*/ inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); } /** *

The name of the resource.

*/ inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); } /** *

The name of the resource.

*/ inline UpdateAppVersionResourceRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;} /** *

The name of the resource.

*/ inline UpdateAppVersionResourceRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;} /** *

The name of the resource.

*/ inline UpdateAppVersionResourceRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;} /** *

The type of resource.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The type of resource.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of resource.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of resource.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of resource.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The type of resource.

*/ inline UpdateAppVersionResourceRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The type of resource.

*/ inline UpdateAppVersionResourceRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The type of resource.

*/ inline UpdateAppVersionResourceRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;} private: Aws::Map> m_additionalInfo; bool m_additionalInfoHasBeenSet = false; Aws::String m_appArn; bool m_appArnHasBeenSet = false; Aws::Vector m_appComponents; bool m_appComponentsHasBeenSet = false; Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_awsRegion; bool m_awsRegionHasBeenSet = false; bool m_excluded; bool m_excludedHasBeenSet = false; LogicalResourceId m_logicalResourceId; bool m_logicalResourceIdHasBeenSet = false; Aws::String m_physicalResourceId; bool m_physicalResourceIdHasBeenSet = false; Aws::String m_resourceName; bool m_resourceNameHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws