AWS SDK for C++  1.9.129
AWS SDK for C++
Field.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Field();
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline Field& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline Field& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline Field& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const FieldType& GetType() const{ return m_type; }
86 
90  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 
95  inline void SetType(const FieldType& value) { m_typeHasBeenSet = true; m_type = value; }
96 
100  inline void SetType(FieldType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
101 
105  inline Field& WithType(const FieldType& value) { SetType(value); return *this;}
106 
110  inline Field& WithType(FieldType&& value) { SetType(std::move(value)); return *this;}
111 
112  private:
113 
114  Aws::String m_name;
115  bool m_nameHasBeenSet;
116 
117  FieldType m_type;
118  bool m_typeHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace IoT
123 } // namespace Aws
Aws::IoT::Model::Field::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Field.h:49
Aws::IoT::Model::Field::WithName
Field & WithName(const Aws::String &value)
Definition: Field.h:69
Aws::IoT::Model::Field::SetName
void SetName(const char *value)
Definition: Field.h:64
Aws::IoT::Model::Field::SetType
void SetType(FieldType &&value)
Definition: Field.h:100
Aws::IoT::Model::Field::SetName
void SetName(const Aws::String &value)
Definition: Field.h:54
Aws::IoT::Model::Field::WithType
Field & WithType(const FieldType &value)
Definition: Field.h:105
Aws::IoT::Model::Field::WithType
Field & WithType(FieldType &&value)
Definition: Field.h:110
Aws::IoT::Model::Field::SetName
void SetName(Aws::String &&value)
Definition: Field.h:59
Aws::IoT::Model::Field::WithName
Field & WithName(const char *value)
Definition: Field.h:79
Aws::IoT::Model::Field::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Field.h:90
Aws::IoT::Model::Field::Field
Field()
Aws::IoT::Model::Field::WithName
Field & WithName(Aws::String &&value)
Definition: Field.h:74
FieldType.h
Aws::IoT::Model::Field::Field
Field(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::Field
Definition: Field.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::Field::SetType
void SetType(const FieldType &value)
Definition: Field.h:95
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::FieldType
FieldType
Definition: FieldType.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::Field::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::Field::GetType
const FieldType & GetType() const
Definition: Field.h:85
Aws::IoT::Model::Field::operator=
Field & operator=(Aws::Utils::Json::JsonView jsonValue)
IoT_EXPORTS.h
Aws::IoT::Model::Field::GetName
const Aws::String & GetName() const
Definition: Field.h:44