AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
GetDeploymentResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/MethodSnapshot.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace APIGateway {
26namespace Model {
35 public:
36 AWS_APIGATEWAY_API GetDeploymentResult() = default;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
68 GetDeploymentResult& WithDescription(DescriptionT&& value) {
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
79 template <typename CreatedDateT = Aws::Utils::DateTime>
80 void SetCreatedDate(CreatedDateT&& value) {
81 m_createdDateHasBeenSet = true;
82 m_createdDate = std::forward<CreatedDateT>(value);
83 }
84 template <typename CreatedDateT = Aws::Utils::DateTime>
85 GetDeploymentResult& WithCreatedDate(CreatedDateT&& value) {
86 SetCreatedDate(std::forward<CreatedDateT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>& GetApiSummary() const { return m_apiSummary; }
97 template <typename ApiSummaryT = Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>>
98 void SetApiSummary(ApiSummaryT&& value) {
99 m_apiSummaryHasBeenSet = true;
100 m_apiSummary = std::forward<ApiSummaryT>(value);
101 }
102 template <typename ApiSummaryT = Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>>
103 GetDeploymentResult& WithApiSummary(ApiSummaryT&& value) {
104 SetApiSummary(std::forward<ApiSummaryT>(value));
105 return *this;
106 }
107 template <typename ApiSummaryKeyT = Aws::String, typename ApiSummaryValueT = Aws::Map<Aws::String, MethodSnapshot>>
108 GetDeploymentResult& AddApiSummary(ApiSummaryKeyT&& key, ApiSummaryValueT&& value) {
109 m_apiSummaryHasBeenSet = true;
110 m_apiSummary.emplace(std::forward<ApiSummaryKeyT>(key), std::forward<ApiSummaryValueT>(value));
111 return *this;
112 }
114
116
117 inline const Aws::String& GetRequestId() const { return m_requestId; }
118 template <typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) {
120 m_requestIdHasBeenSet = true;
121 m_requestId = std::forward<RequestIdT>(value);
122 }
123 template <typename RequestIdT = Aws::String>
124 GetDeploymentResult& WithRequestId(RequestIdT&& value) {
125 SetRequestId(std::forward<RequestIdT>(value));
126 return *this;
127 }
129 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
130
131 private:
132 Aws::String m_id;
133
134 Aws::String m_description;
135
136 Aws::Utils::DateTime m_createdDate{};
137
139
140 Aws::String m_requestId;
141 Aws::Http::HttpResponseCode m_HttpResponseCode;
142 bool m_idHasBeenSet = false;
143 bool m_descriptionHasBeenSet = false;
144 bool m_createdDateHasBeenSet = false;
145 bool m_apiSummaryHasBeenSet = false;
146 bool m_requestIdHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace APIGateway
151} // namespace Aws
GetDeploymentResult & WithCreatedDate(CreatedDateT &&value)
GetDeploymentResult & AddApiSummary(ApiSummaryKeyT &&key, ApiSummaryValueT &&value)
AWS_APIGATEWAY_API GetDeploymentResult()=default
const Aws::Map< Aws::String, Aws::Map< Aws::String, MethodSnapshot > > & GetApiSummary() const
GetDeploymentResult & WithRequestId(RequestIdT &&value)
AWS_APIGATEWAY_API GetDeploymentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedDate() const
GetDeploymentResult & WithDescription(DescriptionT &&value)
GetDeploymentResult & WithId(IdT &&value)
AWS_APIGATEWAY_API GetDeploymentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentResult & WithApiSummary(ApiSummaryT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue