* Name of the SageMaker model. *
*/ private String modelName; /** ** The location of the primary inference code, associated artifacts, and custom environment map that the inference * code uses when it is deployed in production. *
*/ private ContainerDefinition primaryContainer; /** ** The containers in the inference pipeline. *
*/ private java.util.List* Specifies details of how containers in a multi-container endpoint are called. *
*/ private InferenceExecutionConfig inferenceExecutionConfig; /** ** The Amazon Resource Name (ARN) of the IAM role that you specified for the model. *
*/ private String executionRoleArn; /** ** A VpcConfig object * that specifies the VPC that this model has access to. For more information, see Protect Endpoints by Using an Amazon Virtual * Private Cloud *
*/ private VpcConfig vpcConfig; /** ** A timestamp that shows when the model was created. *
*/ private java.util.Date creationTime; /** ** The Amazon Resource Name (ARN) of the model. *
*/ private String modelArn; /** *
* If True
, no inbound or outbound network calls can be made to or from the model container.
*
* A set of recommended deployment configurations for the model. *
*/ private DeploymentRecommendation deploymentRecommendation; /** ** Name of the SageMaker model. *
* * @param modelName * Name of the SageMaker model. */ public void setModelName(String modelName) { this.modelName = modelName; } /** ** Name of the SageMaker model. *
* * @return Name of the SageMaker model. */ public String getModelName() { return this.modelName; } /** ** Name of the SageMaker model. *
* * @param modelName * Name of the SageMaker model. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withModelName(String modelName) { setModelName(modelName); return this; } /** ** The location of the primary inference code, associated artifacts, and custom environment map that the inference * code uses when it is deployed in production. *
* * @param primaryContainer * The location of the primary inference code, associated artifacts, and custom environment map that the * inference code uses when it is deployed in production. */ public void setPrimaryContainer(ContainerDefinition primaryContainer) { this.primaryContainer = primaryContainer; } /** ** The location of the primary inference code, associated artifacts, and custom environment map that the inference * code uses when it is deployed in production. *
* * @return The location of the primary inference code, associated artifacts, and custom environment map that the * inference code uses when it is deployed in production. */ public ContainerDefinition getPrimaryContainer() { return this.primaryContainer; } /** ** The location of the primary inference code, associated artifacts, and custom environment map that the inference * code uses when it is deployed in production. *
* * @param primaryContainer * The location of the primary inference code, associated artifacts, and custom environment map that the * inference code uses when it is deployed in production. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withPrimaryContainer(ContainerDefinition primaryContainer) { setPrimaryContainer(primaryContainer); return this; } /** ** The containers in the inference pipeline. *
* * @return The containers in the inference pipeline. */ public java.util.List* The containers in the inference pipeline. *
* * @param containers * The containers in the inference pipeline. */ public void setContainers(java.util.Collection* The containers in the inference pipeline. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setContainers(java.util.Collection)} or {@link #withContainers(java.util.Collection)} if you want to * override the existing values. *
* * @param containers * The containers in the inference pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withContainers(ContainerDefinition... containers) { if (this.containers == null) { setContainers(new java.util.ArrayList* The containers in the inference pipeline. *
* * @param containers * The containers in the inference pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withContainers(java.util.Collection* Specifies details of how containers in a multi-container endpoint are called. *
* * @param inferenceExecutionConfig * Specifies details of how containers in a multi-container endpoint are called. */ public void setInferenceExecutionConfig(InferenceExecutionConfig inferenceExecutionConfig) { this.inferenceExecutionConfig = inferenceExecutionConfig; } /** ** Specifies details of how containers in a multi-container endpoint are called. *
* * @return Specifies details of how containers in a multi-container endpoint are called. */ public InferenceExecutionConfig getInferenceExecutionConfig() { return this.inferenceExecutionConfig; } /** ** Specifies details of how containers in a multi-container endpoint are called. *
* * @param inferenceExecutionConfig * Specifies details of how containers in a multi-container endpoint are called. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withInferenceExecutionConfig(InferenceExecutionConfig inferenceExecutionConfig) { setInferenceExecutionConfig(inferenceExecutionConfig); return this; } /** ** The Amazon Resource Name (ARN) of the IAM role that you specified for the model. *
* * @param executionRoleArn * The Amazon Resource Name (ARN) of the IAM role that you specified for the model. */ public void setExecutionRoleArn(String executionRoleArn) { this.executionRoleArn = executionRoleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role that you specified for the model. *
* * @return The Amazon Resource Name (ARN) of the IAM role that you specified for the model. */ public String getExecutionRoleArn() { return this.executionRoleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role that you specified for the model. *
* * @param executionRoleArn * The Amazon Resource Name (ARN) of the IAM role that you specified for the model. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withExecutionRoleArn(String executionRoleArn) { setExecutionRoleArn(executionRoleArn); return this; } /** ** A VpcConfig object * that specifies the VPC that this model has access to. For more information, see Protect Endpoints by Using an Amazon Virtual * Private Cloud *
* * @param vpcConfig * A VpcConfig * object that specifies the VPC that this model has access to. For more information, see Protect Endpoints by Using an Amazon * Virtual Private Cloud */ public void setVpcConfig(VpcConfig vpcConfig) { this.vpcConfig = vpcConfig; } /** ** A VpcConfig object * that specifies the VPC that this model has access to. For more information, see Protect Endpoints by Using an Amazon Virtual * Private Cloud *
* * @return A VpcConfig * object that specifies the VPC that this model has access to. For more information, see Protect Endpoints by Using an Amazon * Virtual Private Cloud */ public VpcConfig getVpcConfig() { return this.vpcConfig; } /** ** A VpcConfig object * that specifies the VPC that this model has access to. For more information, see Protect Endpoints by Using an Amazon Virtual * Private Cloud *
* * @param vpcConfig * A VpcConfig * object that specifies the VPC that this model has access to. For more information, see Protect Endpoints by Using an Amazon * Virtual Private Cloud * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withVpcConfig(VpcConfig vpcConfig) { setVpcConfig(vpcConfig); return this; } /** ** A timestamp that shows when the model was created. *
* * @param creationTime * A timestamp that shows when the model was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** A timestamp that shows when the model was created. *
* * @return A timestamp that shows when the model was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** A timestamp that shows when the model was created. *
* * @param creationTime * A timestamp that shows when the model was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The Amazon Resource Name (ARN) of the model. *
* * @param modelArn * The Amazon Resource Name (ARN) of the model. */ public void setModelArn(String modelArn) { this.modelArn = modelArn; } /** ** The Amazon Resource Name (ARN) of the model. *
* * @return The Amazon Resource Name (ARN) of the model. */ public String getModelArn() { return this.modelArn; } /** ** The Amazon Resource Name (ARN) of the model. *
* * @param modelArn * The Amazon Resource Name (ARN) of the model. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withModelArn(String modelArn) { setModelArn(modelArn); return this; } /** *
* If True
, no inbound or outbound network calls can be made to or from the model container.
*
True
, no inbound or outbound network calls can be made to or from the model container.
*/
public void setEnableNetworkIsolation(Boolean enableNetworkIsolation) {
this.enableNetworkIsolation = enableNetworkIsolation;
}
/**
*
* If True
, no inbound or outbound network calls can be made to or from the model container.
*
True
, no inbound or outbound network calls can be made to or from the model container.
*/
public Boolean getEnableNetworkIsolation() {
return this.enableNetworkIsolation;
}
/**
*
* If True
, no inbound or outbound network calls can be made to or from the model container.
*
True
, no inbound or outbound network calls can be made to or from the model container.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeModelResult withEnableNetworkIsolation(Boolean enableNetworkIsolation) {
setEnableNetworkIsolation(enableNetworkIsolation);
return this;
}
/**
*
* If True
, no inbound or outbound network calls can be made to or from the model container.
*
True
, no inbound or outbound network calls can be made to or from the model container.
*/
public Boolean isEnableNetworkIsolation() {
return this.enableNetworkIsolation;
}
/**
* * A set of recommended deployment configurations for the model. *
* * @param deploymentRecommendation * A set of recommended deployment configurations for the model. */ public void setDeploymentRecommendation(DeploymentRecommendation deploymentRecommendation) { this.deploymentRecommendation = deploymentRecommendation; } /** ** A set of recommended deployment configurations for the model. *
* * @return A set of recommended deployment configurations for the model. */ public DeploymentRecommendation getDeploymentRecommendation() { return this.deploymentRecommendation; } /** ** A set of recommended deployment configurations for the model. *
* * @param deploymentRecommendation * A set of recommended deployment configurations for the model. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeModelResult withDeploymentRecommendation(DeploymentRecommendation deploymentRecommendation) { setDeploymentRecommendation(deploymentRecommendation); 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 (getModelName() != null) sb.append("ModelName: ").append(getModelName()).append(","); if (getPrimaryContainer() != null) sb.append("PrimaryContainer: ").append(getPrimaryContainer()).append(","); if (getContainers() != null) sb.append("Containers: ").append(getContainers()).append(","); if (getInferenceExecutionConfig() != null) sb.append("InferenceExecutionConfig: ").append(getInferenceExecutionConfig()).append(","); if (getExecutionRoleArn() != null) sb.append("ExecutionRoleArn: ").append(getExecutionRoleArn()).append(","); if (getVpcConfig() != null) sb.append("VpcConfig: ").append(getVpcConfig()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getModelArn() != null) sb.append("ModelArn: ").append(getModelArn()).append(","); if (getEnableNetworkIsolation() != null) sb.append("EnableNetworkIsolation: ").append(getEnableNetworkIsolation()).append(","); if (getDeploymentRecommendation() != null) sb.append("DeploymentRecommendation: ").append(getDeploymentRecommendation()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeModelResult == false) return false; DescribeModelResult other = (DescribeModelResult) obj; if (other.getModelName() == null ^ this.getModelName() == null) return false; if (other.getModelName() != null && other.getModelName().equals(this.getModelName()) == false) return false; if (other.getPrimaryContainer() == null ^ this.getPrimaryContainer() == null) return false; if (other.getPrimaryContainer() != null && other.getPrimaryContainer().equals(this.getPrimaryContainer()) == false) return false; if (other.getContainers() == null ^ this.getContainers() == null) return false; if (other.getContainers() != null && other.getContainers().equals(this.getContainers()) == false) return false; if (other.getInferenceExecutionConfig() == null ^ this.getInferenceExecutionConfig() == null) return false; if (other.getInferenceExecutionConfig() != null && other.getInferenceExecutionConfig().equals(this.getInferenceExecutionConfig()) == false) return false; if (other.getExecutionRoleArn() == null ^ this.getExecutionRoleArn() == null) return false; if (other.getExecutionRoleArn() != null && other.getExecutionRoleArn().equals(this.getExecutionRoleArn()) == false) return false; if (other.getVpcConfig() == null ^ this.getVpcConfig() == null) return false; if (other.getVpcConfig() != null && other.getVpcConfig().equals(this.getVpcConfig()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getModelArn() == null ^ this.getModelArn() == null) return false; if (other.getModelArn() != null && other.getModelArn().equals(this.getModelArn()) == false) return false; if (other.getEnableNetworkIsolation() == null ^ this.getEnableNetworkIsolation() == null) return false; if (other.getEnableNetworkIsolation() != null && other.getEnableNetworkIsolation().equals(this.getEnableNetworkIsolation()) == false) return false; if (other.getDeploymentRecommendation() == null ^ this.getDeploymentRecommendation() == null) return false; if (other.getDeploymentRecommendation() != null && other.getDeploymentRecommendation().equals(this.getDeploymentRecommendation()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getModelName() == null) ? 0 : getModelName().hashCode()); hashCode = prime * hashCode + ((getPrimaryContainer() == null) ? 0 : getPrimaryContainer().hashCode()); hashCode = prime * hashCode + ((getContainers() == null) ? 0 : getContainers().hashCode()); hashCode = prime * hashCode + ((getInferenceExecutionConfig() == null) ? 0 : getInferenceExecutionConfig().hashCode()); hashCode = prime * hashCode + ((getExecutionRoleArn() == null) ? 0 : getExecutionRoleArn().hashCode()); hashCode = prime * hashCode + ((getVpcConfig() == null) ? 0 : getVpcConfig().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getModelArn() == null) ? 0 : getModelArn().hashCode()); hashCode = prime * hashCode + ((getEnableNetworkIsolation() == null) ? 0 : getEnableNetworkIsolation().hashCode()); hashCode = prime * hashCode + ((getDeploymentRecommendation() == null) ? 0 : getDeploymentRecommendation().hashCode()); return hashCode; } @Override public DescribeModelResult clone() { try { return (DescribeModelResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }