AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateVpnConcentratorRequest.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#include <aws/ec2/model/VpnConcentratorType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API CreateVpnConcentratorRequest() = default;
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 "CreateVpnConcentrator"; }
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
42 inline VpnConcentratorType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(VpnConcentratorType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
59 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
60 template <typename TransitGatewayIdT = Aws::String>
61 void SetTransitGatewayId(TransitGatewayIdT&& value) {
62 m_transitGatewayIdHasBeenSet = true;
63 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
64 }
65 template <typename TransitGatewayIdT = Aws::String>
67 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
77 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
78 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
79 void SetTagSpecifications(TagSpecificationsT&& value) {
80 m_tagSpecificationsHasBeenSet = true;
81 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
82 }
83 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
85 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
86 return *this;
87 }
88 template <typename TagSpecificationsT = TagSpecification>
90 m_tagSpecificationsHasBeenSet = true;
91 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
92 return *this;
93 }
95
97
103 inline bool GetDryRun() const { return m_dryRun; }
104 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
105 inline void SetDryRun(bool value) {
106 m_dryRunHasBeenSet = true;
107 m_dryRun = value;
108 }
110 SetDryRun(value);
111 return *this;
112 }
114 private:
116
117 Aws::String m_transitGatewayId;
118
119 Aws::Vector<TagSpecification> m_tagSpecifications;
120
121 bool m_dryRun{false};
122 bool m_typeHasBeenSet = false;
123 bool m_transitGatewayIdHasBeenSet = false;
124 bool m_tagSpecificationsHasBeenSet = false;
125 bool m_dryRunHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace EC2
130} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
CreateVpnConcentratorRequest & WithType(VpnConcentratorType value)
CreateVpnConcentratorRequest & WithTransitGatewayId(TransitGatewayIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateVpnConcentratorRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateVpnConcentratorRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateVpnConcentratorRequest & WithDryRun(bool value)
AWS_EC2_API CreateVpnConcentratorRequest()=default
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector