AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CustomMetricDefinition.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/RatingScaleItem.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Bedrock {
22namespace Model {
23
40 public:
41 AWS_BEDROCK_API CustomMetricDefinition() = default;
44 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template <typename NameT = Aws::String>
54 void SetName(NameT&& value) {
55 m_nameHasBeenSet = true;
56 m_name = std::forward<NameT>(value);
57 }
58 template <typename NameT = Aws::String>
60 SetName(std::forward<NameT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetInstructions() const { return m_instructions; }
71 inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; }
72 template <typename InstructionsT = Aws::String>
73 void SetInstructions(InstructionsT&& value) {
74 m_instructionsHasBeenSet = true;
75 m_instructions = std::forward<InstructionsT>(value);
76 }
77 template <typename InstructionsT = Aws::String>
78 CustomMetricDefinition& WithInstructions(InstructionsT&& value) {
79 SetInstructions(std::forward<InstructionsT>(value));
80 return *this;
81 }
83
85
94 inline const Aws::Vector<RatingScaleItem>& GetRatingScale() const { return m_ratingScale; }
95 inline bool RatingScaleHasBeenSet() const { return m_ratingScaleHasBeenSet; }
96 template <typename RatingScaleT = Aws::Vector<RatingScaleItem>>
97 void SetRatingScale(RatingScaleT&& value) {
98 m_ratingScaleHasBeenSet = true;
99 m_ratingScale = std::forward<RatingScaleT>(value);
100 }
101 template <typename RatingScaleT = Aws::Vector<RatingScaleItem>>
103 SetRatingScale(std::forward<RatingScaleT>(value));
104 return *this;
105 }
106 template <typename RatingScaleT = RatingScaleItem>
107 CustomMetricDefinition& AddRatingScale(RatingScaleT&& value) {
108 m_ratingScaleHasBeenSet = true;
109 m_ratingScale.emplace_back(std::forward<RatingScaleT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_instructions;
118 bool m_instructionsHasBeenSet = false;
119
120 Aws::Vector<RatingScaleItem> m_ratingScale;
121 bool m_ratingScaleHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Bedrock
126} // namespace Aws
AWS_BEDROCK_API CustomMetricDefinition()=default
CustomMetricDefinition & WithRatingScale(RatingScaleT &&value)
CustomMetricDefinition & WithInstructions(InstructionsT &&value)
CustomMetricDefinition & WithName(NameT &&value)
CustomMetricDefinition & AddRatingScale(RatingScaleT &&value)
const Aws::Vector< RatingScaleItem > & GetRatingScale() const
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API CustomMetricDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API CustomMetricDefinition(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue