AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AttachClassicLinkVpcRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API AttachClassicLinkVpcRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AttachClassicLinkVpc"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
43 inline bool GetDryRun() const { return m_dryRun; }
44 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
45 inline void SetDryRun(bool value) {
46 m_dryRunHasBeenSet = true;
47 m_dryRun = value;
48 }
50 SetDryRun(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
60 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
61 template <typename InstanceIdT = Aws::String>
62 void SetInstanceId(InstanceIdT&& value) {
63 m_instanceIdHasBeenSet = true;
64 m_instanceId = std::forward<InstanceIdT>(value);
65 }
66 template <typename InstanceIdT = Aws::String>
68 SetInstanceId(std::forward<InstanceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetVpcId() const { return m_vpcId; }
78 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
79 template <typename VpcIdT = Aws::String>
80 void SetVpcId(VpcIdT&& value) {
81 m_vpcIdHasBeenSet = true;
82 m_vpcId = std::forward<VpcIdT>(value);
83 }
84 template <typename VpcIdT = Aws::String>
86 SetVpcId(std::forward<VpcIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Vector<Aws::String>& GetGroups() const { return m_groups; }
97 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
98 template <typename GroupsT = Aws::Vector<Aws::String>>
99 void SetGroups(GroupsT&& value) {
100 m_groupsHasBeenSet = true;
101 m_groups = std::forward<GroupsT>(value);
102 }
103 template <typename GroupsT = Aws::Vector<Aws::String>>
105 SetGroups(std::forward<GroupsT>(value));
106 return *this;
107 }
108 template <typename GroupsT = Aws::String>
110 m_groupsHasBeenSet = true;
111 m_groups.emplace_back(std::forward<GroupsT>(value));
112 return *this;
113 }
115 private:
116 bool m_dryRun{false};
117
118 Aws::String m_instanceId;
119
120 Aws::String m_vpcId;
121
123 bool m_dryRunHasBeenSet = false;
124 bool m_instanceIdHasBeenSet = false;
125 bool m_vpcIdHasBeenSet = false;
126 bool m_groupsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace EC2
131} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector