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

com.amazonaws.services.athena.model.StartCalculationExecutionRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
Show 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.athena.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 StartCalculationExecutionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The session ID. *

*/ private String sessionId; /** *

* A description of the calculation. *

*/ private String description; /** *

* Contains configuration information for the calculation. *

*/ @Deprecated private CalculationConfiguration calculationConfiguration; /** *

* A string that contains the code of the calculation. Use this parameter instead of * CalculationConfiguration$CodeBlock, which is deprecated. *

*/ private String codeBlock; /** *

* A unique case-sensitive string used to ensure the request to create the calculation is idempotent (executes only * once). If another StartCalculationExecutionRequest is received, the same response is returned and * another calculation is not created. If a parameter has changed, an error is returned. *

* *

* This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK * for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web * Services CLI, you must provide this token or the action will fail. *

*
*/ private String clientRequestToken; /** *

* The session ID. *

* * @param sessionId * The session ID. */ public void setSessionId(String sessionId) { this.sessionId = sessionId; } /** *

* The session ID. *

* * @return The session ID. */ public String getSessionId() { return this.sessionId; } /** *

* The session ID. *

* * @param sessionId * The session ID. * @return Returns a reference to this object so that method calls can be chained together. */ public StartCalculationExecutionRequest withSessionId(String sessionId) { setSessionId(sessionId); return this; } /** *

* A description of the calculation. *

* * @param description * A description of the calculation. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the calculation. *

* * @return A description of the calculation. */ public String getDescription() { return this.description; } /** *

* A description of the calculation. *

* * @param description * A description of the calculation. * @return Returns a reference to this object so that method calls can be chained together. */ public StartCalculationExecutionRequest withDescription(String description) { setDescription(description); return this; } /** *

* Contains configuration information for the calculation. *

* * @param calculationConfiguration * Contains configuration information for the calculation. */ @Deprecated public void setCalculationConfiguration(CalculationConfiguration calculationConfiguration) { this.calculationConfiguration = calculationConfiguration; } /** *

* Contains configuration information for the calculation. *

* * @return Contains configuration information for the calculation. */ @Deprecated public CalculationConfiguration getCalculationConfiguration() { return this.calculationConfiguration; } /** *

* Contains configuration information for the calculation. *

* * @param calculationConfiguration * Contains configuration information for the calculation. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public StartCalculationExecutionRequest withCalculationConfiguration(CalculationConfiguration calculationConfiguration) { setCalculationConfiguration(calculationConfiguration); return this; } /** *

* A string that contains the code of the calculation. Use this parameter instead of * CalculationConfiguration$CodeBlock, which is deprecated. *

* * @param codeBlock * A string that contains the code of the calculation. Use this parameter instead of * CalculationConfiguration$CodeBlock, which is deprecated. */ public void setCodeBlock(String codeBlock) { this.codeBlock = codeBlock; } /** *

* A string that contains the code of the calculation. Use this parameter instead of * CalculationConfiguration$CodeBlock, which is deprecated. *

* * @return A string that contains the code of the calculation. Use this parameter instead of * CalculationConfiguration$CodeBlock, which is deprecated. */ public String getCodeBlock() { return this.codeBlock; } /** *

* A string that contains the code of the calculation. Use this parameter instead of * CalculationConfiguration$CodeBlock, which is deprecated. *

* * @param codeBlock * A string that contains the code of the calculation. Use this parameter instead of * CalculationConfiguration$CodeBlock, which is deprecated. * @return Returns a reference to this object so that method calls can be chained together. */ public StartCalculationExecutionRequest withCodeBlock(String codeBlock) { setCodeBlock(codeBlock); return this; } /** *

* A unique case-sensitive string used to ensure the request to create the calculation is idempotent (executes only * once). If another StartCalculationExecutionRequest is received, the same response is returned and * another calculation is not created. If a parameter has changed, an error is returned. *

* *

* This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK * for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web * Services CLI, you must provide this token or the action will fail. *

*
* * @param clientRequestToken * A unique case-sensitive string used to ensure the request to create the calculation is idempotent * (executes only once). If another StartCalculationExecutionRequest is received, the same * response is returned and another calculation is not created. If a parameter has changed, an error is * returned.

*

* This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services * SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the * Amazon Web Services CLI, you must provide this token or the action will fail. *

*/ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** *

* A unique case-sensitive string used to ensure the request to create the calculation is idempotent (executes only * once). If another StartCalculationExecutionRequest is received, the same response is returned and * another calculation is not created. If a parameter has changed, an error is returned. *

* *

* This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK * for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web * Services CLI, you must provide this token or the action will fail. *

*
* * @return A unique case-sensitive string used to ensure the request to create the calculation is idempotent * (executes only once). If another StartCalculationExecutionRequest is received, the same * response is returned and another calculation is not created. If a parameter has changed, an error is * returned.

*

* This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web * Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services * SDK or the Amazon Web Services CLI, you must provide this token or the action will fail. *

*/ public String getClientRequestToken() { return this.clientRequestToken; } /** *

* A unique case-sensitive string used to ensure the request to create the calculation is idempotent (executes only * once). If another StartCalculationExecutionRequest is received, the same response is returned and * another calculation is not created. If a parameter has changed, an error is returned. *

* *

* This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK * for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web * Services CLI, you must provide this token or the action will fail. *

*
* * @param clientRequestToken * A unique case-sensitive string used to ensure the request to create the calculation is idempotent * (executes only once). If another StartCalculationExecutionRequest is received, the same * response is returned and another calculation is not created. If a parameter has changed, an error is * returned.

*

* This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services * SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the * Amazon Web Services CLI, you must provide this token or the action will fail. *

* @return Returns a reference to this object so that method calls can be chained together. */ public StartCalculationExecutionRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); 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 (getSessionId() != null) sb.append("SessionId: ").append(getSessionId()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getCalculationConfiguration() != null) sb.append("CalculationConfiguration: ").append(getCalculationConfiguration()).append(","); if (getCodeBlock() != null) sb.append("CodeBlock: ").append(getCodeBlock()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartCalculationExecutionRequest == false) return false; StartCalculationExecutionRequest other = (StartCalculationExecutionRequest) obj; if (other.getSessionId() == null ^ this.getSessionId() == null) return false; if (other.getSessionId() != null && other.getSessionId().equals(this.getSessionId()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getCalculationConfiguration() == null ^ this.getCalculationConfiguration() == null) return false; if (other.getCalculationConfiguration() != null && other.getCalculationConfiguration().equals(this.getCalculationConfiguration()) == false) return false; if (other.getCodeBlock() == null ^ this.getCodeBlock() == null) return false; if (other.getCodeBlock() != null && other.getCodeBlock().equals(this.getCodeBlock()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSessionId() == null) ? 0 : getSessionId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getCalculationConfiguration() == null) ? 0 : getCalculationConfiguration().hashCode()); hashCode = prime * hashCode + ((getCodeBlock() == null) ? 0 : getCodeBlock().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); return hashCode; } @Override public StartCalculationExecutionRequest clone() { return (StartCalculationExecutionRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy