AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
CreateGuardrailVersionRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Bedrock {
16namespace Model {
17
21 public:
22 AWS_BEDROCK_API CreateGuardrailVersionRequest() = 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 "CreateGuardrailVersion"; }
29
30 AWS_BEDROCK_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetGuardrailIdentifier() const { return m_guardrailIdentifier; }
37 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
38 template <typename GuardrailIdentifierT = Aws::String>
39 void SetGuardrailIdentifier(GuardrailIdentifierT&& value) {
40 m_guardrailIdentifierHasBeenSet = true;
41 m_guardrailIdentifier = std::forward<GuardrailIdentifierT>(value);
42 }
43 template <typename GuardrailIdentifierT = Aws::String>
45 SetGuardrailIdentifier(std::forward<GuardrailIdentifierT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template <typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) {
58 m_descriptionHasBeenSet = true;
59 m_description = std::forward<DescriptionT>(value);
60 }
61 template <typename DescriptionT = Aws::String>
63 SetDescription(std::forward<DescriptionT>(value));
64 return *this;
65 }
67
69
76 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
77 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
78 template <typename ClientRequestTokenT = Aws::String>
79 void SetClientRequestToken(ClientRequestTokenT&& value) {
80 m_clientRequestTokenHasBeenSet = true;
81 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
82 }
83 template <typename ClientRequestTokenT = Aws::String>
85 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_guardrailIdentifier;
91 bool m_guardrailIdentifierHasBeenSet = false;
92
93 Aws::String m_description;
94 bool m_descriptionHasBeenSet = false;
95
96 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
97 bool m_clientRequestTokenHasBeenSet = true;
98};
99
100} // namespace Model
101} // namespace Bedrock
102} // namespace Aws
CreateGuardrailVersionRequest & WithGuardrailIdentifier(GuardrailIdentifierT &&value)
CreateGuardrailVersionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_BEDROCK_API CreateGuardrailVersionRequest()=default
AWS_BEDROCK_API Aws::String SerializePayload() const override
CreateGuardrailVersionRequest & WithDescription(DescriptionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String