AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateIpamResourceDiscoveryRequest.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/AddIpamOperatingRegion.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateIpamResourceDiscovery"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline bool GetDryRun() const{ return m_dryRun; }
51 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
52 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 inline CreateIpamResourceDiscoveryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline CreateIpamResourceDiscoveryRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline CreateIpamResourceDiscoveryRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
77 inline const Aws::Vector<AddIpamOperatingRegion>& GetOperatingRegions() const{ return m_operatingRegions; }
78 inline bool OperatingRegionsHasBeenSet() const { return m_operatingRegionsHasBeenSet; }
79 inline void SetOperatingRegions(const Aws::Vector<AddIpamOperatingRegion>& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions = value; }
80 inline void SetOperatingRegions(Aws::Vector<AddIpamOperatingRegion>&& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions = std::move(value); }
83 inline CreateIpamResourceDiscoveryRequest& AddOperatingRegions(const AddIpamOperatingRegion& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions.push_back(value); return *this; }
84 inline CreateIpamResourceDiscoveryRequest& AddOperatingRegions(AddIpamOperatingRegion&& value) { m_operatingRegionsHasBeenSet = true; m_operatingRegions.push_back(std::move(value)); return *this; }
86
88
91 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
92 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
93 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
94 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
97 inline CreateIpamResourceDiscoveryRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
98 inline CreateIpamResourceDiscoveryRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
100
102
105 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
106 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
107 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
108 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
109 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
111 inline CreateIpamResourceDiscoveryRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
112 inline CreateIpamResourceDiscoveryRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
114 private:
115
116 bool m_dryRun;
117 bool m_dryRunHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
122 Aws::Vector<AddIpamOperatingRegion> m_operatingRegions;
123 bool m_operatingRegionsHasBeenSet = false;
124
125 Aws::Vector<TagSpecification> m_tagSpecifications;
126 bool m_tagSpecificationsHasBeenSet = false;
127
128 Aws::String m_clientToken;
129 bool m_clientTokenHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace EC2
134} // namespace Aws
CreateIpamResourceDiscoveryRequest & WithClientToken(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateIpamResourceDiscoveryRequest & WithDryRun(bool value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateIpamResourceDiscoveryRequest & WithOperatingRegions(Aws::Vector< AddIpamOperatingRegion > &&value)
CreateIpamResourceDiscoveryRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateIpamResourceDiscoveryRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
const Aws::Vector< AddIpamOperatingRegion > & GetOperatingRegions() const
CreateIpamResourceDiscoveryRequest & WithClientToken(const Aws::String &value)
CreateIpamResourceDiscoveryRequest & WithClientToken(const char *value)
CreateIpamResourceDiscoveryRequest & WithDescription(Aws::String &&value)
CreateIpamResourceDiscoveryRequest & WithDescription(const char *value)
CreateIpamResourceDiscoveryRequest & WithOperatingRegions(const Aws::Vector< AddIpamOperatingRegion > &value)
CreateIpamResourceDiscoveryRequest & AddOperatingRegions(AddIpamOperatingRegion &&value)
CreateIpamResourceDiscoveryRequest & AddTagSpecifications(TagSpecification &&value)
void SetOperatingRegions(Aws::Vector< AddIpamOperatingRegion > &&value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetOperatingRegions(const Aws::Vector< AddIpamOperatingRegion > &value)
CreateIpamResourceDiscoveryRequest & AddTagSpecifications(const TagSpecification &value)
CreateIpamResourceDiscoveryRequest & AddOperatingRegions(const AddIpamOperatingRegion &value)
CreateIpamResourceDiscoveryRequest & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector