AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddPolicyGrantRequest.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/PolicyGrantDetail.h>
11#include <aws/datazone/model/TargetEntityType.h>
12#include <aws/datazone/model/ManagedPolicyType.h>
13#include <aws/datazone/model/PolicyGrantPrincipal.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace DataZone
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_DATAZONE_API AddPolicyGrantRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "AddPolicyGrant"; }
36
37 AWS_DATAZONE_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline AddPolicyGrantRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline AddPolicyGrantRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline AddPolicyGrantRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
59 inline const PolicyGrantDetail& GetDetail() const{ return m_detail; }
60 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
61 inline void SetDetail(const PolicyGrantDetail& value) { m_detailHasBeenSet = true; m_detail = value; }
62 inline void SetDetail(PolicyGrantDetail&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
63 inline AddPolicyGrantRequest& WithDetail(const PolicyGrantDetail& value) { SetDetail(value); return *this;}
64 inline AddPolicyGrantRequest& WithDetail(PolicyGrantDetail&& value) { SetDetail(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; }
72 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
73 inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; }
74 inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); }
75 inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); }
76 inline AddPolicyGrantRequest& WithDomainIdentifier(const Aws::String& value) { SetDomainIdentifier(value); return *this;}
77 inline AddPolicyGrantRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;}
78 inline AddPolicyGrantRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;}
80
82
85 inline const Aws::String& GetEntityIdentifier() const{ return m_entityIdentifier; }
86 inline bool EntityIdentifierHasBeenSet() const { return m_entityIdentifierHasBeenSet; }
87 inline void SetEntityIdentifier(const Aws::String& value) { m_entityIdentifierHasBeenSet = true; m_entityIdentifier = value; }
88 inline void SetEntityIdentifier(Aws::String&& value) { m_entityIdentifierHasBeenSet = true; m_entityIdentifier = std::move(value); }
89 inline void SetEntityIdentifier(const char* value) { m_entityIdentifierHasBeenSet = true; m_entityIdentifier.assign(value); }
90 inline AddPolicyGrantRequest& WithEntityIdentifier(const Aws::String& value) { SetEntityIdentifier(value); return *this;}
91 inline AddPolicyGrantRequest& WithEntityIdentifier(Aws::String&& value) { SetEntityIdentifier(std::move(value)); return *this;}
92 inline AddPolicyGrantRequest& WithEntityIdentifier(const char* value) { SetEntityIdentifier(value); return *this;}
94
96
99 inline const TargetEntityType& GetEntityType() const{ return m_entityType; }
100 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
101 inline void SetEntityType(const TargetEntityType& value) { m_entityTypeHasBeenSet = true; m_entityType = value; }
102 inline void SetEntityType(TargetEntityType&& value) { m_entityTypeHasBeenSet = true; m_entityType = std::move(value); }
103 inline AddPolicyGrantRequest& WithEntityType(const TargetEntityType& value) { SetEntityType(value); return *this;}
104 inline AddPolicyGrantRequest& WithEntityType(TargetEntityType&& value) { SetEntityType(std::move(value)); return *this;}
106
108
111 inline const ManagedPolicyType& GetPolicyType() const{ return m_policyType; }
112 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
113 inline void SetPolicyType(const ManagedPolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
114 inline void SetPolicyType(ManagedPolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
115 inline AddPolicyGrantRequest& WithPolicyType(const ManagedPolicyType& value) { SetPolicyType(value); return *this;}
116 inline AddPolicyGrantRequest& WithPolicyType(ManagedPolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
118
120
123 inline const PolicyGrantPrincipal& GetPrincipal() const{ return m_principal; }
124 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
125 inline void SetPrincipal(const PolicyGrantPrincipal& value) { m_principalHasBeenSet = true; m_principal = value; }
126 inline void SetPrincipal(PolicyGrantPrincipal&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
127 inline AddPolicyGrantRequest& WithPrincipal(const PolicyGrantPrincipal& value) { SetPrincipal(value); return *this;}
128 inline AddPolicyGrantRequest& WithPrincipal(PolicyGrantPrincipal&& value) { SetPrincipal(std::move(value)); return *this;}
130 private:
131
132 Aws::String m_clientToken;
133 bool m_clientTokenHasBeenSet = false;
134
135 PolicyGrantDetail m_detail;
136 bool m_detailHasBeenSet = false;
137
138 Aws::String m_domainIdentifier;
139 bool m_domainIdentifierHasBeenSet = false;
140
141 Aws::String m_entityIdentifier;
142 bool m_entityIdentifierHasBeenSet = false;
143
144 TargetEntityType m_entityType;
145 bool m_entityTypeHasBeenSet = false;
146
147 ManagedPolicyType m_policyType;
148 bool m_policyTypeHasBeenSet = false;
149
150 PolicyGrantPrincipal m_principal;
151 bool m_principalHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace DataZone
156} // namespace Aws
AddPolicyGrantRequest & WithEntityIdentifier(const Aws::String &value)
AddPolicyGrantRequest & WithEntityType(const TargetEntityType &value)
AddPolicyGrantRequest & WithEntityIdentifier(Aws::String &&value)
AddPolicyGrantRequest & WithDetail(const PolicyGrantDetail &value)
void SetPolicyType(const ManagedPolicyType &value)
virtual const char * GetServiceRequestName() const override
const PolicyGrantDetail & GetDetail() const
const TargetEntityType & GetEntityType() const
const PolicyGrantPrincipal & GetPrincipal() const
const ManagedPolicyType & GetPolicyType() const
AddPolicyGrantRequest & WithClientToken(const Aws::String &value)
AddPolicyGrantRequest & WithPolicyType(ManagedPolicyType &&value)
AddPolicyGrantRequest & WithDomainIdentifier(const Aws::String &value)
AddPolicyGrantRequest & WithDomainIdentifier(Aws::String &&value)
AddPolicyGrantRequest & WithClientToken(Aws::String &&value)
AddPolicyGrantRequest & WithEntityType(TargetEntityType &&value)
AddPolicyGrantRequest & WithPolicyType(const ManagedPolicyType &value)
AddPolicyGrantRequest & WithClientToken(const char *value)
AddPolicyGrantRequest & WithDomainIdentifier(const char *value)
AddPolicyGrantRequest & WithPrincipal(PolicyGrantPrincipal &&value)
void SetDomainIdentifier(const Aws::String &value)
void SetPrincipal(const PolicyGrantPrincipal &value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
AddPolicyGrantRequest & WithDetail(PolicyGrantDetail &&value)
AddPolicyGrantRequest & WithEntityIdentifier(const char *value)
void SetPrincipal(PolicyGrantPrincipal &&value)
void SetEntityIdentifier(const Aws::String &value)
void SetEntityType(const TargetEntityType &value)
void SetDetail(const PolicyGrantDetail &value)
AddPolicyGrantRequest & WithPrincipal(const PolicyGrantPrincipal &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String