AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListDeploymentsResult.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CodeDeploy {
23namespace Model {
31 public:
32 AWS_CODEDEPLOY_API ListDeploymentsResult() = default;
35
37
40 inline const Aws::Vector<Aws::String>& GetDeployments() const { return m_deployments; }
41 template <typename DeploymentsT = Aws::Vector<Aws::String>>
42 void SetDeployments(DeploymentsT&& value) {
43 m_deploymentsHasBeenSet = true;
44 m_deployments = std::forward<DeploymentsT>(value);
45 }
46 template <typename DeploymentsT = Aws::Vector<Aws::String>>
47 ListDeploymentsResult& WithDeployments(DeploymentsT&& value) {
48 SetDeployments(std::forward<DeploymentsT>(value));
49 return *this;
50 }
51 template <typename DeploymentsT = Aws::String>
52 ListDeploymentsResult& AddDeployments(DeploymentsT&& value) {
53 m_deploymentsHasBeenSet = true;
54 m_deployments.emplace_back(std::forward<DeploymentsT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetNextToken() const { return m_nextToken; }
66 template <typename NextTokenT = Aws::String>
67 void SetNextToken(NextTokenT&& value) {
68 m_nextTokenHasBeenSet = true;
69 m_nextToken = std::forward<NextTokenT>(value);
70 }
71 template <typename NextTokenT = Aws::String>
72 ListDeploymentsResult& WithNextToken(NextTokenT&& value) {
73 SetNextToken(std::forward<NextTokenT>(value));
74 return *this;
75 }
77
79
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 template <typename RequestIdT = Aws::String>
82 void SetRequestId(RequestIdT&& value) {
83 m_requestIdHasBeenSet = true;
84 m_requestId = std::forward<RequestIdT>(value);
85 }
86 template <typename RequestIdT = Aws::String>
87 ListDeploymentsResult& WithRequestId(RequestIdT&& value) {
88 SetRequestId(std::forward<RequestIdT>(value));
89 return *this;
90 }
92 private:
93 Aws::Vector<Aws::String> m_deployments;
94
95 Aws::String m_nextToken;
96
97 Aws::String m_requestId;
98 bool m_deploymentsHasBeenSet = false;
99 bool m_nextTokenHasBeenSet = false;
100 bool m_requestIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace CodeDeploy
105} // namespace Aws
ListDeploymentsResult & WithNextToken(NextTokenT &&value)
AWS_CODEDEPLOY_API ListDeploymentsResult()=default
ListDeploymentsResult & WithRequestId(RequestIdT &&value)
AWS_CODEDEPLOY_API ListDeploymentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODEDEPLOY_API ListDeploymentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListDeploymentsResult & AddDeployments(DeploymentsT &&value)
ListDeploymentsResult & WithDeployments(DeploymentsT &&value)
const Aws::Vector< Aws::String > & GetDeployments() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue