/* * 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.quicksight.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* The top movers and bottom movers computation setup. *

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

* The ID for a computation. *

*/ private String computationId; /** *

* The name of a computation. *

*/ private String name; /** *

* The time field that is used in a computation. *

*/ private DimensionField time; /** *

* The category field that is used in a computation. *

*/ private DimensionField category; /** *

* The value field that is used in a computation. *

*/ private MeasureField value; /** *

* The mover size setup of the top and bottom movers computation. *

*/ private Integer moverSize; /** *

* The sort order setup of the top and bottom movers computation. *

*/ private String sortOrder; /** *

* The computation type. Choose from the following options: *

* */ private String type; /** *

* The ID for a computation. *

* * @param computationId * The ID for a computation. */ public void setComputationId(String computationId) { this.computationId = computationId; } /** *

* The ID for a computation. *

* * @return The ID for a computation. */ public String getComputationId() { return this.computationId; } /** *

* The ID for a computation. *

* * @param computationId * The ID for a computation. * @return Returns a reference to this object so that method calls can be chained together. */ public TopBottomMoversComputation withComputationId(String computationId) { setComputationId(computationId); return this; } /** *

* The name of a computation. *

* * @param name * The name of a computation. */ public void setName(String name) { this.name = name; } /** *

* The name of a computation. *

* * @return The name of a computation. */ public String getName() { return this.name; } /** *

* The name of a computation. *

* * @param name * The name of a computation. * @return Returns a reference to this object so that method calls can be chained together. */ public TopBottomMoversComputation withName(String name) { setName(name); return this; } /** *

* The time field that is used in a computation. *

* * @param time * The time field that is used in a computation. */ public void setTime(DimensionField time) { this.time = time; } /** *

* The time field that is used in a computation. *

* * @return The time field that is used in a computation. */ public DimensionField getTime() { return this.time; } /** *

* The time field that is used in a computation. *

* * @param time * The time field that is used in a computation. * @return Returns a reference to this object so that method calls can be chained together. */ public TopBottomMoversComputation withTime(DimensionField time) { setTime(time); return this; } /** *

* The category field that is used in a computation. *

* * @param category * The category field that is used in a computation. */ public void setCategory(DimensionField category) { this.category = category; } /** *

* The category field that is used in a computation. *

* * @return The category field that is used in a computation. */ public DimensionField getCategory() { return this.category; } /** *

* The category field that is used in a computation. *

* * @param category * The category field that is used in a computation. * @return Returns a reference to this object so that method calls can be chained together. */ public TopBottomMoversComputation withCategory(DimensionField category) { setCategory(category); return this; } /** *

* The value field that is used in a computation. *

* * @param value * The value field that is used in a computation. */ public void setValue(MeasureField value) { this.value = value; } /** *

* The value field that is used in a computation. *

* * @return The value field that is used in a computation. */ public MeasureField getValue() { return this.value; } /** *

* The value field that is used in a computation. *

* * @param value * The value field that is used in a computation. * @return Returns a reference to this object so that method calls can be chained together. */ public TopBottomMoversComputation withValue(MeasureField value) { setValue(value); return this; } /** *

* The mover size setup of the top and bottom movers computation. *

* * @param moverSize * The mover size setup of the top and bottom movers computation. */ public void setMoverSize(Integer moverSize) { this.moverSize = moverSize; } /** *

* The mover size setup of the top and bottom movers computation. *

* * @return The mover size setup of the top and bottom movers computation. */ public Integer getMoverSize() { return this.moverSize; } /** *

* The mover size setup of the top and bottom movers computation. *

* * @param moverSize * The mover size setup of the top and bottom movers computation. * @return Returns a reference to this object so that method calls can be chained together. */ public TopBottomMoversComputation withMoverSize(Integer moverSize) { setMoverSize(moverSize); return this; } /** *

* The sort order setup of the top and bottom movers computation. *

* * @param sortOrder * The sort order setup of the top and bottom movers computation. * @see TopBottomSortOrder */ public void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } /** *

* The sort order setup of the top and bottom movers computation. *

* * @return The sort order setup of the top and bottom movers computation. * @see TopBottomSortOrder */ public String getSortOrder() { return this.sortOrder; } /** *

* The sort order setup of the top and bottom movers computation. *

* * @param sortOrder * The sort order setup of the top and bottom movers computation. * @return Returns a reference to this object so that method calls can be chained together. * @see TopBottomSortOrder */ public TopBottomMoversComputation withSortOrder(String sortOrder) { setSortOrder(sortOrder); return this; } /** *

* The sort order setup of the top and bottom movers computation. *

* * @param sortOrder * The sort order setup of the top and bottom movers computation. * @return Returns a reference to this object so that method calls can be chained together. * @see TopBottomSortOrder */ public TopBottomMoversComputation withSortOrder(TopBottomSortOrder sortOrder) { this.sortOrder = sortOrder.toString(); return this; } /** *

* The computation type. Choose from the following options: *

* * * @param type * The computation type. Choose from the following options:

*