/* * 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; /** *
* The configuration for running a SageMaker image as a KernelGateway app. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AppImageConfigDetails implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of the AppImageConfig. *
*/ private String appImageConfigArn; /** ** The name of the AppImageConfig. Must be unique to your account. *
*/ private String appImageConfigName; /** ** When the AppImageConfig was created. *
*/ private java.util.Date creationTime; /** ** When the AppImageConfig was last modified. *
*/ private java.util.Date lastModifiedTime; /** ** The configuration for the file system and kernels in the SageMaker image. *
*/ private KernelGatewayImageConfig kernelGatewayImageConfig; /** ** The Amazon Resource Name (ARN) of the AppImageConfig. *
* * @param appImageConfigArn * The Amazon Resource Name (ARN) of the AppImageConfig. */ public void setAppImageConfigArn(String appImageConfigArn) { this.appImageConfigArn = appImageConfigArn; } /** ** The Amazon Resource Name (ARN) of the AppImageConfig. *
* * @return The Amazon Resource Name (ARN) of the AppImageConfig. */ public String getAppImageConfigArn() { return this.appImageConfigArn; } /** ** The Amazon Resource Name (ARN) of the AppImageConfig. *
* * @param appImageConfigArn * The Amazon Resource Name (ARN) of the AppImageConfig. * @return Returns a reference to this object so that method calls can be chained together. */ public AppImageConfigDetails withAppImageConfigArn(String appImageConfigArn) { setAppImageConfigArn(appImageConfigArn); return this; } /** ** The name of the AppImageConfig. Must be unique to your account. *
* * @param appImageConfigName * The name of the AppImageConfig. Must be unique to your account. */ public void setAppImageConfigName(String appImageConfigName) { this.appImageConfigName = appImageConfigName; } /** ** The name of the AppImageConfig. Must be unique to your account. *
* * @return The name of the AppImageConfig. Must be unique to your account. */ public String getAppImageConfigName() { return this.appImageConfigName; } /** ** The name of the AppImageConfig. Must be unique to your account. *
* * @param appImageConfigName * The name of the AppImageConfig. Must be unique to your account. * @return Returns a reference to this object so that method calls can be chained together. */ public AppImageConfigDetails withAppImageConfigName(String appImageConfigName) { setAppImageConfigName(appImageConfigName); return this; } /** ** When the AppImageConfig was created. *
* * @param creationTime * When the AppImageConfig was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** When the AppImageConfig was created. *
* * @return When the AppImageConfig was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** When the AppImageConfig was created. *
* * @param creationTime * When the AppImageConfig was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AppImageConfigDetails withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** When the AppImageConfig was last modified. *
* * @param lastModifiedTime * When the AppImageConfig was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** When the AppImageConfig was last modified. *
* * @return When the AppImageConfig was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** When the AppImageConfig was last modified. *
* * @param lastModifiedTime * When the AppImageConfig was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public AppImageConfigDetails withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** ** The configuration for the file system and kernels in the SageMaker image. *
* * @param kernelGatewayImageConfig * The configuration for the file system and kernels in the SageMaker image. */ public void setKernelGatewayImageConfig(KernelGatewayImageConfig kernelGatewayImageConfig) { this.kernelGatewayImageConfig = kernelGatewayImageConfig; } /** ** The configuration for the file system and kernels in the SageMaker image. *
* * @return The configuration for the file system and kernels in the SageMaker image. */ public KernelGatewayImageConfig getKernelGatewayImageConfig() { return this.kernelGatewayImageConfig; } /** ** The configuration for the file system and kernels in the SageMaker image. *
* * @param kernelGatewayImageConfig * The configuration for the file system and kernels in the SageMaker image. * @return Returns a reference to this object so that method calls can be chained together. */ public AppImageConfigDetails withKernelGatewayImageConfig(KernelGatewayImageConfig kernelGatewayImageConfig) { setKernelGatewayImageConfig(kernelGatewayImageConfig); 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 (getAppImageConfigArn() != null) sb.append("AppImageConfigArn: ").append(getAppImageConfigArn()).append(","); if (getAppImageConfigName() != null) sb.append("AppImageConfigName: ").append(getAppImageConfigName()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getKernelGatewayImageConfig() != null) sb.append("KernelGatewayImageConfig: ").append(getKernelGatewayImageConfig()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AppImageConfigDetails == false) return false; AppImageConfigDetails other = (AppImageConfigDetails) obj; if (other.getAppImageConfigArn() == null ^ this.getAppImageConfigArn() == null) return false; if (other.getAppImageConfigArn() != null && other.getAppImageConfigArn().equals(this.getAppImageConfigArn()) == false) return false; if (other.getAppImageConfigName() == null ^ this.getAppImageConfigName() == null) return false; if (other.getAppImageConfigName() != null && other.getAppImageConfigName().equals(this.getAppImageConfigName()) == 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.getKernelGatewayImageConfig() == null ^ this.getKernelGatewayImageConfig() == null) return false; if (other.getKernelGatewayImageConfig() != null && other.getKernelGatewayImageConfig().equals(this.getKernelGatewayImageConfig()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppImageConfigArn() == null) ? 0 : getAppImageConfigArn().hashCode()); hashCode = prime * hashCode + ((getAppImageConfigName() == null) ? 0 : getAppImageConfigName().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getKernelGatewayImageConfig() == null) ? 0 : getKernelGatewayImageConfig().hashCode()); return hashCode; } @Override public AppImageConfigDetails clone() { try { return (AppImageConfigDetails) 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.AppImageConfigDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }