AWS SDK for C++  1.9.159
AWS SDK for C++
Schema.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ForecastService
23 {
24 namespace Model
25 {
26 
34  {
35  public:
36  Schema();
40 
41 
46  inline const Aws::Vector<SchemaAttribute>& GetAttributes() const{ return m_attributes; }
47 
52  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
53 
58  inline void SetAttributes(const Aws::Vector<SchemaAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
59 
64  inline void SetAttributes(Aws::Vector<SchemaAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
65 
70  inline Schema& WithAttributes(const Aws::Vector<SchemaAttribute>& value) { SetAttributes(value); return *this;}
71 
76  inline Schema& WithAttributes(Aws::Vector<SchemaAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
77 
82  inline Schema& AddAttributes(const SchemaAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
83 
88  inline Schema& AddAttributes(SchemaAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
89 
90  private:
91 
92  Aws::Vector<SchemaAttribute> m_attributes;
93  bool m_attributesHasBeenSet;
94  };
95 
96 } // namespace Model
97 } // namespace ForecastService
98 } // namespace Aws
Aws::ForecastService::Model::Schema::Schema
Schema(Aws::Utils::Json::JsonView jsonValue)
Aws::ForecastService::Model::Schema::Schema
Schema()
Aws::ForecastService::Model::Schema::SetAttributes
void SetAttributes(Aws::Vector< SchemaAttribute > &&value)
Definition: Schema.h:64
ForecastService_EXPORTS.h
Aws::ForecastService::Model::Schema
Definition: Schema.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ForecastService::Model::SchemaAttribute
Definition: SchemaAttribute.h:35
Aws::ForecastService::Model::Schema::operator=
Schema & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ForecastService::Model::Schema::WithAttributes
Schema & WithAttributes(const Aws::Vector< SchemaAttribute > &value)
Definition: Schema.h:70
SchemaAttribute.h
Aws::ForecastService::Model::Schema::AddAttributes
Schema & AddAttributes(const SchemaAttribute &value)
Definition: Schema.h:82
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ForecastService::Model::Schema::SetAttributes
void SetAttributes(const Aws::Vector< SchemaAttribute > &value)
Definition: Schema.h:58
Aws::ForecastService::Model::Schema::AddAttributes
Schema & AddAttributes(SchemaAttribute &&value)
Definition: Schema.h:88
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ForecastService::Model::Schema::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: Schema.h:52
AWS_FORECASTSERVICE_API
#define AWS_FORECASTSERVICE_API
Definition: ForecastService_EXPORTS.h:28
Aws::ForecastService::Model::Schema::WithAttributes
Schema & WithAttributes(Aws::Vector< SchemaAttribute > &&value)
Definition: Schema.h:76
Aws::ForecastService::Model::Schema::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ForecastService::Model::Schema::GetAttributes
const Aws::Vector< SchemaAttribute > & GetAttributes() const
Definition: Schema.h:46