/** * 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 BackupGateway { namespace Model { /** */ class PutHypervisorPropertyMappingsRequest : public BackupGatewayRequest { public: AWS_BACKUPGATEWAY_API PutHypervisorPropertyMappingsRequest(); // 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 "PutHypervisorPropertyMappings"; } AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override; AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the hypervisor.

*/ inline const Aws::String& GetHypervisorArn() const{ return m_hypervisorArn; } /** *

The Amazon Resource Name (ARN) of the hypervisor.

*/ inline bool HypervisorArnHasBeenSet() const { return m_hypervisorArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the hypervisor.

*/ inline void SetHypervisorArn(const Aws::String& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = value; } /** *

The Amazon Resource Name (ARN) of the hypervisor.

*/ inline void SetHypervisorArn(Aws::String&& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the hypervisor.

*/ inline void SetHypervisorArn(const char* value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the hypervisor.

*/ inline PutHypervisorPropertyMappingsRequest& WithHypervisorArn(const Aws::String& value) { SetHypervisorArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the hypervisor.

*/ inline PutHypervisorPropertyMappingsRequest& WithHypervisorArn(Aws::String&& value) { SetHypervisorArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the hypervisor.

*/ inline PutHypervisorPropertyMappingsRequest& WithHypervisorArn(const char* value) { SetHypervisorArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; } /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline PutHypervisorPropertyMappingsRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline PutHypervisorPropertyMappingsRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role.

*/ inline PutHypervisorPropertyMappingsRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;} /** *

This action requests the mappings of on-premises VMware tags to the Amazon * Web Services tags.

*/ inline const Aws::Vector& GetVmwareToAwsTagMappings() const{ return m_vmwareToAwsTagMappings; } /** *

This action requests the mappings of on-premises VMware tags to the Amazon * Web Services tags.

*/ inline bool VmwareToAwsTagMappingsHasBeenSet() const { return m_vmwareToAwsTagMappingsHasBeenSet; } /** *

This action requests the mappings of on-premises VMware tags to the Amazon * Web Services tags.

*/ inline void SetVmwareToAwsTagMappings(const Aws::Vector& value) { m_vmwareToAwsTagMappingsHasBeenSet = true; m_vmwareToAwsTagMappings = value; } /** *

This action requests the mappings of on-premises VMware tags to the Amazon * Web Services tags.

*/ inline void SetVmwareToAwsTagMappings(Aws::Vector&& value) { m_vmwareToAwsTagMappingsHasBeenSet = true; m_vmwareToAwsTagMappings = std::move(value); } /** *

This action requests the mappings of on-premises VMware tags to the Amazon * Web Services tags.

*/ inline PutHypervisorPropertyMappingsRequest& WithVmwareToAwsTagMappings(const Aws::Vector& value) { SetVmwareToAwsTagMappings(value); return *this;} /** *

This action requests the mappings of on-premises VMware tags to the Amazon * Web Services tags.

*/ inline PutHypervisorPropertyMappingsRequest& WithVmwareToAwsTagMappings(Aws::Vector&& value) { SetVmwareToAwsTagMappings(std::move(value)); return *this;} /** *

This action requests the mappings of on-premises VMware tags to the Amazon * Web Services tags.

*/ inline PutHypervisorPropertyMappingsRequest& AddVmwareToAwsTagMappings(const VmwareToAwsTagMapping& value) { m_vmwareToAwsTagMappingsHasBeenSet = true; m_vmwareToAwsTagMappings.push_back(value); return *this; } /** *

This action requests the mappings of on-premises VMware tags to the Amazon * Web Services tags.

*/ inline PutHypervisorPropertyMappingsRequest& AddVmwareToAwsTagMappings(VmwareToAwsTagMapping&& value) { m_vmwareToAwsTagMappingsHasBeenSet = true; m_vmwareToAwsTagMappings.push_back(std::move(value)); return *this; } private: Aws::String m_hypervisorArn; bool m_hypervisorArnHasBeenSet = false; Aws::String m_iamRoleArn; bool m_iamRoleArnHasBeenSet = false; Aws::Vector m_vmwareToAwsTagMappings; bool m_vmwareToAwsTagMappingsHasBeenSet = false; }; } // namespace Model } // namespace BackupGateway } // namespace Aws