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

com.amazonaws.services.sagemaker.model.InferenceComponentContainerSpecificationSummary 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

The 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

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

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

* The Amazon S3 path where the model artifacts are stored. *

*/ private String artifactUrl; /** *

* The environment variables to set in the Docker container. *

*/ private java.util.Map environment; /** * @param deployedImage */ public void setDeployedImage(DeployedImage deployedImage) { this.deployedImage = deployedImage; } /** * @return */ public DeployedImage getDeployedImage() { return this.deployedImage; } /** * @param deployedImage * @return Returns a reference to this object so that method calls can be chained together. */ public InferenceComponentContainerSpecificationSummary withDeployedImage(DeployedImage deployedImage) { setDeployedImage(deployedImage); return this; } /** *

* The Amazon S3 path where the model artifacts are stored. *

* * @param artifactUrl * The Amazon S3 path where the model artifacts are stored. */ public void setArtifactUrl(String artifactUrl) { this.artifactUrl = artifactUrl; } /** *

* The Amazon S3 path where the model artifacts are stored. *

* * @return The Amazon S3 path where the model artifacts are stored. */ public String getArtifactUrl() { return this.artifactUrl; } /** *

* The Amazon S3 path where the model artifacts are stored. *

* * @param artifactUrl * The Amazon S3 path where the model artifacts are stored. * @return Returns a reference to this object so that method calls can be chained together. */ public InferenceComponentContainerSpecificationSummary withArtifactUrl(String artifactUrl) { setArtifactUrl(artifactUrl); return this; } /** *

* The environment variables to set in the Docker container. *

* * @return The environment variables to set in the Docker container. */ public java.util.Map getEnvironment() { return environment; } /** *

* The environment variables to set in the Docker container. *

* * @param environment * The environment variables to set in the Docker container. */ public void setEnvironment(java.util.Map environment) { this.environment = environment; } /** *

* The environment variables to set in the Docker container. *

* * @param environment * The environment variables to set in the Docker container. * @return Returns a reference to this object so that method calls can be chained together. */ public InferenceComponentContainerSpecificationSummary withEnvironment(java.util.Map environment) { setEnvironment(environment); return this; } /** * Add a single Environment entry * * @see InferenceComponentContainerSpecificationSummary#withEnvironment * @returns a reference to this object so that method calls can be chained together. */ public InferenceComponentContainerSpecificationSummary addEnvironmentEntry(String key, String value) { if (null == this.environment) { this.environment = new java.util.HashMap(); } if (this.environment.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.environment.put(key, value); return this; } /** * Removes all the entries added into Environment. * * @return Returns a reference to this object so that method calls can be chained together. */ public InferenceComponentContainerSpecificationSummary clearEnvironmentEntries() { this.environment = null; 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 (getDeployedImage() != null) sb.append("DeployedImage: ").append(getDeployedImage()).append(","); if (getArtifactUrl() != null) sb.append("ArtifactUrl: ").append(getArtifactUrl()).append(","); if (getEnvironment() != null) sb.append("Environment: ").append(getEnvironment()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InferenceComponentContainerSpecificationSummary == false) return false; InferenceComponentContainerSpecificationSummary other = (InferenceComponentContainerSpecificationSummary) obj; if (other.getDeployedImage() == null ^ this.getDeployedImage() == null) return false; if (other.getDeployedImage() != null && other.getDeployedImage().equals(this.getDeployedImage()) == false) return false; if (other.getArtifactUrl() == null ^ this.getArtifactUrl() == null) return false; if (other.getArtifactUrl() != null && other.getArtifactUrl().equals(this.getArtifactUrl()) == false) return false; if (other.getEnvironment() == null ^ this.getEnvironment() == null) return false; if (other.getEnvironment() != null && other.getEnvironment().equals(this.getEnvironment()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeployedImage() == null) ? 0 : getDeployedImage().hashCode()); hashCode = prime * hashCode + ((getArtifactUrl() == null) ? 0 : getArtifactUrl().hashCode()); hashCode = prime * hashCode + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode()); return hashCode; } @Override public InferenceComponentContainerSpecificationSummary clone() { try { return (InferenceComponentContainerSpecificationSummary) 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.InferenceComponentContainerSpecificationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy