AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssociateIpamResourceDiscoveryRequest.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:
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 "AssociateIpamResourceDiscovery"; }
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 }
52 SetDryRun(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetIpamId() const { return m_ipamId; }
62 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
63 template <typename IpamIdT = Aws::String>
64 void SetIpamId(IpamIdT&& value) {
65 m_ipamIdHasBeenSet = true;
66 m_ipamId = std::forward<IpamIdT>(value);
67 }
68 template <typename IpamIdT = Aws::String>
70 SetIpamId(std::forward<IpamIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetIpamResourceDiscoveryId() const { return m_ipamResourceDiscoveryId; }
80 inline bool IpamResourceDiscoveryIdHasBeenSet() const { return m_ipamResourceDiscoveryIdHasBeenSet; }
81 template <typename IpamResourceDiscoveryIdT = Aws::String>
82 void SetIpamResourceDiscoveryId(IpamResourceDiscoveryIdT&& value) {
83 m_ipamResourceDiscoveryIdHasBeenSet = true;
84 m_ipamResourceDiscoveryId = std::forward<IpamResourceDiscoveryIdT>(value);
85 }
86 template <typename IpamResourceDiscoveryIdT = Aws::String>
88 SetIpamResourceDiscoveryId(std::forward<IpamResourceDiscoveryIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
98 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
99 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
100 void SetTagSpecifications(TagSpecificationsT&& value) {
101 m_tagSpecificationsHasBeenSet = true;
102 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
103 }
104 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
106 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
107 return *this;
108 }
109 template <typename TagSpecificationsT = TagSpecification>
111 m_tagSpecificationsHasBeenSet = true;
112 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetClientToken() const { return m_clientToken; }
122 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
123 template <typename ClientTokenT = Aws::String>
124 void SetClientToken(ClientTokenT&& value) {
125 m_clientTokenHasBeenSet = true;
126 m_clientToken = std::forward<ClientTokenT>(value);
127 }
128 template <typename ClientTokenT = Aws::String>
130 SetClientToken(std::forward<ClientTokenT>(value));
131 return *this;
132 }
134 private:
135 bool m_dryRun{false};
136
137 Aws::String m_ipamId;
138
139 Aws::String m_ipamResourceDiscoveryId;
140
141 Aws::Vector<TagSpecification> m_tagSpecifications;
142
144 bool m_dryRunHasBeenSet = false;
145 bool m_ipamIdHasBeenSet = false;
146 bool m_ipamResourceDiscoveryIdHasBeenSet = false;
147 bool m_tagSpecificationsHasBeenSet = false;
148 bool m_clientTokenHasBeenSet = true;
149};
150
151} // namespace Model
152} // namespace EC2
153} // namespace Aws
AssociateIpamResourceDiscoveryRequest & WithDryRun(bool value)
AssociateIpamResourceDiscoveryRequest & AddTagSpecifications(TagSpecificationsT &&value)
AssociateIpamResourceDiscoveryRequest & WithIpamResourceDiscoveryId(IpamResourceDiscoveryIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AssociateIpamResourceDiscoveryRequest & WithIpamId(IpamIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssociateIpamResourceDiscoveryRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AssociateIpamResourceDiscoveryRequest & WithTagSpecifications(TagSpecificationsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector