@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateModelPackageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateModelPackageRequest() |
Modifier and Type | Method and Description |
---|---|
CreateModelPackageRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getCertifyForMarketplace()
Whether to certify the model package for listing on Amazon Web Services Marketplace.
|
String |
getClientToken()
A unique token that guarantees that the call to this API is idempotent.
|
InferenceSpecification |
getInferenceSpecification()
Specifies details about inference jobs that can be run with models based on this model package, including the
following:
|
MetadataProperties |
getMetadataProperties() |
String |
getModelApprovalStatus()
Whether the model is approved for deployment.
|
ModelMetrics |
getModelMetrics()
A structure that contains model metrics reports.
|
String |
getModelPackageDescription()
A description of the model package.
|
String |
getModelPackageGroupName()
The name of the model group that this model version belongs to.
|
String |
getModelPackageName()
The name of the model package.
|
SourceAlgorithmSpecification |
getSourceAlgorithmSpecification()
Details about the algorithm that was used to create the model package.
|
List<Tag> |
getTags()
A list of key value pairs associated with the model.
|
ModelPackageValidationSpecification |
getValidationSpecification()
Specifies configurations for one or more transform jobs that Amazon SageMaker runs to test the model package.
|
int |
hashCode() |
Boolean |
isCertifyForMarketplace()
Whether to certify the model package for listing on Amazon Web Services Marketplace.
|
void |
setCertifyForMarketplace(Boolean certifyForMarketplace)
Whether to certify the model package for listing on Amazon Web Services Marketplace.
|
void |
setClientToken(String clientToken)
A unique token that guarantees that the call to this API is idempotent.
|
void |
setInferenceSpecification(InferenceSpecification inferenceSpecification)
Specifies details about inference jobs that can be run with models based on this model package, including the
following:
|
void |
setMetadataProperties(MetadataProperties metadataProperties) |
void |
setModelApprovalStatus(String modelApprovalStatus)
Whether the model is approved for deployment.
|
void |
setModelMetrics(ModelMetrics modelMetrics)
A structure that contains model metrics reports.
|
void |
setModelPackageDescription(String modelPackageDescription)
A description of the model package.
|
void |
setModelPackageGroupName(String modelPackageGroupName)
The name of the model group that this model version belongs to.
|
void |
setModelPackageName(String modelPackageName)
The name of the model package.
|
void |
setSourceAlgorithmSpecification(SourceAlgorithmSpecification sourceAlgorithmSpecification)
Details about the algorithm that was used to create the model package.
|
void |
setTags(Collection<Tag> tags)
A list of key value pairs associated with the model.
|
void |
setValidationSpecification(ModelPackageValidationSpecification validationSpecification)
Specifies configurations for one or more transform jobs that Amazon SageMaker runs to test the model package.
|
String |
toString()
Returns a string representation of this object.
|
CreateModelPackageRequest |
withCertifyForMarketplace(Boolean certifyForMarketplace)
Whether to certify the model package for listing on Amazon Web Services Marketplace.
|
CreateModelPackageRequest |
withClientToken(String clientToken)
A unique token that guarantees that the call to this API is idempotent.
|
CreateModelPackageRequest |
withInferenceSpecification(InferenceSpecification inferenceSpecification)
Specifies details about inference jobs that can be run with models based on this model package, including the
following:
|
CreateModelPackageRequest |
withMetadataProperties(MetadataProperties metadataProperties) |
CreateModelPackageRequest |
withModelApprovalStatus(ModelApprovalStatus modelApprovalStatus)
Whether the model is approved for deployment.
|
CreateModelPackageRequest |
withModelApprovalStatus(String modelApprovalStatus)
Whether the model is approved for deployment.
|
CreateModelPackageRequest |
withModelMetrics(ModelMetrics modelMetrics)
A structure that contains model metrics reports.
|
CreateModelPackageRequest |
withModelPackageDescription(String modelPackageDescription)
A description of the model package.
|
CreateModelPackageRequest |
withModelPackageGroupName(String modelPackageGroupName)
The name of the model group that this model version belongs to.
|
CreateModelPackageRequest |
withModelPackageName(String modelPackageName)
The name of the model package.
|
CreateModelPackageRequest |
withSourceAlgorithmSpecification(SourceAlgorithmSpecification sourceAlgorithmSpecification)
Details about the algorithm that was used to create the model package.
|
CreateModelPackageRequest |
withTags(Collection<Tag> tags)
A list of key value pairs associated with the model.
|
CreateModelPackageRequest |
withTags(Tag... tags)
A list of key value pairs associated with the model.
|
CreateModelPackageRequest |
withValidationSpecification(ModelPackageValidationSpecification validationSpecification)
Specifies configurations for one or more transform jobs that Amazon SageMaker runs to test the model package.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setModelPackageName(String modelPackageName)
The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).
This parameter is required for unversioned models. It is not applicable to versioned models.
modelPackageName
- The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9,
and - (hyphen).
This parameter is required for unversioned models. It is not applicable to versioned models.
public String getModelPackageName()
The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).
This parameter is required for unversioned models. It is not applicable to versioned models.
This parameter is required for unversioned models. It is not applicable to versioned models.
public CreateModelPackageRequest withModelPackageName(String modelPackageName)
The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).
This parameter is required for unversioned models. It is not applicable to versioned models.
modelPackageName
- The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9,
and - (hyphen).
This parameter is required for unversioned models. It is not applicable to versioned models.
public void setModelPackageGroupName(String modelPackageGroupName)
The name of the model group that this model version belongs to.
This parameter is required for versioned models, and does not apply to unversioned models.
modelPackageGroupName
- The name of the model group that this model version belongs to.
This parameter is required for versioned models, and does not apply to unversioned models.
public String getModelPackageGroupName()
The name of the model group that this model version belongs to.
This parameter is required for versioned models, and does not apply to unversioned models.
This parameter is required for versioned models, and does not apply to unversioned models.
public CreateModelPackageRequest withModelPackageGroupName(String modelPackageGroupName)
The name of the model group that this model version belongs to.
This parameter is required for versioned models, and does not apply to unversioned models.
modelPackageGroupName
- The name of the model group that this model version belongs to.
This parameter is required for versioned models, and does not apply to unversioned models.
public void setModelPackageDescription(String modelPackageDescription)
A description of the model package.
modelPackageDescription
- A description of the model package.public String getModelPackageDescription()
A description of the model package.
public CreateModelPackageRequest withModelPackageDescription(String modelPackageDescription)
A description of the model package.
modelPackageDescription
- A description of the model package.public void setInferenceSpecification(InferenceSpecification inferenceSpecification)
Specifies details about inference jobs that can be run with models based on this model package, including the following:
The Amazon ECR paths of containers that contain the inference code and model artifacts.
The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
The input and output content formats that the model package supports for inference.
inferenceSpecification
- Specifies details about inference jobs that can be run with models based on this model package, including
the following:
The Amazon ECR paths of containers that contain the inference code and model artifacts.
The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
The input and output content formats that the model package supports for inference.
public InferenceSpecification getInferenceSpecification()
Specifies details about inference jobs that can be run with models based on this model package, including the following:
The Amazon ECR paths of containers that contain the inference code and model artifacts.
The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
The input and output content formats that the model package supports for inference.
The Amazon ECR paths of containers that contain the inference code and model artifacts.
The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
The input and output content formats that the model package supports for inference.
public CreateModelPackageRequest withInferenceSpecification(InferenceSpecification inferenceSpecification)
Specifies details about inference jobs that can be run with models based on this model package, including the following:
The Amazon ECR paths of containers that contain the inference code and model artifacts.
The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
The input and output content formats that the model package supports for inference.
inferenceSpecification
- Specifies details about inference jobs that can be run with models based on this model package, including
the following:
The Amazon ECR paths of containers that contain the inference code and model artifacts.
The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
The input and output content formats that the model package supports for inference.
public void setValidationSpecification(ModelPackageValidationSpecification validationSpecification)
Specifies configurations for one or more transform jobs that Amazon SageMaker runs to test the model package.
validationSpecification
- Specifies configurations for one or more transform jobs that Amazon SageMaker runs to test the model
package.public ModelPackageValidationSpecification getValidationSpecification()
Specifies configurations for one or more transform jobs that Amazon SageMaker runs to test the model package.
public CreateModelPackageRequest withValidationSpecification(ModelPackageValidationSpecification validationSpecification)
Specifies configurations for one or more transform jobs that Amazon SageMaker runs to test the model package.
validationSpecification
- Specifies configurations for one or more transform jobs that Amazon SageMaker runs to test the model
package.public void setSourceAlgorithmSpecification(SourceAlgorithmSpecification sourceAlgorithmSpecification)
Details about the algorithm that was used to create the model package.
sourceAlgorithmSpecification
- Details about the algorithm that was used to create the model package.public SourceAlgorithmSpecification getSourceAlgorithmSpecification()
Details about the algorithm that was used to create the model package.
public CreateModelPackageRequest withSourceAlgorithmSpecification(SourceAlgorithmSpecification sourceAlgorithmSpecification)
Details about the algorithm that was used to create the model package.
sourceAlgorithmSpecification
- Details about the algorithm that was used to create the model package.public void setCertifyForMarketplace(Boolean certifyForMarketplace)
Whether to certify the model package for listing on Amazon Web Services Marketplace.
This parameter is optional for unversioned models, and does not apply to versioned models.
certifyForMarketplace
- Whether to certify the model package for listing on Amazon Web Services Marketplace.
This parameter is optional for unversioned models, and does not apply to versioned models.
public Boolean getCertifyForMarketplace()
Whether to certify the model package for listing on Amazon Web Services Marketplace.
This parameter is optional for unversioned models, and does not apply to versioned models.
This parameter is optional for unversioned models, and does not apply to versioned models.
public CreateModelPackageRequest withCertifyForMarketplace(Boolean certifyForMarketplace)
Whether to certify the model package for listing on Amazon Web Services Marketplace.
This parameter is optional for unversioned models, and does not apply to versioned models.
certifyForMarketplace
- Whether to certify the model package for listing on Amazon Web Services Marketplace.
This parameter is optional for unversioned models, and does not apply to versioned models.
public Boolean isCertifyForMarketplace()
Whether to certify the model package for listing on Amazon Web Services Marketplace.
This parameter is optional for unversioned models, and does not apply to versioned models.
This parameter is optional for unversioned models, and does not apply to versioned models.
public List<Tag> getTags()
A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
public void setTags(Collection<Tag> tags)
A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
tags
- A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services
resources in the Amazon Web Services General Reference Guide.public CreateModelPackageRequest withTags(Tag... tags)
A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services
resources in the Amazon Web Services General Reference Guide.public CreateModelPackageRequest withTags(Collection<Tag> tags)
A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
tags
- A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services
resources in the Amazon Web Services General Reference Guide.public void setModelApprovalStatus(String modelApprovalStatus)
Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the model.
modelApprovalStatus
- Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the
model.
ModelApprovalStatus
public String getModelApprovalStatus()
Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the model.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the
model.
ModelApprovalStatus
public CreateModelPackageRequest withModelApprovalStatus(String modelApprovalStatus)
Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the model.
modelApprovalStatus
- Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the
model.
ModelApprovalStatus
public CreateModelPackageRequest withModelApprovalStatus(ModelApprovalStatus modelApprovalStatus)
Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the model.
modelApprovalStatus
- Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the
model.
ModelApprovalStatus
public void setMetadataProperties(MetadataProperties metadataProperties)
metadataProperties
- public MetadataProperties getMetadataProperties()
public CreateModelPackageRequest withMetadataProperties(MetadataProperties metadataProperties)
metadataProperties
- public void setModelMetrics(ModelMetrics modelMetrics)
A structure that contains model metrics reports.
modelMetrics
- A structure that contains model metrics reports.public ModelMetrics getModelMetrics()
A structure that contains model metrics reports.
public CreateModelPackageRequest withModelMetrics(ModelMetrics modelMetrics)
A structure that contains model metrics reports.
modelMetrics
- A structure that contains model metrics reports.public void setClientToken(String clientToken)
A unique token that guarantees that the call to this API is idempotent.
clientToken
- A unique token that guarantees that the call to this API is idempotent.public String getClientToken()
A unique token that guarantees that the call to this API is idempotent.
public CreateModelPackageRequest withClientToken(String clientToken)
A unique token that guarantees that the call to this API is idempotent.
clientToken
- A unique token that guarantees that the call to this API is idempotent.public String toString()
toString
in class Object
Object.toString()
public CreateModelPackageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()