AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SchemaAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/forecast/ForecastService_EXPORTS.h>
9#include <aws/forecast/model/AttributeType.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
33 public:
34 AWS_FORECASTSERVICE_API SchemaAttribute() = default;
35 AWS_FORECASTSERVICE_API SchemaAttribute(Aws::Utils::Json::JsonView jsonValue);
36 AWS_FORECASTSERVICE_API SchemaAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
44 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
45 template <typename AttributeNameT = Aws::String>
46 void SetAttributeName(AttributeNameT&& value) {
47 m_attributeNameHasBeenSet = true;
48 m_attributeName = std::forward<AttributeNameT>(value);
49 }
50 template <typename AttributeNameT = Aws::String>
51 SchemaAttribute& WithAttributeName(AttributeNameT&& value) {
52 SetAttributeName(std::forward<AttributeNameT>(value));
53 return *this;
54 }
56
58
63 inline AttributeType GetAttributeType() const { return m_attributeType; }
64 inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
65 inline void SetAttributeType(AttributeType value) {
66 m_attributeTypeHasBeenSet = true;
67 m_attributeType = value;
68 }
70 SetAttributeType(value);
71 return *this;
72 }
74 private:
75 Aws::String m_attributeName;
76
78 bool m_attributeNameHasBeenSet = false;
79 bool m_attributeTypeHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace ForecastService
84} // namespace Aws
void SetAttributeName(AttributeNameT &&value)
AWS_FORECASTSERVICE_API SchemaAttribute()=default
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
SchemaAttribute & WithAttributeName(AttributeNameT &&value)
const Aws::String & GetAttributeName() const
AWS_FORECASTSERVICE_API SchemaAttribute(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API SchemaAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
SchemaAttribute & WithAttributeType(AttributeType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue