AWS SDK for C++  1.8.71
AWS SDK for C++
CreateCarrierGatewayRequest.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>
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
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 "CreateCarrierGateway"; }
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& GetVpcId() const{ return m_vpcId; }
46 
50  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
51 
55  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
56 
60  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
61 
65  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
66 
70  inline CreateCarrierGatewayRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
71 
75  inline CreateCarrierGatewayRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
76 
80  inline CreateCarrierGatewayRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
81 
82 
86  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
87 
91  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
92 
96  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
97 
101  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
102 
106  inline CreateCarrierGatewayRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
107 
111  inline CreateCarrierGatewayRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
112 
116  inline CreateCarrierGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
117 
121  inline CreateCarrierGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
122 
123 
130  inline bool GetDryRun() const{ return m_dryRun; }
131 
138  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
139 
146  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
147 
154  inline CreateCarrierGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
155 
156 
163  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
164 
171  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
172 
179  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
180 
187  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
188 
195  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
196 
203  inline CreateCarrierGatewayRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
204 
211  inline CreateCarrierGatewayRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
212 
219  inline CreateCarrierGatewayRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
220 
221  private:
222 
223  Aws::String m_vpcId;
224  bool m_vpcIdHasBeenSet;
225 
226  Aws::Vector<TagSpecification> m_tagSpecifications;
227  bool m_tagSpecificationsHasBeenSet;
228 
229  bool m_dryRun;
230  bool m_dryRunHasBeenSet;
231 
232  Aws::String m_clientToken;
233  bool m_clientTokenHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace EC2
238 } // namespace Aws
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateCarrierGatewayRequest & WithClientToken(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
virtual const char * GetServiceRequestName() const override
CreateCarrierGatewayRequest & WithVpcId(const char *value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateCarrierGatewayRequest & WithClientToken(const Aws::String &value)
CreateCarrierGatewayRequest & WithVpcId(Aws::String &&value)
CreateCarrierGatewayRequest & WithVpcId(const Aws::String &value)
CreateCarrierGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateCarrierGatewayRequest & WithClientToken(const char *value)
CreateCarrierGatewayRequest & AddTagSpecifications(const TagSpecification &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
CreateCarrierGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateCarrierGatewayRequest & AddTagSpecifications(TagSpecification &&value)
CreateCarrierGatewayRequest & WithDryRun(bool value)