AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const PermissionGroup& GetGroup() const{ return m_group; }
48 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
49 inline void SetGroup(const PermissionGroup& value) { m_groupHasBeenSet = true; m_group = value; }
50 inline void SetGroup(PermissionGroup&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
51 inline LoadPermissionRequest& WithGroup(const PermissionGroup& value) { SetGroup(value); return *this;}
52 inline LoadPermissionRequest& WithGroup(PermissionGroup&& value) { SetGroup(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetUserId() const{ return m_userId; }
60 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
61 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
62 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
63 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
64 inline LoadPermissionRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
65 inline LoadPermissionRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
66 inline LoadPermissionRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
68 private:
69
70 PermissionGroup m_group;
71 bool m_groupHasBeenSet = false;
72
73 Aws::String m_userId;
74 bool m_userIdHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LoadPermissionRequest & WithGroup(PermissionGroup &&value)
void SetGroup(const PermissionGroup &value)
LoadPermissionRequest & WithUserId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LoadPermissionRequest & WithUserId(const Aws::String &value)
LoadPermissionRequest & WithGroup(const PermissionGroup &value)
const PermissionGroup & GetGroup() const
AWS_EC2_API LoadPermissionRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadPermissionRequest & WithUserId(Aws::String &&value)
AWS_EC2_API LoadPermissionRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUserId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream