AWS SDK for C++  1.9.125
AWS SDK for C++
ThingGroupMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.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 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetParentGroupName() const{ return m_parentGroupName; }
47 
51  inline bool ParentGroupNameHasBeenSet() const { return m_parentGroupNameHasBeenSet; }
52 
56  inline void SetParentGroupName(const Aws::String& value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName = value; }
57 
61  inline void SetParentGroupName(Aws::String&& value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName = std::move(value); }
62 
66  inline void SetParentGroupName(const char* value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName.assign(value); }
67 
71  inline ThingGroupMetadata& WithParentGroupName(const Aws::String& value) { SetParentGroupName(value); return *this;}
72 
76  inline ThingGroupMetadata& WithParentGroupName(Aws::String&& value) { SetParentGroupName(std::move(value)); return *this;}
77 
81  inline ThingGroupMetadata& WithParentGroupName(const char* value) { SetParentGroupName(value); return *this;}
82 
83 
87  inline const Aws::Vector<GroupNameAndArn>& GetRootToParentThingGroups() const{ return m_rootToParentThingGroups; }
88 
92  inline bool RootToParentThingGroupsHasBeenSet() const { return m_rootToParentThingGroupsHasBeenSet; }
93 
97  inline void SetRootToParentThingGroups(const Aws::Vector<GroupNameAndArn>& value) { m_rootToParentThingGroupsHasBeenSet = true; m_rootToParentThingGroups = value; }
98 
102  inline void SetRootToParentThingGroups(Aws::Vector<GroupNameAndArn>&& value) { m_rootToParentThingGroupsHasBeenSet = true; m_rootToParentThingGroups = std::move(value); }
103 
107  inline ThingGroupMetadata& WithRootToParentThingGroups(const Aws::Vector<GroupNameAndArn>& value) { SetRootToParentThingGroups(value); return *this;}
108 
112  inline ThingGroupMetadata& WithRootToParentThingGroups(Aws::Vector<GroupNameAndArn>&& value) { SetRootToParentThingGroups(std::move(value)); return *this;}
113 
117  inline ThingGroupMetadata& AddRootToParentThingGroups(const GroupNameAndArn& value) { m_rootToParentThingGroupsHasBeenSet = true; m_rootToParentThingGroups.push_back(value); return *this; }
118 
122  inline ThingGroupMetadata& AddRootToParentThingGroups(GroupNameAndArn&& value) { m_rootToParentThingGroupsHasBeenSet = true; m_rootToParentThingGroups.push_back(std::move(value)); return *this; }
123 
124 
128  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
129 
133  inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
134 
138  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
139 
143  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
144 
148  inline ThingGroupMetadata& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
149 
153  inline ThingGroupMetadata& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
154 
155  private:
156 
157  Aws::String m_parentGroupName;
158  bool m_parentGroupNameHasBeenSet;
159 
160  Aws::Vector<GroupNameAndArn> m_rootToParentThingGroups;
161  bool m_rootToParentThingGroupsHasBeenSet;
162 
163  Aws::Utils::DateTime m_creationDate;
164  bool m_creationDateHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace IoT
169 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::ThingGroupMetadata::operator=
ThingGroupMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
DateTime.h
Aws::IoT::Model::ThingGroupMetadata::ThingGroupMetadata
ThingGroupMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ThingGroupMetadata
Definition: ThingGroupMetadata.h:35
Aws::IoT::Model::ThingGroupMetadata::WithParentGroupName
ThingGroupMetadata & WithParentGroupName(Aws::String &&value)
Definition: ThingGroupMetadata.h:76
Aws::IoT::Model::ThingGroupMetadata::SetParentGroupName
void SetParentGroupName(Aws::String &&value)
Definition: ThingGroupMetadata.h:61
Aws::IoT::Model::ThingGroupMetadata::GetRootToParentThingGroups
const Aws::Vector< GroupNameAndArn > & GetRootToParentThingGroups() const
Definition: ThingGroupMetadata.h:87
Aws::IoT::Model::ThingGroupMetadata::AddRootToParentThingGroups
ThingGroupMetadata & AddRootToParentThingGroups(const GroupNameAndArn &value)
Definition: ThingGroupMetadata.h:117
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::ThingGroupMetadata::ThingGroupMetadata
ThingGroupMetadata()
AWSVector.h
Aws::IoT::Model::ThingGroupMetadata::WithRootToParentThingGroups
ThingGroupMetadata & WithRootToParentThingGroups(const Aws::Vector< GroupNameAndArn > &value)
Definition: ThingGroupMetadata.h:107
Aws::IoT::Model::GroupNameAndArn
Definition: GroupNameAndArn.h:32
Aws::IoT::Model::ThingGroupMetadata::AddRootToParentThingGroups
ThingGroupMetadata & AddRootToParentThingGroups(GroupNameAndArn &&value)
Definition: ThingGroupMetadata.h:122
Aws::IoT::Model::ThingGroupMetadata::RootToParentThingGroupsHasBeenSet
bool RootToParentThingGroupsHasBeenSet() const
Definition: ThingGroupMetadata.h:92
Aws::IoT::Model::ThingGroupMetadata::SetParentGroupName
void SetParentGroupName(const char *value)
Definition: ThingGroupMetadata.h:66
Aws::IoT::Model::ThingGroupMetadata::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: ThingGroupMetadata.h:143
Aws::IoT::Model::ThingGroupMetadata::WithCreationDate
ThingGroupMetadata & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: ThingGroupMetadata.h:153
Aws::IoT::Model::ThingGroupMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ThingGroupMetadata::ParentGroupNameHasBeenSet
bool ParentGroupNameHasBeenSet() const
Definition: ThingGroupMetadata.h:51
Aws::IoT::Model::ThingGroupMetadata::WithParentGroupName
ThingGroupMetadata & WithParentGroupName(const Aws::String &value)
Definition: ThingGroupMetadata.h:71
Aws::IoT::Model::ThingGroupMetadata::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: ThingGroupMetadata.h:138
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ThingGroupMetadata::SetParentGroupName
void SetParentGroupName(const Aws::String &value)
Definition: ThingGroupMetadata.h:56
Aws::IoT::Model::ThingGroupMetadata::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: ThingGroupMetadata.h:128
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::ThingGroupMetadata::CreationDateHasBeenSet
bool CreationDateHasBeenSet() const
Definition: ThingGroupMetadata.h:133
Aws::IoT::Model::ThingGroupMetadata::SetRootToParentThingGroups
void SetRootToParentThingGroups(const Aws::Vector< GroupNameAndArn > &value)
Definition: ThingGroupMetadata.h:97
Aws::IoT::Model::ThingGroupMetadata::WithRootToParentThingGroups
ThingGroupMetadata & WithRootToParentThingGroups(Aws::Vector< GroupNameAndArn > &&value)
Definition: ThingGroupMetadata.h:112
Aws::IoT::Model::ThingGroupMetadata::SetRootToParentThingGroups
void SetRootToParentThingGroups(Aws::Vector< GroupNameAndArn > &&value)
Definition: ThingGroupMetadata.h:102
Aws::IoT::Model::ThingGroupMetadata::WithParentGroupName
ThingGroupMetadata & WithParentGroupName(const char *value)
Definition: ThingGroupMetadata.h:81
GroupNameAndArn.h
Aws::IoT::Model::ThingGroupMetadata::WithCreationDate
ThingGroupMetadata & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: ThingGroupMetadata.h:148
Aws::IoT::Model::ThingGroupMetadata::GetParentGroupName
const Aws::String & GetParentGroupName() const
Definition: ThingGroupMetadata.h:46
IoT_EXPORTS.h