AWS SDK for C++  1.9.106
AWS SDK for C++
DescribeLayersRequest.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 "DescribeLayers"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetStackId() const{ return m_stackId; }
42 
46  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
47 
51  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
52 
56  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
57 
61  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
62 
66  inline DescribeLayersRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
67 
71  inline DescribeLayersRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
72 
76  inline DescribeLayersRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
77 
78 
84  inline const Aws::Vector<Aws::String>& GetLayerIds() const{ return m_layerIds; }
85 
91  inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; }
92 
98  inline void SetLayerIds(const Aws::Vector<Aws::String>& value) { m_layerIdsHasBeenSet = true; m_layerIds = value; }
99 
105  inline void SetLayerIds(Aws::Vector<Aws::String>&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::move(value); }
106 
112  inline DescribeLayersRequest& WithLayerIds(const Aws::Vector<Aws::String>& value) { SetLayerIds(value); return *this;}
113 
119  inline DescribeLayersRequest& WithLayerIds(Aws::Vector<Aws::String>&& value) { SetLayerIds(std::move(value)); return *this;}
120 
126  inline DescribeLayersRequest& AddLayerIds(const Aws::String& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
127 
133  inline DescribeLayersRequest& AddLayerIds(Aws::String&& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(std::move(value)); return *this; }
134 
140  inline DescribeLayersRequest& AddLayerIds(const char* value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
141 
142  private:
143 
144  Aws::String m_stackId;
145  bool m_stackIdHasBeenSet;
146 
147  Aws::Vector<Aws::String> m_layerIds;
148  bool m_layerIdsHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace OpsWorks
153 } // namespace Aws
Aws::OpsWorks::Model::DescribeLayersRequest::AddLayerIds
DescribeLayersRequest & AddLayerIds(Aws::String &&value)
Definition: DescribeLayersRequest.h:133
Aws::OpsWorks::Model::DescribeLayersRequest::SetLayerIds
void SetLayerIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeLayersRequest.h:98
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribeLayersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeLayersRequest.h:31
Aws::OpsWorks::Model::DescribeLayersRequest::GetStackId
const Aws::String & GetStackId() const
Definition: DescribeLayersRequest.h:41
Aws::OpsWorks::Model::DescribeLayersRequest::GetLayerIds
const Aws::Vector< Aws::String > & GetLayerIds() const
Definition: DescribeLayersRequest.h:84
Aws::OpsWorks::Model::DescribeLayersRequest::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: DescribeLayersRequest.h:46
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::OpsWorks::Model::DescribeLayersRequest::AddLayerIds
DescribeLayersRequest & AddLayerIds(const Aws::String &value)
Definition: DescribeLayersRequest.h:126
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::DescribeLayersRequest
Definition: DescribeLayersRequest.h:23
Aws::OpsWorks::Model::DescribeLayersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
OpsWorksRequest.h
Aws::OpsWorks::Model::DescribeLayersRequest::LayerIdsHasBeenSet
bool LayerIdsHasBeenSet() const
Definition: DescribeLayersRequest.h:91
Aws::OpsWorks::Model::DescribeLayersRequest::WithLayerIds
DescribeLayersRequest & WithLayerIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeLayersRequest.h:112
Aws::OpsWorks::Model::DescribeLayersRequest::WithStackId
DescribeLayersRequest & WithStackId(Aws::String &&value)
Definition: DescribeLayersRequest.h:71
Aws::OpsWorks::Model::DescribeLayersRequest::WithStackId
DescribeLayersRequest & WithStackId(const Aws::String &value)
Definition: DescribeLayersRequest.h:66
Aws::OpsWorks::Model::DescribeLayersRequest::WithStackId
DescribeLayersRequest & WithStackId(const char *value)
Definition: DescribeLayersRequest.h:76
AWSString.h
Aws::OpsWorks::Model::DescribeLayersRequest::SetStackId
void SetStackId(Aws::String &&value)
Definition: DescribeLayersRequest.h:56
Aws::OpsWorks::Model::DescribeLayersRequest::DescribeLayersRequest
DescribeLayersRequest()
Aws::OpsWorks::Model::DescribeLayersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::DescribeLayersRequest::SetStackId
void SetStackId(const Aws::String &value)
Definition: DescribeLayersRequest.h:51
Aws::OpsWorks::Model::DescribeLayersRequest::AddLayerIds
DescribeLayersRequest & AddLayerIds(const char *value)
Definition: DescribeLayersRequest.h:140
Aws::OpsWorks::Model::DescribeLayersRequest::SetLayerIds
void SetLayerIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeLayersRequest.h:105
Aws::OpsWorks::Model::DescribeLayersRequest::SetStackId
void SetStackId(const char *value)
Definition: DescribeLayersRequest.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::DescribeLayersRequest::WithLayerIds
DescribeLayersRequest & WithLayerIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeLayersRequest.h:119