AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
CreateAutomatedReasoningPolicyRequest.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/BedrockRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock/model/AutomatedReasoningPolicyDefinition.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/bedrock/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Bedrock
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BEDROCK_API CreateAutomatedReasoningPolicyRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAutomatedReasoningPolicy"; }
35
36 AWS_BEDROCK_API Aws::String SerializePayload() const override;
37
38
40
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateAutomatedReasoningPolicyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 CreateAutomatedReasoningPolicyRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
72 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
73 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
74 template<typename ClientRequestTokenT = Aws::String>
75 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
76 template<typename ClientRequestTokenT = Aws::String>
77 CreateAutomatedReasoningPolicyRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
79
81
86 inline const AutomatedReasoningPolicyDefinition& GetPolicyDefinition() const { return m_policyDefinition; }
87 inline bool PolicyDefinitionHasBeenSet() const { return m_policyDefinitionHasBeenSet; }
88 template<typename PolicyDefinitionT = AutomatedReasoningPolicyDefinition>
89 void SetPolicyDefinition(PolicyDefinitionT&& value) { m_policyDefinitionHasBeenSet = true; m_policyDefinition = std::forward<PolicyDefinitionT>(value); }
90 template<typename PolicyDefinitionT = AutomatedReasoningPolicyDefinition>
91 CreateAutomatedReasoningPolicyRequest& WithPolicyDefinition(PolicyDefinitionT&& value) { SetPolicyDefinition(std::forward<PolicyDefinitionT>(value)); return *this;}
93
95
99 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template<typename TagsT = Aws::Vector<Tag>>
102 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
103 template<typename TagsT = Aws::Vector<Tag>>
104 CreateAutomatedReasoningPolicyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
105 template<typename TagsT = Tag>
106 CreateAutomatedReasoningPolicyRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
108 private:
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
113 Aws::String m_description;
114 bool m_descriptionHasBeenSet = false;
115
116 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
117 bool m_clientRequestTokenHasBeenSet = true;
118
119 AutomatedReasoningPolicyDefinition m_policyDefinition;
120 bool m_policyDefinitionHasBeenSet = false;
121
122 Aws::Vector<Tag> m_tags;
123 bool m_tagsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Bedrock
128} // namespace Aws
CreateAutomatedReasoningPolicyRequest & WithDescription(DescriptionT &&value)
CreateAutomatedReasoningPolicyRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateAutomatedReasoningPolicyRequest & WithTags(TagsT &&value)
CreateAutomatedReasoningPolicyRequest & WithName(NameT &&value)
const AutomatedReasoningPolicyDefinition & GetPolicyDefinition() const
CreateAutomatedReasoningPolicyRequest & WithPolicyDefinition(PolicyDefinitionT &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector