AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchPermission.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 LaunchPermission();
36 AWS_EC2_API LaunchPermission(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& GetOrganizationArn() const{ return m_organizationArn; }
48 inline bool OrganizationArnHasBeenSet() const { return m_organizationArnHasBeenSet; }
49 inline void SetOrganizationArn(const Aws::String& value) { m_organizationArnHasBeenSet = true; m_organizationArn = value; }
50 inline void SetOrganizationArn(Aws::String&& value) { m_organizationArnHasBeenSet = true; m_organizationArn = std::move(value); }
51 inline void SetOrganizationArn(const char* value) { m_organizationArnHasBeenSet = true; m_organizationArn.assign(value); }
52 inline LaunchPermission& WithOrganizationArn(const Aws::String& value) { SetOrganizationArn(value); return *this;}
53 inline LaunchPermission& WithOrganizationArn(Aws::String&& value) { SetOrganizationArn(std::move(value)); return *this;}
54 inline LaunchPermission& WithOrganizationArn(const char* value) { SetOrganizationArn(value); return *this;}
56
58
61 inline const Aws::String& GetOrganizationalUnitArn() const{ return m_organizationalUnitArn; }
62 inline bool OrganizationalUnitArnHasBeenSet() const { return m_organizationalUnitArnHasBeenSet; }
63 inline void SetOrganizationalUnitArn(const Aws::String& value) { m_organizationalUnitArnHasBeenSet = true; m_organizationalUnitArn = value; }
64 inline void SetOrganizationalUnitArn(Aws::String&& value) { m_organizationalUnitArnHasBeenSet = true; m_organizationalUnitArn = std::move(value); }
65 inline void SetOrganizationalUnitArn(const char* value) { m_organizationalUnitArnHasBeenSet = true; m_organizationalUnitArn.assign(value); }
67 inline LaunchPermission& WithOrganizationalUnitArn(Aws::String&& value) { SetOrganizationalUnitArn(std::move(value)); return *this;}
68 inline LaunchPermission& WithOrganizationalUnitArn(const char* value) { SetOrganizationalUnitArn(value); return *this;}
70
72
76 inline const Aws::String& GetUserId() const{ return m_userId; }
77 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
78 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
79 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
80 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
81 inline LaunchPermission& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
82 inline LaunchPermission& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
83 inline LaunchPermission& WithUserId(const char* value) { SetUserId(value); return *this;}
85
87
90 inline const PermissionGroup& GetGroup() const{ return m_group; }
91 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
92 inline void SetGroup(const PermissionGroup& value) { m_groupHasBeenSet = true; m_group = value; }
93 inline void SetGroup(PermissionGroup&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
94 inline LaunchPermission& WithGroup(const PermissionGroup& value) { SetGroup(value); return *this;}
95 inline LaunchPermission& WithGroup(PermissionGroup&& value) { SetGroup(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_organizationArn;
100 bool m_organizationArnHasBeenSet = false;
101
102 Aws::String m_organizationalUnitArn;
103 bool m_organizationalUnitArnHasBeenSet = false;
104
105 Aws::String m_userId;
106 bool m_userIdHasBeenSet = false;
107
108 PermissionGroup m_group;
109 bool m_groupHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EC2
114} // namespace Aws
const Aws::String & GetOrganizationArn() const
void SetOrganizationArn(Aws::String &&value)
void SetGroup(const PermissionGroup &value)
LaunchPermission & WithOrganizationalUnitArn(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetUserId(Aws::String &&value)
LaunchPermission & WithOrganizationArn(Aws::String &&value)
LaunchPermission & WithUserId(const char *value)
void SetGroup(PermissionGroup &&value)
LaunchPermission & WithGroup(const PermissionGroup &value)
void SetOrganizationArn(const char *value)
const Aws::String & GetUserId() const
AWS_EC2_API LaunchPermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchPermission & WithGroup(PermissionGroup &&value)
LaunchPermission & WithUserId(const Aws::String &value)
AWS_EC2_API LaunchPermission(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOrganizationalUnitArn(const Aws::String &value)
const Aws::String & GetOrganizationalUnitArn() const
LaunchPermission & WithOrganizationalUnitArn(const Aws::String &value)
LaunchPermission & WithOrganizationalUnitArn(const char *value)
void SetUserId(const char *value)
LaunchPermission & WithOrganizationArn(const Aws::String &value)
LaunchPermission & WithOrganizationArn(const char *value)
void SetOrganizationalUnitArn(Aws::String &&value)
const PermissionGroup & GetGroup() const
LaunchPermission & WithUserId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUserId(const Aws::String &value)
void SetOrganizationalUnitArn(const char *value)
void SetOrganizationArn(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