
com.amazonaws.services.sagemaker.model.DataCaptureConfig Maven / Gradle / Ivy
/*
* Copyright 2015-2020 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;
/**
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DataCaptureConfig implements Serializable, Cloneable, StructuredPojo {
/** */
private Boolean enableCapture;
/** */
private Integer initialSamplingPercentage;
/** */
private String destinationS3Uri;
/** */
private String kmsKeyId;
/** */
private java.util.List captureOptions;
/** */
private CaptureContentTypeHeader captureContentTypeHeader;
/**
*
*
* @param enableCapture
*/
public void setEnableCapture(Boolean enableCapture) {
this.enableCapture = enableCapture;
}
/**
*
*
* @return
*/
public Boolean getEnableCapture() {
return this.enableCapture;
}
/**
*
*
* @param enableCapture
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataCaptureConfig withEnableCapture(Boolean enableCapture) {
setEnableCapture(enableCapture);
return this;
}
/**
*
*
* @return
*/
public Boolean isEnableCapture() {
return this.enableCapture;
}
/**
*
*
* @param initialSamplingPercentage
*/
public void setInitialSamplingPercentage(Integer initialSamplingPercentage) {
this.initialSamplingPercentage = initialSamplingPercentage;
}
/**
*
*
* @return
*/
public Integer getInitialSamplingPercentage() {
return this.initialSamplingPercentage;
}
/**
*
*
* @param initialSamplingPercentage
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataCaptureConfig withInitialSamplingPercentage(Integer initialSamplingPercentage) {
setInitialSamplingPercentage(initialSamplingPercentage);
return this;
}
/**
*
*
* @param destinationS3Uri
*/
public void setDestinationS3Uri(String destinationS3Uri) {
this.destinationS3Uri = destinationS3Uri;
}
/**
*
*
* @return
*/
public String getDestinationS3Uri() {
return this.destinationS3Uri;
}
/**
*
*
* @param destinationS3Uri
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataCaptureConfig withDestinationS3Uri(String destinationS3Uri) {
setDestinationS3Uri(destinationS3Uri);
return this;
}
/**
*
*
* @param kmsKeyId
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
*
* @return
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
*
* @param kmsKeyId
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataCaptureConfig withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
*
* @return
*/
public java.util.List getCaptureOptions() {
return captureOptions;
}
/**
*
*
* @param captureOptions
*/
public void setCaptureOptions(java.util.Collection captureOptions) {
if (captureOptions == null) {
this.captureOptions = null;
return;
}
this.captureOptions = new java.util.ArrayList(captureOptions);
}
/**
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setCaptureOptions(java.util.Collection)} or {@link #withCaptureOptions(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param captureOptions
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataCaptureConfig withCaptureOptions(CaptureOption... captureOptions) {
if (this.captureOptions == null) {
setCaptureOptions(new java.util.ArrayList(captureOptions.length));
}
for (CaptureOption ele : captureOptions) {
this.captureOptions.add(ele);
}
return this;
}
/**
*
*
* @param captureOptions
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataCaptureConfig withCaptureOptions(java.util.Collection captureOptions) {
setCaptureOptions(captureOptions);
return this;
}
/**
*
*
* @param captureContentTypeHeader
*/
public void setCaptureContentTypeHeader(CaptureContentTypeHeader captureContentTypeHeader) {
this.captureContentTypeHeader = captureContentTypeHeader;
}
/**
*
*
* @return
*/
public CaptureContentTypeHeader getCaptureContentTypeHeader() {
return this.captureContentTypeHeader;
}
/**
*
*
* @param captureContentTypeHeader
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DataCaptureConfig withCaptureContentTypeHeader(CaptureContentTypeHeader captureContentTypeHeader) {
setCaptureContentTypeHeader(captureContentTypeHeader);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getEnableCapture() != null)
sb.append("EnableCapture: ").append(getEnableCapture()).append(",");
if (getInitialSamplingPercentage() != null)
sb.append("InitialSamplingPercentage: ").append(getInitialSamplingPercentage()).append(",");
if (getDestinationS3Uri() != null)
sb.append("DestinationS3Uri: ").append(getDestinationS3Uri()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getCaptureOptions() != null)
sb.append("CaptureOptions: ").append(getCaptureOptions()).append(",");
if (getCaptureContentTypeHeader() != null)
sb.append("CaptureContentTypeHeader: ").append(getCaptureContentTypeHeader());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DataCaptureConfig == false)
return false;
DataCaptureConfig other = (DataCaptureConfig) obj;
if (other.getEnableCapture() == null ^ this.getEnableCapture() == null)
return false;
if (other.getEnableCapture() != null && other.getEnableCapture().equals(this.getEnableCapture()) == false)
return false;
if (other.getInitialSamplingPercentage() == null ^ this.getInitialSamplingPercentage() == null)
return false;
if (other.getInitialSamplingPercentage() != null && other.getInitialSamplingPercentage().equals(this.getInitialSamplingPercentage()) == false)
return false;
if (other.getDestinationS3Uri() == null ^ this.getDestinationS3Uri() == null)
return false;
if (other.getDestinationS3Uri() != null && other.getDestinationS3Uri().equals(this.getDestinationS3Uri()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
if (other.getCaptureOptions() == null ^ this.getCaptureOptions() == null)
return false;
if (other.getCaptureOptions() != null && other.getCaptureOptions().equals(this.getCaptureOptions()) == false)
return false;
if (other.getCaptureContentTypeHeader() == null ^ this.getCaptureContentTypeHeader() == null)
return false;
if (other.getCaptureContentTypeHeader() != null && other.getCaptureContentTypeHeader().equals(this.getCaptureContentTypeHeader()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEnableCapture() == null) ? 0 : getEnableCapture().hashCode());
hashCode = prime * hashCode + ((getInitialSamplingPercentage() == null) ? 0 : getInitialSamplingPercentage().hashCode());
hashCode = prime * hashCode + ((getDestinationS3Uri() == null) ? 0 : getDestinationS3Uri().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getCaptureOptions() == null) ? 0 : getCaptureOptions().hashCode());
hashCode = prime * hashCode + ((getCaptureContentTypeHeader() == null) ? 0 : getCaptureContentTypeHeader().hashCode());
return hashCode;
}
@Override
public DataCaptureConfig clone() {
try {
return (DataCaptureConfig) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.sagemaker.model.transform.DataCaptureConfigMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy