AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChannelSpecification.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/CompressionType.h>
11#include <aws/sagemaker/model/TrainingInputMode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SAGEMAKER_API ChannelSpecification();
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline ChannelSpecification& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline ChannelSpecification& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline ChannelSpecification& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline ChannelSpecification& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline ChannelSpecification& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline ChannelSpecification& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline bool GetIsRequired() const{ return m_isRequired; }
77 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
78 inline void SetIsRequired(bool value) { m_isRequiredHasBeenSet = true; m_isRequired = value; }
79 inline ChannelSpecification& WithIsRequired(bool value) { SetIsRequired(value); return *this;}
81
83
86 inline const Aws::Vector<Aws::String>& GetSupportedContentTypes() const{ return m_supportedContentTypes; }
87 inline bool SupportedContentTypesHasBeenSet() const { return m_supportedContentTypesHasBeenSet; }
88 inline void SetSupportedContentTypes(const Aws::Vector<Aws::String>& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes = value; }
89 inline void SetSupportedContentTypes(Aws::Vector<Aws::String>&& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes = std::move(value); }
92 inline ChannelSpecification& AddSupportedContentTypes(const Aws::String& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(value); return *this; }
93 inline ChannelSpecification& AddSupportedContentTypes(Aws::String&& value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(std::move(value)); return *this; }
94 inline ChannelSpecification& AddSupportedContentTypes(const char* value) { m_supportedContentTypesHasBeenSet = true; m_supportedContentTypes.push_back(value); return *this; }
96
98
101 inline const Aws::Vector<CompressionType>& GetSupportedCompressionTypes() const{ return m_supportedCompressionTypes; }
102 inline bool SupportedCompressionTypesHasBeenSet() const { return m_supportedCompressionTypesHasBeenSet; }
103 inline void SetSupportedCompressionTypes(const Aws::Vector<CompressionType>& value) { m_supportedCompressionTypesHasBeenSet = true; m_supportedCompressionTypes = value; }
104 inline void SetSupportedCompressionTypes(Aws::Vector<CompressionType>&& value) { m_supportedCompressionTypesHasBeenSet = true; m_supportedCompressionTypes = std::move(value); }
107 inline ChannelSpecification& AddSupportedCompressionTypes(const CompressionType& value) { m_supportedCompressionTypesHasBeenSet = true; m_supportedCompressionTypes.push_back(value); return *this; }
108 inline ChannelSpecification& AddSupportedCompressionTypes(CompressionType&& value) { m_supportedCompressionTypesHasBeenSet = true; m_supportedCompressionTypes.push_back(std::move(value)); return *this; }
110
112
120 inline const Aws::Vector<TrainingInputMode>& GetSupportedInputModes() const{ return m_supportedInputModes; }
121 inline bool SupportedInputModesHasBeenSet() const { return m_supportedInputModesHasBeenSet; }
122 inline void SetSupportedInputModes(const Aws::Vector<TrainingInputMode>& value) { m_supportedInputModesHasBeenSet = true; m_supportedInputModes = value; }
123 inline void SetSupportedInputModes(Aws::Vector<TrainingInputMode>&& value) { m_supportedInputModesHasBeenSet = true; m_supportedInputModes = std::move(value); }
126 inline ChannelSpecification& AddSupportedInputModes(const TrainingInputMode& value) { m_supportedInputModesHasBeenSet = true; m_supportedInputModes.push_back(value); return *this; }
127 inline ChannelSpecification& AddSupportedInputModes(TrainingInputMode&& value) { m_supportedInputModesHasBeenSet = true; m_supportedInputModes.push_back(std::move(value)); return *this; }
129 private:
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_description;
135 bool m_descriptionHasBeenSet = false;
136
137 bool m_isRequired;
138 bool m_isRequiredHasBeenSet = false;
139
140 Aws::Vector<Aws::String> m_supportedContentTypes;
141 bool m_supportedContentTypesHasBeenSet = false;
142
143 Aws::Vector<CompressionType> m_supportedCompressionTypes;
144 bool m_supportedCompressionTypesHasBeenSet = false;
145
146 Aws::Vector<TrainingInputMode> m_supportedInputModes;
147 bool m_supportedInputModesHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace SageMaker
152} // namespace Aws
ChannelSpecification & WithName(const Aws::String &value)
const Aws::Vector< TrainingInputMode > & GetSupportedInputModes() const
ChannelSpecification & WithName(const char *value)
ChannelSpecification & AddSupportedCompressionTypes(CompressionType &&value)
void SetDescription(const Aws::String &value)
void SetSupportedContentTypes(const Aws::Vector< Aws::String > &value)
ChannelSpecification & AddSupportedContentTypes(const char *value)
ChannelSpecification & WithIsRequired(bool value)
ChannelSpecification & AddSupportedInputModes(TrainingInputMode &&value)
ChannelSpecification & WithSupportedContentTypes(const Aws::Vector< Aws::String > &value)
ChannelSpecification & WithSupportedInputModes(Aws::Vector< TrainingInputMode > &&value)
ChannelSpecification & WithSupportedCompressionTypes(const Aws::Vector< CompressionType > &value)
ChannelSpecification & WithDescription(const Aws::String &value)
void SetSupportedContentTypes(Aws::Vector< Aws::String > &&value)
ChannelSpecification & WithDescription(Aws::String &&value)
void SetSupportedCompressionTypes(Aws::Vector< CompressionType > &&value)
const Aws::Vector< Aws::String > & GetSupportedContentTypes() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ChannelSpecification & WithName(Aws::String &&value)
AWS_SAGEMAKER_API ChannelSpecification(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CompressionType > & GetSupportedCompressionTypes() const
ChannelSpecification & WithSupportedInputModes(const Aws::Vector< TrainingInputMode > &value)
ChannelSpecification & AddSupportedContentTypes(Aws::String &&value)
ChannelSpecification & AddSupportedInputModes(const TrainingInputMode &value)
ChannelSpecification & WithSupportedContentTypes(Aws::Vector< Aws::String > &&value)
ChannelSpecification & WithSupportedCompressionTypes(Aws::Vector< CompressionType > &&value)
ChannelSpecification & AddSupportedContentTypes(const Aws::String &value)
void SetSupportedInputModes(Aws::Vector< TrainingInputMode > &&value)
void SetSupportedCompressionTypes(const Aws::Vector< CompressionType > &value)
ChannelSpecification & WithDescription(const char *value)
AWS_SAGEMAKER_API ChannelSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSupportedInputModes(const Aws::Vector< TrainingInputMode > &value)
ChannelSpecification & AddSupportedCompressionTypes(const CompressionType &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