AWS SDK for C++

AWS SDK for C++ Version 1.11.742

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/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.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 CleanRooms {
25namespace Model {
27 public:
28 AWS_CLEANROOMS_API BatchGetSchemaResult() = default;
31
33
36 inline const Aws::Vector<Schema>& GetSchemas() const { return m_schemas; }
37 template <typename SchemasT = Aws::Vector<Schema>>
38 void SetSchemas(SchemasT&& value) {
39 m_schemasHasBeenSet = true;
40 m_schemas = std::forward<SchemasT>(value);
41 }
42 template <typename SchemasT = Aws::Vector<Schema>>
43 BatchGetSchemaResult& WithSchemas(SchemasT&& value) {
44 SetSchemas(std::forward<SchemasT>(value));
45 return *this;
46 }
47 template <typename SchemasT = Schema>
48 BatchGetSchemaResult& AddSchemas(SchemasT&& value) {
49 m_schemasHasBeenSet = true;
50 m_schemas.emplace_back(std::forward<SchemasT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<BatchGetSchemaError>& GetErrors() const { return m_errors; }
61 template <typename ErrorsT = Aws::Vector<BatchGetSchemaError>>
62 void SetErrors(ErrorsT&& value) {
63 m_errorsHasBeenSet = true;
64 m_errors = std::forward<ErrorsT>(value);
65 }
66 template <typename ErrorsT = Aws::Vector<BatchGetSchemaError>>
67 BatchGetSchemaResult& WithErrors(ErrorsT&& value) {
68 SetErrors(std::forward<ErrorsT>(value));
69 return *this;
70 }
71 template <typename ErrorsT = BatchGetSchemaError>
72 BatchGetSchemaResult& AddErrors(ErrorsT&& value) {
73 m_errorsHasBeenSet = true;
74 m_errors.emplace_back(std::forward<ErrorsT>(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>
88 BatchGetSchemaResult& WithRequestId(RequestIdT&& value) {
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 private:
94 Aws::Vector<Schema> m_schemas;
95
97
98 Aws::String m_requestId;
99 bool m_schemasHasBeenSet = false;
100 bool m_errorsHasBeenSet = false;
101 bool m_requestIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CleanRooms
106} // 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
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