AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Field.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/FieldType.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 IoT
23{
24namespace Model
25{
26
32 class Field
33 {
34 public:
35 AWS_IOT_API Field();
36 AWS_IOT_API Field(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline Field& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline Field& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline Field& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const FieldType& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const FieldType& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(FieldType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline Field& WithType(const FieldType& value) { SetType(value); return *this;}
64 inline Field& WithType(FieldType&& value) { SetType(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_name;
69 bool m_nameHasBeenSet = false;
70
71 FieldType m_type;
72 bool m_typeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace IoT
77} // namespace Aws
const Aws::String & GetName() const
Definition Field.h:45
Field & WithName(Aws::String &&value)
Definition Field.h:51
Field & WithType(const FieldType &value)
Definition Field.h:63
Field & WithName(const Aws::String &value)
Definition Field.h:50
void SetName(const char *value)
Definition Field.h:49
bool NameHasBeenSet() const
Definition Field.h:46
AWS_IOT_API Field & operator=(Aws::Utils::Json::JsonView jsonValue)
Field & WithName(const char *value)
Definition Field.h:52
void SetType(const FieldType &value)
Definition Field.h:61
Field & WithType(FieldType &&value)
Definition Field.h:64
bool TypeHasBeenSet() const
Definition Field.h:60
void SetName(Aws::String &&value)
Definition Field.h:48
AWS_IOT_API Field(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(FieldType &&value)
Definition Field.h:62
void SetName(const Aws::String &value)
Definition Field.h:47
const FieldType & GetType() const
Definition Field.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue