AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTransitGatewayRouteRequest.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 <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace Model
17{
18
22 {
23 public:
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 "CreateTransitGatewayRoute"; }
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:
38
40
44 inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
45 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
46 inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
47 inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
48 inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
51 inline CreateTransitGatewayRouteRequest& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
53
55
58 inline const Aws::String& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
59 inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
60 inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
61 inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
62 inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
67
69
72 inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
73 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
74 inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
75 inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
76 inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
81
83
86 inline bool GetBlackhole() const{ return m_blackhole; }
87 inline bool BlackholeHasBeenSet() const { return m_blackholeHasBeenSet; }
88 inline void SetBlackhole(bool value) { m_blackholeHasBeenSet = true; m_blackhole = value; }
89 inline CreateTransitGatewayRouteRequest& WithBlackhole(bool value) { SetBlackhole(value); return *this;}
91
93
99 inline bool GetDryRun() const{ return m_dryRun; }
100 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
101 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
102 inline CreateTransitGatewayRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
104 private:
105
106 Aws::String m_destinationCidrBlock;
107 bool m_destinationCidrBlockHasBeenSet = false;
108
109 Aws::String m_transitGatewayRouteTableId;
110 bool m_transitGatewayRouteTableIdHasBeenSet = false;
111
112 Aws::String m_transitGatewayAttachmentId;
113 bool m_transitGatewayAttachmentIdHasBeenSet = false;
114
115 bool m_blackhole;
116 bool m_blackholeHasBeenSet = false;
117
118 bool m_dryRun;
119 bool m_dryRunHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace EC2
124} // namespace Aws
CreateTransitGatewayRouteRequest & WithDestinationCidrBlock(const char *value)
CreateTransitGatewayRouteRequest & WithDestinationCidrBlock(Aws::String &&value)
CreateTransitGatewayRouteRequest & WithTransitGatewayAttachmentId(const char *value)
CreateTransitGatewayRouteRequest & WithBlackhole(bool value)
CreateTransitGatewayRouteRequest & WithDryRun(bool value)
CreateTransitGatewayRouteRequest & WithTransitGatewayRouteTableId(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateTransitGatewayRouteRequest & WithTransitGatewayRouteTableId(Aws::String &&value)
CreateTransitGatewayRouteRequest & WithTransitGatewayAttachmentId(Aws::String &&value)
CreateTransitGatewayRouteRequest & WithDestinationCidrBlock(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTransitGatewayRouteRequest & WithTransitGatewayAttachmentId(const Aws::String &value)
CreateTransitGatewayRouteRequest & WithTransitGatewayRouteTableId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String