AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
36 AWS_EC2_API CreateVolumePermission() = default;
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 template<typename UserIdT = Aws::String>
51 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
52 template<typename UserIdT = Aws::String>
53 CreateVolumePermission& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
55
57
60 inline PermissionGroup GetGroup() const { return m_group; }
61 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
62 inline void SetGroup(PermissionGroup value) { m_groupHasBeenSet = true; m_group = value; }
63 inline CreateVolumePermission& WithGroup(PermissionGroup value) { SetGroup(value); return *this;}
65 private:
66
67 Aws::String m_userId;
68 bool m_userIdHasBeenSet = false;
69
71 bool m_groupHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace EC2
76} // namespace Aws
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 & WithUserId(UserIdT &&value)
AWS_EC2_API CreateVolumePermission(const Aws::Utils::Xml::XmlNode &xmlNode)
CreateVolumePermission & WithGroup(PermissionGroup value)
AWS_EC2_API CreateVolumePermission()=default
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