AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
FieldDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/FieldDataType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
30 public:
31 AWS_GLUE_API FieldDefinition() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 FieldDefinition& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline FieldDataType GetFieldDataType() const { return m_fieldDataType; }
59 inline bool FieldDataTypeHasBeenSet() const { return m_fieldDataTypeHasBeenSet; }
60 inline void SetFieldDataType(FieldDataType value) {
61 m_fieldDataTypeHasBeenSet = true;
62 m_fieldDataType = value;
63 }
65 SetFieldDataType(value);
66 return *this;
67 }
69 private:
70 Aws::String m_name;
71
73 bool m_nameHasBeenSet = false;
74 bool m_fieldDataTypeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Glue
79} // namespace Aws
FieldDefinition & WithName(NameT &&value)
void SetFieldDataType(FieldDataType value)
AWS_GLUE_API FieldDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API FieldDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API FieldDefinition()=default
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
FieldDefinition & WithFieldDataType(FieldDataType value)
FieldDataType GetFieldDataType() const
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue