AWS SDK for C++  1.9.132
AWS SDK for C++
GroupNameAndArn.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetGroupName() const{ return m_groupName; }
44 
48  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
49 
53  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
54 
58  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
59 
63  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
64 
68  inline GroupNameAndArn& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
69 
73  inline GroupNameAndArn& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
74 
78  inline GroupNameAndArn& WithGroupName(const char* value) { SetGroupName(value); return *this;}
79 
80 
84  inline const Aws::String& GetGroupArn() const{ return m_groupArn; }
85 
89  inline bool GroupArnHasBeenSet() const { return m_groupArnHasBeenSet; }
90 
94  inline void SetGroupArn(const Aws::String& value) { m_groupArnHasBeenSet = true; m_groupArn = value; }
95 
99  inline void SetGroupArn(Aws::String&& value) { m_groupArnHasBeenSet = true; m_groupArn = std::move(value); }
100 
104  inline void SetGroupArn(const char* value) { m_groupArnHasBeenSet = true; m_groupArn.assign(value); }
105 
109  inline GroupNameAndArn& WithGroupArn(const Aws::String& value) { SetGroupArn(value); return *this;}
110 
114  inline GroupNameAndArn& WithGroupArn(Aws::String&& value) { SetGroupArn(std::move(value)); return *this;}
115 
119  inline GroupNameAndArn& WithGroupArn(const char* value) { SetGroupArn(value); return *this;}
120 
121  private:
122 
123  Aws::String m_groupName;
124  bool m_groupNameHasBeenSet;
125 
126  Aws::String m_groupArn;
127  bool m_groupArnHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace IoT
132 } // namespace Aws
Aws::IoT::Model::GroupNameAndArn::SetGroupArn
void SetGroupArn(const char *value)
Definition: GroupNameAndArn.h:104
Aws::IoT::Model::GroupNameAndArn::WithGroupName
GroupNameAndArn & WithGroupName(const Aws::String &value)
Definition: GroupNameAndArn.h:68
Aws::IoT::Model::GroupNameAndArn::GroupNameAndArn
GroupNameAndArn(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::GroupNameAndArn::WithGroupArn
GroupNameAndArn & WithGroupArn(Aws::String &&value)
Definition: GroupNameAndArn.h:114
Aws::IoT::Model::GroupNameAndArn::GetGroupArn
const Aws::String & GetGroupArn() const
Definition: GroupNameAndArn.h:84
Aws::IoT::Model::GroupNameAndArn::SetGroupName
void SetGroupName(const char *value)
Definition: GroupNameAndArn.h:63
Aws::IoT::Model::GroupNameAndArn::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: GroupNameAndArn.h:53
Aws::IoT::Model::GroupNameAndArn::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: GroupNameAndArn.h:48
Aws::IoT::Model::GroupNameAndArn::WithGroupName
GroupNameAndArn & WithGroupName(Aws::String &&value)
Definition: GroupNameAndArn.h:73
Aws::IoT::Model::GroupNameAndArn::SetGroupArn
void SetGroupArn(Aws::String &&value)
Definition: GroupNameAndArn.h:99
Aws::IoT::Model::GroupNameAndArn
Definition: GroupNameAndArn.h:32
Aws::IoT::Model::GroupNameAndArn::GroupArnHasBeenSet
bool GroupArnHasBeenSet() const
Definition: GroupNameAndArn.h:89
Aws::IoT::Model::GroupNameAndArn::GroupNameAndArn
GroupNameAndArn()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::GroupNameAndArn::WithGroupArn
GroupNameAndArn & WithGroupArn(const Aws::String &value)
Definition: GroupNameAndArn.h:109
AWSString.h
Aws::IoT::Model::GroupNameAndArn::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: GroupNameAndArn.h:58
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::GroupNameAndArn::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::GroupNameAndArn::SetGroupArn
void SetGroupArn(const Aws::String &value)
Definition: GroupNameAndArn.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::GroupNameAndArn::operator=
GroupNameAndArn & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::GroupNameAndArn::WithGroupArn
GroupNameAndArn & WithGroupArn(const char *value)
Definition: GroupNameAndArn.h:119
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::GroupNameAndArn::WithGroupName
GroupNameAndArn & WithGroupName(const char *value)
Definition: GroupNameAndArn.h:78
Aws::IoT::Model::GroupNameAndArn::GetGroupName
const Aws::String & GetGroupName() const
Definition: GroupNameAndArn.h:43
IoT_EXPORTS.h