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

com.amazonaws.services.glacier.model.SelectParameters Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
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.glacier.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Contains information about the parameters used for a select. *

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

* Describes the serialization format of the object. *

*/ private InputSerialization inputSerialization; /** *

* The type of the provided expression, for example SQL. *

*/ private String expressionType; /** *

* The expression that is used to select the object. *

*/ private String expression; /** *

* Describes how the results of the select job are serialized. *

*/ private OutputSerialization outputSerialization; /** *

* Describes the serialization format of the object. *

* * @param inputSerialization * Describes the serialization format of the object. */ public void setInputSerialization(InputSerialization inputSerialization) { this.inputSerialization = inputSerialization; } /** *

* Describes the serialization format of the object. *

* * @return Describes the serialization format of the object. */ public InputSerialization getInputSerialization() { return this.inputSerialization; } /** *

* Describes the serialization format of the object. *

* * @param inputSerialization * Describes the serialization format of the object. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectParameters withInputSerialization(InputSerialization inputSerialization) { setInputSerialization(inputSerialization); return this; } /** *

* The type of the provided expression, for example SQL. *

* * @param expressionType * The type of the provided expression, for example SQL. * @see ExpressionType */ public void setExpressionType(String expressionType) { this.expressionType = expressionType; } /** *

* The type of the provided expression, for example SQL. *

* * @return The type of the provided expression, for example SQL. * @see ExpressionType */ public String getExpressionType() { return this.expressionType; } /** *

* The type of the provided expression, for example SQL. *

* * @param expressionType * The type of the provided expression, for example SQL. * @return Returns a reference to this object so that method calls can be chained together. * @see ExpressionType */ public SelectParameters withExpressionType(String expressionType) { setExpressionType(expressionType); return this; } /** *

* The type of the provided expression, for example SQL. *

* * @param expressionType * The type of the provided expression, for example SQL. * @return Returns a reference to this object so that method calls can be chained together. * @see ExpressionType */ public SelectParameters withExpressionType(ExpressionType expressionType) { this.expressionType = expressionType.toString(); return this; } /** *

* The expression that is used to select the object. *

* * @param expression * The expression that is used to select the object. */ public void setExpression(String expression) { this.expression = expression; } /** *

* The expression that is used to select the object. *

* * @return The expression that is used to select the object. */ public String getExpression() { return this.expression; } /** *

* The expression that is used to select the object. *

* * @param expression * The expression that is used to select the object. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectParameters withExpression(String expression) { setExpression(expression); return this; } /** *

* Describes how the results of the select job are serialized. *

* * @param outputSerialization * Describes how the results of the select job are serialized. */ public void setOutputSerialization(OutputSerialization outputSerialization) { this.outputSerialization = outputSerialization; } /** *

* Describes how the results of the select job are serialized. *

* * @return Describes how the results of the select job are serialized. */ public OutputSerialization getOutputSerialization() { return this.outputSerialization; } /** *

* Describes how the results of the select job are serialized. *

* * @param outputSerialization * Describes how the results of the select job are serialized. * @return Returns a reference to this object so that method calls can be chained together. */ public SelectParameters withOutputSerialization(OutputSerialization outputSerialization) { setOutputSerialization(outputSerialization); 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 (getInputSerialization() != null) sb.append("InputSerialization: ").append(getInputSerialization()).append(","); if (getExpressionType() != null) sb.append("ExpressionType: ").append(getExpressionType()).append(","); if (getExpression() != null) sb.append("Expression: ").append(getExpression()).append(","); if (getOutputSerialization() != null) sb.append("OutputSerialization: ").append(getOutputSerialization()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SelectParameters == false) return false; SelectParameters other = (SelectParameters) obj; if (other.getInputSerialization() == null ^ this.getInputSerialization() == null) return false; if (other.getInputSerialization() != null && other.getInputSerialization().equals(this.getInputSerialization()) == false) return false; if (other.getExpressionType() == null ^ this.getExpressionType() == null) return false; if (other.getExpressionType() != null && other.getExpressionType().equals(this.getExpressionType()) == false) return false; if (other.getExpression() == null ^ this.getExpression() == null) return false; if (other.getExpression() != null && other.getExpression().equals(this.getExpression()) == false) return false; if (other.getOutputSerialization() == null ^ this.getOutputSerialization() == null) return false; if (other.getOutputSerialization() != null && other.getOutputSerialization().equals(this.getOutputSerialization()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInputSerialization() == null) ? 0 : getInputSerialization().hashCode()); hashCode = prime * hashCode + ((getExpressionType() == null) ? 0 : getExpressionType().hashCode()); hashCode = prime * hashCode + ((getExpression() == null) ? 0 : getExpression().hashCode()); hashCode = prime * hashCode + ((getOutputSerialization() == null) ? 0 : getOutputSerialization().hashCode()); return hashCode; } @Override public SelectParameters clone() { try { return (SelectParameters) 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.glacier.model.transform.SelectParametersMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy