AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSuccessTopic(const Aws::String& value) { m_successTopicHasBeenSet = true; m_successTopic = value; }
51 inline void SetSuccessTopic(Aws::String&& value) { m_successTopicHasBeenSet = true; m_successTopic = std::move(value); }
52 inline void SetSuccessTopic(const char* value) { m_successTopicHasBeenSet = true; m_successTopic.assign(value); }
54 inline AsyncInferenceNotificationConfig& WithSuccessTopic(Aws::String&& value) { SetSuccessTopic(std::move(value)); return *this;}
55 inline AsyncInferenceNotificationConfig& WithSuccessTopic(const char* value) { SetSuccessTopic(value); return *this;}
57
59
63 inline const Aws::String& GetErrorTopic() const{ return m_errorTopic; }
64 inline bool ErrorTopicHasBeenSet() const { return m_errorTopicHasBeenSet; }
65 inline void SetErrorTopic(const Aws::String& value) { m_errorTopicHasBeenSet = true; m_errorTopic = value; }
66 inline void SetErrorTopic(Aws::String&& value) { m_errorTopicHasBeenSet = true; m_errorTopic = std::move(value); }
67 inline void SetErrorTopic(const char* value) { m_errorTopicHasBeenSet = true; m_errorTopic.assign(value); }
68 inline AsyncInferenceNotificationConfig& WithErrorTopic(const Aws::String& value) { SetErrorTopic(value); return *this;}
69 inline AsyncInferenceNotificationConfig& WithErrorTopic(Aws::String&& value) { SetErrorTopic(std::move(value)); return *this;}
70 inline AsyncInferenceNotificationConfig& WithErrorTopic(const char* value) { SetErrorTopic(value); return *this;}
72
74
79 inline const Aws::Vector<AsyncNotificationTopicTypes>& GetIncludeInferenceResponseIn() const{ return m_includeInferenceResponseIn; }
80 inline bool IncludeInferenceResponseInHasBeenSet() const { return m_includeInferenceResponseInHasBeenSet; }
81 inline void SetIncludeInferenceResponseIn(const Aws::Vector<AsyncNotificationTopicTypes>& value) { m_includeInferenceResponseInHasBeenSet = true; m_includeInferenceResponseIn = value; }
82 inline void SetIncludeInferenceResponseIn(Aws::Vector<AsyncNotificationTopicTypes>&& value) { m_includeInferenceResponseInHasBeenSet = true; m_includeInferenceResponseIn = std::move(value); }
85 inline AsyncInferenceNotificationConfig& AddIncludeInferenceResponseIn(const AsyncNotificationTopicTypes& value) { m_includeInferenceResponseInHasBeenSet = true; m_includeInferenceResponseIn.push_back(value); return *this; }
86 inline AsyncInferenceNotificationConfig& AddIncludeInferenceResponseIn(AsyncNotificationTopicTypes&& value) { m_includeInferenceResponseInHasBeenSet = true; m_includeInferenceResponseIn.push_back(std::move(value)); return *this; }
88 private:
89
90 Aws::String m_successTopic;
91 bool m_successTopicHasBeenSet = false;
92
93 Aws::String m_errorTopic;
94 bool m_errorTopicHasBeenSet = false;
95
96 Aws::Vector<AsyncNotificationTopicTypes> m_includeInferenceResponseIn;
97 bool m_includeInferenceResponseInHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SageMaker
102} // namespace Aws
AsyncInferenceNotificationConfig & WithErrorTopic(Aws::String &&value)
AsyncInferenceNotificationConfig & WithSuccessTopic(Aws::String &&value)
AsyncInferenceNotificationConfig & WithIncludeInferenceResponseIn(const Aws::Vector< AsyncNotificationTopicTypes > &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIncludeInferenceResponseIn(Aws::Vector< AsyncNotificationTopicTypes > &&value)
AsyncInferenceNotificationConfig & AddIncludeInferenceResponseIn(const AsyncNotificationTopicTypes &value)
AsyncInferenceNotificationConfig & WithErrorTopic(const Aws::String &value)
AsyncInferenceNotificationConfig & WithIncludeInferenceResponseIn(Aws::Vector< AsyncNotificationTopicTypes > &&value)
void SetIncludeInferenceResponseIn(const Aws::Vector< AsyncNotificationTopicTypes > &value)
AsyncInferenceNotificationConfig & WithSuccessTopic(const Aws::String &value)
AWS_SAGEMAKER_API AsyncInferenceNotificationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AsyncNotificationTopicTypes > & GetIncludeInferenceResponseIn() const
AsyncInferenceNotificationConfig & WithErrorTopic(const char *value)
AsyncInferenceNotificationConfig & AddIncludeInferenceResponseIn(AsyncNotificationTopicTypes &&value)
AWS_SAGEMAKER_API AsyncInferenceNotificationConfig(Aws::Utils::Json::JsonView jsonValue)
AsyncInferenceNotificationConfig & WithSuccessTopic(const char *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