AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline DataSourceIntrospectionModelField& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline DataSourceIntrospectionModelField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline DataSourceIntrospectionModelField& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const DataSourceIntrospectionModelFieldType& GetType() const{ return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(const DataSourceIntrospectionModelFieldType& value) { m_typeHasBeenSet = true; m_type = value; }
63 inline void SetType(DataSourceIntrospectionModelFieldType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
67
69
72 inline long long GetLength() const{ return m_length; }
73 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
74 inline void SetLength(long long value) { m_lengthHasBeenSet = true; m_length = value; }
75 inline DataSourceIntrospectionModelField& WithLength(long long value) { SetLength(value); return *this;}
77 private:
78
79 Aws::String m_name;
80 bool m_nameHasBeenSet = false;
81
83 bool m_typeHasBeenSet = false;
84
85 long long m_length;
86 bool m_lengthHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace AppSync
91} // namespace Aws
const DataSourceIntrospectionModelFieldType & GetType() const
AWS_APPSYNC_API DataSourceIntrospectionModelField & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceIntrospectionModelField & WithName(Aws::String &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const DataSourceIntrospectionModelFieldType &value)
DataSourceIntrospectionModelField & WithName(const char *value)
DataSourceIntrospectionModelField & WithType(const DataSourceIntrospectionModelFieldType &value)
DataSourceIntrospectionModelField & WithType(DataSourceIntrospectionModelFieldType &&value)
DataSourceIntrospectionModelField & WithName(const Aws::String &value)
DataSourceIntrospectionModelField & WithLength(long long value)
void SetType(DataSourceIntrospectionModelFieldType &&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