AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddedPrincipal.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/PrincipalType.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 AddedPrincipal();
36 AWS_EC2_API AddedPrincipal(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 PrincipalType& GetPrincipalType() const{ return m_principalType; }
48 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
49 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
50 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
51 inline AddedPrincipal& WithPrincipalType(const PrincipalType& value) { SetPrincipalType(value); return *this;}
52 inline AddedPrincipal& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetPrincipal() const{ return m_principal; }
60 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
61 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
62 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
63 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
64 inline AddedPrincipal& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
65 inline AddedPrincipal& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
66 inline AddedPrincipal& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
68
70
73 inline const Aws::String& GetServicePermissionId() const{ return m_servicePermissionId; }
74 inline bool ServicePermissionIdHasBeenSet() const { return m_servicePermissionIdHasBeenSet; }
75 inline void SetServicePermissionId(const Aws::String& value) { m_servicePermissionIdHasBeenSet = true; m_servicePermissionId = value; }
76 inline void SetServicePermissionId(Aws::String&& value) { m_servicePermissionIdHasBeenSet = true; m_servicePermissionId = std::move(value); }
77 inline void SetServicePermissionId(const char* value) { m_servicePermissionIdHasBeenSet = true; m_servicePermissionId.assign(value); }
78 inline AddedPrincipal& WithServicePermissionId(const Aws::String& value) { SetServicePermissionId(value); return *this;}
79 inline AddedPrincipal& WithServicePermissionId(Aws::String&& value) { SetServicePermissionId(std::move(value)); return *this;}
80 inline AddedPrincipal& WithServicePermissionId(const char* value) { SetServicePermissionId(value); return *this;}
82
84
87 inline const Aws::String& GetServiceId() const{ return m_serviceId; }
88 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
89 inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
90 inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
91 inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
92 inline AddedPrincipal& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
93 inline AddedPrincipal& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
94 inline AddedPrincipal& WithServiceId(const char* value) { SetServiceId(value); return *this;}
96 private:
97
98 PrincipalType m_principalType;
99 bool m_principalTypeHasBeenSet = false;
100
101 Aws::String m_principal;
102 bool m_principalHasBeenSet = false;
103
104 Aws::String m_servicePermissionId;
105 bool m_servicePermissionIdHasBeenSet = false;
106
107 Aws::String m_serviceId;
108 bool m_serviceIdHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace EC2
113} // namespace Aws
AddedPrincipal & WithPrincipal(const char *value)
const Aws::String & GetPrincipal() const
AddedPrincipal & WithServiceId(const char *value)
AddedPrincipal & WithServicePermissionId(const Aws::String &value)
void SetServiceId(const char *value)
void SetPrincipal(const Aws::String &value)
const Aws::String & GetServiceId() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AddedPrincipal & WithPrincipalType(const PrincipalType &value)
void SetServicePermissionId(Aws::String &&value)
void SetPrincipal(Aws::String &&value)
void SetServicePermissionId(const char *value)
AddedPrincipal & WithPrincipal(Aws::String &&value)
void SetServiceId(const Aws::String &value)
void SetServicePermissionId(const Aws::String &value)
AddedPrincipal & WithPrincipal(const Aws::String &value)
AWS_EC2_API AddedPrincipal & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPrincipalType(PrincipalType &&value)
AWS_EC2_API AddedPrincipal(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetServicePermissionId() const
void SetServiceId(Aws::String &&value)
AddedPrincipal & WithServicePermissionId(const char *value)
AddedPrincipal & WithPrincipalType(PrincipalType &&value)
AddedPrincipal & WithServiceId(Aws::String &&value)
void SetPrincipal(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AddedPrincipal & WithServiceId(const Aws::String &value)
void SetPrincipalType(const PrincipalType &value)
AddedPrincipal & WithServicePermissionId(Aws::String &&value)
const PrincipalType & GetPrincipalType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream