AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
Field.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/FieldType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
28class Field {
29 public:
30 AWS_IOT_API Field() = default;
31 AWS_IOT_API Field(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 Field& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline FieldType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(FieldType value) {
60 m_typeHasBeenSet = true;
61 m_type = value;
62 }
63 inline Field& WithType(FieldType value) {
64 SetType(value);
65 return *this;
66 }
68 private:
69 Aws::String m_name;
70
72 bool m_nameHasBeenSet = false;
73 bool m_typeHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace IoT
78} // namespace Aws
const Aws::String & GetName() const
Definition Field.h:39
void SetName(NameT &&value)
Definition Field.h:42
bool NameHasBeenSet() const
Definition Field.h:40
AWS_IOT_API Field & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TypeHasBeenSet() const
Definition Field.h:58
Field & WithType(FieldType value)
Definition Field.h:63
AWS_IOT_API Field(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API Field()=default
void SetType(FieldType value)
Definition Field.h:59
FieldType GetType() const
Definition Field.h:57
Field & WithName(NameT &&value)
Definition Field.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue