AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetLocalGatewayId(const Aws::String& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = value; }
49 inline void SetLocalGatewayId(Aws::String&& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = std::move(value); }
50 inline void SetLocalGatewayId(const char* value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId.assign(value); }
52 inline CreateLocalGatewayRouteTableRequest& WithLocalGatewayId(Aws::String&& value) { SetLocalGatewayId(std::move(value)); return *this;}
53 inline CreateLocalGatewayRouteTableRequest& WithLocalGatewayId(const char* value) { SetLocalGatewayId(value); return *this;}
55
57
60 inline const LocalGatewayRouteTableMode& GetMode() const{ return m_mode; }
61 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
62 inline void SetMode(const LocalGatewayRouteTableMode& value) { m_modeHasBeenSet = true; m_mode = value; }
63 inline void SetMode(LocalGatewayRouteTableMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
65 inline CreateLocalGatewayRouteTableRequest& WithMode(LocalGatewayRouteTableMode&& value) { SetMode(std::move(value)); return *this;}
67
69
72 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
73 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
74 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
75 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
78 inline CreateLocalGatewayRouteTableRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
79 inline CreateLocalGatewayRouteTableRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
81
83
89 inline bool GetDryRun() const{ return m_dryRun; }
90 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
91 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
92 inline CreateLocalGatewayRouteTableRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
94 private:
95
96 Aws::String m_localGatewayId;
97 bool m_localGatewayIdHasBeenSet = false;
98
100 bool m_modeHasBeenSet = false;
101
102 Aws::Vector<TagSpecification> m_tagSpecifications;
103 bool m_tagSpecificationsHasBeenSet = false;
104
105 bool m_dryRun;
106 bool m_dryRunHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
CreateLocalGatewayRouteTableRequest & WithDryRun(bool value)
CreateLocalGatewayRouteTableRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateLocalGatewayRouteTableRequest & AddTagSpecifications(TagSpecification &&value)
CreateLocalGatewayRouteTableRequest & WithLocalGatewayId(Aws::String &&value)
CreateLocalGatewayRouteTableRequest & WithLocalGatewayId(const Aws::String &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateLocalGatewayRouteTableRequest & WithMode(const LocalGatewayRouteTableMode &value)
CreateLocalGatewayRouteTableRequest & WithLocalGatewayId(const char *value)
CreateLocalGatewayRouteTableRequest & AddTagSpecifications(const TagSpecification &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateLocalGatewayRouteTableRequest & WithMode(LocalGatewayRouteTableMode &&value)
CreateLocalGatewayRouteTableRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&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