AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Schema.h
1
6#pragma once
7#include <aws/forecast/ForecastService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/forecast/model/SchemaAttribute.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ForecastService
23{
24namespace Model
25{
26
32 class Schema
33 {
34 public:
35 AWS_FORECASTSERVICE_API Schema() = default;
36 AWS_FORECASTSERVICE_API Schema(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FORECASTSERVICE_API Schema& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Vector<SchemaAttribute>& GetAttributes() const { return m_attributes; }
47 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
48 template<typename AttributesT = Aws::Vector<SchemaAttribute>>
49 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
50 template<typename AttributesT = Aws::Vector<SchemaAttribute>>
51 Schema& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
52 template<typename AttributesT = SchemaAttribute>
53 Schema& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
55 private:
56
58 bool m_attributesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace ForecastService
63} // namespace Aws
Schema & AddAttributes(AttributesT &&value)
Definition Schema.h:53
void SetAttributes(AttributesT &&value)
Definition Schema.h:49
Schema & WithAttributes(AttributesT &&value)
Definition Schema.h:51
AWS_FORECASTSERVICE_API Schema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API Schema()=default
const Aws::Vector< SchemaAttribute > & GetAttributes() const
Definition Schema.h:46
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