AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
GetGuardrailRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace Bedrock {
18namespace Model {
19
23 public:
24 AWS_BEDROCK_API GetGuardrailRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetGuardrail"; }
31
32 AWS_BEDROCK_API Aws::String SerializePayload() const override;
33
34 AWS_BEDROCK_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
41 inline const Aws::String& GetGuardrailIdentifier() const { return m_guardrailIdentifier; }
42 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
43 template <typename GuardrailIdentifierT = Aws::String>
45 m_guardrailIdentifierHasBeenSet = true;
46 m_guardrailIdentifier = std::forward<GuardrailIdentifierT>(value);
47 }
48 template <typename GuardrailIdentifierT = Aws::String>
50 SetGuardrailIdentifier(std::forward<GuardrailIdentifierT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetGuardrailVersion() const { return m_guardrailVersion; }
61 inline bool GuardrailVersionHasBeenSet() const { return m_guardrailVersionHasBeenSet; }
62 template <typename GuardrailVersionT = Aws::String>
64 m_guardrailVersionHasBeenSet = true;
65 m_guardrailVersion = std::forward<GuardrailVersionT>(value);
66 }
67 template <typename GuardrailVersionT = Aws::String>
69 SetGuardrailVersion(std::forward<GuardrailVersionT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_guardrailIdentifier;
75
76 Aws::String m_guardrailVersion;
77 bool m_guardrailIdentifierHasBeenSet = false;
78 bool m_guardrailVersionHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Bedrock
83} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetGuardrailVersion(GuardrailVersionT &&value)
AWS_BEDROCK_API GetGuardrailRequest()=default
void SetGuardrailIdentifier(GuardrailIdentifierT &&value)
GetGuardrailRequest & WithGuardrailVersion(GuardrailVersionT &&value)
const Aws::String & GetGuardrailIdentifier() const
AWS_BEDROCK_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetGuardrailVersion() const
AWS_BEDROCK_API Aws::String SerializePayload() const override
GetGuardrailRequest & WithGuardrailIdentifier(GuardrailIdentifierT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String