AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateTransitGatewayRouteRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API CreateTransitGatewayRouteRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateTransitGatewayRoute"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
40 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
41 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
42 template <typename DestinationCidrBlockT = Aws::String>
43 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) {
44 m_destinationCidrBlockHasBeenSet = true;
45 m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value);
46 }
47 template <typename DestinationCidrBlockT = Aws::String>
49 SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTransitGatewayRouteTableId() const { return m_transitGatewayRouteTableId; }
59 inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
60 template <typename TransitGatewayRouteTableIdT = Aws::String>
61 void SetTransitGatewayRouteTableId(TransitGatewayRouteTableIdT&& value) {
62 m_transitGatewayRouteTableIdHasBeenSet = true;
63 m_transitGatewayRouteTableId = std::forward<TransitGatewayRouteTableIdT>(value);
64 }
65 template <typename TransitGatewayRouteTableIdT = Aws::String>
67 SetTransitGatewayRouteTableId(std::forward<TransitGatewayRouteTableIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
77 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
78 template <typename TransitGatewayAttachmentIdT = Aws::String>
79 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
80 m_transitGatewayAttachmentIdHasBeenSet = true;
81 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
82 }
83 template <typename TransitGatewayAttachmentIdT = Aws::String>
85 SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value));
86 return *this;
87 }
89
91
94 inline bool GetBlackhole() const { return m_blackhole; }
95 inline bool BlackholeHasBeenSet() const { return m_blackholeHasBeenSet; }
96 inline void SetBlackhole(bool value) {
97 m_blackholeHasBeenSet = true;
98 m_blackhole = value;
99 }
101 SetBlackhole(value);
102 return *this;
103 }
105
107
113 inline bool GetDryRun() const { return m_dryRun; }
114 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
115 inline void SetDryRun(bool value) {
116 m_dryRunHasBeenSet = true;
117 m_dryRun = value;
118 }
120 SetDryRun(value);
121 return *this;
122 }
124 private:
125 Aws::String m_destinationCidrBlock;
126
127 Aws::String m_transitGatewayRouteTableId;
128
129 Aws::String m_transitGatewayAttachmentId;
130
131 bool m_blackhole{false};
132
133 bool m_dryRun{false};
134 bool m_destinationCidrBlockHasBeenSet = false;
135 bool m_transitGatewayRouteTableIdHasBeenSet = false;
136 bool m_transitGatewayAttachmentIdHasBeenSet = false;
137 bool m_blackholeHasBeenSet = false;
138 bool m_dryRunHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace EC2
143} // namespace Aws
void SetTransitGatewayRouteTableId(TransitGatewayRouteTableIdT &&value)
CreateTransitGatewayRouteRequest & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
CreateTransitGatewayRouteRequest & WithBlackhole(bool value)
CreateTransitGatewayRouteRequest & WithDryRun(bool value)
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateTransitGatewayRouteRequest & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTransitGatewayRouteRequest & WithTransitGatewayRouteTableId(TransitGatewayRouteTableIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String