AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLocalGatewayRouteTableRequest.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/ec2/model/LocalGatewayRouteTableMode.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EC2_API CreateLocalGatewayRouteTableRequest() = default;
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 "CreateLocalGatewayRouteTable"; }
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& GetLocalGatewayId() const { return m_localGatewayId; }
47 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
48 template<typename LocalGatewayIdT = Aws::String>
49 void SetLocalGatewayId(LocalGatewayIdT&& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = std::forward<LocalGatewayIdT>(value); }
50 template<typename LocalGatewayIdT = Aws::String>
51 CreateLocalGatewayRouteTableRequest& WithLocalGatewayId(LocalGatewayIdT&& value) { SetLocalGatewayId(std::forward<LocalGatewayIdT>(value)); return *this;}
53
55
58 inline LocalGatewayRouteTableMode GetMode() const { return m_mode; }
59 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
60 inline void SetMode(LocalGatewayRouteTableMode value) { m_modeHasBeenSet = true; m_mode = value; }
63
65
68 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
69 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
70 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
71 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
72 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
73 CreateLocalGatewayRouteTableRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
74 template<typename TagSpecificationsT = TagSpecification>
75 CreateLocalGatewayRouteTableRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
77
79
85 inline bool GetDryRun() const { return m_dryRun; }
86 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
87 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
88 inline CreateLocalGatewayRouteTableRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
90 private:
91
92 Aws::String m_localGatewayId;
93 bool m_localGatewayIdHasBeenSet = false;
94
96 bool m_modeHasBeenSet = false;
97
98 Aws::Vector<TagSpecification> m_tagSpecifications;
99 bool m_tagSpecificationsHasBeenSet = false;
100
101 bool m_dryRun{false};
102 bool m_dryRunHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EC2
107} // namespace Aws
CreateLocalGatewayRouteTableRequest & WithDryRun(bool value)
CreateLocalGatewayRouteTableRequest & WithMode(LocalGatewayRouteTableMode value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateLocalGatewayRouteTableRequest & WithLocalGatewayId(LocalGatewayIdT &&value)
CreateLocalGatewayRouteTableRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateLocalGatewayRouteTableRequest & WithTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector