AWS SDK for C++  1.9.105
AWS SDK for C++
DescribeInstancesRequest.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 "DescribeInstances"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetStackId() const{ return m_stackId; }
43 
48  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
49 
54  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
55 
60  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
61 
66  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
67 
72  inline DescribeInstancesRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
73 
78  inline DescribeInstancesRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
79 
84  inline DescribeInstancesRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
85 
86 
91  inline const Aws::String& GetLayerId() const{ return m_layerId; }
92 
97  inline bool LayerIdHasBeenSet() const { return m_layerIdHasBeenSet; }
98 
103  inline void SetLayerId(const Aws::String& value) { m_layerIdHasBeenSet = true; m_layerId = value; }
104 
109  inline void SetLayerId(Aws::String&& value) { m_layerIdHasBeenSet = true; m_layerId = std::move(value); }
110 
115  inline void SetLayerId(const char* value) { m_layerIdHasBeenSet = true; m_layerId.assign(value); }
116 
121  inline DescribeInstancesRequest& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;}
122 
127  inline DescribeInstancesRequest& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;}
128 
133  inline DescribeInstancesRequest& WithLayerId(const char* value) { SetLayerId(value); return *this;}
134 
135 
141  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
142 
148  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
149 
155  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
156 
162  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
163 
169  inline DescribeInstancesRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
170 
176  inline DescribeInstancesRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
177 
183  inline DescribeInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
184 
190  inline DescribeInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
191 
197  inline DescribeInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
198 
199  private:
200 
201  Aws::String m_stackId;
202  bool m_stackIdHasBeenSet;
203 
204  Aws::String m_layerId;
205  bool m_layerIdHasBeenSet;
206 
207  Aws::Vector<Aws::String> m_instanceIds;
208  bool m_instanceIdsHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace OpsWorks
213 } // namespace Aws
Aws::OpsWorks::Model::DescribeInstancesRequest::AddInstanceIds
DescribeInstancesRequest & AddInstanceIds(const char *value)
Definition: DescribeInstancesRequest.h:197
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::DescribeInstancesRequest::SetStackId
void SetStackId(Aws::String &&value)
Definition: DescribeInstancesRequest.h:60
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeInstancesRequest::WithStackId
DescribeInstancesRequest & WithStackId(const char *value)
Definition: DescribeInstancesRequest.h:84
Aws::OpsWorks::Model::DescribeInstancesRequest::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: DescribeInstancesRequest.h:148
Aws::OpsWorks::Model::DescribeInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorks::Model::DescribeInstancesRequest::GetStackId
const Aws::String & GetStackId() const
Definition: DescribeInstancesRequest.h:42
Aws::OpsWorks::Model::DescribeInstancesRequest::DescribeInstancesRequest
DescribeInstancesRequest()
Aws::OpsWorks::Model::DescribeInstancesRequest::AddInstanceIds
DescribeInstancesRequest & AddInstanceIds(Aws::String &&value)
Definition: DescribeInstancesRequest.h:190
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::DescribeInstancesRequest::GetLayerId
const Aws::String & GetLayerId() const
Definition: DescribeInstancesRequest.h:91
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::DescribeInstancesRequest::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeInstancesRequest.h:155
OpsWorksRequest.h
Aws::OpsWorks::Model::DescribeInstancesRequest::WithLayerId
DescribeInstancesRequest & WithLayerId(Aws::String &&value)
Definition: DescribeInstancesRequest.h:127
Aws::OpsWorks::Model::DescribeInstancesRequest::SetStackId
void SetStackId(const char *value)
Definition: DescribeInstancesRequest.h:66
Aws::OpsWorks::Model::DescribeInstancesRequest::SetStackId
void SetStackId(const Aws::String &value)
Definition: DescribeInstancesRequest.h:54
Aws::OpsWorks::Model::DescribeInstancesRequest::AddInstanceIds
DescribeInstancesRequest & AddInstanceIds(const Aws::String &value)
Definition: DescribeInstancesRequest.h:183
Aws::OpsWorks::Model::DescribeInstancesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::OpsWorks::Model::DescribeInstancesRequest::WithLayerId
DescribeInstancesRequest & WithLayerId(const char *value)
Definition: DescribeInstancesRequest.h:133
Aws::OpsWorks::Model::DescribeInstancesRequest::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: DescribeInstancesRequest.h:48
Aws::OpsWorks::Model::DescribeInstancesRequest::WithInstanceIds
DescribeInstancesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeInstancesRequest.h:176
Aws::OpsWorks::Model::DescribeInstancesRequest::SetLayerId
void SetLayerId(const Aws::String &value)
Definition: DescribeInstancesRequest.h:103
Aws::OpsWorks::Model::DescribeInstancesRequest::SetLayerId
void SetLayerId(const char *value)
Definition: DescribeInstancesRequest.h:115
Aws::OpsWorks::Model::DescribeInstancesRequest::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: DescribeInstancesRequest.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DescribeInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeInstancesRequest.h:31
Aws::OpsWorks::Model::DescribeInstancesRequest
Definition: DescribeInstancesRequest.h:23
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::DescribeInstancesRequest::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeInstancesRequest.h:162
Aws::OpsWorks::Model::DescribeInstancesRequest::SetLayerId
void SetLayerId(Aws::String &&value)
Definition: DescribeInstancesRequest.h:109
Aws::OpsWorks::Model::DescribeInstancesRequest::WithLayerId
DescribeInstancesRequest & WithLayerId(const Aws::String &value)
Definition: DescribeInstancesRequest.h:121
Aws::OpsWorks::Model::DescribeInstancesRequest::WithInstanceIds
DescribeInstancesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeInstancesRequest.h:169
Aws::OpsWorks::Model::DescribeInstancesRequest::LayerIdHasBeenSet
bool LayerIdHasBeenSet() const
Definition: DescribeInstancesRequest.h:97
Aws::OpsWorks::Model::DescribeInstancesRequest::WithStackId
DescribeInstancesRequest & WithStackId(const Aws::String &value)
Definition: DescribeInstancesRequest.h:72
Aws::OpsWorks::Model::DescribeInstancesRequest::WithStackId
DescribeInstancesRequest & WithStackId(Aws::String &&value)
Definition: DescribeInstancesRequest.h:78