AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
BatchGetSchemaResult.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/cleanrooms/model/BatchGetSchemaError.h>
9#include <aws/cleanrooms/model/Schema.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.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 CleanRooms {
26namespace Model {
28 public:
29 AWS_CLEANROOMS_API BatchGetSchemaResult() = default;
32
34
37 inline const Aws::Vector<Schema>& GetSchemas() const { return m_schemas; }
38 template <typename SchemasT = Aws::Vector<Schema>>
39 void SetSchemas(SchemasT&& value) {
40 m_schemasHasBeenSet = true;
41 m_schemas = std::forward<SchemasT>(value);
42 }
43 template <typename SchemasT = Aws::Vector<Schema>>
44 BatchGetSchemaResult& WithSchemas(SchemasT&& value) {
45 SetSchemas(std::forward<SchemasT>(value));
46 return *this;
47 }
48 template <typename SchemasT = Schema>
49 BatchGetSchemaResult& AddSchemas(SchemasT&& value) {
50 m_schemasHasBeenSet = true;
51 m_schemas.emplace_back(std::forward<SchemasT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<BatchGetSchemaError>& GetErrors() const { return m_errors; }
62 template <typename ErrorsT = Aws::Vector<BatchGetSchemaError>>
63 void SetErrors(ErrorsT&& value) {
64 m_errorsHasBeenSet = true;
65 m_errors = std::forward<ErrorsT>(value);
66 }
67 template <typename ErrorsT = Aws::Vector<BatchGetSchemaError>>
68 BatchGetSchemaResult& WithErrors(ErrorsT&& value) {
69 SetErrors(std::forward<ErrorsT>(value));
70 return *this;
71 }
72 template <typename ErrorsT = BatchGetSchemaError>
73 BatchGetSchemaResult& AddErrors(ErrorsT&& value) {
74 m_errorsHasBeenSet = true;
75 m_errors.emplace_back(std::forward<ErrorsT>(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>
89 BatchGetSchemaResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Aws::Vector<Schema> m_schemas;
98
100
101 Aws::String m_requestId;
102 Aws::Http::HttpResponseCode m_HttpResponseCode;
103 bool m_schemasHasBeenSet = false;
104 bool m_errorsHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CleanRooms
110} // namespace Aws
AWS_CLEANROOMS_API BatchGetSchemaResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetSchemaResult & WithRequestId(RequestIdT &&value)
BatchGetSchemaResult & AddErrors(ErrorsT &&value)
AWS_CLEANROOMS_API BatchGetSchemaResult()=default
const Aws::Vector< BatchGetSchemaError > & GetErrors() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
BatchGetSchemaResult & WithSchemas(SchemasT &&value)
const Aws::Vector< Schema > & GetSchemas() const
BatchGetSchemaResult & AddSchemas(SchemasT &&value)
AWS_CLEANROOMS_API BatchGetSchemaResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetSchemaResult & WithErrors(ErrorsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue