AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
BatchPutAttributesMetadataResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/AttributeError.h>
11#include <aws/datazone/model/BatchPutAttributeOutput.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace DataZone {
25namespace Model {
27 public:
28 AWS_DATAZONE_API BatchPutAttributesMetadataResult() = default;
31
33
37 inline const Aws::Vector<AttributeError>& GetErrors() const { return m_errors; }
38 template <typename ErrorsT = Aws::Vector<AttributeError>>
39 void SetErrors(ErrorsT&& value) {
40 m_errorsHasBeenSet = true;
41 m_errors = std::forward<ErrorsT>(value);
42 }
43 template <typename ErrorsT = Aws::Vector<AttributeError>>
45 SetErrors(std::forward<ErrorsT>(value));
46 return *this;
47 }
48 template <typename ErrorsT = AttributeError>
50 m_errorsHasBeenSet = true;
51 m_errors.emplace_back(std::forward<ErrorsT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<BatchPutAttributeOutput>& GetAttributes() const { return m_attributes; }
61 template <typename AttributesT = Aws::Vector<BatchPutAttributeOutput>>
62 void SetAttributes(AttributesT&& value) {
63 m_attributesHasBeenSet = true;
64 m_attributes = std::forward<AttributesT>(value);
65 }
66 template <typename AttributesT = Aws::Vector<BatchPutAttributeOutput>>
68 SetAttributes(std::forward<AttributesT>(value));
69 return *this;
70 }
71 template <typename AttributesT = BatchPutAttributeOutput>
73 m_attributesHasBeenSet = true;
74 m_attributes.emplace_back(std::forward<AttributesT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 private:
95
97
98 Aws::String m_requestId;
99 bool m_errorsHasBeenSet = false;
100 bool m_attributesHasBeenSet = false;
101 bool m_requestIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace DataZone
106} // 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