AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateTransitGatewayRequest.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/TransitGatewayRequestOptions.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API CreateTransitGatewayRequest() = 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 "CreateTransitGateway"; }
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 const Aws::String& GetDescription() const { return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 template <typename DescriptionT = Aws::String>
45 void SetDescription(DescriptionT&& value) {
46 m_descriptionHasBeenSet = true;
47 m_description = std::forward<DescriptionT>(value);
48 }
49 template <typename DescriptionT = Aws::String>
51 SetDescription(std::forward<DescriptionT>(value));
52 return *this;
53 }
55
57
60 inline const TransitGatewayRequestOptions& GetOptions() const { return m_options; }
61 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
62 template <typename OptionsT = TransitGatewayRequestOptions>
63 void SetOptions(OptionsT&& value) {
64 m_optionsHasBeenSet = true;
65 m_options = std::forward<OptionsT>(value);
66 }
67 template <typename OptionsT = TransitGatewayRequestOptions>
69 SetOptions(std::forward<OptionsT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
79 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
80 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
81 void SetTagSpecifications(TagSpecificationsT&& value) {
82 m_tagSpecificationsHasBeenSet = true;
83 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
84 }
85 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
87 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
88 return *this;
89 }
90 template <typename TagSpecificationsT = TagSpecification>
92 m_tagSpecificationsHasBeenSet = true;
93 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
94 return *this;
95 }
97
99
105 inline bool GetDryRun() const { return m_dryRun; }
106 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
107 inline void SetDryRun(bool value) {
108 m_dryRunHasBeenSet = true;
109 m_dryRun = value;
110 }
112 SetDryRun(value);
113 return *this;
114 }
116 private:
117 Aws::String m_description;
118
120
121 Aws::Vector<TagSpecification> m_tagSpecifications;
122
123 bool m_dryRun{false};
124 bool m_descriptionHasBeenSet = false;
125 bool m_optionsHasBeenSet = false;
126 bool m_tagSpecificationsHasBeenSet = false;
127 bool m_dryRunHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace EC2
132} // namespace Aws
CreateTransitGatewayRequest & WithTagSpecifications(TagSpecificationsT &&value)
virtual const char * GetServiceRequestName() const override
const TransitGatewayRequestOptions & GetOptions() const
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AWS_EC2_API CreateTransitGatewayRequest()=default
CreateTransitGatewayRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTransitGatewayRequest & WithDescription(DescriptionT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateTransitGatewayRequest & WithOptions(OptionsT &&value)
CreateTransitGatewayRequest & AddTagSpecifications(TagSpecificationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector