AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ThingGroupMetadata.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/iot/model/GroupNameAndArn.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOT_API ThingGroupMetadata();
41
42
44
47 inline const Aws::String& GetParentGroupName() const{ return m_parentGroupName; }
48 inline bool ParentGroupNameHasBeenSet() const { return m_parentGroupNameHasBeenSet; }
49 inline void SetParentGroupName(const Aws::String& value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName = value; }
50 inline void SetParentGroupName(Aws::String&& value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName = std::move(value); }
51 inline void SetParentGroupName(const char* value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName.assign(value); }
52 inline ThingGroupMetadata& WithParentGroupName(const Aws::String& value) { SetParentGroupName(value); return *this;}
53 inline ThingGroupMetadata& WithParentGroupName(Aws::String&& value) { SetParentGroupName(std::move(value)); return *this;}
54 inline ThingGroupMetadata& WithParentGroupName(const char* value) { SetParentGroupName(value); return *this;}
56
58
61 inline const Aws::Vector<GroupNameAndArn>& GetRootToParentThingGroups() const{ return m_rootToParentThingGroups; }
62 inline bool RootToParentThingGroupsHasBeenSet() const { return m_rootToParentThingGroupsHasBeenSet; }
63 inline void SetRootToParentThingGroups(const Aws::Vector<GroupNameAndArn>& value) { m_rootToParentThingGroupsHasBeenSet = true; m_rootToParentThingGroups = value; }
64 inline void SetRootToParentThingGroups(Aws::Vector<GroupNameAndArn>&& value) { m_rootToParentThingGroupsHasBeenSet = true; m_rootToParentThingGroups = std::move(value); }
67 inline ThingGroupMetadata& AddRootToParentThingGroups(const GroupNameAndArn& value) { m_rootToParentThingGroupsHasBeenSet = true; m_rootToParentThingGroups.push_back(value); return *this; }
68 inline ThingGroupMetadata& AddRootToParentThingGroups(GroupNameAndArn&& value) { m_rootToParentThingGroupsHasBeenSet = true; m_rootToParentThingGroups.push_back(std::move(value)); return *this; }
70
72
75 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
76 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
77 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
78 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
79 inline ThingGroupMetadata& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
80 inline ThingGroupMetadata& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_parentGroupName;
85 bool m_parentGroupNameHasBeenSet = false;
86
87 Aws::Vector<GroupNameAndArn> m_rootToParentThingGroups;
88 bool m_rootToParentThingGroupsHasBeenSet = false;
89
90 Aws::Utils::DateTime m_creationDate;
91 bool m_creationDateHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace IoT
96} // namespace Aws
ThingGroupMetadata & WithParentGroupName(const Aws::String &value)
void SetCreationDate(const Aws::Utils::DateTime &value)
ThingGroupMetadata & AddRootToParentThingGroups(const GroupNameAndArn &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API ThingGroupMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ThingGroupMetadata & WithRootToParentThingGroups(Aws::Vector< GroupNameAndArn > &&value)
void SetParentGroupName(Aws::String &&value)
ThingGroupMetadata & WithParentGroupName(const char *value)
void SetCreationDate(Aws::Utils::DateTime &&value)
void SetParentGroupName(const char *value)
const Aws::Vector< GroupNameAndArn > & GetRootToParentThingGroups() const
void SetRootToParentThingGroups(const Aws::Vector< GroupNameAndArn > &value)
ThingGroupMetadata & WithCreationDate(Aws::Utils::DateTime &&value)
void SetParentGroupName(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetRootToParentThingGroups(Aws::Vector< GroupNameAndArn > &&value)
ThingGroupMetadata & AddRootToParentThingGroups(GroupNameAndArn &&value)
ThingGroupMetadata & WithRootToParentThingGroups(const Aws::Vector< GroupNameAndArn > &value)
const Aws::String & GetParentGroupName() const
ThingGroupMetadata & WithCreationDate(const Aws::Utils::DateTime &value)
ThingGroupMetadata & WithParentGroupName(Aws::String &&value)
AWS_IOT_API ThingGroupMetadata(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue