AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeEcsClustersRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpsWorks
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPSWORKS_API DescribeEcsClustersRequest() = default;
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 "DescribeEcsClusters"; }
32
33 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::Vector<Aws::String>& GetEcsClusterArns() const { return m_ecsClusterArns; }
43 inline bool EcsClusterArnsHasBeenSet() const { return m_ecsClusterArnsHasBeenSet; }
44 template<typename EcsClusterArnsT = Aws::Vector<Aws::String>>
45 void SetEcsClusterArns(EcsClusterArnsT&& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns = std::forward<EcsClusterArnsT>(value); }
46 template<typename EcsClusterArnsT = Aws::Vector<Aws::String>>
47 DescribeEcsClustersRequest& WithEcsClusterArns(EcsClusterArnsT&& value) { SetEcsClusterArns(std::forward<EcsClusterArnsT>(value)); return *this;}
48 template<typename EcsClusterArnsT = Aws::String>
49 DescribeEcsClustersRequest& AddEcsClusterArns(EcsClusterArnsT&& value) { m_ecsClusterArnsHasBeenSet = true; m_ecsClusterArns.emplace_back(std::forward<EcsClusterArnsT>(value)); return *this; }
51
53
57 inline const Aws::String& GetStackId() const { return m_stackId; }
58 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
59 template<typename StackIdT = Aws::String>
60 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
61 template<typename StackIdT = Aws::String>
62 DescribeEcsClustersRequest& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
64
66
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template<typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
79 template<typename NextTokenT = Aws::String>
80 DescribeEcsClustersRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
82
84
91 inline int GetMaxResults() const { return m_maxResults; }
92 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
94 inline DescribeEcsClustersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
96 private:
97
98 Aws::Vector<Aws::String> m_ecsClusterArns;
99 bool m_ecsClusterArnsHasBeenSet = false;
100
101 Aws::String m_stackId;
102 bool m_stackIdHasBeenSet = false;
103
104 Aws::String m_nextToken;
105 bool m_nextTokenHasBeenSet = false;
106
107 int m_maxResults{0};
108 bool m_maxResultsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace OpsWorks
113} // namespace Aws
DescribeEcsClustersRequest & WithEcsClusterArns(EcsClusterArnsT &&value)
const Aws::Vector< Aws::String > & GetEcsClusterArns() const
DescribeEcsClustersRequest & WithMaxResults(int value)
DescribeEcsClustersRequest & WithStackId(StackIdT &&value)
DescribeEcsClustersRequest & WithNextToken(NextTokenT &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeEcsClustersRequest & AddEcsClusterArns(EcsClusterArnsT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
AWS_OPSWORKS_API DescribeEcsClustersRequest()=default
virtual const char * GetServiceRequestName() const override
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