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

com.amazonaws.services.sagemaker.model.CreateAppImageConfigRequest 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.AmazonWebServiceRequest;

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

    /**
     * 

* The name of the AppImageConfig. Must be unique to your account. *

*/ private String appImageConfigName; /** *

* A list of tags to apply to the AppImageConfig. *

*/ private java.util.List tags; /** *

* The KernelGatewayImageConfig. You can only specify one image kernel in the AppImageConfig API. This kernel will * be shown to users before the image starts. Once the image runs, all kernels are visible in JupyterLab. *

*/ private KernelGatewayImageConfig kernelGatewayImageConfig; /** *

* The JupyterLabAppImageConfig. You can only specify one image kernel in the * AppImageConfig API. This kernel is shown to users before the image starts. After the image runs, all * kernels are visible in JupyterLab. *

*/ private JupyterLabAppImageConfig jupyterLabAppImageConfig; /** *

* The CodeEditorAppImageConfig. You can only specify one image kernel in the AppImageConfig API. This * kernel is shown to users before the image starts. After the image runs, all kernels are visible in Code Editor. *

*/ private CodeEditorAppImageConfig codeEditorAppImageConfig; /** *

* 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 CreateAppImageConfigRequest withAppImageConfigName(String appImageConfigName) { setAppImageConfigName(appImageConfigName); return this; } /** *

* A list of tags to apply to the AppImageConfig. *

* * @return A list of tags to apply to the AppImageConfig. */ public java.util.List getTags() { return tags; } /** *

* A list of tags to apply to the AppImageConfig. *

* * @param tags * A list of tags to apply to the AppImageConfig. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* A list of tags to apply to the AppImageConfig. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * A list of tags to apply to the AppImageConfig. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppImageConfigRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* A list of tags to apply to the AppImageConfig. *

* * @param tags * A list of tags to apply to the AppImageConfig. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppImageConfigRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* The KernelGatewayImageConfig. You can only specify one image kernel in the AppImageConfig API. This kernel will * be shown to users before the image starts. Once the image runs, all kernels are visible in JupyterLab. *

* * @param kernelGatewayImageConfig * The KernelGatewayImageConfig. You can only specify one image kernel in the AppImageConfig API. This kernel * will be shown to users before the image starts. Once the image runs, all kernels are visible in * JupyterLab. */ public void setKernelGatewayImageConfig(KernelGatewayImageConfig kernelGatewayImageConfig) { this.kernelGatewayImageConfig = kernelGatewayImageConfig; } /** *

* The KernelGatewayImageConfig. You can only specify one image kernel in the AppImageConfig API. This kernel will * be shown to users before the image starts. Once the image runs, all kernels are visible in JupyterLab. *

* * @return The KernelGatewayImageConfig. You can only specify one image kernel in the AppImageConfig API. This * kernel will be shown to users before the image starts. Once the image runs, all kernels are visible in * JupyterLab. */ public KernelGatewayImageConfig getKernelGatewayImageConfig() { return this.kernelGatewayImageConfig; } /** *

* The KernelGatewayImageConfig. You can only specify one image kernel in the AppImageConfig API. This kernel will * be shown to users before the image starts. Once the image runs, all kernels are visible in JupyterLab. *

* * @param kernelGatewayImageConfig * The KernelGatewayImageConfig. You can only specify one image kernel in the AppImageConfig API. This kernel * will be shown to users before the image starts. Once the image runs, all kernels are visible in * JupyterLab. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppImageConfigRequest withKernelGatewayImageConfig(KernelGatewayImageConfig kernelGatewayImageConfig) { setKernelGatewayImageConfig(kernelGatewayImageConfig); return this; } /** *

* The JupyterLabAppImageConfig. You can only specify one image kernel in the * AppImageConfig API. This kernel is shown to users before the image starts. After the image runs, all * kernels are visible in JupyterLab. *

* * @param jupyterLabAppImageConfig * The JupyterLabAppImageConfig. You can only specify one image kernel in the * AppImageConfig API. This kernel is shown to users before the image starts. After the image * runs, all kernels are visible in JupyterLab. */ public void setJupyterLabAppImageConfig(JupyterLabAppImageConfig jupyterLabAppImageConfig) { this.jupyterLabAppImageConfig = jupyterLabAppImageConfig; } /** *

* The JupyterLabAppImageConfig. You can only specify one image kernel in the * AppImageConfig API. This kernel is shown to users before the image starts. After the image runs, all * kernels are visible in JupyterLab. *

* * @return The JupyterLabAppImageConfig. You can only specify one image kernel in the * AppImageConfig API. This kernel is shown to users before the image starts. After the image * runs, all kernels are visible in JupyterLab. */ public JupyterLabAppImageConfig getJupyterLabAppImageConfig() { return this.jupyterLabAppImageConfig; } /** *

* The JupyterLabAppImageConfig. You can only specify one image kernel in the * AppImageConfig API. This kernel is shown to users before the image starts. After the image runs, all * kernels are visible in JupyterLab. *

* * @param jupyterLabAppImageConfig * The JupyterLabAppImageConfig. You can only specify one image kernel in the * AppImageConfig API. This kernel is shown to users before the image starts. After the image * runs, all kernels are visible in JupyterLab. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppImageConfigRequest withJupyterLabAppImageConfig(JupyterLabAppImageConfig jupyterLabAppImageConfig) { setJupyterLabAppImageConfig(jupyterLabAppImageConfig); return this; } /** *

* The CodeEditorAppImageConfig. You can only specify one image kernel in the AppImageConfig API. This * kernel is shown to users before the image starts. After the image runs, all kernels are visible in Code Editor. *

* * @param codeEditorAppImageConfig * The CodeEditorAppImageConfig. You can only specify one image kernel in the AppImageConfig * API. This kernel is shown to users before the image starts. After the image runs, all kernels are visible * in Code Editor. */ public void setCodeEditorAppImageConfig(CodeEditorAppImageConfig codeEditorAppImageConfig) { this.codeEditorAppImageConfig = codeEditorAppImageConfig; } /** *

* The CodeEditorAppImageConfig. You can only specify one image kernel in the AppImageConfig API. This * kernel is shown to users before the image starts. After the image runs, all kernels are visible in Code Editor. *

* * @return The CodeEditorAppImageConfig. You can only specify one image kernel in the AppImageConfig * API. This kernel is shown to users before the image starts. After the image runs, all kernels are visible * in Code Editor. */ public CodeEditorAppImageConfig getCodeEditorAppImageConfig() { return this.codeEditorAppImageConfig; } /** *

* The CodeEditorAppImageConfig. You can only specify one image kernel in the AppImageConfig API. This * kernel is shown to users before the image starts. After the image runs, all kernels are visible in Code Editor. *

* * @param codeEditorAppImageConfig * The CodeEditorAppImageConfig. You can only specify one image kernel in the AppImageConfig * API. This kernel is shown to users before the image starts. After the image runs, all kernels are visible * in Code Editor. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppImageConfigRequest withCodeEditorAppImageConfig(CodeEditorAppImageConfig codeEditorAppImageConfig) { setCodeEditorAppImageConfig(codeEditorAppImageConfig); 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 (getAppImageConfigName() != null) sb.append("AppImageConfigName: ").append(getAppImageConfigName()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getKernelGatewayImageConfig() != null) sb.append("KernelGatewayImageConfig: ").append(getKernelGatewayImageConfig()).append(","); if (getJupyterLabAppImageConfig() != null) sb.append("JupyterLabAppImageConfig: ").append(getJupyterLabAppImageConfig()).append(","); if (getCodeEditorAppImageConfig() != null) sb.append("CodeEditorAppImageConfig: ").append(getCodeEditorAppImageConfig()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateAppImageConfigRequest == false) return false; CreateAppImageConfigRequest other = (CreateAppImageConfigRequest) obj; if (other.getAppImageConfigName() == null ^ this.getAppImageConfigName() == null) return false; if (other.getAppImageConfigName() != null && other.getAppImageConfigName().equals(this.getAppImageConfigName()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getKernelGatewayImageConfig() == null ^ this.getKernelGatewayImageConfig() == null) return false; if (other.getKernelGatewayImageConfig() != null && other.getKernelGatewayImageConfig().equals(this.getKernelGatewayImageConfig()) == false) return false; if (other.getJupyterLabAppImageConfig() == null ^ this.getJupyterLabAppImageConfig() == null) return false; if (other.getJupyterLabAppImageConfig() != null && other.getJupyterLabAppImageConfig().equals(this.getJupyterLabAppImageConfig()) == false) return false; if (other.getCodeEditorAppImageConfig() == null ^ this.getCodeEditorAppImageConfig() == null) return false; if (other.getCodeEditorAppImageConfig() != null && other.getCodeEditorAppImageConfig().equals(this.getCodeEditorAppImageConfig()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppImageConfigName() == null) ? 0 : getAppImageConfigName().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getKernelGatewayImageConfig() == null) ? 0 : getKernelGatewayImageConfig().hashCode()); hashCode = prime * hashCode + ((getJupyterLabAppImageConfig() == null) ? 0 : getJupyterLabAppImageConfig().hashCode()); hashCode = prime * hashCode + ((getCodeEditorAppImageConfig() == null) ? 0 : getCodeEditorAppImageConfig().hashCode()); return hashCode; } @Override public CreateAppImageConfigRequest clone() { return (CreateAppImageConfigRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy