AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
BatchGetSchemaResult.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cleanrooms/model/Schema.h>
11#include <aws/cleanrooms/model/BatchGetSchemaError.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CleanRooms
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CLEANROOMS_API BatchGetSchemaResult() = default;
36
37
39
42 inline const Aws::Vector<Schema>& GetSchemas() const { return m_schemas; }
43 template<typename SchemasT = Aws::Vector<Schema>>
44 void SetSchemas(SchemasT&& value) { m_schemasHasBeenSet = true; m_schemas = std::forward<SchemasT>(value); }
45 template<typename SchemasT = Aws::Vector<Schema>>
46 BatchGetSchemaResult& WithSchemas(SchemasT&& value) { SetSchemas(std::forward<SchemasT>(value)); return *this;}
47 template<typename SchemasT = Schema>
48 BatchGetSchemaResult& AddSchemas(SchemasT&& value) { m_schemasHasBeenSet = true; m_schemas.emplace_back(std::forward<SchemasT>(value)); return *this; }
50
52
56 inline const Aws::Vector<BatchGetSchemaError>& GetErrors() const { return m_errors; }
57 template<typename ErrorsT = Aws::Vector<BatchGetSchemaError>>
58 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
59 template<typename ErrorsT = Aws::Vector<BatchGetSchemaError>>
60 BatchGetSchemaResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
61 template<typename ErrorsT = BatchGetSchemaError>
62 BatchGetSchemaResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template<typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
70 template<typename RequestIdT = Aws::String>
71 BatchGetSchemaResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
73 private:
74
75 Aws::Vector<Schema> m_schemas;
76 bool m_schemasHasBeenSet = false;
77
79 bool m_errorsHasBeenSet = false;
80
81 Aws::String m_requestId;
82 bool m_requestIdHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace CleanRooms
87} // 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