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

com.amazonaws.services.elasticmapreduce.model.NotebookExecution Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon EMR module holds the client classes that are used for communicating with Amazon Elastic MapReduce Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 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 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 EMR Notebook that is used for the notebook execution. *

*/ private String editorId; /** *

* The execution engine, such as an EMR cluster, used to run the 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 EMR Notebook at runtime for execution. *

*/ private String notebookParams; /** *

* The status of the notebook execution. *

*
    *
  • *

    * START_PENDING indicates that the cluster has received the execution request but execution has not * begun. *

    *
  • *
  • *

    * STARTING indicates that the execution is starting on the cluster. *

    *
  • *
  • *

    * RUNNING indicates that the execution is being processed by the cluster. *

    *
  • *
  • *

    * FINISHING indicates that execution processing is in the final stages. *

    *
  • *
  • *

    * FINISHED indicates that the execution has completed without error. *

    *
  • *
  • *

    * FAILING indicates that the execution is failing and will not finish successfully. *

    *
  • *
  • *

    * FAILED indicates that the execution failed. *

    *
  • *
  • *

    * STOP_PENDING indicates that the cluster has received a StopNotebookExecution request * and the stop is pending. *

    *
  • *
  • *

    * STOPPING indicates that the cluster is in the process of stopping the execution as a result of a * StopNotebookExecution request. *

    *
  • *
  • *

    * STOPPED indicates that the execution stopped because of a StopNotebookExecution * request. *

    *
  • *
*/ 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 EC2 security group associated with the EMR Notebook instance. For more information * see * Specifying EC2 Security Groups for EMR Notebooks in the 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 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 EMR Notebook that is used for the notebook execution. *

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

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

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

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

* * @param editorId * The unique identifier of the 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 EMR cluster, used to run the EMR notebook and perform the notebook execution. *

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

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

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

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

* * @param executionEngine * The execution engine, such as an EMR cluster, used to run the 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 EMR Notebook at runtime for execution. *

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

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

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

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

* * @param notebookParams * Input parameters in JSON format passed to the 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. *

*
    *
  • *

    * START_PENDING indicates that the cluster has received the execution request but execution has not * begun. *

    *
  • *
  • *

    * STARTING indicates that the execution is starting on the cluster. *

    *
  • *
  • *

    * RUNNING indicates that the execution is being processed by the cluster. *

    *
  • *
  • *

    * FINISHING indicates that execution processing is in the final stages. *

    *
  • *
  • *

    * FINISHED indicates that the execution has completed without error. *

    *
  • *
  • *

    * FAILING indicates that the execution is failing and will not finish successfully. *

    *
  • *
  • *

    * FAILED indicates that the execution failed. *

    *
  • *
  • *

    * STOP_PENDING indicates that the cluster has received a StopNotebookExecution request * and the stop is pending. *

    *
  • *
  • *

    * STOPPING indicates that the cluster is in the process of stopping the execution as a result of a * StopNotebookExecution request. *

    *
  • *
  • *

    * STOPPED indicates that the execution stopped because of a StopNotebookExecution * request. *

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

