AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCarrierGatewayRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace 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_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
47 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
48 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
49 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
50 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
51 inline CreateCarrierGatewayRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
52 inline CreateCarrierGatewayRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
53 inline CreateCarrierGatewayRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
55
57
60 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
61 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
62 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
63 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
66 inline CreateCarrierGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
67 inline CreateCarrierGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
69
71
77 inline bool GetDryRun() const{ return m_dryRun; }
78 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
79 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
80 inline CreateCarrierGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
82
84
90 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
91 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
92 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
93 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
94 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
95 inline CreateCarrierGatewayRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
96 inline CreateCarrierGatewayRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
97 inline CreateCarrierGatewayRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
99 private:
100
101 Aws::String m_vpcId;
102 bool m_vpcIdHasBeenSet = false;
103
104 Aws::Vector<TagSpecification> m_tagSpecifications;
105 bool m_tagSpecificationsHasBeenSet = false;
106
107 bool m_dryRun;
108 bool m_dryRunHasBeenSet = false;
109
110 Aws::String m_clientToken;
111 bool m_clientTokenHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
CreateCarrierGatewayRequest & WithClientToken(const Aws::String &value)
CreateCarrierGatewayRequest & AddTagSpecifications(const TagSpecification &value)
CreateCarrierGatewayRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateCarrierGatewayRequest & WithVpcId(const Aws::String &value)
CreateCarrierGatewayRequest & WithVpcId(Aws::String &&value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateCarrierGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateCarrierGatewayRequest & AddTagSpecifications(TagSpecification &&value)
virtual const char * GetServiceRequestName() const override
CreateCarrierGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateCarrierGatewayRequest & WithVpcId(const char *value)
CreateCarrierGatewayRequest & WithClientToken(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateCarrierGatewayRequest & WithClientToken(const char *value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
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