AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
RemovePolicyGrantRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/TargetEntityType.h>
11#include <aws/datazone/model/ManagedPolicyType.h>
12#include <aws/datazone/model/PolicyGrantPrincipal.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace DataZone
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DATAZONE_API RemovePolicyGrantRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "RemovePolicyGrant"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template<typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
48 template<typename ClientTokenT = Aws::String>
49 RemovePolicyGrantRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
57 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
58 template<typename DomainIdentifierT = Aws::String>
59 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
60 template<typename DomainIdentifierT = Aws::String>
61 RemovePolicyGrantRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
63
65
68 inline const Aws::String& GetEntityIdentifier() const { return m_entityIdentifier; }
69 inline bool EntityIdentifierHasBeenSet() const { return m_entityIdentifierHasBeenSet; }
70 template<typename EntityIdentifierT = Aws::String>
71 void SetEntityIdentifier(EntityIdentifierT&& value) { m_entityIdentifierHasBeenSet = true; m_entityIdentifier = std::forward<EntityIdentifierT>(value); }
72 template<typename EntityIdentifierT = Aws::String>
73 RemovePolicyGrantRequest& WithEntityIdentifier(EntityIdentifierT&& value) { SetEntityIdentifier(std::forward<EntityIdentifierT>(value)); return *this;}
75
77
80 inline TargetEntityType GetEntityType() const { return m_entityType; }
81 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
82 inline void SetEntityType(TargetEntityType value) { m_entityTypeHasBeenSet = true; m_entityType = value; }
85
87
90 inline const Aws::String& GetGrantIdentifier() const { return m_grantIdentifier; }
91 inline bool GrantIdentifierHasBeenSet() const { return m_grantIdentifierHasBeenSet; }
92 template<typename GrantIdentifierT = Aws::String>
93 void SetGrantIdentifier(GrantIdentifierT&& value) { m_grantIdentifierHasBeenSet = true; m_grantIdentifier = std::forward<GrantIdentifierT>(value); }
94 template<typename GrantIdentifierT = Aws::String>
95 RemovePolicyGrantRequest& WithGrantIdentifier(GrantIdentifierT&& value) { SetGrantIdentifier(std::forward<GrantIdentifierT>(value)); return *this;}
97
99
102 inline ManagedPolicyType GetPolicyType() const { return m_policyType; }
103 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
104 inline void SetPolicyType(ManagedPolicyType value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
107
109
112 inline const PolicyGrantPrincipal& GetPrincipal() const { return m_principal; }
113 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
114 template<typename PrincipalT = PolicyGrantPrincipal>
115 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
116 template<typename PrincipalT = PolicyGrantPrincipal>
117 RemovePolicyGrantRequest& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
119 private:
120
122 bool m_clientTokenHasBeenSet = true;
123
124 Aws::String m_domainIdentifier;
125 bool m_domainIdentifierHasBeenSet = false;
126
127 Aws::String m_entityIdentifier;
128 bool m_entityIdentifierHasBeenSet = false;
129
131 bool m_entityTypeHasBeenSet = false;
132
133 Aws::String m_grantIdentifier;
134 bool m_grantIdentifierHasBeenSet = false;
135
137 bool m_policyTypeHasBeenSet = false;
138
139 PolicyGrantPrincipal m_principal;
140 bool m_principalHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace DataZone
145} // namespace Aws
RemovePolicyGrantRequest & WithClientToken(ClientTokenT &&value)
RemovePolicyGrantRequest & WithEntityType(TargetEntityType value)
RemovePolicyGrantRequest & WithEntityIdentifier(EntityIdentifierT &&value)
RemovePolicyGrantRequest & WithPolicyType(ManagedPolicyType value)
RemovePolicyGrantRequest & WithGrantIdentifier(GrantIdentifierT &&value)
RemovePolicyGrantRequest & WithDomainIdentifier(DomainIdentifierT &&value)
const PolicyGrantPrincipal & GetPrincipal() const
AWS_DATAZONE_API RemovePolicyGrantRequest()=default
RemovePolicyGrantRequest & WithPrincipal(PrincipalT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DATAZONE_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String