AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateIpamResourceDiscoveryRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "AssociateIpamResourceDiscovery"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline bool GetDryRun() const { return m_dryRun; }
50 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
51 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 inline AssociateIpamResourceDiscoveryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
54
56
59 inline const Aws::String& GetIpamId() const { return m_ipamId; }
60 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
61 template<typename IpamIdT = Aws::String>
62 void SetIpamId(IpamIdT&& value) { m_ipamIdHasBeenSet = true; m_ipamId = std::forward<IpamIdT>(value); }
63 template<typename IpamIdT = Aws::String>
64 AssociateIpamResourceDiscoveryRequest& WithIpamId(IpamIdT&& value) { SetIpamId(std::forward<IpamIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetIpamResourceDiscoveryId() const { return m_ipamResourceDiscoveryId; }
72 inline bool IpamResourceDiscoveryIdHasBeenSet() const { return m_ipamResourceDiscoveryIdHasBeenSet; }
73 template<typename IpamResourceDiscoveryIdT = Aws::String>
74 void SetIpamResourceDiscoveryId(IpamResourceDiscoveryIdT&& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = std::forward<IpamResourceDiscoveryIdT>(value); }
75 template<typename IpamResourceDiscoveryIdT = Aws::String>
76 AssociateIpamResourceDiscoveryRequest& WithIpamResourceDiscoveryId(IpamResourceDiscoveryIdT&& value) { SetIpamResourceDiscoveryId(std::forward<IpamResourceDiscoveryIdT>(value)); return *this;}
78
80
83 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
84 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
85 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
86 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
87 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
88 AssociateIpamResourceDiscoveryRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
89 template<typename TagSpecificationsT = TagSpecification>
90 AssociateIpamResourceDiscoveryRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
92
94
97 inline const Aws::String& GetClientToken() const { return m_clientToken; }
98 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
99 template<typename ClientTokenT = Aws::String>
100 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
101 template<typename ClientTokenT = Aws::String>
102 AssociateIpamResourceDiscoveryRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
104 private:
105
106 bool m_dryRun{false};
107 bool m_dryRunHasBeenSet = false;
108
109 Aws::String m_ipamId;
110 bool m_ipamIdHasBeenSet = false;
111
112 Aws::String m_ipamResourceDiscoveryId;
113 bool m_ipamResourceDiscoveryIdHasBeenSet = false;
114
115 Aws::Vector<TagSpecification> m_tagSpecifications;
116 bool m_tagSpecificationsHasBeenSet = false;
117
119 bool m_clientTokenHasBeenSet = true;
120 };
121
122} // namespace Model
123} // namespace EC2
124} // 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