/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

See Also:

AWS * API Reference

*/ class AWS_SAGEMAKER_API DataCaptureConfig { public: DataCaptureConfig(); DataCaptureConfig(Aws::Utils::Json::JsonView jsonValue); DataCaptureConfig& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

*/ inline bool GetEnableCapture() const{ return m_enableCapture; } /** *

*/ inline bool EnableCaptureHasBeenSet() const { return m_enableCaptureHasBeenSet; } /** *

*/ inline void SetEnableCapture(bool value) { m_enableCaptureHasBeenSet = true; m_enableCapture = value; } /** *

*/ inline DataCaptureConfig& WithEnableCapture(bool value) { SetEnableCapture(value); return *this;} /** *

*/ inline int GetInitialSamplingPercentage() const{ return m_initialSamplingPercentage; } /** *

*/ inline bool InitialSamplingPercentageHasBeenSet() const { return m_initialSamplingPercentageHasBeenSet; } /** *

*/ inline void SetInitialSamplingPercentage(int value) { m_initialSamplingPercentageHasBeenSet = true; m_initialSamplingPercentage = value; } /** *

*/ inline DataCaptureConfig& WithInitialSamplingPercentage(int value) { SetInitialSamplingPercentage(value); return *this;} /** *

*/ inline const Aws::String& GetDestinationS3Uri() const{ return m_destinationS3Uri; } /** *

*/ inline bool DestinationS3UriHasBeenSet() const { return m_destinationS3UriHasBeenSet; } /** *

*/ inline void SetDestinationS3Uri(const Aws::String& value) { m_destinationS3UriHasBeenSet = true; m_destinationS3Uri = value; } /** *

*/ inline void SetDestinationS3Uri(Aws::String&& value) { m_destinationS3UriHasBeenSet = true; m_destinationS3Uri = std::move(value); } /** *

*/ inline void SetDestinationS3Uri(const char* value) { m_destinationS3UriHasBeenSet = true; m_destinationS3Uri.assign(value); } /** *

*/ inline DataCaptureConfig& WithDestinationS3Uri(const Aws::String& value) { SetDestinationS3Uri(value); return *this;} /** *

*/ inline DataCaptureConfig& WithDestinationS3Uri(Aws::String&& value) { SetDestinationS3Uri(std::move(value)); return *this;} /** *

*/ inline DataCaptureConfig& WithDestinationS3Uri(const char* value) { SetDestinationS3Uri(value); return *this;} /** *

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

*/ inline DataCaptureConfig& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

*/ inline DataCaptureConfig& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

*/ inline DataCaptureConfig& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

*/ inline const Aws::Vector& GetCaptureOptions() const{ return m_captureOptions; } /** *

*/ inline bool CaptureOptionsHasBeenSet() const { return m_captureOptionsHasBeenSet; } /** *

*/ inline void SetCaptureOptions(const Aws::Vector& value) { m_captureOptionsHasBeenSet = true; m_captureOptions = value; } /** *

*/ inline void SetCaptureOptions(Aws::Vector&& value) { m_captureOptionsHasBeenSet = true; m_captureOptions = std::move(value); } /** *

*/ inline DataCaptureConfig& WithCaptureOptions(const Aws::Vector& value) { SetCaptureOptions(value); return *this;} /** *

*/ inline DataCaptureConfig& WithCaptureOptions(Aws::Vector&& value) { SetCaptureOptions(std::move(value)); return *this;} /** *

*/ inline DataCaptureConfig& AddCaptureOptions(const CaptureOption& value) { m_captureOptionsHasBeenSet = true; m_captureOptions.push_back(value); return *this; } /** *

*/ inline DataCaptureConfig& AddCaptureOptions(CaptureOption&& value) { m_captureOptionsHasBeenSet = true; m_captureOptions.push_back(std::move(value)); return *this; } /** *

*/ inline const CaptureContentTypeHeader& GetCaptureContentTypeHeader() const{ return m_captureContentTypeHeader; } /** *

*/ inline bool CaptureContentTypeHeaderHasBeenSet() const { return m_captureContentTypeHeaderHasBeenSet; } /** *

*/ inline void SetCaptureContentTypeHeader(const CaptureContentTypeHeader& value) { m_captureContentTypeHeaderHasBeenSet = true; m_captureContentTypeHeader = value; } /** *

*/ inline void SetCaptureContentTypeHeader(CaptureContentTypeHeader&& value) { m_captureContentTypeHeaderHasBeenSet = true; m_captureContentTypeHeader = std::move(value); } /** *

*/ inline DataCaptureConfig& WithCaptureContentTypeHeader(const CaptureContentTypeHeader& value) { SetCaptureContentTypeHeader(value); return *this;} /** *

*/ inline DataCaptureConfig& WithCaptureContentTypeHeader(CaptureContentTypeHeader&& value) { SetCaptureContentTypeHeader(std::move(value)); return *this;} private: bool m_enableCapture; bool m_enableCaptureHasBeenSet; int m_initialSamplingPercentage; bool m_initialSamplingPercentageHasBeenSet; Aws::String m_destinationS3Uri; bool m_destinationS3UriHasBeenSet; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet; Aws::Vector m_captureOptions; bool m_captureOptionsHasBeenSet; CaptureContentTypeHeader m_captureContentTypeHeader; bool m_captureContentTypeHeaderHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws