AWS SDK for C++

AWS SDK for C++ Version 1.11.862

Loading...
Searching...
No Matches
DisassociateApplicationStatusCheckRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/CustomTagKeyValueRequestPair.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
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 "DisassociateApplicationStatusCheck"; }
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:
39
42 inline const Aws::String& GetApplicationStatusCheckId() const { return m_applicationStatusCheckId; }
43 inline bool ApplicationStatusCheckIdHasBeenSet() const { return m_applicationStatusCheckIdHasBeenSet; }
44 template <typename ApplicationStatusCheckIdT = Aws::String>
45 void SetApplicationStatusCheckId(ApplicationStatusCheckIdT&& value) {
46 m_applicationStatusCheckIdHasBeenSet = true;
47 m_applicationStatusCheckId = std::forward<ApplicationStatusCheckIdT>(value);
48 }
49 template <typename ApplicationStatusCheckIdT = Aws::String>
51 SetApplicationStatusCheckId(std::forward<ApplicationStatusCheckIdT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::Vector<CustomTagKeyValueRequestPair>& GetTargetTagAssociations() const { return m_targetTagAssociations; }
64 inline bool TargetTagAssociationsHasBeenSet() const { return m_targetTagAssociationsHasBeenSet; }
65 template <typename TargetTagAssociationsT = Aws::Vector<CustomTagKeyValueRequestPair>>
66 void SetTargetTagAssociations(TargetTagAssociationsT&& value) {
67 m_targetTagAssociationsHasBeenSet = true;
68 m_targetTagAssociations = std::forward<TargetTagAssociationsT>(value);
69 }
70 template <typename TargetTagAssociationsT = Aws::Vector<CustomTagKeyValueRequestPair>>
72 SetTargetTagAssociations(std::forward<TargetTagAssociationsT>(value));
73 return *this;
74 }
75 template <typename TargetTagAssociationsT = CustomTagKeyValueRequestPair>
77 m_targetTagAssociationsHasBeenSet = true;
78 m_targetTagAssociations.emplace_back(std::forward<TargetTagAssociationsT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
89 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
90 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
91 void SetInstanceIds(InstanceIdsT&& value) {
92 m_instanceIdsHasBeenSet = true;
93 m_instanceIds = std::forward<InstanceIdsT>(value);
94 }
95 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
97 SetInstanceIds(std::forward<InstanceIdsT>(value));
98 return *this;
99 }
100 template <typename InstanceIdsT = Aws::String>
102 m_instanceIdsHasBeenSet = true;
103 m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value));
104 return *this;
105 }
107
109
115 inline const Aws::String& GetClientToken() const { return m_clientToken; }
116 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
117 template <typename ClientTokenT = Aws::String>
118 void SetClientToken(ClientTokenT&& value) {
119 m_clientTokenHasBeenSet = true;
120 m_clientToken = std::forward<ClientTokenT>(value);
121 }
122 template <typename ClientTokenT = Aws::String>
124 SetClientToken(std::forward<ClientTokenT>(value));
125 return *this;
126 }
128
130
136 inline bool GetDryRun() const { return m_dryRun; }
137 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
138 inline void SetDryRun(bool value) {
139 m_dryRunHasBeenSet = true;
140 m_dryRun = value;
141 }
143 SetDryRun(value);
144 return *this;
145 }
147 private:
148 Aws::String m_applicationStatusCheckId;
149
150 Aws::Vector<CustomTagKeyValueRequestPair> m_targetTagAssociations;
151
152 Aws::Vector<Aws::String> m_instanceIds;
153
155
156 bool m_dryRun{false};
157 bool m_applicationStatusCheckIdHasBeenSet = false;
158 bool m_targetTagAssociationsHasBeenSet = false;
159 bool m_instanceIdsHasBeenSet = false;
160 bool m_clientTokenHasBeenSet = true;
161 bool m_dryRunHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace EC2
166} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< CustomTagKeyValueRequestPair > & GetTargetTagAssociations() const
DisassociateApplicationStatusCheckRequest & WithInstanceIds(InstanceIdsT &&value)
DisassociateApplicationStatusCheckRequest & WithTargetTagAssociations(TargetTagAssociationsT &&value)
DisassociateApplicationStatusCheckRequest & WithApplicationStatusCheckId(ApplicationStatusCheckIdT &&value)
DisassociateApplicationStatusCheckRequest & AddTargetTagAssociations(TargetTagAssociationsT &&value)
DisassociateApplicationStatusCheckRequest & WithClientToken(ClientTokenT &&value)
DisassociateApplicationStatusCheckRequest & AddInstanceIds(InstanceIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector