AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeVolumesRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpsWorks
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPSWORKS_API DescribeVolumesRequest();
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_OPSWORKS_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
46 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
47 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline DescribeVolumesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline DescribeVolumesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline DescribeVolumesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
58 inline const Aws::String& GetStackId() const{ return m_stackId; }
59 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
60 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
61 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
62 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
63 inline DescribeVolumesRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
64 inline DescribeVolumesRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
65 inline DescribeVolumesRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
67
69
74 inline const Aws::String& GetRaidArrayId() const{ return m_raidArrayId; }
75 inline bool RaidArrayIdHasBeenSet() const { return m_raidArrayIdHasBeenSet; }
76 inline void SetRaidArrayId(const Aws::String& value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId = value; }
77 inline void SetRaidArrayId(Aws::String&& value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId = std::move(value); }
78 inline void SetRaidArrayId(const char* value) { m_raidArrayIdHasBeenSet = true; m_raidArrayId.assign(value); }
79 inline DescribeVolumesRequest& WithRaidArrayId(const Aws::String& value) { SetRaidArrayId(value); return *this;}
80 inline DescribeVolumesRequest& WithRaidArrayId(Aws::String&& value) { SetRaidArrayId(std::move(value)); return *this;}
81 inline DescribeVolumesRequest& WithRaidArrayId(const char* value) { SetRaidArrayId(value); return *this;}
83
85
90 inline const Aws::Vector<Aws::String>& GetVolumeIds() const{ return m_volumeIds; }
91 inline bool VolumeIdsHasBeenSet() const { return m_volumeIdsHasBeenSet; }
92 inline void SetVolumeIds(const Aws::Vector<Aws::String>& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = value; }
93 inline void SetVolumeIds(Aws::Vector<Aws::String>&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = std::move(value); }
94 inline DescribeVolumesRequest& WithVolumeIds(const Aws::Vector<Aws::String>& value) { SetVolumeIds(value); return *this;}
95 inline DescribeVolumesRequest& WithVolumeIds(Aws::Vector<Aws::String>&& value) { SetVolumeIds(std::move(value)); return *this;}
96 inline DescribeVolumesRequest& AddVolumeIds(const Aws::String& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
97 inline DescribeVolumesRequest& AddVolumeIds(Aws::String&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(std::move(value)); return *this; }
98 inline DescribeVolumesRequest& AddVolumeIds(const char* value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
100 private:
101
102 Aws::String m_instanceId;
103 bool m_instanceIdHasBeenSet = false;
104
105 Aws::String m_stackId;
106 bool m_stackIdHasBeenSet = false;
107
108 Aws::String m_raidArrayId;
109 bool m_raidArrayIdHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_volumeIds;
112 bool m_volumeIdsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace OpsWorks
117} // namespace Aws
DescribeVolumesRequest & WithRaidArrayId(const Aws::String &value)
DescribeVolumesRequest & WithRaidArrayId(Aws::String &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetVolumeIds() const
DescribeVolumesRequest & WithInstanceId(Aws::String &&value)
DescribeVolumesRequest & WithStackId(const char *value)
void SetVolumeIds(Aws::Vector< Aws::String > &&value)
void SetVolumeIds(const Aws::Vector< Aws::String > &value)
DescribeVolumesRequest & WithStackId(const Aws::String &value)
DescribeVolumesRequest & WithStackId(Aws::String &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
DescribeVolumesRequest & WithRaidArrayId(const char *value)
DescribeVolumesRequest & WithVolumeIds(Aws::Vector< Aws::String > &&value)
DescribeVolumesRequest & AddVolumeIds(Aws::String &&value)
DescribeVolumesRequest & AddVolumeIds(const char *value)
DescribeVolumesRequest & WithVolumeIds(const Aws::Vector< Aws::String > &value)
DescribeVolumesRequest & AddVolumeIds(const Aws::String &value)
DescribeVolumesRequest & WithInstanceId(const char *value)
DescribeVolumesRequest & WithInstanceId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector