AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
HumanEvaluationCustomMetric.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Bedrock {
20namespace Model {
21
30 public:
31 AWS_BEDROCK_API HumanEvaluationCustomMetric() = default;
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetRatingMethod() const { return m_ratingMethod; }
82 inline bool RatingMethodHasBeenSet() const { return m_ratingMethodHasBeenSet; }
83 template <typename RatingMethodT = Aws::String>
85 m_ratingMethodHasBeenSet = true;
86 m_ratingMethod = std::forward<RatingMethodT>(value);
87 }
88 template <typename RatingMethodT = Aws::String>
90 SetRatingMethod(std::forward<RatingMethodT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_name;
96
97 Aws::String m_description;
98
99 Aws::String m_ratingMethod;
100 bool m_nameHasBeenSet = false;
101 bool m_descriptionHasBeenSet = false;
102 bool m_ratingMethodHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Bedrock
107} // namespace Aws
AWS_BEDROCK_API HumanEvaluationCustomMetric()=default
AWS_BEDROCK_API HumanEvaluationCustomMetric(Aws::Utils::Json::JsonView jsonValue)
HumanEvaluationCustomMetric & WithDescription(DescriptionT &&value)
AWS_BEDROCK_API HumanEvaluationCustomMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
HumanEvaluationCustomMetric & WithRatingMethod(RatingMethodT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
HumanEvaluationCustomMetric & WithName(NameT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue