/* * 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.dynamodbv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Represents the auto scaling settings for a global table or global secondary index. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AutoScalingSettingsDescription implements Serializable, Cloneable, StructuredPojo { /** ** The minimum capacity units that a global table or global secondary index should be scaled down to. *
*/ private Long minimumUnits; /** ** The maximum capacity units that a global table or global secondary index should be scaled up to. *
*/ private Long maximumUnits; /** ** Disabled auto scaling for this global table or global secondary index. *
*/ private Boolean autoScalingDisabled; /** ** Role ARN used for configuring the auto scaling policy. *
*/ private String autoScalingRoleArn; /** ** Information about the scaling policies. *
*/ private java.util.List* The minimum capacity units that a global table or global secondary index should be scaled down to. *
* * @param minimumUnits * The minimum capacity units that a global table or global secondary index should be scaled down to. */ public void setMinimumUnits(Long minimumUnits) { this.minimumUnits = minimumUnits; } /** ** The minimum capacity units that a global table or global secondary index should be scaled down to. *
* * @return The minimum capacity units that a global table or global secondary index should be scaled down to. */ public Long getMinimumUnits() { return this.minimumUnits; } /** ** The minimum capacity units that a global table or global secondary index should be scaled down to. *
* * @param minimumUnits * The minimum capacity units that a global table or global secondary index should be scaled down to. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingSettingsDescription withMinimumUnits(Long minimumUnits) { setMinimumUnits(minimumUnits); return this; } /** ** The maximum capacity units that a global table or global secondary index should be scaled up to. *
* * @param maximumUnits * The maximum capacity units that a global table or global secondary index should be scaled up to. */ public void setMaximumUnits(Long maximumUnits) { this.maximumUnits = maximumUnits; } /** ** The maximum capacity units that a global table or global secondary index should be scaled up to. *
* * @return The maximum capacity units that a global table or global secondary index should be scaled up to. */ public Long getMaximumUnits() { return this.maximumUnits; } /** ** The maximum capacity units that a global table or global secondary index should be scaled up to. *
* * @param maximumUnits * The maximum capacity units that a global table or global secondary index should be scaled up to. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingSettingsDescription withMaximumUnits(Long maximumUnits) { setMaximumUnits(maximumUnits); return this; } /** ** Disabled auto scaling for this global table or global secondary index. *
* * @param autoScalingDisabled * Disabled auto scaling for this global table or global secondary index. */ public void setAutoScalingDisabled(Boolean autoScalingDisabled) { this.autoScalingDisabled = autoScalingDisabled; } /** ** Disabled auto scaling for this global table or global secondary index. *
* * @return Disabled auto scaling for this global table or global secondary index. */ public Boolean getAutoScalingDisabled() { return this.autoScalingDisabled; } /** ** Disabled auto scaling for this global table or global secondary index. *
* * @param autoScalingDisabled * Disabled auto scaling for this global table or global secondary index. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingSettingsDescription withAutoScalingDisabled(Boolean autoScalingDisabled) { setAutoScalingDisabled(autoScalingDisabled); return this; } /** ** Disabled auto scaling for this global table or global secondary index. *
* * @return Disabled auto scaling for this global table or global secondary index. */ public Boolean isAutoScalingDisabled() { return this.autoScalingDisabled; } /** ** Role ARN used for configuring the auto scaling policy. *
* * @param autoScalingRoleArn * Role ARN used for configuring the auto scaling policy. */ public void setAutoScalingRoleArn(String autoScalingRoleArn) { this.autoScalingRoleArn = autoScalingRoleArn; } /** ** Role ARN used for configuring the auto scaling policy. *
* * @return Role ARN used for configuring the auto scaling policy. */ public String getAutoScalingRoleArn() { return this.autoScalingRoleArn; } /** ** Role ARN used for configuring the auto scaling policy. *
* * @param autoScalingRoleArn * Role ARN used for configuring the auto scaling policy. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingSettingsDescription withAutoScalingRoleArn(String autoScalingRoleArn) { setAutoScalingRoleArn(autoScalingRoleArn); return this; } /** ** Information about the scaling policies. *
* * @return Information about the scaling policies. */ public java.util.List* Information about the scaling policies. *
* * @param scalingPolicies * Information about the scaling policies. */ public void setScalingPolicies(java.util.Collection* Information about the scaling policies. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setScalingPolicies(java.util.Collection)} or {@link #withScalingPolicies(java.util.Collection)} if you * want to override the existing values. *
* * @param scalingPolicies * Information about the scaling policies. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingSettingsDescription withScalingPolicies(AutoScalingPolicyDescription... scalingPolicies) { if (this.scalingPolicies == null) { setScalingPolicies(new java.util.ArrayList* Information about the scaling policies. *
* * @param scalingPolicies * Information about the scaling policies. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoScalingSettingsDescription withScalingPolicies(java.util.Collection