*
    *
  • *

    * START_PENDING indicates that the cluster has received the execution request but execution has * not begun. *

    *
  • *
  • *

    * STARTING indicates that the execution is starting on the cluster. *

    *
  • *
  • *

    * RUNNING indicates that the execution is being processed by the cluster. *

    *
  • *
  • *

    * FINISHING indicates that execution processing is in the final stages. *

    *
  • *
  • *

    * FINISHED indicates that the execution has completed without error. *

    *
  • *
  • *

    * FAILING indicates that the execution is failing and will not finish successfully. *

    *
  • *
  • *

    * FAILED indicates that the execution failed. *

    *
  • *
  • *

    * STOP_PENDING indicates that the cluster has received a StopNotebookExecution * request and the stop is pending. *

    *
  • *
  • *

    * STOPPING indicates that the cluster is in the process of stopping the execution as a result * of a StopNotebookExecution request. *

    *
  • *
  • *

    * STOPPED indicates that the execution stopped because of a StopNotebookExecution * request. *

    *
  • * @see NotebookExecutionStatus */ public void setStatus(String status) { this.status = status; } /** *

    * The status of the notebook execution. *

    *
      *
    • *

      * START_PENDING indicates that the cluster has received the execution request but execution has not * begun. *

      *
    • *
    • *

      * STARTING indicates that the execution is starting on the cluster. *

      *
    • *
    • *

      * RUNNING indicates that the execution is being processed by the cluster. *

      *
    • *
    • *

      * FINISHING indicates that execution processing is in the final stages. *

      *
    • *
    • *

      * FINISHED indicates that the execution has completed without error. *

      *
    • *
    • *

      * FAILING indicates that the execution is failing and will not finish successfully. *

      *
    • *
    • *

      * FAILED indicates that the execution failed. *

      *
    • *
    • *

      * STOP_PENDING indicates that the cluster has received a StopNotebookExecution request * and the stop is pending. *

      *
    • *
    • *

      * STOPPING indicates that the cluster is in the process of stopping the execution as a result of a * StopNotebookExecution request. *

      *
    • *
    • *

      * STOPPED indicates that the execution stopped because of a StopNotebookExecution * request. *

      *
    • *
    * * @return The status of the notebook execution.

    *
      *
    • *

      * START_PENDING indicates that the cluster has received the execution request but execution * has not begun. *

      *
    • *
    • *

      * STARTING indicates that the execution is starting on the cluster. *

      *
    • *
    • *

      * RUNNING indicates that the execution is being processed by the cluster. *

      *
    • *
    • *

      * FINISHING indicates that execution processing is in the final stages. *

      *
    • *
    • *

      * FINISHED indicates that the execution has completed without error. *

      *
    • *
    • *

      * FAILING indicates that the execution is failing and will not finish successfully. *

      *
    • *
    • *

      * FAILED indicates that the execution failed. *

      *
    • *
    • *

      * STOP_PENDING indicates that the cluster has received a StopNotebookExecution * request and the stop is pending. *

      *
    • *
    • *

      * STOPPING indicates that the cluster is in the process of stopping the execution as a result * of a StopNotebookExecution request. *

      *
    • *
    • *

      * STOPPED indicates that the execution stopped because of a StopNotebookExecution * request. *

      *
    • * @see NotebookExecutionStatus */ public String getStatus() { return this.status; } /** *

      * The status of the notebook execution. *

      *
        *
      • *

        * START_PENDING indicates that the cluster has received the execution request but execution has not * begun. *

        *
      • *
      • *

        * STARTING indicates that the execution is starting on the cluster. *

        *
      • *
      • *

        * RUNNING indicates that the execution is being processed by the cluster. *

        *
      • *
      • *

        * FINISHING indicates that execution processing is in the final stages. *

        *
      • *
      • *

        * FINISHED indicates that the execution has completed without error. *

        *
      • *
      • *

        * FAILING indicates that the execution is failing and will not finish successfully. *

        *
      • *
      • *

        * FAILED indicates that the execution failed. *

        *
      • *
      • *

        * STOP_PENDING indicates that the cluster has received a StopNotebookExecution request * and the stop is pending. *

        *
      • *
      • *

        * STOPPING indicates that the cluster is in the process of stopping the execution as a result of a * StopNotebookExecution request. *

        *
      • *
      • *

        * STOPPED indicates that the execution stopped because of a StopNotebookExecution * request. *

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

      *
        *
      • *

        * START_PENDING indicates that the cluster has received the execution request but execution has * not begun. *

        *
      • *
      • *

        * STARTING indicates that the execution is starting on the cluster. *

        *
      • *
      • *

        * RUNNING indicates that the execution is being processed by the cluster. *

        *
      • *
      • *

        * FINISHING indicates that execution processing is in the final stages. *

        *
      • *
      • *

        * FINISHED indicates that the execution has completed without error. *

        *
      • *
      • *

        * FAILING indicates that the execution is failing and will not finish successfully. *

        *
      • *
      • *

        * FAILED indicates that the execution failed. *

        *
      • *
      • *

        * STOP_PENDING indicates that the cluster has received a StopNotebookExecution * request and the stop is pending. *

        *
      • *
      • *

        * STOPPING indicates that the cluster is in the process of stopping the execution as a result * of a StopNotebookExecution request. *

        *
      • *
      • *

        * STOPPED indicates that the execution stopped because of a StopNotebookExecution * request. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see NotebookExecutionStatus */ public NotebookExecution withStatus(String status) { setStatus(status); return this; } /** *

        * The status of the notebook execution. *

        *
          *
        • *

          * START_PENDING indicates that the cluster has received the execution request but execution has not * begun. *

          *
        • *
        • *

          * STARTING indicates that the execution is starting on the cluster. *

          *
        • *
        • *

          * RUNNING indicates that the execution is being processed by the cluster. *

          *
        • *
        • *

          * FINISHING indicates that execution processing is in the final stages. *

          *
        • *
        • *

          * FINISHED indicates that the execution has completed without error. *

          *
        • *
        • *

          * FAILING indicates that the execution is failing and will not finish successfully. *

          *
        • *
        • *

          * FAILED indicates that the execution failed. *

          *
        • *
        • *

          * STOP_PENDING indicates that the cluster has received a StopNotebookExecution request * and the stop is pending. *

          *
        • *
        • *

          * STOPPING indicates that the cluster is in the process of stopping the execution as a result of a * StopNotebookExecution request. *

          *
        • *
        • *

          * STOPPED indicates that the execution stopped because of a StopNotebookExecution * request. *

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

        *
          *
        • *

          * START_PENDING indicates that the cluster has received the execution request but execution has * not begun. *

          *
        • *
        • *

          * STARTING indicates that the execution is starting on the cluster. *

          *
        • *
        • *

          * RUNNING indicates that the execution is being processed by the cluster. *

          *
        • *
        • *

          * FINISHING indicates that execution processing is in the final stages. *

          *
        • *
        • *

          * FINISHED indicates that the execution has completed without error. *

          *
        • *
        • *

          * FAILING indicates that the execution is failing and will not finish successfully. *

          *
        • *
        • *

          * FAILED indicates that the execution failed. *

          *
        • *
        • *

          * STOP_PENDING indicates that the cluster has received a StopNotebookExecution * request and the stop is pending. *

          *
        • *
        • *

          * STOPPING indicates that the cluster is in the process of stopping the execution as a result * of a StopNotebookExecution request. *

          *
        • *
        • *

          * STOPPED indicates that the execution stopped because of a StopNotebookExecution * request. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see NotebookExecutionStatus */ public NotebookExecution withStatus(NotebookExecutionStatus status) { this.status = status.toString(); return this; } /** *

          * The timestamp when notebook execution started. *

          * * @param startTime * The timestamp when notebook execution started. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

          * The timestamp when notebook execution started. *

          * * @return The timestamp when notebook execution started. */ public java.util.Date getStartTime() { return this.startTime; } /** *

          * The timestamp when notebook execution started. *

          * * @param startTime * The timestamp when notebook execution started. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

          * The timestamp when notebook execution ended. *

          * * @param endTime * The timestamp when notebook execution ended. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

          * The timestamp when notebook execution ended. *

          * * @return The timestamp when notebook execution ended. */ public java.util.Date getEndTime() { return this.endTime; } /** *

          * The timestamp when notebook execution ended. *

          * * @param endTime * The timestamp when notebook execution ended. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

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

          * * @param arn * The Amazon Resource Name (ARN) of the notebook execution. */ public void setArn(String arn) { this.arn = arn; } /** *

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

          * * @return The Amazon Resource Name (ARN) of the notebook execution. */ public String getArn() { return this.arn; } /** *

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

          * * @param arn * The Amazon Resource Name (ARN) of the notebook execution. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withArn(String arn) { setArn(arn); return this; } /** *

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

          * * @param outputNotebookURI * The location of the notebook execution's output file in Amazon S3. */ public void setOutputNotebookURI(String outputNotebookURI) { this.outputNotebookURI = outputNotebookURI; } /** *

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

          * * @return The location of the notebook execution's output file in Amazon S3. */ public String getOutputNotebookURI() { return this.outputNotebookURI; } /** *

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

          * * @param outputNotebookURI * The location of the notebook execution's output file in Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withOutputNotebookURI(String outputNotebookURI) { setOutputNotebookURI(outputNotebookURI); return this; } /** *

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

          * * @param lastStateChangeReason * The reason for the latest status change of the notebook execution. */ public void setLastStateChangeReason(String lastStateChangeReason) { this.lastStateChangeReason = lastStateChangeReason; } /** *

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

          * * @return The reason for the latest status change of the notebook execution. */ public String getLastStateChangeReason() { return this.lastStateChangeReason; } /** *

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

          * * @param lastStateChangeReason * The reason for the latest status change of the notebook execution. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withLastStateChangeReason(String lastStateChangeReason) { setLastStateChangeReason(lastStateChangeReason); return this; } /** *

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

          * * @param notebookInstanceSecurityGroupId * The unique identifier of the EC2 security group associated with the EMR Notebook instance. For more * information see Specifying EC2 Security Groups for EMR Notebooks in the EMR Management Guide. */ public void setNotebookInstanceSecurityGroupId(String notebookInstanceSecurityGroupId) { this.notebookInstanceSecurityGroupId = notebookInstanceSecurityGroupId; } /** *

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

          * * @return The unique identifier of the EC2 security group associated with the EMR Notebook instance. For more * information see Specifying EC2 Security Groups for EMR Notebooks in the EMR Management Guide. */ public String getNotebookInstanceSecurityGroupId() { return this.notebookInstanceSecurityGroupId; } /** *

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

          * * @param notebookInstanceSecurityGroupId * The unique identifier of the EC2 security group associated with the EMR Notebook instance. For more * information see Specifying EC2 Security Groups for EMR Notebooks in the EMR Management Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withNotebookInstanceSecurityGroupId(String notebookInstanceSecurityGroupId) { setNotebookInstanceSecurityGroupId(notebookInstanceSecurityGroupId); return this; } /** *

          * 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. *

          * * @return 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. */ public java.util.List getTags() { if (tags == null) { tags = new com.amazonaws.internal.SdkInternalList(); } return tags; } /** *

          * 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. *

          * * @param tags * 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. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new com.amazonaws.internal.SdkInternalList(tags); } /** *

          * 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. *

          *

          * 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 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. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

          * 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. *

          * * @param tags * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public NotebookExecution withTags(java.util.Collection tags) { setTags(tags); 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 (getNotebookExecutionId() != null) sb.append("NotebookExecutionId: ").append(getNotebookExecutionId()).append(","); if (getEditorId() != null) sb.append("EditorId: ").append(getEditorId()).append(","); if (getExecutionEngine() != null) sb.append("ExecutionEngine: ").append(getExecutionEngine()).append(","); if (getNotebookExecutionName() != null) sb.append("NotebookExecutionName: ").append(getNotebookExecutionName()).append(","); if (getNotebookParams() != null) sb.append("NotebookParams: ").append(getNotebookParams()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getOutputNotebookURI() != null) sb.append("OutputNotebookURI: ").append(getOutputNotebookURI()).append(","); if (getLastStateChangeReason() != null) sb.append("LastStateChangeReason: ").append(getLastStateChangeReason()).append(","); if (getNotebookInstanceSecurityGroupId() != null) sb.append("NotebookInstanceSecurityGroupId: ").append(getNotebookInstanceSecurityGroupId()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NotebookExecution == false) return false; NotebookExecution other = (NotebookExecution) obj; if (other.getNotebookExecutionId() == null ^ this.getNotebookExecutionId() == null) return false; if (other.getNotebookExecutionId() != null && other.getNotebookExecutionId().equals(this.getNotebookExecutionId()) == false) return false; if (other.getEditorId() == null ^ this.getEditorId() == null) return false; if (other.getEditorId() != null && other.getEditorId().equals(this.getEditorId()) == false) return false; if (other.getExecutionEngine() == null ^ this.getExecutionEngine() == null) return false; if (other.getExecutionEngine() != null && other.getExecutionEngine().equals(this.getExecutionEngine()) == false) return false; if (other.getNotebookExecutionName() == null ^ this.getNotebookExecutionName() == null) return false; if (other.getNotebookExecutionName() != null && other.getNotebookExecutionName().equals(this.getNotebookExecutionName()) == false) return false; if (other.getNotebookParams() == null ^ this.getNotebookParams() == null) return false; if (other.getNotebookParams() != null && other.getNotebookParams().equals(this.getNotebookParams()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getOutputNotebookURI() == null ^ this.getOutputNotebookURI() == null) return false; if (other.getOutputNotebookURI() != null && other.getOutputNotebookURI().equals(this.getOutputNotebookURI()) == false) return false; if (other.getLastStateChangeReason() == null ^ this.getLastStateChangeReason() == null) return false; if (other.getLastStateChangeReason() != null && other.getLastStateChangeReason().equals(this.getLastStateChangeReason()) == false) return false; if (other.getNotebookInstanceSecurityGroupId() == null ^ this.getNotebookInstanceSecurityGroupId() == null) return false; if (other.getNotebookInstanceSecurityGroupId() != null && other.getNotebookInstanceSecurityGroupId().equals(this.getNotebookInstanceSecurityGroupId()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNotebookExecutionId() == null) ? 0 : getNotebookExecutionId().hashCode()); hashCode = prime * hashCode + ((getEditorId() == null) ? 0 : getEditorId().hashCode()); hashCode = prime * hashCode + ((getExecutionEngine() == null) ? 0 : getExecutionEngine().hashCode()); hashCode = prime * hashCode + ((getNotebookExecutionName() == null) ? 0 : getNotebookExecutionName().hashCode()); hashCode = prime * hashCode + ((getNotebookParams() == null) ? 0 : getNotebookParams().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getOutputNotebookURI() == null) ? 0 : getOutputNotebookURI().hashCode()); hashCode = prime * hashCode + ((getLastStateChangeReason() == null) ? 0 : getLastStateChangeReason().hashCode()); hashCode = prime * hashCode + ((getNotebookInstanceSecurityGroupId() == null) ? 0 : getNotebookInstanceSecurityGroupId().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public NotebookExecution clone() { try { return (NotebookExecution) 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.elasticmapreduce.model.transform.NotebookExecutionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy