AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateCoipPoolRequest.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 CreateCoipPoolRequest() = 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 "CreateCoipPool"; }
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
41 inline const Aws::String& GetLocalGatewayRouteTableId() const { return m_localGatewayRouteTableId; }
42 inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
43 template <typename LocalGatewayRouteTableIdT = Aws::String>
44 void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) {
45 m_localGatewayRouteTableIdHasBeenSet = true;
46 m_localGatewayRouteTableId = std::forward<LocalGatewayRouteTableIdT>(value);
47 }
48 template <typename LocalGatewayRouteTableIdT = Aws::String>
49 CreateCoipPoolRequest& WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) {
50 SetLocalGatewayRouteTableId(std::forward<LocalGatewayRouteTableIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
60 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
61 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
62 void SetTagSpecifications(TagSpecificationsT&& value) {
63 m_tagSpecificationsHasBeenSet = true;
64 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
65 }
66 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
67 CreateCoipPoolRequest& WithTagSpecifications(TagSpecificationsT&& value) {
68 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
69 return *this;
70 }
71 template <typename TagSpecificationsT = TagSpecification>
72 CreateCoipPoolRequest& AddTagSpecifications(TagSpecificationsT&& value) {
73 m_tagSpecificationsHasBeenSet = true;
74 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
75 return *this;
76 }
78
80
86 inline bool GetDryRun() const { return m_dryRun; }
87 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
88 inline void SetDryRun(bool value) {
89 m_dryRunHasBeenSet = true;
90 m_dryRun = value;
91 }
92 inline CreateCoipPoolRequest& WithDryRun(bool value) {
93 SetDryRun(value);
94 return *this;
95 }
97 private:
98 Aws::String m_localGatewayRouteTableId;
99
100 Aws::Vector<TagSpecification> m_tagSpecifications;
101
102 bool m_dryRun{false};
103 bool m_localGatewayRouteTableIdHasBeenSet = false;
104 bool m_tagSpecificationsHasBeenSet = false;
105 bool m_dryRunHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace EC2
110} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
CreateCoipPoolRequest & WithTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateCoipPoolRequest & WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
CreateCoipPoolRequest & AddTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API CreateCoipPoolRequest()=default
void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetLocalGatewayRouteTableId() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateCoipPoolRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector