AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateDomainUnitRequest.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
12#include <utility>
13
14namespace Aws {
15namespace DataZone {
16namespace Model {
17
21 public:
22 AWS_DATAZONE_API CreateDomainUnitRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateDomainUnit"; }
29
30 AWS_DATAZONE_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
37 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
38 template <typename DomainIdentifierT = Aws::String>
39 void SetDomainIdentifier(DomainIdentifierT&& value) {
40 m_domainIdentifierHasBeenSet = true;
41 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
42 }
43 template <typename DomainIdentifierT = Aws::String>
44 CreateDomainUnitRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
45 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetParentDomainUnitIdentifier() const { return m_parentDomainUnitIdentifier; }
73 inline bool ParentDomainUnitIdentifierHasBeenSet() const { return m_parentDomainUnitIdentifierHasBeenSet; }
74 template <typename ParentDomainUnitIdentifierT = Aws::String>
75 void SetParentDomainUnitIdentifier(ParentDomainUnitIdentifierT&& value) {
76 m_parentDomainUnitIdentifierHasBeenSet = true;
77 m_parentDomainUnitIdentifier = std::forward<ParentDomainUnitIdentifierT>(value);
78 }
79 template <typename ParentDomainUnitIdentifierT = Aws::String>
80 CreateDomainUnitRequest& WithParentDomainUnitIdentifier(ParentDomainUnitIdentifierT&& value) {
81 SetParentDomainUnitIdentifier(std::forward<ParentDomainUnitIdentifierT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetDescription() const { return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 template <typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) {
94 m_descriptionHasBeenSet = true;
95 m_description = std::forward<DescriptionT>(value);
96 }
97 template <typename DescriptionT = Aws::String>
99 SetDescription(std::forward<DescriptionT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetClientToken() const { return m_clientToken; }
110 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
111 template <typename ClientTokenT = Aws::String>
112 void SetClientToken(ClientTokenT&& value) {
113 m_clientTokenHasBeenSet = true;
114 m_clientToken = std::forward<ClientTokenT>(value);
115 }
116 template <typename ClientTokenT = Aws::String>
118 SetClientToken(std::forward<ClientTokenT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_domainIdentifier;
124
125 Aws::String m_name;
126
127 Aws::String m_parentDomainUnitIdentifier;
128
129 Aws::String m_description;
130
132 bool m_domainIdentifierHasBeenSet = false;
133 bool m_nameHasBeenSet = false;
134 bool m_parentDomainUnitIdentifierHasBeenSet = false;
135 bool m_descriptionHasBeenSet = false;
136 bool m_clientTokenHasBeenSet = true;
137};
138
139} // namespace Model
140} // namespace DataZone
141} // namespace Aws
CreateDomainUnitRequest & WithDomainIdentifier(DomainIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DATAZONE_API CreateDomainUnitRequest()=default
void SetParentDomainUnitIdentifier(ParentDomainUnitIdentifierT &&value)
CreateDomainUnitRequest & WithParentDomainUnitIdentifier(ParentDomainUnitIdentifierT &&value)
CreateDomainUnitRequest & WithDescription(DescriptionT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateDomainUnitRequest & WithName(NameT &&value)
CreateDomainUnitRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String