AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CreateGuardrailVersionRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace Bedrock
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_BEDROCK_API CreateGuardrailVersionRequest() = 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 "CreateGuardrailVersion"; }
32
33 AWS_BEDROCK_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetGuardrailIdentifier() const { return m_guardrailIdentifier; }
41 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
42 template<typename GuardrailIdentifierT = Aws::String>
43 void SetGuardrailIdentifier(GuardrailIdentifierT&& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = std::forward<GuardrailIdentifierT>(value); }
44 template<typename GuardrailIdentifierT = Aws::String>
45 CreateGuardrailVersionRequest& WithGuardrailIdentifier(GuardrailIdentifierT&& value) { SetGuardrailIdentifier(std::forward<GuardrailIdentifierT>(value)); return *this;}
47
49
52 inline const Aws::String& GetDescription() const { return m_description; }
53 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 template<typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
56 template<typename DescriptionT = Aws::String>
57 CreateGuardrailVersionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
59
61
68 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
69 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
70 template<typename ClientRequestTokenT = Aws::String>
71 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
72 template<typename ClientRequestTokenT = Aws::String>
73 CreateGuardrailVersionRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
75 private:
76
77 Aws::String m_guardrailIdentifier;
78 bool m_guardrailIdentifierHasBeenSet = false;
79
80 Aws::String m_description;
81 bool m_descriptionHasBeenSet = false;
82
83 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
84 bool m_clientRequestTokenHasBeenSet = true;
85 };
86
87} // namespace Model
88} // namespace Bedrock
89} // 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