AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttributes(const Aws::Vector<SchemaAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
49 inline void SetAttributes(Aws::Vector<SchemaAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
50 inline Schema& WithAttributes(const Aws::Vector<SchemaAttribute>& value) { SetAttributes(value); return *this;}
51 inline Schema& WithAttributes(Aws::Vector<SchemaAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
52 inline Schema& AddAttributes(const SchemaAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
53 inline Schema& AddAttributes(SchemaAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
55 private:
56
58 bool m_attributesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace ForecastService
63} // namespace Aws
Schema & WithAttributes(Aws::Vector< SchemaAttribute > &&value)
Definition Schema.h:51
Schema & AddAttributes(SchemaAttribute &&value)
Definition Schema.h:53
AWS_FORECASTSERVICE_API Schema & operator=(Aws::Utils::Json::JsonView jsonValue)
Schema & WithAttributes(const Aws::Vector< SchemaAttribute > &value)
Definition Schema.h:50
const Aws::Vector< SchemaAttribute > & GetAttributes() const
Definition Schema.h:46
void SetAttributes(const Aws::Vector< SchemaAttribute > &value)
Definition Schema.h:48
AWS_FORECASTSERVICE_API Schema(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Schema & AddAttributes(const SchemaAttribute &value)
Definition Schema.h:52
AWS_FORECASTSERVICE_API Schema()
void SetAttributes(Aws::Vector< SchemaAttribute > &&value)
Definition Schema.h:49
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue