AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVolumePermission.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/PermissionGroup.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetUserId() const{ return m_userId; }
49 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
50 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
51 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
52 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
53 inline CreateVolumePermission& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
54 inline CreateVolumePermission& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
55 inline CreateVolumePermission& WithUserId(const char* value) { SetUserId(value); return *this;}
57
59
62 inline const PermissionGroup& GetGroup() const{ return m_group; }
63 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
64 inline void SetGroup(const PermissionGroup& value) { m_groupHasBeenSet = true; m_group = value; }
65 inline void SetGroup(PermissionGroup&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
66 inline CreateVolumePermission& WithGroup(const PermissionGroup& value) { SetGroup(value); return *this;}
67 inline CreateVolumePermission& WithGroup(PermissionGroup&& value) { SetGroup(std::move(value)); return *this;}
69 private:
70
71 Aws::String m_userId;
72 bool m_userIdHasBeenSet = false;
73
74 PermissionGroup m_group;
75 bool m_groupHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
void SetGroup(const PermissionGroup &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CreateVolumePermission & WithGroup(const PermissionGroup &value)
CreateVolumePermission & WithUserId(const char *value)
CreateVolumePermission & WithUserId(Aws::String &&value)
AWS_EC2_API CreateVolumePermission(const Aws::Utils::Xml::XmlNode &xmlNode)
const PermissionGroup & GetGroup() const
CreateVolumePermission & WithGroup(PermissionGroup &&value)
CreateVolumePermission & WithUserId(const Aws::String &value)
AWS_EC2_API CreateVolumePermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream