AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
PolicyGrantingServiceAccess.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iam/IAM_EXPORTS.h>
10#include <aws/iam/model/PolicyOwnerEntityType.h>
11#include <aws/iam/model/PolicyType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace IAM {
22namespace Model {
23
34 public:
35 AWS_IAM_API PolicyGrantingServiceAccess() = default;
38
39 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetPolicyName() const { return m_policyName; }
47 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
48 template <typename PolicyNameT = Aws::String>
49 void SetPolicyName(PolicyNameT&& value) {
50 m_policyNameHasBeenSet = true;
51 m_policyName = std::forward<PolicyNameT>(value);
52 }
53 template <typename PolicyNameT = Aws::String>
55 SetPolicyName(std::forward<PolicyNameT>(value));
56 return *this;
57 }
59
61
66 inline PolicyType GetPolicyType() const { return m_policyType; }
67 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
68 inline void SetPolicyType(PolicyType value) {
69 m_policyTypeHasBeenSet = true;
70 m_policyType = value;
71 }
73 SetPolicyType(value);
74 return *this;
75 }
77
79
80 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
81 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
82 template <typename PolicyArnT = Aws::String>
83 void SetPolicyArn(PolicyArnT&& value) {
84 m_policyArnHasBeenSet = true;
85 m_policyArn = std::forward<PolicyArnT>(value);
86 }
87 template <typename PolicyArnT = Aws::String>
89 SetPolicyArn(std::forward<PolicyArnT>(value));
90 return *this;
91 }
93
95
102 inline PolicyOwnerEntityType GetEntityType() const { return m_entityType; }
103 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
105 m_entityTypeHasBeenSet = true;
106 m_entityType = value;
107 }
109 SetEntityType(value);
110 return *this;
111 }
113
115
122 inline const Aws::String& GetEntityName() const { return m_entityName; }
123 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
124 template <typename EntityNameT = Aws::String>
125 void SetEntityName(EntityNameT&& value) {
126 m_entityNameHasBeenSet = true;
127 m_entityName = std::forward<EntityNameT>(value);
128 }
129 template <typename EntityNameT = Aws::String>
131 SetEntityName(std::forward<EntityNameT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_policyName;
137
138 PolicyType m_policyType{PolicyType::NOT_SET};
139
140 Aws::String m_policyArn;
141
143
144 Aws::String m_entityName;
145 bool m_policyNameHasBeenSet = false;
146 bool m_policyTypeHasBeenSet = false;
147 bool m_policyArnHasBeenSet = false;
148 bool m_entityTypeHasBeenSet = false;
149 bool m_entityNameHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace IAM
154} // namespace Aws
PolicyGrantingServiceAccess & WithEntityType(PolicyOwnerEntityType value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PolicyGrantingServiceAccess & WithPolicyType(PolicyType value)
AWS_IAM_API PolicyGrantingServiceAccess()=default
PolicyGrantingServiceAccess & WithPolicyName(PolicyNameT &&value)
PolicyGrantingServiceAccess & WithPolicyArn(PolicyArnT &&value)
PolicyGrantingServiceAccess & WithEntityName(EntityNameT &&value)
AWS_IAM_API PolicyGrantingServiceAccess & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API PolicyGrantingServiceAccess(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream