AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateVolumePermission.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/PermissionGroup.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API CreateVolumePermission() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetUserId() const { return m_userId; }
43 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
44 template <typename UserIdT = Aws::String>
45 void SetUserId(UserIdT&& value) {
46 m_userIdHasBeenSet = true;
47 m_userId = std::forward<UserIdT>(value);
48 }
49 template <typename UserIdT = Aws::String>
51 SetUserId(std::forward<UserIdT>(value));
52 return *this;
53 }
55
57
60 inline PermissionGroup GetGroup() const { return m_group; }
61 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
62 inline void SetGroup(PermissionGroup value) {
63 m_groupHasBeenSet = true;
64 m_group = value;
65 }
67 SetGroup(value);
68 return *this;
69 }
71 private:
72 Aws::String m_userId;
73
75 bool m_userIdHasBeenSet = false;
76 bool m_groupHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // 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