/* * 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.elasticmapreduce.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* A notebook execution. An execution is a specific instance that an Amazon EMR Notebook is run using the * StartNotebookExecution action. *

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

* The unique identifier of a notebook execution. *

*/ private String notebookExecutionId; /** *

* The unique identifier of the Amazon EMR Notebook that is used for the notebook execution. *

*/ private String editorId; /** *

* The execution engine, such as an Amazon EMR cluster, used to run the Amazon EMR notebook and perform the notebook * execution. *

*/ private ExecutionEngineConfig executionEngine; /** *

* A name for the notebook execution. *

*/ private String notebookExecutionName; /** *

* Input parameters in JSON format passed to the Amazon EMR Notebook at runtime for execution. *

*/ private String notebookParams; /** *

* The status of the notebook execution. *

* */ private String status; /** *

* The timestamp when notebook execution started. *

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

* The timestamp when notebook execution ended. *

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

* The Amazon Resource Name (ARN) of the notebook execution. *

*/ private String arn; /** *

* The location of the notebook execution's output file in Amazon S3. *

*/ private String outputNotebookURI; /** *

* The reason for the latest status change of the notebook execution. *

*/ private String lastStateChangeReason; /** *

* The unique identifier of the Amazon EC2 security group associated with the Amazon EMR Notebook instance. For more * information see Specifying Amazon EC2 Security Groups for Amazon EMR Notebooks in the Amazon EMR Management Guide. *

*/ private String notebookInstanceSecurityGroupId; /** *

* A list of tags associated with a notebook execution. Tags are user-defined key-value pairs that consist of a * required key string with a maximum of 128 characters and an optional value string with a maximum of 256 * characters. *

*/ private com.amazonaws.internal.SdkInternalList tags; /** *

* The Amazon S3 location that stores the notebook execution input. *

*/ private NotebookS3LocationForOutput notebookS3Location; /** *

* The Amazon S3 location for the notebook execution output. *

*/ private OutputNotebookS3LocationForOutput outputNotebookS3Location; /** *

* The output format for the notebook execution. *

*/ private String outputNotebookFormat; /** *

* The environment variables associated with the notebook execution. *

*/ private com.amazonaws.internal.SdkInternalMap environmentVariables; /** *

* The unique identifier of a notebook execution. *

* * @param notebookExecutionId * The unique identifier of a notebook execution. */ public void setNotebookExecutionId(String notebookExecutionId) { this.notebookExecutionId = notebookExecutionId; } /** *

* The unique identifier of a notebook execution. *

* * @return The unique identifier of a notebook execution. */ public String getNotebookExecutionId() { return this.notebookExecutionId; } /** *

* The unique identifier of a notebook execution. *

* * @param notebookExecutionId * The unique identifier of a notebook execution. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withNotebookExecutionId(String notebookExecutionId) { setNotebookExecutionId(notebookExecutionId); return this; } /** *

* The unique identifier of the Amazon EMR Notebook that is used for the notebook execution. *

* * @param editorId * The unique identifier of the Amazon EMR Notebook that is used for the notebook execution. */ public void setEditorId(String editorId) { this.editorId = editorId; } /** *

* The unique identifier of the Amazon EMR Notebook that is used for the notebook execution. *

* * @return The unique identifier of the Amazon EMR Notebook that is used for the notebook execution. */ public String getEditorId() { return this.editorId; } /** *

* The unique identifier of the Amazon EMR Notebook that is used for the notebook execution. *

* * @param editorId * The unique identifier of the Amazon EMR Notebook that is used for the notebook execution. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withEditorId(String editorId) { setEditorId(editorId); return this; } /** *

* The execution engine, such as an Amazon EMR cluster, used to run the Amazon EMR notebook and perform the notebook * execution. *

* * @param executionEngine * The execution engine, such as an Amazon EMR cluster, used to run the Amazon EMR notebook and perform the * notebook execution. */ public void setExecutionEngine(ExecutionEngineConfig executionEngine) { this.executionEngine = executionEngine; } /** *

* The execution engine, such as an Amazon EMR cluster, used to run the Amazon EMR notebook and perform the notebook * execution. *

* * @return The execution engine, such as an Amazon EMR cluster, used to run the Amazon EMR notebook and perform the * notebook execution. */ public ExecutionEngineConfig getExecutionEngine() { return this.executionEngine; } /** *

* The execution engine, such as an Amazon EMR cluster, used to run the Amazon EMR notebook and perform the notebook * execution. *

* * @param executionEngine * The execution engine, such as an Amazon EMR cluster, used to run the Amazon EMR notebook and perform the * notebook execution. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withExecutionEngine(ExecutionEngineConfig executionEngine) { setExecutionEngine(executionEngine); return this; } /** *

* A name for the notebook execution. *

* * @param notebookExecutionName * A name for the notebook execution. */ public void setNotebookExecutionName(String notebookExecutionName) { this.notebookExecutionName = notebookExecutionName; } /** *

* A name for the notebook execution. *

* * @return A name for the notebook execution. */ public String getNotebookExecutionName() { return this.notebookExecutionName; } /** *

* A name for the notebook execution. *

* * @param notebookExecutionName * A name for the notebook execution. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withNotebookExecutionName(String notebookExecutionName) { setNotebookExecutionName(notebookExecutionName); return this; } /** *

* Input parameters in JSON format passed to the Amazon EMR Notebook at runtime for execution. *

* * @param notebookParams * Input parameters in JSON format passed to the Amazon EMR Notebook at runtime for execution. */ public void setNotebookParams(String notebookParams) { this.notebookParams = notebookParams; } /** *

* Input parameters in JSON format passed to the Amazon EMR Notebook at runtime for execution. *

* * @return Input parameters in JSON format passed to the Amazon EMR Notebook at runtime for execution. */ public String getNotebookParams() { return this.notebookParams; } /** *

* Input parameters in JSON format passed to the Amazon EMR Notebook at runtime for execution. *

* * @param notebookParams * Input parameters in JSON format passed to the Amazon EMR Notebook at runtime for execution. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withNotebookParams(String notebookParams) { setNotebookParams(notebookParams); return this; } /** *

* The status of the notebook execution. *

* * * @param status * The status of the notebook execution.

*