AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AsyncInferenceNotificationConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/AsyncNotificationTopicTypes.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API AsyncInferenceNotificationConfig() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetSuccessTopic() const { return m_successTopic; }
49 inline bool SuccessTopicHasBeenSet() const { return m_successTopicHasBeenSet; }
50 template<typename SuccessTopicT = Aws::String>
51 void SetSuccessTopic(SuccessTopicT&& value) { m_successTopicHasBeenSet = true; m_successTopic = std::forward<SuccessTopicT>(value); }
52 template<typename SuccessTopicT = Aws::String>
53 AsyncInferenceNotificationConfig& WithSuccessTopic(SuccessTopicT&& value) { SetSuccessTopic(std::forward<SuccessTopicT>(value)); return *this;}
55
57
61 inline const Aws::String& GetErrorTopic() const { return m_errorTopic; }
62 inline bool ErrorTopicHasBeenSet() const { return m_errorTopicHasBeenSet; }
63 template<typename ErrorTopicT = Aws::String>
64 void SetErrorTopic(ErrorTopicT&& value) { m_errorTopicHasBeenSet = true; m_errorTopic = std::forward<ErrorTopicT>(value); }
65 template<typename ErrorTopicT = Aws::String>
66 AsyncInferenceNotificationConfig& WithErrorTopic(ErrorTopicT&& value) { SetErrorTopic(std::forward<ErrorTopicT>(value)); return *this;}
68
70
75 inline const Aws::Vector<AsyncNotificationTopicTypes>& GetIncludeInferenceResponseIn() const { return m_includeInferenceResponseIn; }
76 inline bool IncludeInferenceResponseInHasBeenSet() const { return m_includeInferenceResponseInHasBeenSet; }
77 template<typename IncludeInferenceResponseInT = Aws::Vector<AsyncNotificationTopicTypes>>
78 void SetIncludeInferenceResponseIn(IncludeInferenceResponseInT&& value) { m_includeInferenceResponseInHasBeenSet = true; m_includeInferenceResponseIn = std::forward<IncludeInferenceResponseInT>(value); }
79 template<typename IncludeInferenceResponseInT = Aws::Vector<AsyncNotificationTopicTypes>>
80 AsyncInferenceNotificationConfig& WithIncludeInferenceResponseIn(IncludeInferenceResponseInT&& value) { SetIncludeInferenceResponseIn(std::forward<IncludeInferenceResponseInT>(value)); return *this;}
81 inline AsyncInferenceNotificationConfig& AddIncludeInferenceResponseIn(AsyncNotificationTopicTypes value) { m_includeInferenceResponseInHasBeenSet = true; m_includeInferenceResponseIn.push_back(value); return *this; }
83 private:
84
85 Aws::String m_successTopic;
86 bool m_successTopicHasBeenSet = false;
87
88 Aws::String m_errorTopic;
89 bool m_errorTopicHasBeenSet = false;
90
91 Aws::Vector<AsyncNotificationTopicTypes> m_includeInferenceResponseIn;
92 bool m_includeInferenceResponseInHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace SageMaker
97} // namespace Aws
AsyncInferenceNotificationConfig & AddIncludeInferenceResponseIn(AsyncNotificationTopicTypes value)
AWS_SAGEMAKER_API AsyncInferenceNotificationConfig()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API AsyncInferenceNotificationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AsyncNotificationTopicTypes > & GetIncludeInferenceResponseIn() const
AsyncInferenceNotificationConfig & WithSuccessTopic(SuccessTopicT &&value)
AsyncInferenceNotificationConfig & WithIncludeInferenceResponseIn(IncludeInferenceResponseInT &&value)
void SetIncludeInferenceResponseIn(IncludeInferenceResponseInT &&value)
AsyncInferenceNotificationConfig & WithErrorTopic(ErrorTopicT &&value)
AWS_SAGEMAKER_API AsyncInferenceNotificationConfig(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