AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
GetDeploymentsResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/Deployment.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace APIGateway {
25namespace Model {
35 public:
36 AWS_APIGATEWAY_API GetDeploymentsResult() = default;
39
41
42 inline const Aws::String& GetPosition() const { return m_position; }
43 template <typename PositionT = Aws::String>
44 void SetPosition(PositionT&& value) {
45 m_positionHasBeenSet = true;
46 m_position = std::forward<PositionT>(value);
47 }
48 template <typename PositionT = Aws::String>
49 GetDeploymentsResult& WithPosition(PositionT&& value) {
50 SetPosition(std::forward<PositionT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Deployment>& GetItems() const { return m_items; }
60 template <typename ItemsT = Aws::Vector<Deployment>>
61 void SetItems(ItemsT&& value) {
62 m_itemsHasBeenSet = true;
63 m_items = std::forward<ItemsT>(value);
64 }
65 template <typename ItemsT = Aws::Vector<Deployment>>
67 SetItems(std::forward<ItemsT>(value));
68 return *this;
69 }
70 template <typename ItemsT = Deployment>
71 GetDeploymentsResult& AddItems(ItemsT&& value) {
72 m_itemsHasBeenSet = true;
73 m_items.emplace_back(std::forward<ItemsT>(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 GetDeploymentsResult& WithRequestId(RequestIdT&& value) {
88 SetRequestId(std::forward<RequestIdT>(value));
89 return *this;
90 }
92 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
93
94 private:
95 Aws::String m_position;
96
98
99 Aws::String m_requestId;
100 Aws::Http::HttpResponseCode m_HttpResponseCode;
101 bool m_positionHasBeenSet = false;
102 bool m_itemsHasBeenSet = false;
103 bool m_requestIdHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace APIGateway
108} // namespace Aws
GetDeploymentsResult & WithItems(ItemsT &&value)
GetDeploymentsResult & AddItems(ItemsT &&value)
const Aws::Vector< Deployment > & GetItems() const
AWS_APIGATEWAY_API GetDeploymentsResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetDeploymentsResult & WithPosition(PositionT &&value)
AWS_APIGATEWAY_API GetDeploymentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIGATEWAY_API GetDeploymentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentsResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue