AWS SDK for C++  1.9.71
AWS SDK for C++
LaunchPermission.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 PermissionGroup& GetGroup() const{ return m_group; }
47 
51  inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
52 
56  inline void SetGroup(const PermissionGroup& value) { m_groupHasBeenSet = true; m_group = value; }
57 
61  inline void SetGroup(PermissionGroup&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
62 
66  inline LaunchPermission& WithGroup(const PermissionGroup& value) { SetGroup(value); return *this;}
67 
71  inline LaunchPermission& WithGroup(PermissionGroup&& value) { SetGroup(std::move(value)); return *this;}
72 
73 
78  inline const Aws::String& GetUserId() const{ return m_userId; }
79 
84  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
85 
90  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
91 
96  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
97 
102  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
103 
108  inline LaunchPermission& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
109 
114  inline LaunchPermission& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
115 
120  inline LaunchPermission& WithUserId(const char* value) { SetUserId(value); return *this;}
121 
122  private:
123 
124  PermissionGroup m_group;
125  bool m_groupHasBeenSet;
126 
127  Aws::String m_userId;
128  bool m_userIdHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace EC2
133 } // namespace Aws
Aws::EC2::Model::LaunchPermission::WithUserId
LaunchPermission & WithUserId(Aws::String &&value)
Definition: LaunchPermission.h:114
Aws::EC2::Model::LaunchPermission
Definition: LaunchPermission.h:33
Aws::EC2::Model::LaunchPermission::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::PermissionGroup
PermissionGroup
Definition: PermissionGroup.h:17
Aws::EC2::Model::LaunchPermission::SetGroup
void SetGroup(const PermissionGroup &value)
Definition: LaunchPermission.h:56
Aws::EC2::Model::LaunchPermission::SetGroup
void SetGroup(PermissionGroup &&value)
Definition: LaunchPermission.h:61
Aws::EC2::Model::LaunchPermission::GetUserId
const Aws::String & GetUserId() const
Definition: LaunchPermission.h:78
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchPermission::WithUserId
LaunchPermission & WithUserId(const char *value)
Definition: LaunchPermission.h:120
PermissionGroup.h
Aws::EC2::Model::LaunchPermission::SetUserId
void SetUserId(const Aws::String &value)
Definition: LaunchPermission.h:90
AWSStreamFwd.h
Aws::EC2::Model::LaunchPermission::LaunchPermission
LaunchPermission()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchPermission::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchPermission::WithGroup
LaunchPermission & WithGroup(PermissionGroup &&value)
Definition: LaunchPermission.h:71
AWSString.h
Aws::EC2::Model::LaunchPermission::GroupHasBeenSet
bool GroupHasBeenSet() const
Definition: LaunchPermission.h:51
Aws::EC2::Model::LaunchPermission::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: LaunchPermission.h:84
Aws::EC2::Model::LaunchPermission::WithUserId
LaunchPermission & WithUserId(const Aws::String &value)
Definition: LaunchPermission.h:108
Aws::EC2::Model::LaunchPermission::SetUserId
void SetUserId(const char *value)
Definition: LaunchPermission.h:102
Aws::EC2::Model::LaunchPermission::SetUserId
void SetUserId(Aws::String &&value)
Definition: LaunchPermission.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchPermission::operator=
LaunchPermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::LaunchPermission::LaunchPermission
LaunchPermission(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchPermission::GetGroup
const PermissionGroup & GetGroup() const
Definition: LaunchPermission.h:46
Aws::EC2::Model::LaunchPermission::WithGroup
LaunchPermission & WithGroup(const PermissionGroup &value)
Definition: LaunchPermission.h:66
EC2_EXPORTS.h