AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreatePublicIpv4PoolRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/TagSpecification.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API CreatePublicIpv4PoolRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreatePublicIpv4Pool"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
64 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
65 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
66 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
67 void SetTagSpecifications(TagSpecificationsT&& value) {
68 m_tagSpecificationsHasBeenSet = true;
69 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
70 }
71 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
73 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
74 return *this;
75 }
76 template <typename TagSpecificationsT = TagSpecification>
78 m_tagSpecificationsHasBeenSet = true;
79 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
80 return *this;
81 }
83
85
92 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
93 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
94 template <typename NetworkBorderGroupT = Aws::String>
95 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) {
96 m_networkBorderGroupHasBeenSet = true;
97 m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value);
98 }
99 template <typename NetworkBorderGroupT = Aws::String>
101 SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value));
102 return *this;
103 }
105 private:
106 bool m_dryRun{false};
107
108 Aws::Vector<TagSpecification> m_tagSpecifications;
109
110 Aws::String m_networkBorderGroup;
111 bool m_dryRunHasBeenSet = false;
112 bool m_tagSpecificationsHasBeenSet = false;
113 bool m_networkBorderGroupHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace EC2
118} // namespace Aws
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreatePublicIpv4PoolRequest & WithDryRun(bool value)
CreatePublicIpv4PoolRequest & AddTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
void SetNetworkBorderGroup(NetworkBorderGroupT &&value)
CreatePublicIpv4PoolRequest & WithTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API CreatePublicIpv4PoolRequest()=default
CreatePublicIpv4PoolRequest & WithNetworkBorderGroup(NetworkBorderGroupT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector