/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Configuration to control how SageMaker captures inference data. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DataCaptureConfig implements Serializable, Cloneable, StructuredPojo { /** *

* Whether data capture should be enabled or disabled (defaults to enabled). *

*/ private Boolean enableCapture; /** *

* The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high traffic. *

*/ private Integer initialSamplingPercentage; /** *

* The Amazon S3 location used to capture the data. *

*/ private String destinationS3Uri; /** *

* The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service key that SageMaker uses to encrypt * the captured data at rest using Amazon S3 server-side encryption. *

*

* The KmsKeyId can be any of the following formats: *

* */ private String kmsKeyId; /** *

* Specifies data Model Monitor will capture. You can configure whether to collect only input, only output, or both *

*/ private java.util.List captureOptions; /** *

* Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default * base64 encode when capturing the data. *

*/ private CaptureContentTypeHeader captureContentTypeHeader; /** *

* Whether data capture should be enabled or disabled (defaults to enabled). *

* * @param enableCapture * Whether data capture should be enabled or disabled (defaults to enabled). */ public void setEnableCapture(Boolean enableCapture) { this.enableCapture = enableCapture; } /** *

* Whether data capture should be enabled or disabled (defaults to enabled). *

* * @return Whether data capture should be enabled or disabled (defaults to enabled). */ public Boolean getEnableCapture() { return this.enableCapture; } /** *

* Whether data capture should be enabled or disabled (defaults to enabled). *

* * @param enableCapture * Whether data capture should be enabled or disabled (defaults to enabled). * @return Returns a reference to this object so that method calls can be chained together. */ public DataCaptureConfig withEnableCapture(Boolean enableCapture) { setEnableCapture(enableCapture); return this; } /** *

* Whether data capture should be enabled or disabled (defaults to enabled). *

* * @return Whether data capture should be enabled or disabled (defaults to enabled). */ public Boolean isEnableCapture() { return this.enableCapture; } /** *

* The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high traffic. *

* * @param initialSamplingPercentage * The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high * traffic. */ public void setInitialSamplingPercentage(Integer initialSamplingPercentage) { this.initialSamplingPercentage = initialSamplingPercentage; } /** *

* The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high traffic. *

* * @return The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high * traffic. */ public Integer getInitialSamplingPercentage() { return this.initialSamplingPercentage; } /** *

* The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high traffic. *

* * @param initialSamplingPercentage * The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high * traffic. * @return Returns a reference to this object so that method calls can be chained together. */ public DataCaptureConfig withInitialSamplingPercentage(Integer initialSamplingPercentage) { setInitialSamplingPercentage(initialSamplingPercentage); return this; } /** *

* The Amazon S3 location used to capture the data. *

* * @param destinationS3Uri * The Amazon S3 location used to capture the data. */ public void setDestinationS3Uri(String destinationS3Uri) { this.destinationS3Uri = destinationS3Uri; } /** *

* The Amazon S3 location used to capture the data. *

* * @return The Amazon S3 location used to capture the data. */ public String getDestinationS3Uri() { return this.destinationS3Uri; } /** *

* The Amazon S3 location used to capture the data. *

* * @param destinationS3Uri * The Amazon S3 location used to capture the data. * @return Returns a reference to this object so that method calls can be chained together. */ public DataCaptureConfig withDestinationS3Uri(String destinationS3Uri) { setDestinationS3Uri(destinationS3Uri); return this; } /** *

* The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service key that SageMaker uses to encrypt * the captured data at rest using Amazon S3 server-side encryption. *

*

* The KmsKeyId can be any of the following formats: *

* * * @param kmsKeyId * The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service key that SageMaker uses to * encrypt the captured data at rest using Amazon S3 server-side encryption.

*

* The KmsKeyId can be any of the following formats: *

*