AWS SDK for C++  1.9.44
AWS SDK for C++
ThingIndexingConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
11 #include <aws/iot/model/Field.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
28 
37  {
38  public:
43 
44 
51  inline const ThingIndexingMode& GetThingIndexingMode() const{ return m_thingIndexingMode; }
52 
59  inline bool ThingIndexingModeHasBeenSet() const { return m_thingIndexingModeHasBeenSet; }
60 
67  inline void SetThingIndexingMode(const ThingIndexingMode& value) { m_thingIndexingModeHasBeenSet = true; m_thingIndexingMode = value; }
68 
75  inline void SetThingIndexingMode(ThingIndexingMode&& value) { m_thingIndexingModeHasBeenSet = true; m_thingIndexingMode = std::move(value); }
76 
83  inline ThingIndexingConfiguration& WithThingIndexingMode(const ThingIndexingMode& value) { SetThingIndexingMode(value); return *this;}
84 
91  inline ThingIndexingConfiguration& WithThingIndexingMode(ThingIndexingMode&& value) { SetThingIndexingMode(std::move(value)); return *this;}
92 
93 
100  inline const ThingConnectivityIndexingMode& GetThingConnectivityIndexingMode() const{ return m_thingConnectivityIndexingMode; }
101 
108  inline bool ThingConnectivityIndexingModeHasBeenSet() const { return m_thingConnectivityIndexingModeHasBeenSet; }
109 
116  inline void SetThingConnectivityIndexingMode(const ThingConnectivityIndexingMode& value) { m_thingConnectivityIndexingModeHasBeenSet = true; m_thingConnectivityIndexingMode = value; }
117 
124  inline void SetThingConnectivityIndexingMode(ThingConnectivityIndexingMode&& value) { m_thingConnectivityIndexingModeHasBeenSet = true; m_thingConnectivityIndexingMode = std::move(value); }
125 
132  inline ThingIndexingConfiguration& WithThingConnectivityIndexingMode(const ThingConnectivityIndexingMode& value) { SetThingConnectivityIndexingMode(value); return *this;}
133 
140  inline ThingIndexingConfiguration& WithThingConnectivityIndexingMode(ThingConnectivityIndexingMode&& value) { SetThingConnectivityIndexingMode(std::move(value)); return *this;}
141 
142 
147  inline const Aws::Vector<Field>& GetManagedFields() const{ return m_managedFields; }
148 
153  inline bool ManagedFieldsHasBeenSet() const { return m_managedFieldsHasBeenSet; }
154 
159  inline void SetManagedFields(const Aws::Vector<Field>& value) { m_managedFieldsHasBeenSet = true; m_managedFields = value; }
160 
165  inline void SetManagedFields(Aws::Vector<Field>&& value) { m_managedFieldsHasBeenSet = true; m_managedFields = std::move(value); }
166 
171  inline ThingIndexingConfiguration& WithManagedFields(const Aws::Vector<Field>& value) { SetManagedFields(value); return *this;}
172 
177  inline ThingIndexingConfiguration& WithManagedFields(Aws::Vector<Field>&& value) { SetManagedFields(std::move(value)); return *this;}
178 
183  inline ThingIndexingConfiguration& AddManagedFields(const Field& value) { m_managedFieldsHasBeenSet = true; m_managedFields.push_back(value); return *this; }
184 
189  inline ThingIndexingConfiguration& AddManagedFields(Field&& value) { m_managedFieldsHasBeenSet = true; m_managedFields.push_back(std::move(value)); return *this; }
190 
191 
195  inline const Aws::Vector<Field>& GetCustomFields() const{ return m_customFields; }
196 
200  inline bool CustomFieldsHasBeenSet() const { return m_customFieldsHasBeenSet; }
201 
205  inline void SetCustomFields(const Aws::Vector<Field>& value) { m_customFieldsHasBeenSet = true; m_customFields = value; }
206 
210  inline void SetCustomFields(Aws::Vector<Field>&& value) { m_customFieldsHasBeenSet = true; m_customFields = std::move(value); }
211 
215  inline ThingIndexingConfiguration& WithCustomFields(const Aws::Vector<Field>& value) { SetCustomFields(value); return *this;}
216 
220  inline ThingIndexingConfiguration& WithCustomFields(Aws::Vector<Field>&& value) { SetCustomFields(std::move(value)); return *this;}
221 
225  inline ThingIndexingConfiguration& AddCustomFields(const Field& value) { m_customFieldsHasBeenSet = true; m_customFields.push_back(value); return *this; }
226 
230  inline ThingIndexingConfiguration& AddCustomFields(Field&& value) { m_customFieldsHasBeenSet = true; m_customFields.push_back(std::move(value)); return *this; }
231 
232  private:
233 
234  ThingIndexingMode m_thingIndexingMode;
235  bool m_thingIndexingModeHasBeenSet;
236 
237  ThingConnectivityIndexingMode m_thingConnectivityIndexingMode;
238  bool m_thingConnectivityIndexingModeHasBeenSet;
239 
240  Aws::Vector<Field> m_managedFields;
241  bool m_managedFieldsHasBeenSet;
242 
243  Aws::Vector<Field> m_customFields;
244  bool m_customFieldsHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace IoT
249 } // namespace Aws
Aws::IoT::Model::ThingIndexingConfiguration::SetThingConnectivityIndexingMode
void SetThingConnectivityIndexingMode(ThingConnectivityIndexingMode &&value)
Definition: ThingIndexingConfiguration.h:124
Aws::IoT::Model::ThingConnectivityIndexingMode
ThingConnectivityIndexingMode
Definition: ThingConnectivityIndexingMode.h:17
Aws::IoT::Model::ThingIndexingConfiguration::SetThingConnectivityIndexingMode
void SetThingConnectivityIndexingMode(const ThingConnectivityIndexingMode &value)
Definition: ThingIndexingConfiguration.h:116
Aws::IoT::Model::ThingIndexingConfiguration::WithManagedFields
ThingIndexingConfiguration & WithManagedFields(Aws::Vector< Field > &&value)
Definition: ThingIndexingConfiguration.h:177
Field.h
Aws::IoT::Model::ThingIndexingConfiguration::AddCustomFields
ThingIndexingConfiguration & AddCustomFields(Field &&value)
Definition: ThingIndexingConfiguration.h:230
Aws::IoT::Model::ThingIndexingConfiguration::AddManagedFields
ThingIndexingConfiguration & AddManagedFields(Field &&value)
Definition: ThingIndexingConfiguration.h:189
Aws::IoT::Model::ThingIndexingConfiguration::ThingIndexingConfiguration
ThingIndexingConfiguration()
Aws::IoT::Model::ThingIndexingConfiguration::WithManagedFields
ThingIndexingConfiguration & WithManagedFields(const Aws::Vector< Field > &value)
Definition: ThingIndexingConfiguration.h:171
Aws::IoT::Model::ThingIndexingConfiguration::SetManagedFields
void SetManagedFields(Aws::Vector< Field > &&value)
Definition: ThingIndexingConfiguration.h:165
Aws::IoT::Model::ThingIndexingConfiguration::GetCustomFields
const Aws::Vector< Field > & GetCustomFields() const
Definition: ThingIndexingConfiguration.h:195
Aws::IoT::Model::ThingIndexingConfiguration::WithThingConnectivityIndexingMode
ThingIndexingConfiguration & WithThingConnectivityIndexingMode(const ThingConnectivityIndexingMode &value)
Definition: ThingIndexingConfiguration.h:132
Aws::IoT::Model::ThingIndexingConfiguration::AddManagedFields
ThingIndexingConfiguration & AddManagedFields(const Field &value)
Definition: ThingIndexingConfiguration.h:183
Aws::IoT::Model::ThingIndexingConfiguration::SetThingIndexingMode
void SetThingIndexingMode(ThingIndexingMode &&value)
Definition: ThingIndexingConfiguration.h:75
Aws::IoT::Model::ThingIndexingConfiguration::SetThingIndexingMode
void SetThingIndexingMode(const ThingIndexingMode &value)
Definition: ThingIndexingConfiguration.h:67
Aws::IoT::Model::ThingIndexingConfiguration::CustomFieldsHasBeenSet
bool CustomFieldsHasBeenSet() const
Definition: ThingIndexingConfiguration.h:200
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::ThingIndexingConfiguration::ThingIndexingConfiguration
ThingIndexingConfiguration(Aws::Utils::Json::JsonView jsonValue)
ThingIndexingMode.h
Aws::IoT::Model::ThingIndexingConfiguration::GetThingConnectivityIndexingMode
const ThingConnectivityIndexingMode & GetThingConnectivityIndexingMode() const
Definition: ThingIndexingConfiguration.h:100
Aws::IoT::Model::ThingIndexingConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ThingIndexingConfiguration
Definition: ThingIndexingConfiguration.h:37
AWSVector.h
Aws::IoT::Model::ThingIndexingConfiguration::operator=
ThingIndexingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ThingIndexingMode
ThingIndexingMode
Definition: ThingIndexingMode.h:17
Aws::IoT::Model::ThingIndexingConfiguration::GetThingIndexingMode
const ThingIndexingMode & GetThingIndexingMode() const
Definition: ThingIndexingConfiguration.h:51
Aws::IoT::Model::ThingIndexingConfiguration::GetManagedFields
const Aws::Vector< Field > & GetManagedFields() const
Definition: ThingIndexingConfiguration.h:147
Aws::IoT::Model::ThingIndexingConfiguration::WithThingConnectivityIndexingMode
ThingIndexingConfiguration & WithThingConnectivityIndexingMode(ThingConnectivityIndexingMode &&value)
Definition: ThingIndexingConfiguration.h:140
Aws::IoT::Model::ThingIndexingConfiguration::SetManagedFields
void SetManagedFields(const Aws::Vector< Field > &value)
Definition: ThingIndexingConfiguration.h:159
Aws::IoT::Model::ThingIndexingConfiguration::WithCustomFields
ThingIndexingConfiguration & WithCustomFields(const Aws::Vector< Field > &value)
Definition: ThingIndexingConfiguration.h:215
Aws::IoT::Model::Field
Definition: Field.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::IoT::Model::ThingIndexingConfiguration::SetCustomFields
void SetCustomFields(const Aws::Vector< Field > &value)
Definition: ThingIndexingConfiguration.h:205
Aws::IoT::Model::ThingIndexingConfiguration::SetCustomFields
void SetCustomFields(Aws::Vector< Field > &&value)
Definition: ThingIndexingConfiguration.h:210
Aws::IoT::Model::ThingIndexingConfiguration::WithThingIndexingMode
ThingIndexingConfiguration & WithThingIndexingMode(const ThingIndexingMode &value)
Definition: ThingIndexingConfiguration.h:83
Aws::IoT::Model::ThingIndexingConfiguration::AddCustomFields
ThingIndexingConfiguration & AddCustomFields(const Field &value)
Definition: ThingIndexingConfiguration.h:225
Aws::IoT::Model::ThingIndexingConfiguration::WithThingIndexingMode
ThingIndexingConfiguration & WithThingIndexingMode(ThingIndexingMode &&value)
Definition: ThingIndexingConfiguration.h:91
Aws::IoT::Model::ThingIndexingConfiguration::WithCustomFields
ThingIndexingConfiguration & WithCustomFields(Aws::Vector< Field > &&value)
Definition: ThingIndexingConfiguration.h:220
ThingConnectivityIndexingMode.h
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ThingIndexingConfiguration::ManagedFieldsHasBeenSet
bool ManagedFieldsHasBeenSet() const
Definition: ThingIndexingConfiguration.h:153
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ThingIndexingConfiguration::ThingConnectivityIndexingModeHasBeenSet
bool ThingConnectivityIndexingModeHasBeenSet() const
Definition: ThingIndexingConfiguration.h:108
Aws::IoT::Model::ThingIndexingConfiguration::ThingIndexingModeHasBeenSet
bool ThingIndexingModeHasBeenSet() const
Definition: ThingIndexingConfiguration.h:59
IoT_EXPORTS.h