AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
RoutingTarget.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/Destination.h>
11#include <aws/sagemaker/model/InferenceRouterRoutingPreference.h>
12#include <aws/sagemaker/model/RoutingTargetAsyncInferenceConfig.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
36 public:
37 AWS_SAGEMAKER_API RoutingTarget() = default;
38 AWS_SAGEMAKER_API RoutingTarget(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API RoutingTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template <typename NameT = Aws::String>
51 void SetName(NameT&& value) {
52 m_nameHasBeenSet = true;
53 m_name = std::forward<NameT>(value);
54 }
55 template <typename NameT = Aws::String>
56 RoutingTarget& WithName(NameT&& value) {
57 SetName(std::forward<NameT>(value));
58 return *this;
59 }
61
63
73 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
74 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
75 template <typename DestinationsT = Aws::Vector<Destination>>
76 void SetDestinations(DestinationsT&& value) {
77 m_destinationsHasBeenSet = true;
78 m_destinations = std::forward<DestinationsT>(value);
79 }
80 template <typename DestinationsT = Aws::Vector<Destination>>
81 RoutingTarget& WithDestinations(DestinationsT&& value) {
82 SetDestinations(std::forward<DestinationsT>(value));
83 return *this;
84 }
85 template <typename DestinationsT = Destination>
86 RoutingTarget& AddDestinations(DestinationsT&& value) {
87 m_destinationsHasBeenSet = true;
88 m_destinations.emplace_back(std::forward<DestinationsT>(value));
89 return *this;
90 }
92
94
108 inline const RoutingTargetAsyncInferenceConfig& GetAsyncInferenceConfig() const { return m_asyncInferenceConfig; }
109 inline bool AsyncInferenceConfigHasBeenSet() const { return m_asyncInferenceConfigHasBeenSet; }
110 template <typename AsyncInferenceConfigT = RoutingTargetAsyncInferenceConfig>
111 void SetAsyncInferenceConfig(AsyncInferenceConfigT&& value) {
112 m_asyncInferenceConfigHasBeenSet = true;
113 m_asyncInferenceConfig = std::forward<AsyncInferenceConfigT>(value);
114 }
115 template <typename AsyncInferenceConfigT = RoutingTargetAsyncInferenceConfig>
116 RoutingTarget& WithAsyncInferenceConfig(AsyncInferenceConfigT&& value) {
117 SetAsyncInferenceConfig(std::forward<AsyncInferenceConfigT>(value));
118 return *this;
119 }
121
123
136 inline InferenceRouterRoutingPreference GetRoutingPreference() const { return m_routingPreference; }
137 inline bool RoutingPreferenceHasBeenSet() const { return m_routingPreferenceHasBeenSet; }
139 m_routingPreferenceHasBeenSet = true;
140 m_routingPreference = value;
141 }
147 private:
148 Aws::String m_name;
149
150 Aws::Vector<Destination> m_destinations;
151
152 RoutingTargetAsyncInferenceConfig m_asyncInferenceConfig;
153
155 bool m_nameHasBeenSet = false;
156 bool m_destinationsHasBeenSet = false;
157 bool m_asyncInferenceConfigHasBeenSet = false;
158 bool m_routingPreferenceHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace SageMaker
163} // namespace Aws
RoutingTarget & AddDestinations(DestinationsT &&value)
const RoutingTargetAsyncInferenceConfig & GetAsyncInferenceConfig() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDestinations(DestinationsT &&value)
AWS_SAGEMAKER_API RoutingTarget()=default
RoutingTarget & WithName(NameT &&value)
const Aws::Vector< Destination > & GetDestinations() const
void SetAsyncInferenceConfig(AsyncInferenceConfigT &&value)
AWS_SAGEMAKER_API RoutingTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceRouterRoutingPreference GetRoutingPreference() const
RoutingTarget & WithRoutingPreference(InferenceRouterRoutingPreference value)
const Aws::String & GetName() const
void SetRoutingPreference(InferenceRouterRoutingPreference value)
AWS_SAGEMAKER_API RoutingTarget(Aws::Utils::Json::JsonView jsonValue)
RoutingTarget & WithAsyncInferenceConfig(AsyncInferenceConfigT &&value)
RoutingTarget & WithDestinations(DestinationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue