AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DataSourceIntrospectionModelField.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/DataSourceIntrospectionModelFieldType.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 AppSync
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPSYNC_API DataSourceIntrospectionModelField() = default;
39 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 DataSourceIntrospectionModelField& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
62 template<typename TypeT = DataSourceIntrospectionModelFieldType>
63 DataSourceIntrospectionModelField& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
65
67
70 inline long long GetLength() const { return m_length; }
71 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
72 inline void SetLength(long long value) { m_lengthHasBeenSet = true; m_length = value; }
73 inline DataSourceIntrospectionModelField& WithLength(long long value) { SetLength(value); return *this;}
75 private:
76
77 Aws::String m_name;
78 bool m_nameHasBeenSet = false;
79
81 bool m_typeHasBeenSet = false;
82
83 long long m_length{0};
84 bool m_lengthHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace AppSync
89} // 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