/* * 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.athena.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains data processing unit (DPU) configuration settings and parameter mappings for a notebook engine. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EngineConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The number of DPUs to use for the coordinator. A coordinator is a special executor that orchestrates processing * work and manages other executors in a notebook session. The default is 1. *
*/ private Integer coordinatorDpuSize; /** ** The maximum number of DPUs that can run concurrently. *
*/ private Integer maxConcurrentDpus; /** ** The default number of DPUs to use for executors. An executor is the smallest unit of compute that a notebook * session can request from Athena. The default is 1. *
*/ private Integer defaultExecutorDpuSize; /** *
* Contains additional notebook engine MAP<string, string>
parameter mappings in the form of
* key-value pairs. To specify an Athena notebook that the Jupyter server will download and serve, specify a value
* for the StartSessionRequest$NotebookVersion field, and then add a key named NotebookId
to
* AdditionalConfigs
that has the value of the Athena notebook ID.
*
* Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general * Spark tuning. *
*/ private java.util.Map* The number of DPUs to use for the coordinator. A coordinator is a special executor that orchestrates processing * work and manages other executors in a notebook session. The default is 1. *
* * @param coordinatorDpuSize * The number of DPUs to use for the coordinator. A coordinator is a special executor that orchestrates * processing work and manages other executors in a notebook session. The default is 1. */ public void setCoordinatorDpuSize(Integer coordinatorDpuSize) { this.coordinatorDpuSize = coordinatorDpuSize; } /** ** The number of DPUs to use for the coordinator. A coordinator is a special executor that orchestrates processing * work and manages other executors in a notebook session. The default is 1. *
* * @return The number of DPUs to use for the coordinator. A coordinator is a special executor that orchestrates * processing work and manages other executors in a notebook session. The default is 1. */ public Integer getCoordinatorDpuSize() { return this.coordinatorDpuSize; } /** ** The number of DPUs to use for the coordinator. A coordinator is a special executor that orchestrates processing * work and manages other executors in a notebook session. The default is 1. *
* * @param coordinatorDpuSize * The number of DPUs to use for the coordinator. A coordinator is a special executor that orchestrates * processing work and manages other executors in a notebook session. The default is 1. * @return Returns a reference to this object so that method calls can be chained together. */ public EngineConfiguration withCoordinatorDpuSize(Integer coordinatorDpuSize) { setCoordinatorDpuSize(coordinatorDpuSize); return this; } /** ** The maximum number of DPUs that can run concurrently. *
* * @param maxConcurrentDpus * The maximum number of DPUs that can run concurrently. */ public void setMaxConcurrentDpus(Integer maxConcurrentDpus) { this.maxConcurrentDpus = maxConcurrentDpus; } /** ** The maximum number of DPUs that can run concurrently. *
* * @return The maximum number of DPUs that can run concurrently. */ public Integer getMaxConcurrentDpus() { return this.maxConcurrentDpus; } /** ** The maximum number of DPUs that can run concurrently. *
* * @param maxConcurrentDpus * The maximum number of DPUs that can run concurrently. * @return Returns a reference to this object so that method calls can be chained together. */ public EngineConfiguration withMaxConcurrentDpus(Integer maxConcurrentDpus) { setMaxConcurrentDpus(maxConcurrentDpus); return this; } /** ** The default number of DPUs to use for executors. An executor is the smallest unit of compute that a notebook * session can request from Athena. The default is 1. *
* * @param defaultExecutorDpuSize * The default number of DPUs to use for executors. An executor is the smallest unit of compute that a * notebook session can request from Athena. The default is 1. */ public void setDefaultExecutorDpuSize(Integer defaultExecutorDpuSize) { this.defaultExecutorDpuSize = defaultExecutorDpuSize; } /** ** The default number of DPUs to use for executors. An executor is the smallest unit of compute that a notebook * session can request from Athena. The default is 1. *
* * @return The default number of DPUs to use for executors. An executor is the smallest unit of compute that a * notebook session can request from Athena. The default is 1. */ public Integer getDefaultExecutorDpuSize() { return this.defaultExecutorDpuSize; } /** ** The default number of DPUs to use for executors. An executor is the smallest unit of compute that a notebook * session can request from Athena. The default is 1. *
* * @param defaultExecutorDpuSize * The default number of DPUs to use for executors. An executor is the smallest unit of compute that a * notebook session can request from Athena. The default is 1. * @return Returns a reference to this object so that method calls can be chained together. */ public EngineConfiguration withDefaultExecutorDpuSize(Integer defaultExecutorDpuSize) { setDefaultExecutorDpuSize(defaultExecutorDpuSize); return this; } /** *
* Contains additional notebook engine MAP<string, string>
parameter mappings in the form of
* key-value pairs. To specify an Athena notebook that the Jupyter server will download and serve, specify a value
* for the StartSessionRequest$NotebookVersion field, and then add a key named NotebookId
to
* AdditionalConfigs
that has the value of the Athena notebook ID.
*
MAP<string, string>
parameter mappings in the form
* of key-value pairs. To specify an Athena notebook that the Jupyter server will download and serve,
* specify a value for the StartSessionRequest$NotebookVersion field, and then add a key named
* NotebookId
to AdditionalConfigs
that has the value of the Athena notebook ID.
*/
public java.util.Map
* Contains additional notebook engine MAP<string, string>
parameter mappings in the form of
* key-value pairs. To specify an Athena notebook that the Jupyter server will download and serve, specify a value
* for the StartSessionRequest$NotebookVersion field, and then add a key named NotebookId
to
* AdditionalConfigs
that has the value of the Athena notebook ID.
*
MAP<string, string>
parameter mappings in the form
* of key-value pairs. To specify an Athena notebook that the Jupyter server will download and serve, specify
* a value for the StartSessionRequest$NotebookVersion field, and then add a key named
* NotebookId
to AdditionalConfigs
that has the value of the Athena notebook ID.
*/
public void setAdditionalConfigs(java.util.Map
* Contains additional notebook engine MAP<string, string>
parameter mappings in the form of
* key-value pairs. To specify an Athena notebook that the Jupyter server will download and serve, specify a value
* for the StartSessionRequest$NotebookVersion field, and then add a key named NotebookId
to
* AdditionalConfigs
that has the value of the Athena notebook ID.
*
MAP<string, string>
parameter mappings in the form
* of key-value pairs. To specify an Athena notebook that the Jupyter server will download and serve, specify
* a value for the StartSessionRequest$NotebookVersion field, and then add a key named
* NotebookId
to AdditionalConfigs
that has the value of the Athena notebook ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EngineConfiguration withAdditionalConfigs(java.util.Map* Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general * Spark tuning. *
* * @return Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and * general Spark tuning. */ public java.util.Map* Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general * Spark tuning. *
* * @param sparkProperties * Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and * general Spark tuning. */ public void setSparkProperties(java.util.Map* Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general * Spark tuning. *
* * @param sparkProperties * Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and * general Spark tuning. * @return Returns a reference to this object so that method calls can be chained together. */ public EngineConfiguration withSparkProperties(java.util.Map