AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
AddEntityOwnerRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/DataZoneEntityType.h>
12#include <aws/datazone/model/OwnerProperties.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DataZone {
18namespace Model {
19
23 public:
24 AWS_DATAZONE_API AddEntityOwnerRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AddEntityOwner"; }
31
32 AWS_DATAZONE_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetClientToken() const { return m_clientToken; }
40 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
41 template <typename ClientTokenT = Aws::String>
42 void SetClientToken(ClientTokenT&& value) {
43 m_clientTokenHasBeenSet = true;
44 m_clientToken = std::forward<ClientTokenT>(value);
45 }
46 template <typename ClientTokenT = Aws::String>
47 AddEntityOwnerRequest& WithClientToken(ClientTokenT&& value) {
48 SetClientToken(std::forward<ClientTokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
58 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
59 template <typename DomainIdentifierT = Aws::String>
60 void SetDomainIdentifier(DomainIdentifierT&& value) {
61 m_domainIdentifierHasBeenSet = true;
62 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
63 }
64 template <typename DomainIdentifierT = Aws::String>
65 AddEntityOwnerRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
66 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetEntityIdentifier() const { return m_entityIdentifier; }
76 inline bool EntityIdentifierHasBeenSet() const { return m_entityIdentifierHasBeenSet; }
77 template <typename EntityIdentifierT = Aws::String>
78 void SetEntityIdentifier(EntityIdentifierT&& value) {
79 m_entityIdentifierHasBeenSet = true;
80 m_entityIdentifier = std::forward<EntityIdentifierT>(value);
81 }
82 template <typename EntityIdentifierT = Aws::String>
83 AddEntityOwnerRequest& WithEntityIdentifier(EntityIdentifierT&& value) {
84 SetEntityIdentifier(std::forward<EntityIdentifierT>(value));
85 return *this;
86 }
88
90
93 inline DataZoneEntityType GetEntityType() const { return m_entityType; }
94 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
95 inline void SetEntityType(DataZoneEntityType value) {
96 m_entityTypeHasBeenSet = true;
97 m_entityType = value;
98 }
100 SetEntityType(value);
101 return *this;
102 }
104
106
109 inline const OwnerProperties& GetOwner() const { return m_owner; }
110 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
111 template <typename OwnerT = OwnerProperties>
112 void SetOwner(OwnerT&& value) {
113 m_ownerHasBeenSet = true;
114 m_owner = std::forward<OwnerT>(value);
115 }
116 template <typename OwnerT = OwnerProperties>
118 SetOwner(std::forward<OwnerT>(value));
119 return *this;
120 }
122 private:
124 bool m_clientTokenHasBeenSet = true;
125
126 Aws::String m_domainIdentifier;
127 bool m_domainIdentifierHasBeenSet = false;
128
129 Aws::String m_entityIdentifier;
130 bool m_entityIdentifierHasBeenSet = false;
131
133 bool m_entityTypeHasBeenSet = false;
134
135 OwnerProperties m_owner;
136 bool m_ownerHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace DataZone
141} // namespace Aws
AddEntityOwnerRequest & WithEntityType(DataZoneEntityType value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
AddEntityOwnerRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AddEntityOwnerRequest & WithEntityIdentifier(EntityIdentifierT &&value)
void SetDomainIdentifier(DomainIdentifierT &&value)
void SetEntityIdentifier(EntityIdentifierT &&value)
AWS_DATAZONE_API AddEntityOwnerRequest()=default
AddEntityOwnerRequest & WithDomainIdentifier(DomainIdentifierT &&value)
AddEntityOwnerRequest & WithOwner(OwnerT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String