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

com.amazonaws.services.quicksight.model.TransformOperation Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2014-2019 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.quicksight.model;

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

/**
 * 

* A data transformation on a logical table. This is a variant type structure. No more than one of the attributes should * be non-null for this structure to be valid. *

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

* An operation that projects columns. Operations that come after a projection can only refer to projected columns. *

*/ private ProjectOperation projectOperation; /** *

* An operation that filters rows based on some condition. *

*/ private FilterOperation filterOperation; /** *

* An operation that creates calculated columns. Columns created in one such operation form a lexical closure. *

*/ private CreateColumnsOperation createColumnsOperation; /** *

* An operation that renames a column. *

*/ private RenameColumnOperation renameColumnOperation; /** *

* A transform operation that casts a column to a different type. *

*/ private CastColumnTypeOperation castColumnTypeOperation; /** *

* An operation that tags a column with additional information. *

*/ private TagColumnOperation tagColumnOperation; /** *

* An operation that projects columns. Operations that come after a projection can only refer to projected columns. *

* * @param projectOperation * An operation that projects columns. Operations that come after a projection can only refer to projected * columns. */ public void setProjectOperation(ProjectOperation projectOperation) { this.projectOperation = projectOperation; } /** *

* An operation that projects columns. Operations that come after a projection can only refer to projected columns. *

* * @return An operation that projects columns. Operations that come after a projection can only refer to projected * columns. */ public ProjectOperation getProjectOperation() { return this.projectOperation; } /** *

* An operation that projects columns. Operations that come after a projection can only refer to projected columns. *

* * @param projectOperation * An operation that projects columns. Operations that come after a projection can only refer to projected * columns. * @return Returns a reference to this object so that method calls can be chained together. */ public TransformOperation withProjectOperation(ProjectOperation projectOperation) { setProjectOperation(projectOperation); return this; } /** *

* An operation that filters rows based on some condition. *

* * @param filterOperation * An operation that filters rows based on some condition. */ public void setFilterOperation(FilterOperation filterOperation) { this.filterOperation = filterOperation; } /** *

* An operation that filters rows based on some condition. *

* * @return An operation that filters rows based on some condition. */ public FilterOperation getFilterOperation() { return this.filterOperation; } /** *

* An operation that filters rows based on some condition. *

* * @param filterOperation * An operation that filters rows based on some condition. * @return Returns a reference to this object so that method calls can be chained together. */ public TransformOperation withFilterOperation(FilterOperation filterOperation) { setFilterOperation(filterOperation); return this; } /** *

* An operation that creates calculated columns. Columns created in one such operation form a lexical closure. *

* * @param createColumnsOperation * An operation that creates calculated columns. Columns created in one such operation form a lexical * closure. */ public void setCreateColumnsOperation(CreateColumnsOperation createColumnsOperation) { this.createColumnsOperation = createColumnsOperation; } /** *

* An operation that creates calculated columns. Columns created in one such operation form a lexical closure. *

* * @return An operation that creates calculated columns. Columns created in one such operation form a lexical * closure. */ public CreateColumnsOperation getCreateColumnsOperation() { return this.createColumnsOperation; } /** *

* An operation that creates calculated columns. Columns created in one such operation form a lexical closure. *

* * @param createColumnsOperation * An operation that creates calculated columns. Columns created in one such operation form a lexical * closure. * @return Returns a reference to this object so that method calls can be chained together. */ public TransformOperation withCreateColumnsOperation(CreateColumnsOperation createColumnsOperation) { setCreateColumnsOperation(createColumnsOperation); return this; } /** *

* An operation that renames a column. *

* * @param renameColumnOperation * An operation that renames a column. */ public void setRenameColumnOperation(RenameColumnOperation renameColumnOperation) { this.renameColumnOperation = renameColumnOperation; } /** *

* An operation that renames a column. *

* * @return An operation that renames a column. */ public RenameColumnOperation getRenameColumnOperation() { return this.renameColumnOperation; } /** *

* An operation that renames a column. *

* * @param renameColumnOperation * An operation that renames a column. * @return Returns a reference to this object so that method calls can be chained together. */ public TransformOperation withRenameColumnOperation(RenameColumnOperation renameColumnOperation) { setRenameColumnOperation(renameColumnOperation); return this; } /** *

* A transform operation that casts a column to a different type. *

* * @param castColumnTypeOperation * A transform operation that casts a column to a different type. */ public void setCastColumnTypeOperation(CastColumnTypeOperation castColumnTypeOperation) { this.castColumnTypeOperation = castColumnTypeOperation; } /** *

* A transform operation that casts a column to a different type. *

* * @return A transform operation that casts a column to a different type. */ public CastColumnTypeOperation getCastColumnTypeOperation() { return this.castColumnTypeOperation; } /** *

* A transform operation that casts a column to a different type. *

* * @param castColumnTypeOperation * A transform operation that casts a column to a different type. * @return Returns a reference to this object so that method calls can be chained together. */ public TransformOperation withCastColumnTypeOperation(CastColumnTypeOperation castColumnTypeOperation) { setCastColumnTypeOperation(castColumnTypeOperation); return this; } /** *

* An operation that tags a column with additional information. *

* * @param tagColumnOperation * An operation that tags a column with additional information. */ public void setTagColumnOperation(TagColumnOperation tagColumnOperation) { this.tagColumnOperation = tagColumnOperation; } /** *

* An operation that tags a column with additional information. *

* * @return An operation that tags a column with additional information. */ public TagColumnOperation getTagColumnOperation() { return this.tagColumnOperation; } /** *

* An operation that tags a column with additional information. *

* * @param tagColumnOperation * An operation that tags a column with additional information. * @return Returns a reference to this object so that method calls can be chained together. */ public TransformOperation withTagColumnOperation(TagColumnOperation tagColumnOperation) { setTagColumnOperation(tagColumnOperation); 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 (getProjectOperation() != null) sb.append("ProjectOperation: ").append(getProjectOperation()).append(","); if (getFilterOperation() != null) sb.append("FilterOperation: ").append(getFilterOperation()).append(","); if (getCreateColumnsOperation() != null) sb.append("CreateColumnsOperation: ").append(getCreateColumnsOperation()).append(","); if (getRenameColumnOperation() != null) sb.append("RenameColumnOperation: ").append(getRenameColumnOperation()).append(","); if (getCastColumnTypeOperation() != null) sb.append("CastColumnTypeOperation: ").append(getCastColumnTypeOperation()).append(","); if (getTagColumnOperation() != null) sb.append("TagColumnOperation: ").append(getTagColumnOperation()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TransformOperation == false) return false; TransformOperation other = (TransformOperation) obj; if (other.getProjectOperation() == null ^ this.getProjectOperation() == null) return false; if (other.getProjectOperation() != null && other.getProjectOperation().equals(this.getProjectOperation()) == false) return false; if (other.getFilterOperation() == null ^ this.getFilterOperation() == null) return false; if (other.getFilterOperation() != null && other.getFilterOperation().equals(this.getFilterOperation()) == false) return false; if (other.getCreateColumnsOperation() == null ^ this.getCreateColumnsOperation() == null) return false; if (other.getCreateColumnsOperation() != null && other.getCreateColumnsOperation().equals(this.getCreateColumnsOperation()) == false) return false; if (other.getRenameColumnOperation() == null ^ this.getRenameColumnOperation() == null) return false; if (other.getRenameColumnOperation() != null && other.getRenameColumnOperation().equals(this.getRenameColumnOperation()) == false) return false; if (other.getCastColumnTypeOperation() == null ^ this.getCastColumnTypeOperation() == null) return false; if (other.getCastColumnTypeOperation() != null && other.getCastColumnTypeOperation().equals(this.getCastColumnTypeOperation()) == false) return false; if (other.getTagColumnOperation() == null ^ this.getTagColumnOperation() == null) return false; if (other.getTagColumnOperation() != null && other.getTagColumnOperation().equals(this.getTagColumnOperation()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProjectOperation() == null) ? 0 : getProjectOperation().hashCode()); hashCode = prime * hashCode + ((getFilterOperation() == null) ? 0 : getFilterOperation().hashCode()); hashCode = prime * hashCode + ((getCreateColumnsOperation() == null) ? 0 : getCreateColumnsOperation().hashCode()); hashCode = prime * hashCode + ((getRenameColumnOperation() == null) ? 0 : getRenameColumnOperation().hashCode()); hashCode = prime * hashCode + ((getCastColumnTypeOperation() == null) ? 0 : getCastColumnTypeOperation().hashCode()); hashCode = prime * hashCode + ((getTagColumnOperation() == null) ? 0 : getTagColumnOperation().hashCode()); return hashCode; } @Override public TransformOperation clone() { try { return (TransformOperation) 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.quicksight.model.transform.TransformOperationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy