AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
Variant.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/VariantConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentCore {
21namespace Model {
22
29class Variant {
30 public:
31 AWS_BEDROCKAGENTCORE_API Variant() = default;
32 AWS_BEDROCKAGENTCORE_API Variant(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTCORE_API Variant& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTCORE_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>
49 Variant& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline int GetWeight() const { return m_weight; }
61 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
62 inline void SetWeight(int value) {
63 m_weightHasBeenSet = true;
64 m_weight = value;
65 }
66 inline Variant& WithWeight(int value) {
67 SetWeight(value);
68 return *this;
69 }
71
73
77 inline const VariantConfiguration& GetVariantConfiguration() const { return m_variantConfiguration; }
78 inline bool VariantConfigurationHasBeenSet() const { return m_variantConfigurationHasBeenSet; }
79 template <typename VariantConfigurationT = VariantConfiguration>
80 void SetVariantConfiguration(VariantConfigurationT&& value) {
81 m_variantConfigurationHasBeenSet = true;
82 m_variantConfiguration = std::forward<VariantConfigurationT>(value);
83 }
84 template <typename VariantConfigurationT = VariantConfiguration>
85 Variant& WithVariantConfiguration(VariantConfigurationT&& value) {
86 SetVariantConfiguration(std::forward<VariantConfigurationT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_name;
92
93 int m_weight{0};
94
95 VariantConfiguration m_variantConfiguration;
96 bool m_nameHasBeenSet = false;
97 bool m_weightHasBeenSet = false;
98 bool m_variantConfigurationHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace BedrockAgentCore
103} // namespace Aws
Variant & WithVariantConfiguration(VariantConfigurationT &&value)
Definition Variant.h:85
bool VariantConfigurationHasBeenSet() const
Definition Variant.h:78
Variant & WithWeight(int value)
Definition Variant.h:66
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVariantConfiguration(VariantConfigurationT &&value)
Definition Variant.h:80
AWS_BEDROCKAGENTCORE_API Variant(Aws::Utils::Json::JsonView jsonValue)
const VariantConfiguration & GetVariantConfiguration() const
Definition Variant.h:77
const Aws::String & GetName() const
Definition Variant.h:41
AWS_BEDROCKAGENTCORE_API Variant & operator=(Aws::Utils::Json::JsonView jsonValue)
Variant & WithName(NameT &&value)
Definition Variant.h:49
AWS_BEDROCKAGENTCORE_API Variant()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue