AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DataCaptureConfig.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/CaptureContentTypeHeader.h>
11#include <aws/sagemaker/model/CaptureOption.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
32 public:
33 AWS_SAGEMAKER_API DataCaptureConfig() = default;
34 AWS_SAGEMAKER_API DataCaptureConfig(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline bool GetEnableCapture() const { return m_enableCapture; }
43 inline bool EnableCaptureHasBeenSet() const { return m_enableCaptureHasBeenSet; }
44 inline void SetEnableCapture(bool value) {
45 m_enableCaptureHasBeenSet = true;
46 m_enableCapture = value;
47 }
49 SetEnableCapture(value);
50 return *this;
51 }
53
55
59 inline int GetInitialSamplingPercentage() const { return m_initialSamplingPercentage; }
60 inline bool InitialSamplingPercentageHasBeenSet() const { return m_initialSamplingPercentageHasBeenSet; }
61 inline void SetInitialSamplingPercentage(int value) {
62 m_initialSamplingPercentageHasBeenSet = true;
63 m_initialSamplingPercentage = value;
64 }
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDestinationS3Uri() const { return m_destinationS3Uri; }
76 inline bool DestinationS3UriHasBeenSet() const { return m_destinationS3UriHasBeenSet; }
77 template <typename DestinationS3UriT = Aws::String>
78 void SetDestinationS3Uri(DestinationS3UriT&& value) {
79 m_destinationS3UriHasBeenSet = true;
80 m_destinationS3Uri = std::forward<DestinationS3UriT>(value);
81 }
82 template <typename DestinationS3UriT = Aws::String>
83 DataCaptureConfig& WithDestinationS3Uri(DestinationS3UriT&& value) {
84 SetDestinationS3Uri(std::forward<DestinationS3UriT>(value));
85 return *this;
86 }
88
90
102 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
103 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
104 template <typename KmsKeyIdT = Aws::String>
105 void SetKmsKeyId(KmsKeyIdT&& value) {
106 m_kmsKeyIdHasBeenSet = true;
107 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
108 }
109 template <typename KmsKeyIdT = Aws::String>
110 DataCaptureConfig& WithKmsKeyId(KmsKeyIdT&& value) {
111 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::Vector<CaptureOption>& GetCaptureOptions() const { return m_captureOptions; }
122 inline bool CaptureOptionsHasBeenSet() const { return m_captureOptionsHasBeenSet; }
123 template <typename CaptureOptionsT = Aws::Vector<CaptureOption>>
124 void SetCaptureOptions(CaptureOptionsT&& value) {
125 m_captureOptionsHasBeenSet = true;
126 m_captureOptions = std::forward<CaptureOptionsT>(value);
127 }
128 template <typename CaptureOptionsT = Aws::Vector<CaptureOption>>
129 DataCaptureConfig& WithCaptureOptions(CaptureOptionsT&& value) {
130 SetCaptureOptions(std::forward<CaptureOptionsT>(value));
131 return *this;
132 }
133 template <typename CaptureOptionsT = CaptureOption>
134 DataCaptureConfig& AddCaptureOptions(CaptureOptionsT&& value) {
135 m_captureOptionsHasBeenSet = true;
136 m_captureOptions.emplace_back(std::forward<CaptureOptionsT>(value));
137 return *this;
138 }
140
142
147 inline const CaptureContentTypeHeader& GetCaptureContentTypeHeader() const { return m_captureContentTypeHeader; }
148 inline bool CaptureContentTypeHeaderHasBeenSet() const { return m_captureContentTypeHeaderHasBeenSet; }
149 template <typename CaptureContentTypeHeaderT = CaptureContentTypeHeader>
150 void SetCaptureContentTypeHeader(CaptureContentTypeHeaderT&& value) {
151 m_captureContentTypeHeaderHasBeenSet = true;
152 m_captureContentTypeHeader = std::forward<CaptureContentTypeHeaderT>(value);
153 }
154 template <typename CaptureContentTypeHeaderT = CaptureContentTypeHeader>
155 DataCaptureConfig& WithCaptureContentTypeHeader(CaptureContentTypeHeaderT&& value) {
156 SetCaptureContentTypeHeader(std::forward<CaptureContentTypeHeaderT>(value));
157 return *this;
158 }
160 private:
161 bool m_enableCapture{false};
162
163 int m_initialSamplingPercentage{0};
164
165 Aws::String m_destinationS3Uri;
166
167 Aws::String m_kmsKeyId;
168
169 Aws::Vector<CaptureOption> m_captureOptions;
170
171 CaptureContentTypeHeader m_captureContentTypeHeader;
172 bool m_enableCaptureHasBeenSet = false;
173 bool m_initialSamplingPercentageHasBeenSet = false;
174 bool m_destinationS3UriHasBeenSet = false;
175 bool m_kmsKeyIdHasBeenSet = false;
176 bool m_captureOptionsHasBeenSet = false;
177 bool m_captureContentTypeHeaderHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace SageMaker
182} // namespace Aws
DataCaptureConfig & WithCaptureOptions(CaptureOptionsT &&value)
DataCaptureConfig & WithCaptureContentTypeHeader(CaptureContentTypeHeaderT &&value)
const Aws::Vector< CaptureOption > & GetCaptureOptions() const
DataCaptureConfig & WithDestinationS3Uri(DestinationS3UriT &&value)
DataCaptureConfig & WithInitialSamplingPercentage(int value)
AWS_SAGEMAKER_API DataCaptureConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API DataCaptureConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API DataCaptureConfig()=default
DataCaptureConfig & WithKmsKeyId(KmsKeyIdT &&value)
DataCaptureConfig & AddCaptureOptions(CaptureOptionsT &&value)
void SetDestinationS3Uri(DestinationS3UriT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCaptureOptions(CaptureOptionsT &&value)
const Aws::String & GetDestinationS3Uri() const
DataCaptureConfig & WithEnableCapture(bool value)
void SetCaptureContentTypeHeader(CaptureContentTypeHeaderT &&value)
const CaptureContentTypeHeader & GetCaptureContentTypeHeader() 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