AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyGrantingServiceAccess.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iam/model/PolicyType.h>
11#include <aws/iam/model/PolicyOwnerEntityType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace IAM
24{
25namespace Model
26{
27
37 {
38 public:
42
43 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
52 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
53 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
54 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
55 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
56 inline PolicyGrantingServiceAccess& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
57 inline PolicyGrantingServiceAccess& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
58 inline PolicyGrantingServiceAccess& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
60
62
67 inline const PolicyType& GetPolicyType() const{ return m_policyType; }
68 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
69 inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
70 inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
71 inline PolicyGrantingServiceAccess& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
72 inline PolicyGrantingServiceAccess& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
74
76
77 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
78 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
79 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
80 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
81 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
82 inline PolicyGrantingServiceAccess& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
83 inline PolicyGrantingServiceAccess& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
84 inline PolicyGrantingServiceAccess& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
86
88
95 inline const PolicyOwnerEntityType& GetEntityType() const{ return m_entityType; }
96 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
97 inline void SetEntityType(const PolicyOwnerEntityType& value) { m_entityTypeHasBeenSet = true; m_entityType = value; }
98 inline void SetEntityType(PolicyOwnerEntityType&& value) { m_entityTypeHasBeenSet = true; m_entityType = std::move(value); }
100 inline PolicyGrantingServiceAccess& WithEntityType(PolicyOwnerEntityType&& value) { SetEntityType(std::move(value)); return *this;}
102
104
111 inline const Aws::String& GetEntityName() const{ return m_entityName; }
112 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
113 inline void SetEntityName(const Aws::String& value) { m_entityNameHasBeenSet = true; m_entityName = value; }
114 inline void SetEntityName(Aws::String&& value) { m_entityNameHasBeenSet = true; m_entityName = std::move(value); }
115 inline void SetEntityName(const char* value) { m_entityNameHasBeenSet = true; m_entityName.assign(value); }
116 inline PolicyGrantingServiceAccess& WithEntityName(const Aws::String& value) { SetEntityName(value); return *this;}
117 inline PolicyGrantingServiceAccess& WithEntityName(Aws::String&& value) { SetEntityName(std::move(value)); return *this;}
118 inline PolicyGrantingServiceAccess& WithEntityName(const char* value) { SetEntityName(value); return *this;}
120 private:
121
122 Aws::String m_policyName;
123 bool m_policyNameHasBeenSet = false;
124
125 PolicyType m_policyType;
126 bool m_policyTypeHasBeenSet = false;
127
128 Aws::String m_policyArn;
129 bool m_policyArnHasBeenSet = false;
130
131 PolicyOwnerEntityType m_entityType;
132 bool m_entityTypeHasBeenSet = false;
133
134 Aws::String m_entityName;
135 bool m_entityNameHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace IAM
140} // namespace Aws
PolicyGrantingServiceAccess & WithEntityName(const char *value)
PolicyGrantingServiceAccess & WithPolicyName(Aws::String &&value)
void SetEntityType(const PolicyOwnerEntityType &value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PolicyGrantingServiceAccess & WithPolicyArn(Aws::String &&value)
PolicyGrantingServiceAccess & WithPolicyName(const Aws::String &value)
PolicyGrantingServiceAccess & WithPolicyType(const PolicyType &value)
PolicyGrantingServiceAccess & WithEntityType(const PolicyOwnerEntityType &value)
PolicyGrantingServiceAccess & WithEntityName(Aws::String &&value)
PolicyGrantingServiceAccess & WithPolicyArn(const Aws::String &value)
PolicyGrantingServiceAccess & WithPolicyType(PolicyType &&value)
PolicyGrantingServiceAccess & WithPolicyName(const char *value)
const PolicyOwnerEntityType & GetEntityType() const
PolicyGrantingServiceAccess & WithPolicyArn(const char *value)
AWS_IAM_API PolicyGrantingServiceAccess & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PolicyGrantingServiceAccess & WithEntityType(PolicyOwnerEntityType &&value)
AWS_IAM_API PolicyGrantingServiceAccess(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PolicyGrantingServiceAccess & WithEntityName(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