AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
VariantConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/ConfigurationBundleRef.h>
9#include <aws/bedrock-agentcore/model/TargetRef.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
29 public:
30 AWS_BEDROCKAGENTCORE_API VariantConfiguration() = default;
31 AWS_BEDROCKAGENTCORE_API VariantConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BEDROCKAGENTCORE_API VariantConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const ConfigurationBundleRef& GetConfigurationBundle() const { return m_configurationBundle; }
40 inline bool ConfigurationBundleHasBeenSet() const { return m_configurationBundleHasBeenSet; }
41 template <typename ConfigurationBundleT = ConfigurationBundleRef>
42 void SetConfigurationBundle(ConfigurationBundleT&& value) {
43 m_configurationBundleHasBeenSet = true;
44 m_configurationBundle = std::forward<ConfigurationBundleT>(value);
45 }
46 template <typename ConfigurationBundleT = ConfigurationBundleRef>
47 VariantConfiguration& WithConfigurationBundle(ConfigurationBundleT&& value) {
48 SetConfigurationBundle(std::forward<ConfigurationBundleT>(value));
49 return *this;
50 }
52
54
57 inline const TargetRef& GetTarget() const { return m_target; }
58 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
59 template <typename TargetT = TargetRef>
60 void SetTarget(TargetT&& value) {
61 m_targetHasBeenSet = true;
62 m_target = std::forward<TargetT>(value);
63 }
64 template <typename TargetT = TargetRef>
65 VariantConfiguration& WithTarget(TargetT&& value) {
66 SetTarget(std::forward<TargetT>(value));
67 return *this;
68 }
70 private:
71 ConfigurationBundleRef m_configurationBundle;
72
73 TargetRef m_target;
74 bool m_configurationBundleHasBeenSet = false;
75 bool m_targetHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace BedrockAgentCore
80} // namespace Aws
AWS_BEDROCKAGENTCORE_API VariantConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetConfigurationBundle(ConfigurationBundleT &&value)
VariantConfiguration & WithConfigurationBundle(ConfigurationBundleT &&value)
AWS_BEDROCKAGENTCORE_API VariantConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTCORE_API VariantConfiguration()=default
const ConfigurationBundleRef & GetConfigurationBundle() const
VariantConfiguration & WithTarget(TargetT &&value)
Aws::Utils::Json::JsonValue JsonValue