AWS SDK for C++  1.9.108
AWS SDK for C++
DescribeCommandsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace OpsWorks
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeCommands"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
44 
50  inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
51 
57  inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
58 
64  inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
65 
71  inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
72 
78  inline DescribeCommandsRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
79 
85  inline DescribeCommandsRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
86 
92  inline DescribeCommandsRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
93 
94 
100  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
101 
107  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
108 
114  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
115 
121  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
122 
128  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
129 
135  inline DescribeCommandsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
136 
142  inline DescribeCommandsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
143 
149  inline DescribeCommandsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
150 
151 
157  inline const Aws::Vector<Aws::String>& GetCommandIds() const{ return m_commandIds; }
158 
164  inline bool CommandIdsHasBeenSet() const { return m_commandIdsHasBeenSet; }
165 
171  inline void SetCommandIds(const Aws::Vector<Aws::String>& value) { m_commandIdsHasBeenSet = true; m_commandIds = value; }
172 
178  inline void SetCommandIds(Aws::Vector<Aws::String>&& value) { m_commandIdsHasBeenSet = true; m_commandIds = std::move(value); }
179 
185  inline DescribeCommandsRequest& WithCommandIds(const Aws::Vector<Aws::String>& value) { SetCommandIds(value); return *this;}
186 
192  inline DescribeCommandsRequest& WithCommandIds(Aws::Vector<Aws::String>&& value) { SetCommandIds(std::move(value)); return *this;}
193 
199  inline DescribeCommandsRequest& AddCommandIds(const Aws::String& value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(value); return *this; }
200 
206  inline DescribeCommandsRequest& AddCommandIds(Aws::String&& value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(std::move(value)); return *this; }
207 
213  inline DescribeCommandsRequest& AddCommandIds(const char* value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(value); return *this; }
214 
215  private:
216 
217  Aws::String m_deploymentId;
218  bool m_deploymentIdHasBeenSet;
219 
220  Aws::String m_instanceId;
221  bool m_instanceIdHasBeenSet;
222 
223  Aws::Vector<Aws::String> m_commandIds;
224  bool m_commandIdsHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace OpsWorks
229 } // namespace Aws
Aws::OpsWorks::Model::DescribeCommandsRequest::SetCommandIds
void SetCommandIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeCommandsRequest.h:178
Aws::OpsWorks::Model::DescribeCommandsRequest::AddCommandIds
DescribeCommandsRequest & AddCommandIds(const Aws::String &value)
Definition: DescribeCommandsRequest.h:199
Aws::OpsWorks::Model::DescribeCommandsRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: DescribeCommandsRequest.h:107
Aws::OpsWorks::Model::DescribeCommandsRequest::SetDeploymentId
void SetDeploymentId(const char *value)
Definition: DescribeCommandsRequest.h:71
Aws::OpsWorks::Model::DescribeCommandsRequest::SetCommandIds
void SetCommandIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeCommandsRequest.h:171
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::DescribeCommandsRequest::AddCommandIds
DescribeCommandsRequest & AddCommandIds(Aws::String &&value)
Definition: DescribeCommandsRequest.h:206
Aws::OpsWorks::Model::DescribeCommandsRequest::CommandIdsHasBeenSet
bool CommandIdsHasBeenSet() const
Definition: DescribeCommandsRequest.h:164
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeCommandsRequest::SetDeploymentId
void SetDeploymentId(Aws::String &&value)
Definition: DescribeCommandsRequest.h:64
Aws::OpsWorks::Model::DescribeCommandsRequest::AddCommandIds
DescribeCommandsRequest & AddCommandIds(const char *value)
Definition: DescribeCommandsRequest.h:213
Aws::OpsWorks::Model::DescribeCommandsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::DescribeCommandsRequest::GetDeploymentId
const Aws::String & GetDeploymentId() const
Definition: DescribeCommandsRequest.h:43
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorks::Model::DescribeCommandsRequest::DescribeCommandsRequest
DescribeCommandsRequest()
AWSVector.h
Aws::OpsWorks::Model::DescribeCommandsRequest
Definition: DescribeCommandsRequest.h:23
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::DescribeCommandsRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: DescribeCommandsRequest.h:100
Aws::OpsWorks::Model::DescribeCommandsRequest::WithCommandIds
DescribeCommandsRequest & WithCommandIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeCommandsRequest.h:185
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::DescribeCommandsRequest::WithInstanceId
DescribeCommandsRequest & WithInstanceId(Aws::String &&value)
Definition: DescribeCommandsRequest.h:142
OpsWorksRequest.h
Aws::OpsWorks::Model::DescribeCommandsRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: DescribeCommandsRequest.h:121
Aws::OpsWorks::Model::DescribeCommandsRequest::WithDeploymentId
DescribeCommandsRequest & WithDeploymentId(Aws::String &&value)
Definition: DescribeCommandsRequest.h:85
Aws::OpsWorks::Model::DescribeCommandsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeCommandsRequest.h:31
Aws::OpsWorks::Model::DescribeCommandsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::DescribeCommandsRequest::GetCommandIds
const Aws::Vector< Aws::String > & GetCommandIds() const
Definition: DescribeCommandsRequest.h:157
Aws::OpsWorks::Model::DescribeCommandsRequest::SetDeploymentId
void SetDeploymentId(const Aws::String &value)
Definition: DescribeCommandsRequest.h:57
Aws::OpsWorks::Model::DescribeCommandsRequest::WithDeploymentId
DescribeCommandsRequest & WithDeploymentId(const char *value)
Definition: DescribeCommandsRequest.h:92
Aws::OpsWorks::Model::DescribeCommandsRequest::WithDeploymentId
DescribeCommandsRequest & WithDeploymentId(const Aws::String &value)
Definition: DescribeCommandsRequest.h:78
AWSString.h
Aws::OpsWorks::Model::DescribeCommandsRequest::DeploymentIdHasBeenSet
bool DeploymentIdHasBeenSet() const
Definition: DescribeCommandsRequest.h:50
Aws::OpsWorks::Model::DescribeCommandsRequest::WithInstanceId
DescribeCommandsRequest & WithInstanceId(const Aws::String &value)
Definition: DescribeCommandsRequest.h:135
Aws::OpsWorks::Model::DescribeCommandsRequest::WithCommandIds
DescribeCommandsRequest & WithCommandIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeCommandsRequest.h:192
Aws::OpsWorks::Model::DescribeCommandsRequest::WithInstanceId
DescribeCommandsRequest & WithInstanceId(const char *value)
Definition: DescribeCommandsRequest.h:149
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DescribeCommandsRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: DescribeCommandsRequest.h:128
Aws::OpsWorks::Model::DescribeCommandsRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: DescribeCommandsRequest.h:114
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97