AWS SDK for C++  1.9.40
AWS SDK for C++
DisassociateNodeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace OpsWorksCM
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DisassociateNode"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetServerName() const{ return m_serverName; }
43 
47  inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
48 
52  inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
53 
57  inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
58 
62  inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
63 
67  inline DisassociateNodeRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
68 
72  inline DisassociateNodeRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
73 
77  inline DisassociateNodeRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
78 
79 
83  inline const Aws::String& GetNodeName() const{ return m_nodeName; }
84 
88  inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
89 
93  inline void SetNodeName(const Aws::String& value) { m_nodeNameHasBeenSet = true; m_nodeName = value; }
94 
98  inline void SetNodeName(Aws::String&& value) { m_nodeNameHasBeenSet = true; m_nodeName = std::move(value); }
99 
103  inline void SetNodeName(const char* value) { m_nodeNameHasBeenSet = true; m_nodeName.assign(value); }
104 
108  inline DisassociateNodeRequest& WithNodeName(const Aws::String& value) { SetNodeName(value); return *this;}
109 
113  inline DisassociateNodeRequest& WithNodeName(Aws::String&& value) { SetNodeName(std::move(value)); return *this;}
114 
118  inline DisassociateNodeRequest& WithNodeName(const char* value) { SetNodeName(value); return *this;}
119 
120 
129  inline const Aws::Vector<EngineAttribute>& GetEngineAttributes() const{ return m_engineAttributes; }
130 
139  inline bool EngineAttributesHasBeenSet() const { return m_engineAttributesHasBeenSet; }
140 
149  inline void SetEngineAttributes(const Aws::Vector<EngineAttribute>& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = value; }
150 
159  inline void SetEngineAttributes(Aws::Vector<EngineAttribute>&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = std::move(value); }
160 
169  inline DisassociateNodeRequest& WithEngineAttributes(const Aws::Vector<EngineAttribute>& value) { SetEngineAttributes(value); return *this;}
170 
179  inline DisassociateNodeRequest& WithEngineAttributes(Aws::Vector<EngineAttribute>&& value) { SetEngineAttributes(std::move(value)); return *this;}
180 
189  inline DisassociateNodeRequest& AddEngineAttributes(const EngineAttribute& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(value); return *this; }
190 
199  inline DisassociateNodeRequest& AddEngineAttributes(EngineAttribute&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(std::move(value)); return *this; }
200 
201  private:
202 
203  Aws::String m_serverName;
204  bool m_serverNameHasBeenSet;
205 
206  Aws::String m_nodeName;
207  bool m_nodeNameHasBeenSet;
208 
209  Aws::Vector<EngineAttribute> m_engineAttributes;
210  bool m_engineAttributesHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace OpsWorksCM
215 } // namespace Aws
Aws::OpsWorksCM::Model::DisassociateNodeRequest::WithServerName
DisassociateNodeRequest & WithServerName(const char *value)
Definition: DisassociateNodeRequest.h:77
Aws::OpsWorksCM::Model::DisassociateNodeRequest::AddEngineAttributes
DisassociateNodeRequest & AddEngineAttributes(const EngineAttribute &value)
Definition: DisassociateNodeRequest.h:189
Aws::OpsWorksCM::Model::DisassociateNodeRequest::SetNodeName
void SetNodeName(Aws::String &&value)
Definition: DisassociateNodeRequest.h:98
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorksCM::Model::DisassociateNodeRequest::DisassociateNodeRequest
DisassociateNodeRequest()
Aws::OpsWorksCM::Model::DisassociateNodeRequest::SetServerName
void SetServerName(const Aws::String &value)
Definition: DisassociateNodeRequest.h:52
Aws::OpsWorksCM::Model::DisassociateNodeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorksCM::Model::DisassociateNodeRequest::SetNodeName
void SetNodeName(const Aws::String &value)
Definition: DisassociateNodeRequest.h:93
Aws::OpsWorksCM::Model::DisassociateNodeRequest::AddEngineAttributes
DisassociateNodeRequest & AddEngineAttributes(EngineAttribute &&value)
Definition: DisassociateNodeRequest.h:199
Aws::OpsWorksCM::Model::DisassociateNodeRequest::WithEngineAttributes
DisassociateNodeRequest & WithEngineAttributes(const Aws::Vector< EngineAttribute > &value)
Definition: DisassociateNodeRequest.h:169
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorksCM::Model::DisassociateNodeRequest::GetEngineAttributes
const Aws::Vector< EngineAttribute > & GetEngineAttributes() const
Definition: DisassociateNodeRequest.h:129
OpsWorksCM_EXPORTS.h
Aws::OpsWorksCM::Model::DisassociateNodeRequest::WithNodeName
DisassociateNodeRequest & WithNodeName(const char *value)
Definition: DisassociateNodeRequest.h:118
AWSVector.h
Aws::OpsWorksCM::Model::DisassociateNodeRequest::SetEngineAttributes
void SetEngineAttributes(Aws::Vector< EngineAttribute > &&value)
Definition: DisassociateNodeRequest.h:159
Aws::OpsWorksCM::Model::DisassociateNodeRequest::SetServerName
void SetServerName(Aws::String &&value)
Definition: DisassociateNodeRequest.h:57
Aws::OpsWorksCM::Model::DisassociateNodeRequest
Definition: DisassociateNodeRequest.h:24
Aws::OpsWorksCM::Model::DisassociateNodeRequest::WithNodeName
DisassociateNodeRequest & WithNodeName(const Aws::String &value)
Definition: DisassociateNodeRequest.h:108
Aws::OpsWorksCM::Model::DisassociateNodeRequest::EngineAttributesHasBeenSet
bool EngineAttributesHasBeenSet() const
Definition: DisassociateNodeRequest.h:139
Aws::OpsWorksCM::Model::DisassociateNodeRequest::ServerNameHasBeenSet
bool ServerNameHasBeenSet() const
Definition: DisassociateNodeRequest.h:47
Aws::OpsWorksCM::Model::DisassociateNodeRequest::SetServerName
void SetServerName(const char *value)
Definition: DisassociateNodeRequest.h:62
Aws::OpsWorksCM::Model::DisassociateNodeRequest::SetEngineAttributes
void SetEngineAttributes(const Aws::Vector< EngineAttribute > &value)
Definition: DisassociateNodeRequest.h:149
Aws::OpsWorksCM::Model::DisassociateNodeRequest::WithServerName
DisassociateNodeRequest & WithServerName(Aws::String &&value)
Definition: DisassociateNodeRequest.h:72
Aws::OpsWorksCM::Model::DisassociateNodeRequest::WithServerName
DisassociateNodeRequest & WithServerName(const Aws::String &value)
Definition: DisassociateNodeRequest.h:67
Aws::OpsWorksCM::Model::DisassociateNodeRequest::WithNodeName
DisassociateNodeRequest & WithNodeName(Aws::String &&value)
Definition: DisassociateNodeRequest.h:113
OpsWorksCMRequest.h
Aws::OpsWorksCM::Model::DisassociateNodeRequest::GetNodeName
const Aws::String & GetNodeName() const
Definition: DisassociateNodeRequest.h:83
AWSString.h
AWS_OPSWORKSCM_API
#define AWS_OPSWORKSCM_API
Definition: OpsWorksCM_EXPORTS.h:28
Aws::OpsWorksCM::Model::DisassociateNodeRequest::WithEngineAttributes
DisassociateNodeRequest & WithEngineAttributes(Aws::Vector< EngineAttribute > &&value)
Definition: DisassociateNodeRequest.h:179
EngineAttribute.h
Aws::OpsWorksCM::Model::DisassociateNodeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DisassociateNodeRequest.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorksCM::Model::DisassociateNodeRequest::NodeNameHasBeenSet
bool NodeNameHasBeenSet() const
Definition: DisassociateNodeRequest.h:88
Aws::OpsWorksCM::Model::DisassociateNodeRequest::GetServerName
const Aws::String & GetServerName() const
Definition: DisassociateNodeRequest.h:42
Aws::OpsWorksCM::Model::DisassociateNodeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorksCM::Model::DisassociateNodeRequest::SetNodeName
void SetNodeName(const char *value)
Definition: DisassociateNodeRequest.h:103
Aws::OpsWorksCM::Model::EngineAttribute
Definition: EngineAttribute.h:33
Aws::OpsWorksCM::OpsWorksCMRequest
Definition: OpsWorksCMRequest.h:17