AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LoadPermissionRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/PermissionGroup.h>
10#include <aws/core/utils/memory/stl/AWSString.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
33 {
34 public:
35 AWS_EC2_API LoadPermissionRequest() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline PermissionGroup GetGroup() const { return m_group; }
48 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
49 inline void SetGroup(PermissionGroup value) { m_groupHasBeenSet = true; m_group = value; }
50 inline LoadPermissionRequest& WithGroup(PermissionGroup value) { SetGroup(value); return *this;}
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) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
61 template<typename UserIdT = Aws::String>
62 LoadPermissionRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
64 private:
65
67 bool m_groupHasBeenSet = false;
68
69 Aws::String m_userId;
70 bool m_userIdHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace EC2
75} // 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