All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.sagemaker.model.DescribeInferenceComponentResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon SageMaker module holds the client classes that are used for communicating with Amazon SageMaker Service

There is a newer version: 1.12.782
Show newest version
/*
 * Copyright 2019-2024 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;

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

    /**
     * 

* The name of the inference component. *

*/ private String inferenceComponentName; /** *

* The Amazon Resource Name (ARN) of the inference component. *

*/ private String inferenceComponentArn; /** *

* The name of the endpoint that hosts the inference component. *

*/ private String endpointName; /** *

* The Amazon Resource Name (ARN) of the endpoint that hosts the inference component. *

*/ private String endpointArn; /** *

* The name of the production variant that hosts the inference component. *

*/ private String variantName; /** *

* If the inference component status is Failed, the reason for the failure. *

*/ private String failureReason; /** *

* Details about the resources that are deployed with this inference component. *

*/ private InferenceComponentSpecificationSummary specification; /** *

* Details about the runtime settings for the model that is deployed with the inference component. *

*/ private InferenceComponentRuntimeConfigSummary runtimeConfig; /** *

* The time when the inference component was created. *

*/ private java.util.Date creationTime; /** *

* The time when the inference component was last updated. *

*/ private java.util.Date lastModifiedTime; /** *

* The status of the inference component. *

*/ private String inferenceComponentStatus; /** *

* The name of the inference component. *

* * @param inferenceComponentName * The name of the inference component. */ public void setInferenceComponentName(String inferenceComponentName) { this.inferenceComponentName = inferenceComponentName; } /** *

* The name of the inference component. *

* * @return The name of the inference component. */ public String getInferenceComponentName() { return this.inferenceComponentName; } /** *

* The name of the inference component. *

* * @param inferenceComponentName * The name of the inference component. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceComponentResult withInferenceComponentName(String inferenceComponentName) { setInferenceComponentName(inferenceComponentName); return this; } /** *

* The Amazon Resource Name (ARN) of the inference component. *

* * @param inferenceComponentArn * The Amazon Resource Name (ARN) of the inference component. */ public void setInferenceComponentArn(String inferenceComponentArn) { this.inferenceComponentArn = inferenceComponentArn; } /** *

* The Amazon Resource Name (ARN) of the inference component. *

* * @return The Amazon Resource Name (ARN) of the inference component. */ public String getInferenceComponentArn() { return this.inferenceComponentArn; } /** *

* The Amazon Resource Name (ARN) of the inference component. *

* * @param inferenceComponentArn * The Amazon Resource Name (ARN) of the inference component. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceComponentResult withInferenceComponentArn(String inferenceComponentArn) { setInferenceComponentArn(inferenceComponentArn); return this; } /** *

* The name of the endpoint that hosts the inference component. *

* * @param endpointName * The name of the endpoint that hosts the inference component. */ public void setEndpointName(String endpointName) { this.endpointName = endpointName; } /** *

* The name of the endpoint that hosts the inference component. *

* * @return The name of the endpoint that hosts the inference component. */ public String getEndpointName() { return this.endpointName; } /** *

* The name of the endpoint that hosts the inference component. *

* * @param endpointName * The name of the endpoint that hosts the inference component. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceComponentResult withEndpointName(String endpointName) { setEndpointName(endpointName); return this; } /** *

* The Amazon Resource Name (ARN) of the endpoint that hosts the inference component. *

* * @param endpointArn * The Amazon Resource Name (ARN) of the endpoint that hosts the inference component. */ public void setEndpointArn(String endpointArn) { this.endpointArn = endpointArn; } /** *

* The Amazon Resource Name (ARN) of the endpoint that hosts the inference component. *

* * @return The Amazon Resource Name (ARN) of the endpoint that hosts the inference component. */ public String getEndpointArn() { return this.endpointArn; } /** *

* The Amazon Resource Name (ARN) of the endpoint that hosts the inference component. *

* * @param endpointArn * The Amazon Resource Name (ARN) of the endpoint that hosts the inference component. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceComponentResult withEndpointArn(String endpointArn) { setEndpointArn(endpointArn); return this; } /** *

* The name of the production variant that hosts the inference component. *

* * @param variantName * The name of the production variant that hosts the inference component. */ public void setVariantName(String variantName) { this.variantName = variantName; } /** *

* The name of the production variant that hosts the inference component. *

* * @return The name of the production variant that hosts the inference component. */ public String getVariantName() { return this.variantName; } /** *

* The name of the production variant that hosts the inference component. *

* * @param variantName * The name of the production variant that hosts the inference component. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceComponentResult withVariantName(String variantName) { setVariantName(variantName); return this; } /** *

* If the inference component status is Failed, the reason for the failure. *

* * @param failureReason * If the inference component status is Failed, the reason for the failure. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** *

* If the inference component status is Failed, the reason for the failure. *

* * @return If the inference component status is Failed, the reason for the failure. */ public String getFailureReason() { return this.failureReason; } /** *

* If the inference component status is Failed, the reason for the failure. *

* * @param failureReason * If the inference component status is Failed, the reason for the failure. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceComponentResult withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** *

* Details about the resources that are deployed with this inference component. *

* * @param specification * Details about the resources that are deployed with this inference component. */ public void setSpecification(InferenceComponentSpecificationSummary specification) { this.specification = specification; } /** *

* Details about the resources that are deployed with this inference component. *

* * @return Details about the resources that are deployed with this inference component. */ public InferenceComponentSpecificationSummary getSpecification() { return this.specification; } /** *

* Details about the resources that are deployed with this inference component. *

* * @param specification * Details about the resources that are deployed with this inference component. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceComponentResult withSpecification(InferenceComponentSpecificationSummary specification) { setSpecification(specification); return this; } /** *

* Details about the runtime settings for the model that is deployed with the inference component. *

* * @param runtimeConfig * Details about the runtime settings for the model that is deployed with the inference component. */ public void setRuntimeConfig(InferenceComponentRuntimeConfigSummary runtimeConfig) { this.runtimeConfig = runtimeConfig; } /** *

* Details about the runtime settings for the model that is deployed with the inference component. *

* * @return Details about the runtime settings for the model that is deployed with the inference component. */ public InferenceComponentRuntimeConfigSummary getRuntimeConfig() { return this.runtimeConfig; } /** *

* Details about the runtime settings for the model that is deployed with the inference component. *

* * @param runtimeConfig * Details about the runtime settings for the model that is deployed with the inference component. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceComponentResult withRuntimeConfig(InferenceComponentRuntimeConfigSummary runtimeConfig) { setRuntimeConfig(runtimeConfig); return this; } /** *

* The time when the inference component was created. *

* * @param creationTime * The time when the inference component was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time when the inference component was created. *

* * @return The time when the inference component was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time when the inference component was created. *

* * @param creationTime * The time when the inference component was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceComponentResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The time when the inference component was last updated. *

* * @param lastModifiedTime * The time when the inference component was last updated. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* The time when the inference component was last updated. *

* * @return The time when the inference component was last updated. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** *

* The time when the inference component was last updated. *

* * @param lastModifiedTime * The time when the inference component was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeInferenceComponentResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** *

* The status of the inference component. *

* * @param inferenceComponentStatus * The status of the inference component. * @see InferenceComponentStatus */ public void setInferenceComponentStatus(String inferenceComponentStatus) { this.inferenceComponentStatus = inferenceComponentStatus; } /** *

* The status of the inference component. *

* * @return The status of the inference component. * @see InferenceComponentStatus */ public String getInferenceComponentStatus() { return this.inferenceComponentStatus; } /** *

* The status of the inference component. *

* * @param inferenceComponentStatus * The status of the inference component. * @return Returns a reference to this object so that method calls can be chained together. * @see InferenceComponentStatus */ public DescribeInferenceComponentResult withInferenceComponentStatus(String inferenceComponentStatus) { setInferenceComponentStatus(inferenceComponentStatus); return this; } /** *

* The status of the inference component. *

* * @param inferenceComponentStatus * The status of the inference component. * @return Returns a reference to this object so that method calls can be chained together. * @see InferenceComponentStatus */ public DescribeInferenceComponentResult withInferenceComponentStatus(InferenceComponentStatus inferenceComponentStatus) { this.inferenceComponentStatus = inferenceComponentStatus.toString(); 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 (getInferenceComponentName() != null) sb.append("InferenceComponentName: ").append(getInferenceComponentName()).append(","); if (getInferenceComponentArn() != null) sb.append("InferenceComponentArn: ").append(getInferenceComponentArn()).append(","); if (getEndpointName() != null) sb.append("EndpointName: ").append(getEndpointName()).append(","); if (getEndpointArn() != null) sb.append("EndpointArn: ").append(getEndpointArn()).append(","); if (getVariantName() != null) sb.append("VariantName: ").append(getVariantName()).append(","); if (getFailureReason() != null) sb.append("FailureReason: ").append(getFailureReason()).append(","); if (getSpecification() != null) sb.append("Specification: ").append(getSpecification()).append(","); if (getRuntimeConfig() != null) sb.append("RuntimeConfig: ").append(getRuntimeConfig()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getInferenceComponentStatus() != null) sb.append("InferenceComponentStatus: ").append(getInferenceComponentStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeInferenceComponentResult == false) return false; DescribeInferenceComponentResult other = (DescribeInferenceComponentResult) obj; if (other.getInferenceComponentName() == null ^ this.getInferenceComponentName() == null) return false; if (other.getInferenceComponentName() != null && other.getInferenceComponentName().equals(this.getInferenceComponentName()) == false) return false; if (other.getInferenceComponentArn() == null ^ this.getInferenceComponentArn() == null) return false; if (other.getInferenceComponentArn() != null && other.getInferenceComponentArn().equals(this.getInferenceComponentArn()) == false) return false; if (other.getEndpointName() == null ^ this.getEndpointName() == null) return false; if (other.getEndpointName() != null && other.getEndpointName().equals(this.getEndpointName()) == false) return false; if (other.getEndpointArn() == null ^ this.getEndpointArn() == null) return false; if (other.getEndpointArn() != null && other.getEndpointArn().equals(this.getEndpointArn()) == false) return false; if (other.getVariantName() == null ^ this.getVariantName() == null) return false; if (other.getVariantName() != null && other.getVariantName().equals(this.getVariantName()) == false) return false; if (other.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false) return false; if (other.getSpecification() == null ^ this.getSpecification() == null) return false; if (other.getSpecification() != null && other.getSpecification().equals(this.getSpecification()) == false) return false; if (other.getRuntimeConfig() == null ^ this.getRuntimeConfig() == null) return false; if (other.getRuntimeConfig() != null && other.getRuntimeConfig().equals(this.getRuntimeConfig()) == 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.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getInferenceComponentStatus() == null ^ this.getInferenceComponentStatus() == null) return false; if (other.getInferenceComponentStatus() != null && other.getInferenceComponentStatus().equals(this.getInferenceComponentStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInferenceComponentName() == null) ? 0 : getInferenceComponentName().hashCode()); hashCode = prime * hashCode + ((getInferenceComponentArn() == null) ? 0 : getInferenceComponentArn().hashCode()); hashCode = prime * hashCode + ((getEndpointName() == null) ? 0 : getEndpointName().hashCode()); hashCode = prime * hashCode + ((getEndpointArn() == null) ? 0 : getEndpointArn().hashCode()); hashCode = prime * hashCode + ((getVariantName() == null) ? 0 : getVariantName().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getSpecification() == null) ? 0 : getSpecification().hashCode()); hashCode = prime * hashCode + ((getRuntimeConfig() == null) ? 0 : getRuntimeConfig().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getInferenceComponentStatus() == null) ? 0 : getInferenceComponentStatus().hashCode()); return hashCode; } @Override public DescribeInferenceComponentResult clone() { try { return (DescribeInferenceComponentResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy