AWS SDK for C++  1.9.105
AWS SDK for C++
DescribeVolumesRequest.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 "DescribeVolumes"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
43 
48  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
49 
54  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
55 
60  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
61 
66  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
67 
72  inline DescribeVolumesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
73 
78  inline DescribeVolumesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
79 
84  inline DescribeVolumesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
85 
86 
91  inline const Aws::String& GetStackId() const{ return m_stackId; }
92 
97  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
98 
103  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
104 
109  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
110 
115  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
116 
121  inline DescribeVolumesRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
122 
127  inline DescribeVolumesRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
128 
133  inline DescribeVolumesRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
134 
135 
141  inline const Aws::String& GetRaidArrayId() const{ return m_raidArrayId; }
142 
148  inline bool RaidArrayIdHasBeenSet() const { return m_raidArrayIdHasBeenSet; }
149 
155  inline void SetRaidArrayId(const Aws::String& value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId = value; }
156 
162  inline void SetRaidArrayId(Aws::String&& value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId = std::move(value); }
163 
169  inline void SetRaidArrayId(const char* value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId.assign(value); }
170 
176  inline DescribeVolumesRequest& WithRaidArrayId(const Aws::String& value) { SetRaidArrayId(value); return *this;}
177 
183  inline DescribeVolumesRequest& WithRaidArrayId(Aws::String&& value) { SetRaidArrayId(std::move(value)); return *this;}
184 
190  inline DescribeVolumesRequest& WithRaidArrayId(const char* value) { SetRaidArrayId(value); return *this;}
191 
192 
198  inline const Aws::Vector<Aws::String>& GetVolumeIds() const{ return m_volumeIds; }
199 
205  inline bool VolumeIdsHasBeenSet() const { return m_volumeIdsHasBeenSet; }
206 
212  inline void SetVolumeIds(const Aws::Vector<Aws::String>& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = value; }
213 
219  inline void SetVolumeIds(Aws::Vector<Aws::String>&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = std::move(value); }
220 
226  inline DescribeVolumesRequest& WithVolumeIds(const Aws::Vector<Aws::String>& value) { SetVolumeIds(value); return *this;}
227 
233  inline DescribeVolumesRequest& WithVolumeIds(Aws::Vector<Aws::String>&& value) { SetVolumeIds(std::move(value)); return *this;}
234 
240  inline DescribeVolumesRequest& AddVolumeIds(const Aws::String& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
241 
247  inline DescribeVolumesRequest& AddVolumeIds(Aws::String&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(std::move(value)); return *this; }
248 
254  inline DescribeVolumesRequest& AddVolumeIds(const char* value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
255 
256  private:
257 
258  Aws::String m_instanceId;
259  bool m_instanceIdHasBeenSet;
260 
261  Aws::String m_stackId;
262  bool m_stackIdHasBeenSet;
263 
264  Aws::String m_raidArrayId;
265  bool m_raidArrayIdHasBeenSet;
266 
267  Aws::Vector<Aws::String> m_volumeIds;
268  bool m_volumeIdsHasBeenSet;
269  };
270 
271 } // namespace Model
272 } // namespace OpsWorks
273 } // namespace Aws
Aws::OpsWorks::Model::DescribeVolumesRequest::SetVolumeIds
void SetVolumeIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVolumesRequest.h:212
Aws::OpsWorks::Model::DescribeVolumesRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: DescribeVolumesRequest.h:48
Aws::OpsWorks::Model::DescribeVolumesRequest
Definition: DescribeVolumesRequest.h:23
Aws::OpsWorks::Model::DescribeVolumesRequest::SetRaidArrayId
void SetRaidArrayId(const char *value)
Definition: DescribeVolumesRequest.h:169
Aws::OpsWorks::Model::DescribeVolumesRequest::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: DescribeVolumesRequest.h:97
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::DescribeVolumesRequest::WithInstanceId
DescribeVolumesRequest & WithInstanceId(Aws::String &&value)
Definition: DescribeVolumesRequest.h:78
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeVolumesRequest::SetRaidArrayId
void SetRaidArrayId(const Aws::String &value)
Definition: DescribeVolumesRequest.h:155
Aws::OpsWorks::Model::DescribeVolumesRequest::SetStackId
void SetStackId(const Aws::String &value)
Definition: DescribeVolumesRequest.h:103
Aws::OpsWorks::Model::DescribeVolumesRequest::VolumeIdsHasBeenSet
bool VolumeIdsHasBeenSet() const
Definition: DescribeVolumesRequest.h:205
Aws::OpsWorks::Model::DescribeVolumesRequest::AddVolumeIds
DescribeVolumesRequest & AddVolumeIds(Aws::String &&value)
Definition: DescribeVolumesRequest.h:247
Aws::OpsWorks::Model::DescribeVolumesRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: DescribeVolumesRequest.h:66
Aws::OpsWorks::Model::DescribeVolumesRequest::WithRaidArrayId
DescribeVolumesRequest & WithRaidArrayId(const Aws::String &value)
Definition: DescribeVolumesRequest.h:176
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::DescribeVolumesRequest::SetStackId
void SetStackId(Aws::String &&value)
Definition: DescribeVolumesRequest.h:109
Aws::OpsWorks::Model::DescribeVolumesRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: DescribeVolumesRequest.h:60
OpsWorksRequest.h
Aws::OpsWorks::Model::DescribeVolumesRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: DescribeVolumesRequest.h:42
Aws::OpsWorks::Model::DescribeVolumesRequest::WithRaidArrayId
DescribeVolumesRequest & WithRaidArrayId(Aws::String &&value)
Definition: DescribeVolumesRequest.h:183
Aws::OpsWorks::Model::DescribeVolumesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeVolumesRequest.h:31
Aws::OpsWorks::Model::DescribeVolumesRequest::SetRaidArrayId
void SetRaidArrayId(Aws::String &&value)
Definition: DescribeVolumesRequest.h:162
Aws::OpsWorks::Model::DescribeVolumesRequest::GetRaidArrayId
const Aws::String & GetRaidArrayId() const
Definition: DescribeVolumesRequest.h:141
Aws::OpsWorks::Model::DescribeVolumesRequest::AddVolumeIds
DescribeVolumesRequest & AddVolumeIds(const Aws::String &value)
Definition: DescribeVolumesRequest.h:240
Aws::OpsWorks::Model::DescribeVolumesRequest::WithVolumeIds
DescribeVolumesRequest & WithVolumeIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeVolumesRequest.h:226
Aws::OpsWorks::Model::DescribeVolumesRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::OpsWorks::Model::DescribeVolumesRequest::WithVolumeIds
DescribeVolumesRequest & WithVolumeIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVolumesRequest.h:233
Aws::OpsWorks::Model::DescribeVolumesRequest::DescribeVolumesRequest
DescribeVolumesRequest()
Aws::OpsWorks::Model::DescribeVolumesRequest::WithStackId
DescribeVolumesRequest & WithStackId(Aws::String &&value)
Definition: DescribeVolumesRequest.h:127
Aws::OpsWorks::Model::DescribeVolumesRequest::WithStackId
DescribeVolumesRequest & WithStackId(const Aws::String &value)
Definition: DescribeVolumesRequest.h:121
Aws::OpsWorks::Model::DescribeVolumesRequest::SetVolumeIds
void SetVolumeIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeVolumesRequest.h:219
Aws::OpsWorks::Model::DescribeVolumesRequest::GetVolumeIds
const Aws::Vector< Aws::String > & GetVolumeIds() const
Definition: DescribeVolumesRequest.h:198
Aws::OpsWorks::Model::DescribeVolumesRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: DescribeVolumesRequest.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DescribeVolumesRequest::GetStackId
const Aws::String & GetStackId() const
Definition: DescribeVolumesRequest.h:91
Aws::OpsWorks::Model::DescribeVolumesRequest::WithRaidArrayId
DescribeVolumesRequest & WithRaidArrayId(const char *value)
Definition: DescribeVolumesRequest.h:190
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::DescribeVolumesRequest::RaidArrayIdHasBeenSet
bool RaidArrayIdHasBeenSet() const
Definition: DescribeVolumesRequest.h:148
Aws::OpsWorks::Model::DescribeVolumesRequest::AddVolumeIds
DescribeVolumesRequest & AddVolumeIds(const char *value)
Definition: DescribeVolumesRequest.h:254
Aws::OpsWorks::Model::DescribeVolumesRequest::WithInstanceId
DescribeVolumesRequest & WithInstanceId(const char *value)
Definition: DescribeVolumesRequest.h:84
Aws::OpsWorks::Model::DescribeVolumesRequest::WithInstanceId
DescribeVolumesRequest & WithInstanceId(const Aws::String &value)
Definition: DescribeVolumesRequest.h:72
Aws::OpsWorks::Model::DescribeVolumesRequest::SetStackId
void SetStackId(const char *value)
Definition: DescribeVolumesRequest.h:115
Aws::OpsWorks::Model::DescribeVolumesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::DescribeVolumesRequest::WithStackId
DescribeVolumesRequest & WithStackId(const char *value)
Definition: DescribeVolumesRequest.h:133