AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LoadPermission.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
29 public:
30 AWS_EC2_API LoadPermission() = default;
31 AWS_EC2_API LoadPermission(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetUserId() const { return m_userId; }
42 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
43 template <typename UserIdT = Aws::String>
44 void SetUserId(UserIdT&& value) {
45 m_userIdHasBeenSet = true;
46 m_userId = std::forward<UserIdT>(value);
47 }
48 template <typename UserIdT = Aws::String>
49 LoadPermission& WithUserId(UserIdT&& value) {
50 SetUserId(std::forward<UserIdT>(value));
51 return *this;
52 }
54
56
59 inline PermissionGroup GetGroup() const { return m_group; }
60 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
61 inline void SetGroup(PermissionGroup value) {
62 m_groupHasBeenSet = true;
63 m_group = value;
64 }
66 SetGroup(value);
67 return *this;
68 }
70 private:
71 Aws::String m_userId;
72
74 bool m_userIdHasBeenSet = false;
75 bool m_groupHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
PermissionGroup GetGroup() const
LoadPermission & WithGroup(PermissionGroup value)
AWS_EC2_API LoadPermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUserId(UserIdT &&value)
const Aws::String & GetUserId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetGroup(PermissionGroup value)
AWS_EC2_API LoadPermission(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadPermission & WithUserId(UserIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API LoadPermission()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream