AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CreateDesignationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace DataZone {
15namespace Model {
16
20 public:
21 AWS_DATAZONE_API CreateDesignationRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateDesignation"; }
28
29 AWS_DATAZONE_API Aws::String SerializePayload() const override;
30
32
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 CreateDesignationRequest& 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& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetPolicy() const { return m_policy; }
92 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
93 template <typename PolicyT = Aws::String>
94 void SetPolicy(PolicyT&& value) {
95 m_policyHasBeenSet = true;
96 m_policy = std::forward<PolicyT>(value);
97 }
98 template <typename PolicyT = Aws::String>
100 SetPolicy(std::forward<PolicyT>(value));
101 return *this;
102 }
104
106
112 inline bool GetDeletionProtection() const { return m_deletionProtection; }
113 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
114 inline void SetDeletionProtection(bool value) {
115 m_deletionProtectionHasBeenSet = true;
116 m_deletionProtection = value;
117 }
120 return *this;
121 }
123 private:
124 Aws::String m_domainIdentifier;
125
126 Aws::String m_name;
127
128 Aws::String m_description;
129
130 Aws::String m_policy;
131
132 bool m_deletionProtection{false};
133 bool m_domainIdentifierHasBeenSet = false;
134 bool m_nameHasBeenSet = false;
135 bool m_descriptionHasBeenSet = false;
136 bool m_policyHasBeenSet = false;
137 bool m_deletionProtectionHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace DataZone
142} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateDesignationRequest & WithDomainIdentifier(DomainIdentifierT &&value)
CreateDesignationRequest & WithName(NameT &&value)
CreateDesignationRequest & WithDescription(DescriptionT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
AWS_DATAZONE_API CreateDesignationRequest()=default
CreateDesignationRequest & WithPolicy(PolicyT &&value)
CreateDesignationRequest & WithDeletionProtection(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String