AWS SDK for C++  1.9.129
AWS SDK for C++
CreateTransitGatewayRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateTransitGateway"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetDescription() const{ return m_description; }
46 
50  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 
55  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
56 
60  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 
65  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 
70  inline CreateTransitGatewayRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
71 
75  inline CreateTransitGatewayRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 
80  inline CreateTransitGatewayRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81 
82 
86  inline const TransitGatewayRequestOptions& GetOptions() const{ return m_options; }
87 
91  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
92 
96  inline void SetOptions(const TransitGatewayRequestOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
97 
101  inline void SetOptions(TransitGatewayRequestOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
102 
106  inline CreateTransitGatewayRequest& WithOptions(const TransitGatewayRequestOptions& value) { SetOptions(value); return *this;}
107 
111  inline CreateTransitGatewayRequest& WithOptions(TransitGatewayRequestOptions&& value) { SetOptions(std::move(value)); return *this;}
112 
113 
117  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
118 
122  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
123 
127  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
128 
132  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
133 
137  inline CreateTransitGatewayRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
138 
142  inline CreateTransitGatewayRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
143 
147  inline CreateTransitGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
148 
152  inline CreateTransitGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
153 
154 
161  inline bool GetDryRun() const{ return m_dryRun; }
162 
169  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
170 
177  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
178 
185  inline CreateTransitGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
186 
187  private:
188 
189  Aws::String m_description;
190  bool m_descriptionHasBeenSet;
191 
193  bool m_optionsHasBeenSet;
194 
195  Aws::Vector<TagSpecification> m_tagSpecifications;
196  bool m_tagSpecificationsHasBeenSet;
197 
198  bool m_dryRun;
199  bool m_dryRunHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace EC2
204 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreateTransitGatewayRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateTransitGatewayRequest.h:122
Aws::EC2::Model::TransitGatewayRequestOptions
Definition: TransitGatewayRequestOptions.h:39
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateTransitGatewayRequest::WithDescription
CreateTransitGatewayRequest & WithDescription(const Aws::String &value)
Definition: CreateTransitGatewayRequest.h:70
Aws::EC2::Model::CreateTransitGatewayRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateTransitGatewayRequest.h:50
Aws::EC2::Model::CreateTransitGatewayRequest::WithTagSpecifications
CreateTransitGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayRequest.h:142
Aws::EC2::Model::CreateTransitGatewayRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateTransitGatewayRequest.h:60
Aws::EC2::Model::CreateTransitGatewayRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateTransitGatewayRequest.h:65
TransitGatewayRequestOptions.h
Aws::EC2::Model::CreateTransitGatewayRequest::SetOptions
void SetOptions(const TransitGatewayRequestOptions &value)
Definition: CreateTransitGatewayRequest.h:96
Aws::EC2::Model::CreateTransitGatewayRequest::WithDryRun
CreateTransitGatewayRequest & WithDryRun(bool value)
Definition: CreateTransitGatewayRequest.h:185
Aws::EC2::Model::CreateTransitGatewayRequest::WithOptions
CreateTransitGatewayRequest & WithOptions(const TransitGatewayRequestOptions &value)
Definition: CreateTransitGatewayRequest.h:106
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateTransitGatewayRequest::WithTagSpecifications
CreateTransitGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayRequest.h:137
Aws::EC2::Model::CreateTransitGatewayRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateTransitGatewayRequest.h:55
Aws::EC2::Model::CreateTransitGatewayRequest::WithDescription
CreateTransitGatewayRequest & WithDescription(Aws::String &&value)
Definition: CreateTransitGatewayRequest.h:75
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::CreateTransitGatewayRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateTransitGatewayRequest.h:169
Aws::EC2::Model::CreateTransitGatewayRequest::GetDryRun
bool GetDryRun() const
Definition: CreateTransitGatewayRequest.h:161
Aws::EC2::Model::CreateTransitGatewayRequest::GetOptions
const TransitGatewayRequestOptions & GetOptions() const
Definition: CreateTransitGatewayRequest.h:86
Aws::EC2::Model::CreateTransitGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTransitGatewayRequest.h:33
Aws::EC2::Model::CreateTransitGatewayRequest
Definition: CreateTransitGatewayRequest.h:25
Aws::EC2::Model::CreateTransitGatewayRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateTransitGatewayRequest.h:45
EC2Request.h
Aws::EC2::Model::CreateTransitGatewayRequest::WithDescription
CreateTransitGatewayRequest & WithDescription(const char *value)
Definition: CreateTransitGatewayRequest.h:80
AWSString.h
Aws::EC2::Model::CreateTransitGatewayRequest::CreateTransitGatewayRequest
CreateTransitGatewayRequest()
Aws::EC2::Model::CreateTransitGatewayRequest::AddTagSpecifications
CreateTransitGatewayRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateTransitGatewayRequest.h:152
Aws::EC2::Model::CreateTransitGatewayRequest::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: CreateTransitGatewayRequest.h:91
Aws::EC2::Model::CreateTransitGatewayRequest::SetOptions
void SetOptions(TransitGatewayRequestOptions &&value)
Definition: CreateTransitGatewayRequest.h:101
Aws::EC2::Model::CreateTransitGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateTransitGatewayRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateTransitGatewayRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTransitGatewayRequest.h:132
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateTransitGatewayRequest::WithOptions
CreateTransitGatewayRequest & WithOptions(TransitGatewayRequestOptions &&value)
Definition: CreateTransitGatewayRequest.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateTransitGatewayRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTransitGatewayRequest.h:127
Aws::EC2::Model::CreateTransitGatewayRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateTransitGatewayRequest.h:177
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateTransitGatewayRequest::AddTagSpecifications
CreateTransitGatewayRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateTransitGatewayRequest.h:147
Aws::EC2::Model::CreateTransitGatewayRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateTransitGatewayRequest.h:117