AWS SDK for C++  1.9.106
AWS SDK for C++
DescribeStacksRequest.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 "DescribeStacks"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::Vector<Aws::String>& GetStackIds() const{ return m_stackIds; }
44 
50  inline bool StackIdsHasBeenSet() const { return m_stackIdsHasBeenSet; }
51 
57  inline void SetStackIds(const Aws::Vector<Aws::String>& value) { m_stackIdsHasBeenSet = true; m_stackIds = value; }
58 
64  inline void SetStackIds(Aws::Vector<Aws::String>&& value) { m_stackIdsHasBeenSet = true; m_stackIds = std::move(value); }
65 
71  inline DescribeStacksRequest& WithStackIds(const Aws::Vector<Aws::String>& value) { SetStackIds(value); return *this;}
72 
78  inline DescribeStacksRequest& WithStackIds(Aws::Vector<Aws::String>&& value) { SetStackIds(std::move(value)); return *this;}
79 
85  inline DescribeStacksRequest& AddStackIds(const Aws::String& value) { m_stackIdsHasBeenSet = true; m_stackIds.push_back(value); return *this; }
86 
92  inline DescribeStacksRequest& AddStackIds(Aws::String&& value) { m_stackIdsHasBeenSet = true; m_stackIds.push_back(std::move(value)); return *this; }
93 
99  inline DescribeStacksRequest& AddStackIds(const char* value) { m_stackIdsHasBeenSet = true; m_stackIds.push_back(value); return *this; }
100 
101  private:
102 
103  Aws::Vector<Aws::String> m_stackIds;
104  bool m_stackIdsHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace OpsWorks
109 } // namespace Aws
Aws::OpsWorks::Model::DescribeStacksRequest::AddStackIds
DescribeStacksRequest & AddStackIds(const char *value)
Definition: DescribeStacksRequest.h:99
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
OpsWorks_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorks::Model::DescribeStacksRequest::AddStackIds
DescribeStacksRequest & AddStackIds(Aws::String &&value)
Definition: DescribeStacksRequest.h:92
Aws::OpsWorks::Model::DescribeStacksRequest::StackIdsHasBeenSet
bool StackIdsHasBeenSet() const
Definition: DescribeStacksRequest.h:50
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
OpsWorksRequest.h
Aws::OpsWorks::Model::DescribeStacksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeStacksRequest.h:31
Aws::OpsWorks::Model::DescribeStacksRequest
Definition: DescribeStacksRequest.h:23
Aws::OpsWorks::Model::DescribeStacksRequest::AddStackIds
DescribeStacksRequest & AddStackIds(const Aws::String &value)
Definition: DescribeStacksRequest.h:85
Aws::OpsWorks::Model::DescribeStacksRequest::GetStackIds
const Aws::Vector< Aws::String > & GetStackIds() const
Definition: DescribeStacksRequest.h:43
AWSString.h
Aws::OpsWorks::Model::DescribeStacksRequest::WithStackIds
DescribeStacksRequest & WithStackIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeStacksRequest.h:78
Aws::OpsWorks::Model::DescribeStacksRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::DescribeStacksRequest::DescribeStacksRequest
DescribeStacksRequest()
Aws::OpsWorks::Model::DescribeStacksRequest::WithStackIds
DescribeStacksRequest & WithStackIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeStacksRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::DescribeStacksRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::DescribeStacksRequest::SetStackIds
void SetStackIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeStacksRequest.h:57
Aws::OpsWorks::Model::DescribeStacksRequest::SetStackIds
void SetStackIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeStacksRequest.h:64