AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutHypervisorPropertyMappingsRequest.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/backup-gateway/BackupGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/backup-gateway/model/VmwareToAwsTagMapping.h>
12#include <utility>
13
14namespace Aws
15{
16namespace BackupGateway
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BACKUPGATEWAY_API PutHypervisorPropertyMappingsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutHypervisorPropertyMappings"; }
33
34 AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override;
35
36 AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetHypervisorArn() const{ return m_hypervisorArn; }
44 inline bool HypervisorArnHasBeenSet() const { return m_hypervisorArnHasBeenSet; }
45 inline void SetHypervisorArn(const Aws::String& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = value; }
46 inline void SetHypervisorArn(Aws::String&& value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn = std::move(value); }
47 inline void SetHypervisorArn(const char* value) { m_hypervisorArnHasBeenSet = true; m_hypervisorArn.assign(value); }
49 inline PutHypervisorPropertyMappingsRequest& WithHypervisorArn(Aws::String&& value) { SetHypervisorArn(std::move(value)); return *this;}
50 inline PutHypervisorPropertyMappingsRequest& WithHypervisorArn(const char* value) { SetHypervisorArn(value); return *this;}
52
54
57 inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
58 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
59 inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
60 inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
61 inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
63 inline PutHypervisorPropertyMappingsRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
64 inline PutHypervisorPropertyMappingsRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
66
68
72 inline const Aws::Vector<VmwareToAwsTagMapping>& GetVmwareToAwsTagMappings() const{ return m_vmwareToAwsTagMappings; }
73 inline bool VmwareToAwsTagMappingsHasBeenSet() const { return m_vmwareToAwsTagMappingsHasBeenSet; }
74 inline void SetVmwareToAwsTagMappings(const Aws::Vector<VmwareToAwsTagMapping>& value) { m_vmwareToAwsTagMappingsHasBeenSet = true; m_vmwareToAwsTagMappings = value; }
75 inline void SetVmwareToAwsTagMappings(Aws::Vector<VmwareToAwsTagMapping>&& value) { m_vmwareToAwsTagMappingsHasBeenSet = true; m_vmwareToAwsTagMappings = std::move(value); }
78 inline PutHypervisorPropertyMappingsRequest& AddVmwareToAwsTagMappings(const VmwareToAwsTagMapping& value) { m_vmwareToAwsTagMappingsHasBeenSet = true; m_vmwareToAwsTagMappings.push_back(value); return *this; }
79 inline PutHypervisorPropertyMappingsRequest& AddVmwareToAwsTagMappings(VmwareToAwsTagMapping&& value) { m_vmwareToAwsTagMappingsHasBeenSet = true; m_vmwareToAwsTagMappings.push_back(std::move(value)); return *this; }
81 private:
82
83 Aws::String m_hypervisorArn;
84 bool m_hypervisorArnHasBeenSet = false;
85
86 Aws::String m_iamRoleArn;
87 bool m_iamRoleArnHasBeenSet = false;
88
89 Aws::Vector<VmwareToAwsTagMapping> m_vmwareToAwsTagMappings;
90 bool m_vmwareToAwsTagMappingsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace BackupGateway
95} // namespace Aws
PutHypervisorPropertyMappingsRequest & WithIamRoleArn(const Aws::String &value)
PutHypervisorPropertyMappingsRequest & WithVmwareToAwsTagMappings(const Aws::Vector< VmwareToAwsTagMapping > &value)
PutHypervisorPropertyMappingsRequest & AddVmwareToAwsTagMappings(VmwareToAwsTagMapping &&value)
PutHypervisorPropertyMappingsRequest & WithIamRoleArn(const char *value)
PutHypervisorPropertyMappingsRequest & WithVmwareToAwsTagMappings(Aws::Vector< VmwareToAwsTagMapping > &&value)
PutHypervisorPropertyMappingsRequest & AddVmwareToAwsTagMappings(const VmwareToAwsTagMapping &value)
PutHypervisorPropertyMappingsRequest & WithIamRoleArn(Aws::String &&value)
void SetVmwareToAwsTagMappings(const Aws::Vector< VmwareToAwsTagMapping > &value)
PutHypervisorPropertyMappingsRequest & WithHypervisorArn(const char *value)
const Aws::Vector< VmwareToAwsTagMapping > & GetVmwareToAwsTagMappings() const
AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override
PutHypervisorPropertyMappingsRequest & WithHypervisorArn(const Aws::String &value)
AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutHypervisorPropertyMappingsRequest & WithHypervisorArn(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector