/* * 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; /** *

* Specifies the S3 location of ML model data to deploy. *

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

* Specifies the S3 path of ML model data to deploy. *

*/ private String s3Uri; /** *

* Specifies the type of ML model data to deploy. *

*

* If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all objects * that match the specified key name prefix as part of the ML model data to deploy. A valid key name prefix * identified by S3Uri always ends with a forward slash (/). *

*

* If you choose S3Object, S3Uri identifies an object that is the ML model data to deploy. *

*/ private String s3DataType; /** *

* Specifies how the ML model data is prepared. *

*

* If you choose Gzip and choose S3Object as the value of S3DataType, * S3Uri identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to * decompress and untar the object during model deployment. *

*

* If you choose None and chooose S3Object as the value of S3DataType, * S3Uri identifies an object that represents an uncompressed ML model to deploy. *

*

* If you choose None and choose S3Prefix as the value of S3DataType, S3Uri * identifies a key name prefix, under which all objects represents the uncompressed ML model to deploy. *

*

* If you choose None, then SageMaker will follow rules below when creating model data files under /opt/ml/model * directory for use by your inference code: *

* */ private String compressionType; /** *

* Specifies the S3 path of ML model data to deploy. *

* * @param s3Uri * Specifies the S3 path of ML model data to deploy. */ public void setS3Uri(String s3Uri) { this.s3Uri = s3Uri; } /** *

* Specifies the S3 path of ML model data to deploy. *

* * @return Specifies the S3 path of ML model data to deploy. */ public String getS3Uri() { return this.s3Uri; } /** *

* Specifies the S3 path of ML model data to deploy. *

* * @param s3Uri * Specifies the S3 path of ML model data to deploy. * @return Returns a reference to this object so that method calls can be chained together. */ public S3ModelDataSource withS3Uri(String s3Uri) { setS3Uri(s3Uri); return this; } /** *

* Specifies the type of ML model data to deploy. *

*

* If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all objects * that match the specified key name prefix as part of the ML model data to deploy. A valid key name prefix * identified by S3Uri always ends with a forward slash (/). *

*

* If you choose S3Object, S3Uri identifies an object that is the ML model data to deploy. *

* * @param s3DataType * Specifies the type of ML model data to deploy.

*

* If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all * objects that match the specified key name prefix as part of the ML model data to deploy. A valid key name * prefix identified by S3Uri always ends with a forward slash (/). *

*

* If you choose S3Object, S3Uri identifies an object that is the ML model data to * deploy. * @see S3ModelDataType */ public void setS3DataType(String s3DataType) { this.s3DataType = s3DataType; } /** *

* Specifies the type of ML model data to deploy. *

*

* If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all objects * that match the specified key name prefix as part of the ML model data to deploy. A valid key name prefix * identified by S3Uri always ends with a forward slash (/). *

*

* If you choose S3Object, S3Uri identifies an object that is the ML model data to deploy. *

* * @return Specifies the type of ML model data to deploy.

*

* If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all * objects that match the specified key name prefix as part of the ML model data to deploy. A valid key name * prefix identified by S3Uri always ends with a forward slash (/). *

*

* If you choose S3Object, S3Uri identifies an object that is the ML model data to * deploy. * @see S3ModelDataType */ public String getS3DataType() { return this.s3DataType; } /** *

* Specifies the type of ML model data to deploy. *

*

* If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all objects * that match the specified key name prefix as part of the ML model data to deploy. A valid key name prefix * identified by S3Uri always ends with a forward slash (/). *

*

* If you choose S3Object, S3Uri identifies an object that is the ML model data to deploy. *

* * @param s3DataType * Specifies the type of ML model data to deploy.

*

* If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all * objects that match the specified key name prefix as part of the ML model data to deploy. A valid key name * prefix identified by S3Uri always ends with a forward slash (/). *

*

* If you choose S3Object, S3Uri identifies an object that is the ML model data to * deploy. * @return Returns a reference to this object so that method calls can be chained together. * @see S3ModelDataType */ public S3ModelDataSource withS3DataType(String s3DataType) { setS3DataType(s3DataType); return this; } /** *

* Specifies the type of ML model data to deploy. *

*

* If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all objects * that match the specified key name prefix as part of the ML model data to deploy. A valid key name prefix * identified by S3Uri always ends with a forward slash (/). *

*

* If you choose S3Object, S3Uri identifies an object that is the ML model data to deploy. *

* * @param s3DataType * Specifies the type of ML model data to deploy.

*

* If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all * objects that match the specified key name prefix as part of the ML model data to deploy. A valid key name * prefix identified by S3Uri always ends with a forward slash (/). *

*

* If you choose S3Object, S3Uri identifies an object that is the ML model data to * deploy. * @return Returns a reference to this object so that method calls can be chained together. * @see S3ModelDataType */ public S3ModelDataSource withS3DataType(S3ModelDataType s3DataType) { this.s3DataType = s3DataType.toString(); return this; } /** *

* Specifies how the ML model data is prepared. *

*

* If you choose Gzip and choose S3Object as the value of S3DataType, * S3Uri identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to * decompress and untar the object during model deployment. *

*

* If you choose None and chooose S3Object as the value of S3DataType, * S3Uri identifies an object that represents an uncompressed ML model to deploy. *

*

* If you choose None and choose S3Prefix as the value of S3DataType, S3Uri * identifies a key name prefix, under which all objects represents the uncompressed ML model to deploy. *

*

* If you choose None, then SageMaker will follow rules below when creating model data files under /opt/ml/model * directory for use by your inference code: *

* * * @param compressionType * Specifies how the ML model data is prepared.

*

* If you choose Gzip and choose S3Object as the value of S3DataType, * S3Uri identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to * decompress and untar the object during model deployment. *

*

* If you choose None and chooose S3Object as the value of S3DataType, * S3Uri identifies an object that represents an uncompressed ML model to deploy. *

*

* If you choose None and choose S3Prefix as the value of S3DataType, * S3Uri identifies a key name prefix, under which all objects represents the uncompressed ML * model to deploy. *

*

* If you choose None, then SageMaker will follow rules below when creating model data files under * /opt/ml/model directory for use by your inference code: *

*