AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline RemovePolicyGrantRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline RemovePolicyGrantRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline RemovePolicyGrantRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
58 inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; }
59 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
60 inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; }
61 inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); }
62 inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); }
64 inline RemovePolicyGrantRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;}
65 inline RemovePolicyGrantRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;}
67
69
72 inline const Aws::String& GetEntityIdentifier() const{ return m_entityIdentifier; }
73 inline bool EntityIdentifierHasBeenSet() const { return m_entityIdentifierHasBeenSet; }
74 inline void SetEntityIdentifier(const Aws::String& value) { m_entityIdentifierHasBeenSet = true; m_entityIdentifier = value; }
75 inline void SetEntityIdentifier(Aws::String&& value) { m_entityIdentifierHasBeenSet = true; m_entityIdentifier = std::move(value); }
76 inline void SetEntityIdentifier(const char* value) { m_entityIdentifierHasBeenSet = true; m_entityIdentifier.assign(value); }
78 inline RemovePolicyGrantRequest& WithEntityIdentifier(Aws::String&& value) { SetEntityIdentifier(std::move(value)); return *this;}
79 inline RemovePolicyGrantRequest& WithEntityIdentifier(const char* value) { SetEntityIdentifier(value); return *this;}
81
83
86 inline const TargetEntityType& GetEntityType() const{ return m_entityType; }
87 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
88 inline void SetEntityType(const TargetEntityType& value) { m_entityTypeHasBeenSet = true; m_entityType = value; }
89 inline void SetEntityType(TargetEntityType&& value) { m_entityTypeHasBeenSet = true; m_entityType = std::move(value); }
90 inline RemovePolicyGrantRequest& WithEntityType(const TargetEntityType& value) { SetEntityType(value); return *this;}
91 inline RemovePolicyGrantRequest& WithEntityType(TargetEntityType&& value) { SetEntityType(std::move(value)); return *this;}
93
95
98 inline const ManagedPolicyType& GetPolicyType() const{ return m_policyType; }
99 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
100 inline void SetPolicyType(const ManagedPolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
101 inline void SetPolicyType(ManagedPolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
102 inline RemovePolicyGrantRequest& WithPolicyType(const ManagedPolicyType& value) { SetPolicyType(value); return *this;}
103 inline RemovePolicyGrantRequest& WithPolicyType(ManagedPolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
105
107
110 inline const PolicyGrantPrincipal& GetPrincipal() const{ return m_principal; }
111 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
112 inline void SetPrincipal(const PolicyGrantPrincipal& value) { m_principalHasBeenSet = true; m_principal = value; }
113 inline void SetPrincipal(PolicyGrantPrincipal&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
114 inline RemovePolicyGrantRequest& WithPrincipal(const PolicyGrantPrincipal& value) { SetPrincipal(value); return *this;}
115 inline RemovePolicyGrantRequest& WithPrincipal(PolicyGrantPrincipal&& value) { SetPrincipal(std::move(value)); return *this;}
117 private:
118
119 Aws::String m_clientToken;
120 bool m_clientTokenHasBeenSet = false;
121
122 Aws::String m_domainIdentifier;
123 bool m_domainIdentifierHasBeenSet = false;
124
125 Aws::String m_entityIdentifier;
126 bool m_entityIdentifierHasBeenSet = false;
127
128 TargetEntityType m_entityType;
129 bool m_entityTypeHasBeenSet = false;
130
131 ManagedPolicyType m_policyType;
132 bool m_policyTypeHasBeenSet = false;
133
134 PolicyGrantPrincipal m_principal;
135 bool m_principalHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace DataZone
140} // namespace Aws
RemovePolicyGrantRequest & WithPolicyType(const ManagedPolicyType &value)
RemovePolicyGrantRequest & WithDomainIdentifier(const Aws::String &value)
void SetEntityType(const TargetEntityType &value)
void SetPolicyType(const ManagedPolicyType &value)
const PolicyGrantPrincipal & GetPrincipal() const
void SetPrincipal(const PolicyGrantPrincipal &value)
RemovePolicyGrantRequest & WithDomainIdentifier(const char *value)
RemovePolicyGrantRequest & WithClientToken(const Aws::String &value)
RemovePolicyGrantRequest & WithPrincipal(PolicyGrantPrincipal &&value)
RemovePolicyGrantRequest & WithPolicyType(ManagedPolicyType &&value)
RemovePolicyGrantRequest & WithClientToken(Aws::String &&value)
RemovePolicyGrantRequest & WithPrincipal(const PolicyGrantPrincipal &value)
RemovePolicyGrantRequest & WithEntityIdentifier(Aws::String &&value)
RemovePolicyGrantRequest & WithEntityIdentifier(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_DATAZONE_API Aws::String SerializePayload() const override
RemovePolicyGrantRequest & WithDomainIdentifier(Aws::String &&value)
RemovePolicyGrantRequest & WithEntityIdentifier(const Aws::String &value)
RemovePolicyGrantRequest & WithEntityType(const TargetEntityType &value)
RemovePolicyGrantRequest & WithClientToken(const char *value)
RemovePolicyGrantRequest & WithEntityType(TargetEntityType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String