AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CustomMetricDefinition.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock/model/RatingScaleItem.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 Bedrock
24{
25namespace Model
26{
27
44 {
45 public:
46 AWS_BEDROCK_API CustomMetricDefinition() = default;
49 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 CustomMetricDefinition& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_instructionsHasBeenSet = true; m_instructions = std::forward<InstructionsT>(value); }
74 template<typename InstructionsT = Aws::String>
75 CustomMetricDefinition& WithInstructions(InstructionsT&& value) { SetInstructions(std::forward<InstructionsT>(value)); return *this;}
77
79
88 inline const Aws::Vector<RatingScaleItem>& GetRatingScale() const { return m_ratingScale; }
89 inline bool RatingScaleHasBeenSet() const { return m_ratingScaleHasBeenSet; }
90 template<typename RatingScaleT = Aws::Vector<RatingScaleItem>>
91 void SetRatingScale(RatingScaleT&& value) { m_ratingScaleHasBeenSet = true; m_ratingScale = std::forward<RatingScaleT>(value); }
92 template<typename RatingScaleT = Aws::Vector<RatingScaleItem>>
93 CustomMetricDefinition& WithRatingScale(RatingScaleT&& value) { SetRatingScale(std::forward<RatingScaleT>(value)); return *this;}
94 template<typename RatingScaleT = RatingScaleItem>
95 CustomMetricDefinition& AddRatingScale(RatingScaleT&& value) { m_ratingScaleHasBeenSet = true; m_ratingScale.emplace_back(std::forward<RatingScaleT>(value)); return *this; }
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 Aws::String m_instructions;
103 bool m_instructionsHasBeenSet = false;
104
105 Aws::Vector<RatingScaleItem> m_ratingScale;
106 bool m_ratingScaleHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Bedrock
111} // 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