AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DataSourceIntrospectionModelField.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/DataSourceIntrospectionModelFieldType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppSync {
21namespace Model {
22
30 public:
31 AWS_APPSYNC_API DataSourceIntrospectionModelField() = default;
34 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
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>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const DataSourceIntrospectionModelFieldType& GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 template <typename TypeT = DataSourceIntrospectionModelFieldType>
61 void SetType(TypeT&& value) {
62 m_typeHasBeenSet = true;
63 m_type = std::forward<TypeT>(value);
64 }
65 template <typename TypeT = DataSourceIntrospectionModelFieldType>
67 SetType(std::forward<TypeT>(value));
68 return *this;
69 }
71
73
76 inline long long GetLength() const { return m_length; }
77 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
78 inline void SetLength(long long value) {
79 m_lengthHasBeenSet = true;
80 m_length = value;
81 }
83 SetLength(value);
84 return *this;
85 }
87 private:
88 Aws::String m_name;
89
91
92 long long m_length{0};
93 bool m_nameHasBeenSet = false;
94 bool m_typeHasBeenSet = false;
95 bool m_lengthHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace AppSync
100} // namespace Aws
const DataSourceIntrospectionModelFieldType & GetType() const
AWS_APPSYNC_API DataSourceIntrospectionModelField & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceIntrospectionModelField & WithName(NameT &&value)
DataSourceIntrospectionModelField & WithType(TypeT &&value)
DataSourceIntrospectionModelField & WithLength(long long value)
AWS_APPSYNC_API DataSourceIntrospectionModelField(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue