AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
Deployment.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/MethodSnapshot.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace APIGateway {
23namespace Model {
24
33 public:
34 AWS_APIGATEWAY_API Deployment() = default;
35 AWS_APIGATEWAY_API Deployment(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APIGATEWAY_API Deployment& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
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>
51 Deployment& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 Deployment& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
80 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
81 template <typename CreatedDateT = Aws::Utils::DateTime>
82 void SetCreatedDate(CreatedDateT&& value) {
83 m_createdDateHasBeenSet = true;
84 m_createdDate = std::forward<CreatedDateT>(value);
85 }
86 template <typename CreatedDateT = Aws::Utils::DateTime>
87 Deployment& WithCreatedDate(CreatedDateT&& value) {
88 SetCreatedDate(std::forward<CreatedDateT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>& GetApiSummary() const { return m_apiSummary; }
99 inline bool ApiSummaryHasBeenSet() const { return m_apiSummaryHasBeenSet; }
100 template <typename ApiSummaryT = Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>>
101 void SetApiSummary(ApiSummaryT&& value) {
102 m_apiSummaryHasBeenSet = true;
103 m_apiSummary = std::forward<ApiSummaryT>(value);
104 }
105 template <typename ApiSummaryT = Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>>
106 Deployment& WithApiSummary(ApiSummaryT&& value) {
107 SetApiSummary(std::forward<ApiSummaryT>(value));
108 return *this;
109 }
110 template <typename ApiSummaryKeyT = Aws::String, typename ApiSummaryValueT = Aws::Map<Aws::String, MethodSnapshot>>
111 Deployment& AddApiSummary(ApiSummaryKeyT&& key, ApiSummaryValueT&& value) {
112 m_apiSummaryHasBeenSet = true;
113 m_apiSummary.emplace(std::forward<ApiSummaryKeyT>(key), std::forward<ApiSummaryValueT>(value));
114 return *this;
115 }
117
119
120 inline const Aws::String& GetRequestId() const { return m_requestId; }
121 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
122 template <typename RequestIdT = Aws::String>
123 void SetRequestId(RequestIdT&& value) {
124 m_requestIdHasBeenSet = true;
125 m_requestId = std::forward<RequestIdT>(value);
126 }
127 template <typename RequestIdT = Aws::String>
128 Deployment& WithRequestId(RequestIdT&& value) {
129 SetRequestId(std::forward<RequestIdT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_id;
135
136 Aws::String m_description;
137
138 Aws::Utils::DateTime m_createdDate{};
139
141
142 Aws::String m_requestId;
143 bool m_idHasBeenSet = false;
144 bool m_descriptionHasBeenSet = false;
145 bool m_createdDateHasBeenSet = false;
146 bool m_apiSummaryHasBeenSet = false;
147 bool m_requestIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace APIGateway
152} // namespace Aws
Deployment & WithRequestId(RequestIdT &&value)
Definition Deployment.h:128
const Aws::String & GetId() const
Definition Deployment.h:43
const Aws::Utils::DateTime & GetCreatedDate() const
Definition Deployment.h:79
AWS_APIGATEWAY_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAY_API Deployment(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::Map< Aws::String, MethodSnapshot > > & GetApiSummary() const
Definition Deployment.h:98
const Aws::String & GetDescription() const
Definition Deployment.h:61
Deployment & WithApiSummary(ApiSummaryT &&value)
Definition Deployment.h:106
const Aws::String & GetRequestId() const
Definition Deployment.h:120
void SetApiSummary(ApiSummaryT &&value)
Definition Deployment.h:101
void SetCreatedDate(CreatedDateT &&value)
Definition Deployment.h:82
Deployment & WithDescription(DescriptionT &&value)
Definition Deployment.h:69
Deployment & AddApiSummary(ApiSummaryKeyT &&key, ApiSummaryValueT &&value)
Definition Deployment.h:111
Deployment & WithCreatedDate(CreatedDateT &&value)
Definition Deployment.h:87
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
Definition Deployment.h:64
AWS_APIGATEWAY_API Deployment()=default
void SetRequestId(RequestIdT &&value)
Definition Deployment.h:123
Deployment & WithId(IdT &&value)
Definition Deployment.h:51
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