AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CallbackStepMetadata.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/OutputParameter.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
30 public:
31 AWS_SAGEMAKER_API CallbackStepMetadata() = default;
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCallbackToken() const { return m_callbackToken; }
41 inline bool CallbackTokenHasBeenSet() const { return m_callbackTokenHasBeenSet; }
42 template <typename CallbackTokenT = Aws::String>
43 void SetCallbackToken(CallbackTokenT&& value) {
44 m_callbackTokenHasBeenSet = true;
45 m_callbackToken = std::forward<CallbackTokenT>(value);
46 }
47 template <typename CallbackTokenT = Aws::String>
48 CallbackStepMetadata& WithCallbackToken(CallbackTokenT&& value) {
49 SetCallbackToken(std::forward<CallbackTokenT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetSqsQueueUrl() const { return m_sqsQueueUrl; }
60 inline bool SqsQueueUrlHasBeenSet() const { return m_sqsQueueUrlHasBeenSet; }
61 template <typename SqsQueueUrlT = Aws::String>
62 void SetSqsQueueUrl(SqsQueueUrlT&& value) {
63 m_sqsQueueUrlHasBeenSet = true;
64 m_sqsQueueUrl = std::forward<SqsQueueUrlT>(value);
65 }
66 template <typename SqsQueueUrlT = Aws::String>
67 CallbackStepMetadata& WithSqsQueueUrl(SqsQueueUrlT&& value) {
68 SetSqsQueueUrl(std::forward<SqsQueueUrlT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<OutputParameter>& GetOutputParameters() const { return m_outputParameters; }
78 inline bool OutputParametersHasBeenSet() const { return m_outputParametersHasBeenSet; }
79 template <typename OutputParametersT = Aws::Vector<OutputParameter>>
80 void SetOutputParameters(OutputParametersT&& value) {
81 m_outputParametersHasBeenSet = true;
82 m_outputParameters = std::forward<OutputParametersT>(value);
83 }
84 template <typename OutputParametersT = Aws::Vector<OutputParameter>>
85 CallbackStepMetadata& WithOutputParameters(OutputParametersT&& value) {
86 SetOutputParameters(std::forward<OutputParametersT>(value));
87 return *this;
88 }
89 template <typename OutputParametersT = OutputParameter>
90 CallbackStepMetadata& AddOutputParameters(OutputParametersT&& value) {
91 m_outputParametersHasBeenSet = true;
92 m_outputParameters.emplace_back(std::forward<OutputParametersT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_callbackToken;
98
99 Aws::String m_sqsQueueUrl;
100
101 Aws::Vector<OutputParameter> m_outputParameters;
102 bool m_callbackTokenHasBeenSet = false;
103 bool m_sqsQueueUrlHasBeenSet = false;
104 bool m_outputParametersHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace SageMaker
109} // namespace Aws
CallbackStepMetadata & WithOutputParameters(OutputParametersT &&value)
AWS_SAGEMAKER_API CallbackStepMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
CallbackStepMetadata & AddOutputParameters(OutputParametersT &&value)
CallbackStepMetadata & WithCallbackToken(CallbackTokenT &&value)
void SetOutputParameters(OutputParametersT &&value)
CallbackStepMetadata & WithSqsQueueUrl(SqsQueueUrlT &&value)
const Aws::Vector< OutputParameter > & GetOutputParameters() const
AWS_SAGEMAKER_API CallbackStepMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API CallbackStepMetadata()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue