AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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