AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateIpamPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/TagSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API CreateIpamPolicyRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateIpamPolicy"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
45 inline bool GetDryRun() const { return m_dryRun; }
46 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
47 inline void SetDryRun(bool value) {
48 m_dryRunHasBeenSet = true;
49 m_dryRun = value;
50 }
51 inline CreateIpamPolicyRequest& WithDryRun(bool value) {
52 SetDryRun(value);
53 return *this;
54 }
56
58
61 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
62 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
63 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
64 void SetTagSpecifications(TagSpecificationsT&& value) {
65 m_tagSpecificationsHasBeenSet = true;
66 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
67 }
68 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
69 CreateIpamPolicyRequest& WithTagSpecifications(TagSpecificationsT&& value) {
70 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
71 return *this;
72 }
73 template <typename TagSpecificationsT = TagSpecification>
74 CreateIpamPolicyRequest& AddTagSpecifications(TagSpecificationsT&& value) {
75 m_tagSpecificationsHasBeenSet = true;
76 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetClientToken() const { return m_clientToken; }
87 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
88 template <typename ClientTokenT = Aws::String>
89 void SetClientToken(ClientTokenT&& value) {
90 m_clientTokenHasBeenSet = true;
91 m_clientToken = std::forward<ClientTokenT>(value);
92 }
93 template <typename ClientTokenT = Aws::String>
95 SetClientToken(std::forward<ClientTokenT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetIpamId() const { return m_ipamId; }
105 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
106 template <typename IpamIdT = Aws::String>
107 void SetIpamId(IpamIdT&& value) {
108 m_ipamIdHasBeenSet = true;
109 m_ipamId = std::forward<IpamIdT>(value);
110 }
111 template <typename IpamIdT = Aws::String>
113 SetIpamId(std::forward<IpamIdT>(value));
114 return *this;
115 }
117 private:
118 bool m_dryRun{false};
119
120 Aws::Vector<TagSpecification> m_tagSpecifications;
121
123
124 Aws::String m_ipamId;
125 bool m_dryRunHasBeenSet = false;
126 bool m_tagSpecificationsHasBeenSet = false;
127 bool m_clientTokenHasBeenSet = true;
128 bool m_ipamIdHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
CreateIpamPolicyRequest & AddTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateIpamPolicyRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateIpamPolicyRequest & WithIpamId(IpamIdT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
CreateIpamPolicyRequest & WithClientToken(ClientTokenT &&value)
CreateIpamPolicyRequest & WithTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API CreateIpamPolicyRequest()=default
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector