AWS SDK for C++

AWS SDK for C++ Version 1.11.838

Loading...
Searching...
No Matches
PutAssetResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/glue/Glue_EXPORTS.h>
12#include <aws/glue/model/AssetFormEntry.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 Glue {
26namespace Model {
28 public:
29 AWS_GLUE_API PutAssetResult() = default;
32
34
37 inline const Aws::String& GetId() const { return m_id; }
38 template <typename IdT = Aws::String>
39 void SetId(IdT&& value) {
40 m_idHasBeenSet = true;
41 m_id = std::forward<IdT>(value);
42 }
43 template <typename IdT = Aws::String>
44 PutAssetResult& WithId(IdT&& value) {
45 SetId(std::forward<IdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 template <typename NameT = Aws::String>
56 void SetName(NameT&& value) {
57 m_nameHasBeenSet = true;
58 m_name = std::forward<NameT>(value);
59 }
60 template <typename NameT = Aws::String>
61 PutAssetResult& WithName(NameT&& value) {
62 SetName(std::forward<NameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 template <typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) {
74 m_descriptionHasBeenSet = true;
75 m_description = std::forward<DescriptionT>(value);
76 }
77 template <typename DescriptionT = Aws::String>
78 PutAssetResult& WithDescription(DescriptionT&& value) {
79 SetDescription(std::forward<DescriptionT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
89 template <typename CreatedAtT = Aws::Utils::DateTime>
90 void SetCreatedAt(CreatedAtT&& value) {
91 m_createdAtHasBeenSet = true;
92 m_createdAt = std::forward<CreatedAtT>(value);
93 }
94 template <typename CreatedAtT = Aws::Utils::DateTime>
95 PutAssetResult& WithCreatedAt(CreatedAtT&& value) {
96 SetCreatedAt(std::forward<CreatedAtT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Map<Aws::String, AssetFormEntry>& GetForms() const { return m_forms; }
106 template <typename FormsT = Aws::Map<Aws::String, AssetFormEntry>>
107 void SetForms(FormsT&& value) {
108 m_formsHasBeenSet = true;
109 m_forms = std::forward<FormsT>(value);
110 }
111 template <typename FormsT = Aws::Map<Aws::String, AssetFormEntry>>
112 PutAssetResult& WithForms(FormsT&& value) {
113 SetForms(std::forward<FormsT>(value));
114 return *this;
115 }
116 template <typename FormsKeyT = Aws::String, typename FormsValueT = AssetFormEntry>
117 PutAssetResult& AddForms(FormsKeyT&& key, FormsValueT&& value) {
118 m_formsHasBeenSet = true;
119 m_forms.emplace(std::forward<FormsKeyT>(key), std::forward<FormsValueT>(value));
120 return *this;
121 }
123
125
126 inline const Aws::String& GetRequestId() const { return m_requestId; }
127 template <typename RequestIdT = Aws::String>
128 void SetRequestId(RequestIdT&& value) {
129 m_requestIdHasBeenSet = true;
130 m_requestId = std::forward<RequestIdT>(value);
131 }
132 template <typename RequestIdT = Aws::String>
133 PutAssetResult& WithRequestId(RequestIdT&& value) {
134 SetRequestId(std::forward<RequestIdT>(value));
135 return *this;
136 }
138 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
139
140 private:
141 Aws::String m_id;
142
143 Aws::String m_name;
144
145 Aws::String m_description;
146
147 Aws::Utils::DateTime m_createdAt{};
148
150
151 Aws::String m_requestId;
152 Aws::Http::HttpResponseCode m_HttpResponseCode;
153 bool m_idHasBeenSet = false;
154 bool m_nameHasBeenSet = false;
155 bool m_descriptionHasBeenSet = false;
156 bool m_createdAtHasBeenSet = false;
157 bool m_formsHasBeenSet = false;
158 bool m_requestIdHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace Glue
163} // namespace Aws
PutAssetResult & WithId(IdT &&value)
AWS_GLUE_API PutAssetResult()=default
AWS_GLUE_API PutAssetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetCreatedAt() const
PutAssetResult & WithCreatedAt(CreatedAtT &&value)
PutAssetResult & WithName(NameT &&value)
PutAssetResult & WithRequestId(RequestIdT &&value)
PutAssetResult & WithForms(FormsT &&value)
PutAssetResult & AddForms(FormsKeyT &&key, FormsValueT &&value)
const Aws::Map< Aws::String, AssetFormEntry > & GetForms() const
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetId() const
const Aws::String & GetName() const
PutAssetResult & WithDescription(DescriptionT &&value)
const Aws::String & GetRequestId() const
AWS_GLUE_API PutAssetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(RequestIdT &&value)
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