AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateAutomatedReasoningPolicyRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/bedrock/model/AutomatedReasoningPolicyDefinition.h>
10#include <aws/bedrock/model/Tag.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Bedrock {
19namespace Model {
20
24 public:
25 AWS_BEDROCK_API CreateAutomatedReasoningPolicyRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAutomatedReasoningPolicy"; }
32
33 AWS_BEDROCK_API Aws::String SerializePayload() const override;
34
36
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
81 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
82 template <typename ClientRequestTokenT = Aws::String>
84 m_clientRequestTokenHasBeenSet = true;
85 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
86 }
87 template <typename ClientRequestTokenT = Aws::String>
89 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
90 return *this;
91 }
93
95
100 inline const AutomatedReasoningPolicyDefinition& GetPolicyDefinition() const { return m_policyDefinition; }
101 inline bool PolicyDefinitionHasBeenSet() const { return m_policyDefinitionHasBeenSet; }
102 template <typename PolicyDefinitionT = AutomatedReasoningPolicyDefinition>
104 m_policyDefinitionHasBeenSet = true;
105 m_policyDefinition = std::forward<PolicyDefinitionT>(value);
106 }
107 template <typename PolicyDefinitionT = AutomatedReasoningPolicyDefinition>
109 SetPolicyDefinition(std::forward<PolicyDefinitionT>(value));
110 return *this;
111 }
113
115
121 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
122 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
123 template <typename KmsKeyIdT = Aws::String>
124 void SetKmsKeyId(KmsKeyIdT&& value) {
125 m_kmsKeyIdHasBeenSet = true;
126 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
127 }
128 template <typename KmsKeyIdT = Aws::String>
130 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 template <typename TagsT = Aws::Vector<Tag>>
143 void SetTags(TagsT&& value) {
144 m_tagsHasBeenSet = true;
145 m_tags = std::forward<TagsT>(value);
146 }
147 template <typename TagsT = Aws::Vector<Tag>>
149 SetTags(std::forward<TagsT>(value));
150 return *this;
151 }
152 template <typename TagsT = Tag>
154 m_tagsHasBeenSet = true;
155 m_tags.emplace_back(std::forward<TagsT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_name;
161
162 Aws::String m_description;
163
164 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
165
166 AutomatedReasoningPolicyDefinition m_policyDefinition;
167
168 Aws::String m_kmsKeyId;
169
170 Aws::Vector<Tag> m_tags;
171 bool m_nameHasBeenSet = false;
172 bool m_descriptionHasBeenSet = false;
173 bool m_clientRequestTokenHasBeenSet = true;
174 bool m_policyDefinitionHasBeenSet = false;
175 bool m_kmsKeyIdHasBeenSet = false;
176 bool m_tagsHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace Bedrock
181} // namespace Aws
CreateAutomatedReasoningPolicyRequest & WithDescription(DescriptionT &&value)
CreateAutomatedReasoningPolicyRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateAutomatedReasoningPolicyRequest & WithTags(TagsT &&value)
CreateAutomatedReasoningPolicyRequest & WithName(NameT &&value)
CreateAutomatedReasoningPolicyRequest & WithPolicyDefinition(PolicyDefinitionT &&value)
CreateAutomatedReasoningPolicyRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector