AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ReplaceTransitGatewayRouteRequest.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:
24 AWS_EC2_API ReplaceTransitGatewayRouteRequest() = default;
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 "ReplaceTransitGatewayRoute"; }
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 template<typename DestinationCidrBlockT = Aws::String>
47 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value); }
48 template<typename DestinationCidrBlockT = Aws::String>
49 ReplaceTransitGatewayRouteRequest& WithDestinationCidrBlock(DestinationCidrBlockT&& value) { SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value)); return *this;}
51
53
56 inline const Aws::String& GetTransitGatewayRouteTableId() const { return m_transitGatewayRouteTableId; }
57 inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
58 template<typename TransitGatewayRouteTableIdT = Aws::String>
59 void SetTransitGatewayRouteTableId(TransitGatewayRouteTableIdT&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::forward<TransitGatewayRouteTableIdT>(value); }
60 template<typename TransitGatewayRouteTableIdT = Aws::String>
61 ReplaceTransitGatewayRouteRequest& WithTransitGatewayRouteTableId(TransitGatewayRouteTableIdT&& value) { SetTransitGatewayRouteTableId(std::forward<TransitGatewayRouteTableIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
69 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
70 template<typename TransitGatewayAttachmentIdT = Aws::String>
71 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value); }
72 template<typename TransitGatewayAttachmentIdT = Aws::String>
73 ReplaceTransitGatewayRouteRequest& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value)); return *this;}
75
77
80 inline bool GetBlackhole() const { return m_blackhole; }
81 inline bool BlackholeHasBeenSet() const { return m_blackholeHasBeenSet; }
82 inline void SetBlackhole(bool value) { m_blackholeHasBeenSet = true; m_blackhole = value; }
83 inline ReplaceTransitGatewayRouteRequest& WithBlackhole(bool value) { SetBlackhole(value); return *this;}
85
87
93 inline bool GetDryRun() const { return m_dryRun; }
94 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
95 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
96 inline ReplaceTransitGatewayRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
98 private:
99
100 Aws::String m_destinationCidrBlock;
101 bool m_destinationCidrBlockHasBeenSet = false;
102
103 Aws::String m_transitGatewayRouteTableId;
104 bool m_transitGatewayRouteTableIdHasBeenSet = false;
105
106 Aws::String m_transitGatewayAttachmentId;
107 bool m_transitGatewayAttachmentIdHasBeenSet = false;
108
109 bool m_blackhole{false};
110 bool m_blackholeHasBeenSet = false;
111
112 bool m_dryRun{false};
113 bool m_dryRunHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace EC2
118} // namespace Aws
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ReplaceTransitGatewayRouteRequest & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
ReplaceTransitGatewayRouteRequest & WithBlackhole(bool value)
ReplaceTransitGatewayRouteRequest & WithDryRun(bool value)
ReplaceTransitGatewayRouteRequest & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
ReplaceTransitGatewayRouteRequest & WithTransitGatewayRouteTableId(TransitGatewayRouteTableIdT &&value)
void SetTransitGatewayRouteTableId(TransitGatewayRouteTableIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String