AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailManagedWord.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-runtime/model/GuardrailManagedWordType.h>
10#include <aws/bedrock-runtime/model/GuardrailWordPolicyAction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockRuntime
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API GuardrailManagedWord();
37 AWS_BEDROCKRUNTIME_API GuardrailManagedWord(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API GuardrailManagedWord& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMatch() const{ return m_match; }
47 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
48 inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; }
49 inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
50 inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); }
51 inline GuardrailManagedWord& WithMatch(const Aws::String& value) { SetMatch(value); return *this;}
52 inline GuardrailManagedWord& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;}
53 inline GuardrailManagedWord& WithMatch(const char* value) { SetMatch(value); return *this;}
55
57
60 inline const GuardrailManagedWordType& GetType() const{ return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(const GuardrailManagedWordType& value) { m_typeHasBeenSet = true; m_type = value; }
63 inline void SetType(GuardrailManagedWordType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
64 inline GuardrailManagedWord& WithType(const GuardrailManagedWordType& value) { SetType(value); return *this;}
65 inline GuardrailManagedWord& WithType(GuardrailManagedWordType&& value) { SetType(std::move(value)); return *this;}
67
69
72 inline const GuardrailWordPolicyAction& GetAction() const{ return m_action; }
73 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
74 inline void SetAction(const GuardrailWordPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
75 inline void SetAction(GuardrailWordPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
76 inline GuardrailManagedWord& WithAction(const GuardrailWordPolicyAction& value) { SetAction(value); return *this;}
77 inline GuardrailManagedWord& WithAction(GuardrailWordPolicyAction&& value) { SetAction(std::move(value)); return *this;}
79 private:
80
81 Aws::String m_match;
82 bool m_matchHasBeenSet = false;
83
85 bool m_typeHasBeenSet = false;
86
88 bool m_actionHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace BedrockRuntime
93} // namespace Aws
void SetAction(GuardrailWordPolicyAction &&value)
GuardrailManagedWord & WithType(const GuardrailManagedWordType &value)
GuardrailManagedWord & WithMatch(Aws::String &&value)
GuardrailManagedWord & WithAction(GuardrailWordPolicyAction &&value)
void SetAction(const GuardrailWordPolicyAction &value)
GuardrailManagedWord & WithMatch(const Aws::String &value)
const GuardrailWordPolicyAction & GetAction() const
void SetType(GuardrailManagedWordType &&value)
GuardrailManagedWord & WithType(GuardrailManagedWordType &&value)
const GuardrailManagedWordType & GetType() const
AWS_BEDROCKRUNTIME_API GuardrailManagedWord(Aws::Utils::Json::JsonView jsonValue)
GuardrailManagedWord & WithAction(const GuardrailWordPolicyAction &value)
GuardrailManagedWord & WithMatch(const char *value)
AWS_BEDROCKRUNTIME_API GuardrailManagedWord & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const GuardrailManagedWordType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue