AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Schema.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/forecast/ForecastService_EXPORTS.h>
9#include <aws/forecast/model/SchemaAttribute.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ForecastService {
21namespace Model {
22
28class Schema {
29 public:
30 AWS_FORECASTSERVICE_API Schema() = default;
31 AWS_FORECASTSERVICE_API Schema(Aws::Utils::Json::JsonView jsonValue);
32 AWS_FORECASTSERVICE_API Schema& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::Vector<SchemaAttribute>& GetAttributes() const { return m_attributes; }
41 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
42 template <typename AttributesT = Aws::Vector<SchemaAttribute>>
43 void SetAttributes(AttributesT&& value) {
44 m_attributesHasBeenSet = true;
45 m_attributes = std::forward<AttributesT>(value);
46 }
47 template <typename AttributesT = Aws::Vector<SchemaAttribute>>
48 Schema& WithAttributes(AttributesT&& value) {
49 SetAttributes(std::forward<AttributesT>(value));
50 return *this;
51 }
52 template <typename AttributesT = SchemaAttribute>
53 Schema& AddAttributes(AttributesT&& value) {
54 m_attributesHasBeenSet = true;
55 m_attributes.emplace_back(std::forward<AttributesT>(value));
56 return *this;
57 }
59 private:
61 bool m_attributesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace ForecastService
66} // namespace Aws
Schema & AddAttributes(AttributesT &&value)
Definition Schema.h:53
void SetAttributes(AttributesT &&value)
Definition Schema.h:43
Schema & WithAttributes(AttributesT &&value)
Definition Schema.h:48
AWS_FORECASTSERVICE_API Schema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API Schema()=default
const Aws::Vector< SchemaAttribute > & GetAttributes() const
Definition Schema.h:40
AWS_FORECASTSERVICE_API Schema(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue