AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ColumnInfo.h
1
6#pragma once
7#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSAllocator.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 TimestreamQuery
23{
24namespace Model
25{
26 class Type;
27
35 {
36 public:
37 AWS_TIMESTREAMQUERY_API ColumnInfo() = default;
38 AWS_TIMESTREAMQUERY_API ColumnInfo(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TIMESTREAMQUERY_API ColumnInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 ColumnInfo& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
62 inline const Type& GetType() const{
63 return *m_type;
64 }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 template<typename TypeT = Type>
67 void SetType(TypeT&& value) {
68 m_typeHasBeenSet = true;
69 m_type = Aws::MakeShared<Type>("ColumnInfo", std::forward<TypeT>(value));
70 }
71 template<typename TypeT = Type>
72 ColumnInfo& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
74 private:
75
76 Aws::String m_name;
77 bool m_nameHasBeenSet = false;
78
79 std::shared_ptr<Type> m_type;
80 bool m_typeHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace TimestreamQuery
85} // namespace Aws
ColumnInfo & WithType(TypeT &&value)
Definition ColumnInfo.h:72
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:48
ColumnInfo & WithName(NameT &&value)
Definition ColumnInfo.h:53
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