AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Deployment.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/apigateway/model/MethodSnapshot.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace APIGateway
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_APIGATEWAY_API Deployment() = default;
40 AWS_APIGATEWAY_API Deployment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APIGATEWAY_API Deployment& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const { return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 Deployment& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 Deployment& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
74 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
75 template<typename CreatedDateT = Aws::Utils::DateTime>
76 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
77 template<typename CreatedDateT = Aws::Utils::DateTime>
78 Deployment& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
80
82
86 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>& GetApiSummary() const { return m_apiSummary; }
87 inline bool ApiSummaryHasBeenSet() const { return m_apiSummaryHasBeenSet; }
88 template<typename ApiSummaryT = Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>>
89 void SetApiSummary(ApiSummaryT&& value) { m_apiSummaryHasBeenSet = true; m_apiSummary = std::forward<ApiSummaryT>(value); }
90 template<typename ApiSummaryT = Aws::Map<Aws::String, Aws::Map<Aws::String, MethodSnapshot>>>
91 Deployment& WithApiSummary(ApiSummaryT&& value) { SetApiSummary(std::forward<ApiSummaryT>(value)); return *this;}
92 template<typename ApiSummaryKeyT = Aws::String, typename ApiSummaryValueT = Aws::Map<Aws::String, MethodSnapshot>>
93 Deployment& AddApiSummary(ApiSummaryKeyT&& key, ApiSummaryValueT&& value) {
94 m_apiSummaryHasBeenSet = true; m_apiSummary.emplace(std::forward<ApiSummaryKeyT>(key), std::forward<ApiSummaryValueT>(value)); return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
102 template<typename RequestIdT = Aws::String>
103 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
104 template<typename RequestIdT = Aws::String>
105 Deployment& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
107 private:
108
109 Aws::String m_id;
110 bool m_idHasBeenSet = false;
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 Aws::Utils::DateTime m_createdDate{};
116 bool m_createdDateHasBeenSet = false;
117
119 bool m_apiSummaryHasBeenSet = false;
120
121 Aws::String m_requestId;
122 bool m_requestIdHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace APIGateway
127} // namespace Aws
Deployment & WithRequestId(RequestIdT &&value)
Definition Deployment.h:105
const Aws::String & GetId() const
Definition Deployment.h:49
const Aws::Utils::DateTime & GetCreatedDate() const
Definition Deployment.h:73
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:86
const Aws::String & GetDescription() const
Definition Deployment.h:61
Deployment & WithApiSummary(ApiSummaryT &&value)
Definition Deployment.h:91
const Aws::String & GetRequestId() const
Definition Deployment.h:100
void SetApiSummary(ApiSummaryT &&value)
Definition Deployment.h:89
void SetCreatedDate(CreatedDateT &&value)
Definition Deployment.h:76
Deployment & WithDescription(DescriptionT &&value)
Definition Deployment.h:66
Deployment & AddApiSummary(ApiSummaryKeyT &&key, ApiSummaryValueT &&value)
Definition Deployment.h:93
Deployment & WithCreatedDate(CreatedDateT &&value)
Definition Deployment.h:78
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:103
Deployment & WithId(IdT &&value)
Definition Deployment.h:54
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