AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ColumnInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSAllocator.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace TimestreamQuery {
21namespace Model {
22class Type;
23
31 public:
32 AWS_TIMESTREAMQUERY_API ColumnInfo() = default;
33 AWS_TIMESTREAMQUERY_API ColumnInfo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TIMESTREAMQUERY_API ColumnInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 ColumnInfo& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
62 inline const Type& GetType() const { return *m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 template <typename TypeT = Type>
65 void SetType(TypeT&& value) {
66 m_typeHasBeenSet = true;
67 m_type = Aws::MakeShared<Type>("ColumnInfo", std::forward<TypeT>(value));
68 }
69 template <typename TypeT = Type>
71 SetType(std::forward<TypeT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_name;
77
78 std::shared_ptr<Type> m_type;
79 bool m_nameHasBeenSet = false;
80 bool m_typeHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace TimestreamQuery
85} // namespace Aws
ColumnInfo & WithType(TypeT &&value)
Definition ColumnInfo.h:70
AWS_TIMESTREAMQUERY_API ColumnInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMQUERY_API ColumnInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMQUERY_API ColumnInfo()=default
const Aws::String & GetName() const
Definition ColumnInfo.h:42
ColumnInfo & WithName(NameT &&value)
Definition ColumnInfo.h:50
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue