AWS SDK for C++

AWS SDK for C++ Version 1.11.804

Loading...
Searching...
No Matches
AIBenchmarkEndpoint.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/AIBenchmarkInferenceComponent.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API AIBenchmarkEndpoint() = default;
33 AWS_SAGEMAKER_API AIBenchmarkEndpoint(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetIdentifier() const { return m_identifier; }
43 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
44 template <typename IdentifierT = Aws::String>
45 void SetIdentifier(IdentifierT&& value) {
46 m_identifierHasBeenSet = true;
47 m_identifier = std::forward<IdentifierT>(value);
48 }
49 template <typename IdentifierT = Aws::String>
50 AIBenchmarkEndpoint& WithIdentifier(IdentifierT&& value) {
51 SetIdentifier(std::forward<IdentifierT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetTargetContainerHostname() const { return m_targetContainerHostname; }
62 inline bool TargetContainerHostnameHasBeenSet() const { return m_targetContainerHostnameHasBeenSet; }
63 template <typename TargetContainerHostnameT = Aws::String>
64 void SetTargetContainerHostname(TargetContainerHostnameT&& value) {
65 m_targetContainerHostnameHasBeenSet = true;
66 m_targetContainerHostname = std::forward<TargetContainerHostnameT>(value);
67 }
68 template <typename TargetContainerHostnameT = Aws::String>
69 AIBenchmarkEndpoint& WithTargetContainerHostname(TargetContainerHostnameT&& value) {
70 SetTargetContainerHostname(std::forward<TargetContainerHostnameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<AIBenchmarkInferenceComponent>& GetInferenceComponents() const { return m_inferenceComponents; }
80 inline bool InferenceComponentsHasBeenSet() const { return m_inferenceComponentsHasBeenSet; }
81 template <typename InferenceComponentsT = Aws::Vector<AIBenchmarkInferenceComponent>>
82 void SetInferenceComponents(InferenceComponentsT&& value) {
83 m_inferenceComponentsHasBeenSet = true;
84 m_inferenceComponents = std::forward<InferenceComponentsT>(value);
85 }
86 template <typename InferenceComponentsT = Aws::Vector<AIBenchmarkInferenceComponent>>
87 AIBenchmarkEndpoint& WithInferenceComponents(InferenceComponentsT&& value) {
88 SetInferenceComponents(std::forward<InferenceComponentsT>(value));
89 return *this;
90 }
91 template <typename InferenceComponentsT = AIBenchmarkInferenceComponent>
92 AIBenchmarkEndpoint& AddInferenceComponents(InferenceComponentsT&& value) {
93 m_inferenceComponentsHasBeenSet = true;
94 m_inferenceComponents.emplace_back(std::forward<InferenceComponentsT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_identifier;
100
101 Aws::String m_targetContainerHostname;
102
103 Aws::Vector<AIBenchmarkInferenceComponent> m_inferenceComponents;
104 bool m_identifierHasBeenSet = false;
105 bool m_targetContainerHostnameHasBeenSet = false;
106 bool m_inferenceComponentsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace SageMaker
111} // namespace Aws
AIBenchmarkEndpoint & WithTargetContainerHostname(TargetContainerHostnameT &&value)
const Aws::Vector< AIBenchmarkInferenceComponent > & GetInferenceComponents() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API AIBenchmarkEndpoint()=default
AIBenchmarkEndpoint & AddInferenceComponents(InferenceComponentsT &&value)
void SetTargetContainerHostname(TargetContainerHostnameT &&value)
AIBenchmarkEndpoint & WithInferenceComponents(InferenceComponentsT &&value)
AWS_SAGEMAKER_API AIBenchmarkEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTargetContainerHostname() const
void SetInferenceComponents(InferenceComponentsT &&value)
AIBenchmarkEndpoint & WithIdentifier(IdentifierT &&value)
AWS_SAGEMAKER_API AIBenchmarkEndpoint(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