AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
BatchPutAttributesMetadataResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/AttributeError.h>
12#include <aws/datazone/model/BatchPutAttributeOutput.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 DataZone {
26namespace Model {
28 public:
29 AWS_DATAZONE_API BatchPutAttributesMetadataResult() = default;
32
34
38 inline const Aws::Vector<AttributeError>& GetErrors() const { return m_errors; }
39 template <typename ErrorsT = Aws::Vector<AttributeError>>
40 void SetErrors(ErrorsT&& value) {
41 m_errorsHasBeenSet = true;
42 m_errors = std::forward<ErrorsT>(value);
43 }
44 template <typename ErrorsT = Aws::Vector<AttributeError>>
46 SetErrors(std::forward<ErrorsT>(value));
47 return *this;
48 }
49 template <typename ErrorsT = AttributeError>
51 m_errorsHasBeenSet = true;
52 m_errors.emplace_back(std::forward<ErrorsT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<BatchPutAttributeOutput>& GetAttributes() const { return m_attributes; }
62 template <typename AttributesT = Aws::Vector<BatchPutAttributeOutput>>
63 void SetAttributes(AttributesT&& value) {
64 m_attributesHasBeenSet = true;
65 m_attributes = std::forward<AttributesT>(value);
66 }
67 template <typename AttributesT = Aws::Vector<BatchPutAttributeOutput>>
69 SetAttributes(std::forward<AttributesT>(value));
70 return *this;
71 }
72 template <typename AttributesT = BatchPutAttributeOutput>
74 m_attributesHasBeenSet = true;
75 m_attributes.emplace_back(std::forward<AttributesT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
98
100
101 Aws::String m_requestId;
102 Aws::Http::HttpResponseCode m_HttpResponseCode;
103 bool m_errorsHasBeenSet = false;
104 bool m_attributesHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace DataZone
110} // namespace Aws
AWS_DATAZONE_API BatchPutAttributesMetadataResult()=default
BatchPutAttributesMetadataResult & WithErrors(ErrorsT &&value)
BatchPutAttributesMetadataResult & WithAttributes(AttributesT &&value)
BatchPutAttributesMetadataResult & AddErrors(ErrorsT &&value)
BatchPutAttributesMetadataResult & AddAttributes(AttributesT &&value)
const Aws::Vector< BatchPutAttributeOutput > & GetAttributes() const
BatchPutAttributesMetadataResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API BatchPutAttributesMetadataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DATAZONE_API BatchPutAttributesMetadataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue