AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoadPermission.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/PermissionGroup.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 LoadPermission();
36 AWS_EC2_API LoadPermission(const Aws::Utils::Xml::XmlNode& xmlNode);
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 Aws::String& GetUserId() const{ return m_userId; }
48 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
49 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
50 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
51 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
52 inline LoadPermission& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
53 inline LoadPermission& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
54 inline LoadPermission& WithUserId(const char* value) { SetUserId(value); return *this;}
56
58
61 inline const PermissionGroup& GetGroup() const{ return m_group; }
62 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
63 inline void SetGroup(const PermissionGroup& value) { m_groupHasBeenSet = true; m_group = value; }
64 inline void SetGroup(PermissionGroup&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
65 inline LoadPermission& WithGroup(const PermissionGroup& value) { SetGroup(value); return *this;}
66 inline LoadPermission& WithGroup(PermissionGroup&& value) { SetGroup(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_userId;
71 bool m_userIdHasBeenSet = false;
72
73 PermissionGroup m_group;
74 bool m_groupHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
LoadPermission & WithUserId(Aws::String &&value)
void SetUserId(Aws::String &&value)
AWS_EC2_API LoadPermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetUserId() const
const PermissionGroup & GetGroup() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LoadPermission & WithGroup(PermissionGroup &&value)
void SetGroup(PermissionGroup &&value)
LoadPermission & WithUserId(const char *value)
AWS_EC2_API LoadPermission(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadPermission & WithGroup(const PermissionGroup &value)
void SetUserId(const Aws::String &value)
LoadPermission & WithUserId(const Aws::String &value)
void SetGroup(const PermissionGroup &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUserId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream