AWS SDK for C++  1.9.72
AWS SDK for C++
LoadPermission.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetUserId() const{ return m_userId; }
47 
51  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
52 
56  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
57 
61  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
62 
66  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
67 
71  inline LoadPermission& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
72 
76  inline LoadPermission& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
77 
81  inline LoadPermission& WithUserId(const char* value) { SetUserId(value); return *this;}
82 
83 
87  inline const PermissionGroup& GetGroup() const{ return m_group; }
88 
92  inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
93 
97  inline void SetGroup(const PermissionGroup& value) { m_groupHasBeenSet = true; m_group = value; }
98 
102  inline void SetGroup(PermissionGroup&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
103 
107  inline LoadPermission& WithGroup(const PermissionGroup& value) { SetGroup(value); return *this;}
108 
112  inline LoadPermission& WithGroup(PermissionGroup&& value) { SetGroup(std::move(value)); return *this;}
113 
114  private:
115 
116  Aws::String m_userId;
117  bool m_userIdHasBeenSet;
118 
119  PermissionGroup m_group;
120  bool m_groupHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace EC2
125 } // namespace Aws
Aws::EC2::Model::LoadPermission::WithGroup
LoadPermission & WithGroup(PermissionGroup &&value)
Definition: LoadPermission.h:112
Aws::EC2::Model::PermissionGroup
PermissionGroup
Definition: PermissionGroup.h:17
Aws::EC2::Model::LoadPermission::LoadPermission
LoadPermission(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
PermissionGroup.h
Aws::EC2::Model::LoadPermission::SetUserId
void SetUserId(const Aws::String &value)
Definition: LoadPermission.h:56
AWSStreamFwd.h
Aws::EC2::Model::LoadPermission::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: LoadPermission.h:51
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LoadPermission::GetUserId
const Aws::String & GetUserId() const
Definition: LoadPermission.h:46
Aws::EC2::Model::LoadPermission::GroupHasBeenSet
bool GroupHasBeenSet() const
Definition: LoadPermission.h:92
Aws::EC2::Model::LoadPermission::WithUserId
LoadPermission & WithUserId(const Aws::String &value)
Definition: LoadPermission.h:71
Aws::EC2::Model::LoadPermission::operator=
LoadPermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LoadPermission::SetUserId
void SetUserId(Aws::String &&value)
Definition: LoadPermission.h:61
Aws::EC2::Model::LoadPermission::GetGroup
const PermissionGroup & GetGroup() const
Definition: LoadPermission.h:87
Aws::EC2::Model::LoadPermission::WithGroup
LoadPermission & WithGroup(const PermissionGroup &value)
Definition: LoadPermission.h:107
Aws::EC2::Model::LoadPermission::SetGroup
void SetGroup(const PermissionGroup &value)
Definition: LoadPermission.h:97
AWSString.h
Aws::EC2::Model::LoadPermission::WithUserId
LoadPermission & WithUserId(Aws::String &&value)
Definition: LoadPermission.h:76
Aws::EC2::Model::LoadPermission
Definition: LoadPermission.h:33
Aws::EC2::Model::LoadPermission::LoadPermission
LoadPermission()
Aws::EC2::Model::LoadPermission::WithUserId
LoadPermission & WithUserId(const char *value)
Definition: LoadPermission.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LoadPermission::SetUserId
void SetUserId(const char *value)
Definition: LoadPermission.h:66
EC2_EXPORTS.h
Aws::EC2::Model::LoadPermission::SetGroup
void SetGroup(PermissionGroup &&value)
Definition: LoadPermission.h:102
Aws::EC2::Model::LoadPermission::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LoadPermission::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const