AWS SDK for C++  1.9.71
AWS SDK for C++
CreateVolumePermission.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 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const PermissionGroup& GetGroup() const{ return m_group; }
48 
52  inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
53 
57  inline void SetGroup(const PermissionGroup& value) { m_groupHasBeenSet = true; m_group = value; }
58 
62  inline void SetGroup(PermissionGroup&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
63 
67  inline CreateVolumePermission& WithGroup(const PermissionGroup& value) { SetGroup(value); return *this;}
68 
72  inline CreateVolumePermission& WithGroup(PermissionGroup&& value) { SetGroup(std::move(value)); return *this;}
73 
74 
78  inline const Aws::String& GetUserId() const{ return m_userId; }
79 
83  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
84 
88  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
89 
93  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
94 
98  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
99 
103  inline CreateVolumePermission& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
104 
108  inline CreateVolumePermission& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
109 
113  inline CreateVolumePermission& WithUserId(const char* value) { SetUserId(value); return *this;}
114 
115  private:
116 
117  PermissionGroup m_group;
118  bool m_groupHasBeenSet;
119 
120  Aws::String m_userId;
121  bool m_userIdHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::CreateVolumePermission::GetUserId
const Aws::String & GetUserId() const
Definition: CreateVolumePermission.h:78
Aws::EC2::Model::CreateVolumePermission::SetGroup
void SetGroup(PermissionGroup &&value)
Definition: CreateVolumePermission.h:62
Aws::EC2::Model::CreateVolumePermission::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::PermissionGroup
PermissionGroup
Definition: PermissionGroup.h:17
Aws::EC2::Model::CreateVolumePermission::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: CreateVolumePermission.h:83
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateVolumePermission::CreateVolumePermission
CreateVolumePermission(const Aws::Utils::Xml::XmlNode &xmlNode)
PermissionGroup.h
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
Aws::EC2::Model::CreateVolumePermission::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CreateVolumePermission::WithGroup
CreateVolumePermission & WithGroup(const PermissionGroup &value)
Definition: CreateVolumePermission.h:67
Aws::EC2::Model::CreateVolumePermission
Definition: CreateVolumePermission.h:34
Aws::EC2::Model::CreateVolumePermission::SetUserId
void SetUserId(Aws::String &&value)
Definition: CreateVolumePermission.h:93
Aws::EC2::Model::CreateVolumePermission::SetUserId
void SetUserId(const char *value)
Definition: CreateVolumePermission.h:98
Aws::EC2::Model::CreateVolumePermission::WithGroup
CreateVolumePermission & WithGroup(PermissionGroup &&value)
Definition: CreateVolumePermission.h:72
Aws::EC2::Model::CreateVolumePermission::CreateVolumePermission
CreateVolumePermission()
Aws::EC2::Model::CreateVolumePermission::WithUserId
CreateVolumePermission & WithUserId(const char *value)
Definition: CreateVolumePermission.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateVolumePermission::WithUserId
CreateVolumePermission & WithUserId(const Aws::String &value)
Definition: CreateVolumePermission.h:103
Aws::EC2::Model::CreateVolumePermission::operator=
CreateVolumePermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CreateVolumePermission::SetGroup
void SetGroup(const PermissionGroup &value)
Definition: CreateVolumePermission.h:57
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateVolumePermission::WithUserId
CreateVolumePermission & WithUserId(Aws::String &&value)
Definition: CreateVolumePermission.h:108
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::CreateVolumePermission::GroupHasBeenSet
bool GroupHasBeenSet() const
Definition: CreateVolumePermission.h:52
Aws::EC2::Model::CreateVolumePermission::SetUserId
void SetUserId(const Aws::String &value)
Definition: CreateVolumePermission.h:88
Aws::EC2::Model::CreateVolumePermission::GetGroup
const PermissionGroup & GetGroup() const
Definition: CreateVolumePermission.h:47