AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
GuardrailCoverage.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailImageCoverage.h>
9#include <aws/bedrock-runtime/model/GuardrailTextCharactersCoverage.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
29 public:
30 AWS_BEDROCKRUNTIME_API GuardrailCoverage() = default;
33 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const GuardrailTextCharactersCoverage& GetTextCharacters() const { return m_textCharacters; }
40 inline bool TextCharactersHasBeenSet() const { return m_textCharactersHasBeenSet; }
41 template <typename TextCharactersT = GuardrailTextCharactersCoverage>
43 m_textCharactersHasBeenSet = true;
44 m_textCharacters = std::forward<TextCharactersT>(value);
45 }
46 template <typename TextCharactersT = GuardrailTextCharactersCoverage>
48 SetTextCharacters(std::forward<TextCharactersT>(value));
49 return *this;
50 }
52
54
58 inline const GuardrailImageCoverage& GetImages() const { return m_images; }
59 inline bool ImagesHasBeenSet() const { return m_imagesHasBeenSet; }
60 template <typename ImagesT = GuardrailImageCoverage>
61 void SetImages(ImagesT&& value) {
62 m_imagesHasBeenSet = true;
63 m_images = std::forward<ImagesT>(value);
64 }
65 template <typename ImagesT = GuardrailImageCoverage>
67 SetImages(std::forward<ImagesT>(value));
68 return *this;
69 }
71 private:
72 GuardrailTextCharactersCoverage m_textCharacters;
73
75 bool m_textCharactersHasBeenSet = false;
76 bool m_imagesHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace BedrockRuntime
81} // namespace Aws
GuardrailCoverage & WithTextCharacters(TextCharactersT &&value)
AWS_BEDROCKRUNTIME_API GuardrailCoverage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailCoverage()=default
const GuardrailTextCharactersCoverage & GetTextCharacters() const
const GuardrailImageCoverage & GetImages() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API GuardrailCoverage(Aws::Utils::Json::JsonView jsonValue)
GuardrailCoverage & WithImages(ImagesT &&value)
void SetTextCharacters(TextCharactersT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue