AWS SDK for C++

AWS SDK for C++ Version 1.11.925

Loading...
Searching...
No Matches
SampleOperationResult.h
1
6#pragma once
7#include <aws/sagemakertrainingsessionruntime/SageMakerTrainingSessionRuntime_EXPORTS.h>
8#include <aws/sagemakertrainingsessionruntime/model/ComputeLogprobsResult.h>
9#include <aws/sagemakertrainingsessionruntime/model/LoadWeightsForSamplingResult.h>
10#include <aws/sagemakertrainingsessionruntime/model/SampleResponse.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMakerTrainingSessionRuntime {
22namespace Model {
23
32 public:
33 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleOperationResult() = default;
34 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleOperationResult(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleOperationResult& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const SampleResponse& GetSample() const { return m_sample; }
43 inline bool SampleHasBeenSet() const { return m_sampleHasBeenSet; }
44 template <typename SampleT = SampleResponse>
45 void SetSample(SampleT&& value) {
46 m_sampleHasBeenSet = true;
47 m_sample = std::forward<SampleT>(value);
48 }
49 template <typename SampleT = SampleResponse>
51 SetSample(std::forward<SampleT>(value));
52 return *this;
53 }
55
57
60 inline const ComputeLogprobsResult& GetComputeLogprobs() const { return m_computeLogprobs; }
61 inline bool ComputeLogprobsHasBeenSet() const { return m_computeLogprobsHasBeenSet; }
62 template <typename ComputeLogprobsT = ComputeLogprobsResult>
63 void SetComputeLogprobs(ComputeLogprobsT&& value) {
64 m_computeLogprobsHasBeenSet = true;
65 m_computeLogprobs = std::forward<ComputeLogprobsT>(value);
66 }
67 template <typename ComputeLogprobsT = ComputeLogprobsResult>
68 SampleOperationResult& WithComputeLogprobs(ComputeLogprobsT&& value) {
69 SetComputeLogprobs(std::forward<ComputeLogprobsT>(value));
70 return *this;
71 }
73
75
78 inline const LoadWeightsForSamplingResult& GetLoadWeightsForSampling() const { return m_loadWeightsForSampling; }
79 inline bool LoadWeightsForSamplingHasBeenSet() const { return m_loadWeightsForSamplingHasBeenSet; }
80 template <typename LoadWeightsForSamplingT = LoadWeightsForSamplingResult>
81 void SetLoadWeightsForSampling(LoadWeightsForSamplingT&& value) {
82 m_loadWeightsForSamplingHasBeenSet = true;
83 m_loadWeightsForSampling = std::forward<LoadWeightsForSamplingT>(value);
84 }
85 template <typename LoadWeightsForSamplingT = LoadWeightsForSamplingResult>
86 SampleOperationResult& WithLoadWeightsForSampling(LoadWeightsForSamplingT&& value) {
87 SetLoadWeightsForSampling(std::forward<LoadWeightsForSamplingT>(value));
88 return *this;
89 }
91 private:
92 SampleResponse m_sample;
93
94 ComputeLogprobsResult m_computeLogprobs;
95
96 LoadWeightsForSamplingResult m_loadWeightsForSampling;
97 bool m_sampleHasBeenSet = false;
98 bool m_computeLogprobsHasBeenSet = false;
99 bool m_loadWeightsForSamplingHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace SageMakerTrainingSessionRuntime
104} // namespace Aws
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleOperationResult(Aws::Utils::Json::JsonView jsonValue)
const LoadWeightsForSamplingResult & GetLoadWeightsForSampling() const
SampleOperationResult & WithComputeLogprobs(ComputeLogprobsT &&value)
SampleOperationResult & WithLoadWeightsForSampling(LoadWeightsForSamplingT &&value)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleOperationResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleOperationResult()=default
Aws::Utils::Json::JsonValue JsonValue