/* * 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.glue.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The code execution output in JSON format. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StatementOutput implements Serializable, Cloneable, StructuredPojo { /** ** The code execution output. *
*/ private StatementOutputData data; /** ** The execution count of the output. *
*/ private Integer executionCount; /** ** The status of the code execution output. *
*/ private String status; /** ** The name of the error in the output. *
*/ private String errorName; /** ** The error value of the output. *
*/ private String errorValue; /** ** The traceback of the output. *
*/ private java.util.List* The code execution output. *
* * @param data * The code execution output. */ public void setData(StatementOutputData data) { this.data = data; } /** ** The code execution output. *
* * @return The code execution output. */ public StatementOutputData getData() { return this.data; } /** ** The code execution output. *
* * @param data * The code execution output. * @return Returns a reference to this object so that method calls can be chained together. */ public StatementOutput withData(StatementOutputData data) { setData(data); return this; } /** ** The execution count of the output. *
* * @param executionCount * The execution count of the output. */ public void setExecutionCount(Integer executionCount) { this.executionCount = executionCount; } /** ** The execution count of the output. *
* * @return The execution count of the output. */ public Integer getExecutionCount() { return this.executionCount; } /** ** The execution count of the output. *
* * @param executionCount * The execution count of the output. * @return Returns a reference to this object so that method calls can be chained together. */ public StatementOutput withExecutionCount(Integer executionCount) { setExecutionCount(executionCount); return this; } /** ** The status of the code execution output. *
* * @param status * The status of the code execution output. * @see StatementState */ public void setStatus(String status) { this.status = status; } /** ** The status of the code execution output. *
* * @return The status of the code execution output. * @see StatementState */ public String getStatus() { return this.status; } /** ** The status of the code execution output. *
* * @param status * The status of the code execution output. * @return Returns a reference to this object so that method calls can be chained together. * @see StatementState */ public StatementOutput withStatus(String status) { setStatus(status); return this; } /** ** The status of the code execution output. *
* * @param status * The status of the code execution output. * @return Returns a reference to this object so that method calls can be chained together. * @see StatementState */ public StatementOutput withStatus(StatementState status) { this.status = status.toString(); return this; } /** ** The name of the error in the output. *
* * @param errorName * The name of the error in the output. */ public void setErrorName(String errorName) { this.errorName = errorName; } /** ** The name of the error in the output. *
* * @return The name of the error in the output. */ public String getErrorName() { return this.errorName; } /** ** The name of the error in the output. *
* * @param errorName * The name of the error in the output. * @return Returns a reference to this object so that method calls can be chained together. */ public StatementOutput withErrorName(String errorName) { setErrorName(errorName); return this; } /** ** The error value of the output. *
* * @param errorValue * The error value of the output. */ public void setErrorValue(String errorValue) { this.errorValue = errorValue; } /** ** The error value of the output. *
* * @return The error value of the output. */ public String getErrorValue() { return this.errorValue; } /** ** The error value of the output. *
* * @param errorValue * The error value of the output. * @return Returns a reference to this object so that method calls can be chained together. */ public StatementOutput withErrorValue(String errorValue) { setErrorValue(errorValue); return this; } /** ** The traceback of the output. *
* * @return The traceback of the output. */ public java.util.List* The traceback of the output. *
* * @param traceback * The traceback of the output. */ public void setTraceback(java.util.Collection* The traceback of the output. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTraceback(java.util.Collection)} or {@link #withTraceback(java.util.Collection)} if you want to * override the existing values. *
* * @param traceback * The traceback of the output. * @return Returns a reference to this object so that method calls can be chained together. */ public StatementOutput withTraceback(String... traceback) { if (this.traceback == null) { setTraceback(new java.util.ArrayList* The traceback of the output. *
* * @param traceback * The traceback of the output. * @return Returns a reference to this object so that method calls can be chained together. */ public StatementOutput withTraceback(java.util.Collection