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

com.amazonaws.services.dynamodbv2.model.UpdateGlobalTableSettingsRequest Maven / Gradle / Ivy

/*
 * 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.AmazonWebServiceRequest;

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

    /**
     * 

* The name of the global table *

*/ private String globalTableName; /** *

* The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table * defaults to PROVISIONED capacity billing mode. *

*
    *
  • *

    * PROVISIONED - We recommend using PROVISIONED for predictable workloads. * PROVISIONED sets the billing mode to Provisioned Mode. *

    *
  • *
  • *

    * PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. * PAY_PER_REQUEST sets the billing mode to On-Demand Mode. *

    *
  • *
*/ private String globalTableBillingMode; /** *

* The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. *

*/ private Long globalTableProvisionedWriteCapacityUnits; /** *

* Auto scaling settings for managing provisioned write capacity for the global table. *

*/ private AutoScalingSettingsUpdate globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; /** *

* Represents the settings of a global secondary index for a global table that will be modified. *

*/ private java.util.List globalTableGlobalSecondaryIndexSettingsUpdate; /** *

* Represents the settings for a global table in a Region that will be modified. *

*/ private java.util.List replicaSettingsUpdate; /** *

* The name of the global table *

* * @param globalTableName * The name of the global table */ public void setGlobalTableName(String globalTableName) { this.globalTableName = globalTableName; } /** *

* The name of the global table *

* * @return The name of the global table */ public String getGlobalTableName() { return this.globalTableName; } /** *

* The name of the global table *

* * @param globalTableName * The name of the global table * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableName(String globalTableName) { setGlobalTableName(globalTableName); return this; } /** *

* The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table * defaults to PROVISIONED capacity billing mode. *

*
    *
  • *

    * PROVISIONED - We recommend using PROVISIONED for predictable workloads. * PROVISIONED sets the billing mode to Provisioned Mode. *

    *
  • *
  • *

    * PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. * PAY_PER_REQUEST sets the billing mode to On-Demand Mode. *

    *
  • *
* * @param globalTableBillingMode * The billing mode of the global table. If GlobalTableBillingMode is not specified, the global * table defaults to PROVISIONED capacity billing mode.

*
    *
  • *

    * PROVISIONED - We recommend using PROVISIONED for predictable workloads. * PROVISIONED sets the billing mode to Provisioned Mode. *

    *
  • *
  • *

    * PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable * workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode. *

    *
  • * @see BillingMode */ public void setGlobalTableBillingMode(String globalTableBillingMode) { this.globalTableBillingMode = globalTableBillingMode; } /** *

    * The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table * defaults to PROVISIONED capacity billing mode. *

    *
      *
    • *

      * PROVISIONED - We recommend using PROVISIONED for predictable workloads. * PROVISIONED sets the billing mode to Provisioned Mode. *

      *
    • *
    • *

      * PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. * PAY_PER_REQUEST sets the billing mode to On-Demand Mode. *

      *
    • *
    * * @return The billing mode of the global table. If GlobalTableBillingMode is not specified, the global * table defaults to PROVISIONED capacity billing mode.

    *
      *
    • *

      * PROVISIONED - We recommend using PROVISIONED for predictable workloads. * PROVISIONED sets the billing mode to Provisioned Mode. *

      *
    • *
    • *

      * PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable * workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode. *

      *
    • * @see BillingMode */ public String getGlobalTableBillingMode() { return this.globalTableBillingMode; } /** *

      * The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table * defaults to PROVISIONED capacity billing mode. *

      *
        *
      • *

        * PROVISIONED - We recommend using PROVISIONED for predictable workloads. * PROVISIONED sets the billing mode to Provisioned Mode. *

        *
      • *
      • *

        * PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. * PAY_PER_REQUEST sets the billing mode to On-Demand Mode. *

        *
      • *
      * * @param globalTableBillingMode * The billing mode of the global table. If GlobalTableBillingMode is not specified, the global * table defaults to PROVISIONED capacity billing mode.

      *
        *
      • *

        * PROVISIONED - We recommend using PROVISIONED for predictable workloads. * PROVISIONED sets the billing mode to Provisioned Mode. *

        *
      • *
      • *

        * PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable * workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see BillingMode */ public UpdateGlobalTableSettingsRequest withGlobalTableBillingMode(String globalTableBillingMode) { setGlobalTableBillingMode(globalTableBillingMode); return this; } /** *

        * The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table * defaults to PROVISIONED capacity billing mode. *

        *
          *
        • *

          * PROVISIONED - We recommend using PROVISIONED for predictable workloads. * PROVISIONED sets the billing mode to Provisioned Mode. *

          *
        • *
        • *

          * PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. * PAY_PER_REQUEST sets the billing mode to On-Demand Mode. *

          *
        • *
        * * @param globalTableBillingMode * The billing mode of the global table. If GlobalTableBillingMode is not specified, the global * table defaults to PROVISIONED capacity billing mode.

        *
          *
        • *

          * PROVISIONED - We recommend using PROVISIONED for predictable workloads. * PROVISIONED sets the billing mode to Provisioned Mode. *

          *
        • *
        • *

          * PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable * workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see BillingMode */ public UpdateGlobalTableSettingsRequest withGlobalTableBillingMode(BillingMode globalTableBillingMode) { this.globalTableBillingMode = globalTableBillingMode.toString(); return this; } /** *

          * The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. *

          * * @param globalTableProvisionedWriteCapacityUnits * The maximum number of writes consumed per second before DynamoDB returns a * ThrottlingException. */ public void setGlobalTableProvisionedWriteCapacityUnits(Long globalTableProvisionedWriteCapacityUnits) { this.globalTableProvisionedWriteCapacityUnits = globalTableProvisionedWriteCapacityUnits; } /** *

          * The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. *

          * * @return The maximum number of writes consumed per second before DynamoDB returns a * ThrottlingException. */ public Long getGlobalTableProvisionedWriteCapacityUnits() { return this.globalTableProvisionedWriteCapacityUnits; } /** *

          * The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. *

          * * @param globalTableProvisionedWriteCapacityUnits * The maximum number of writes consumed per second before DynamoDB returns a * ThrottlingException. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableProvisionedWriteCapacityUnits(Long globalTableProvisionedWriteCapacityUnits) { setGlobalTableProvisionedWriteCapacityUnits(globalTableProvisionedWriteCapacityUnits); return this; } /** *

          * Auto scaling settings for managing provisioned write capacity for the global table. *

          * * @param globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate * Auto scaling settings for managing provisioned write capacity for the global table. */ public void setGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate( AutoScalingSettingsUpdate globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate) { this.globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate = globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; } /** *

          * Auto scaling settings for managing provisioned write capacity for the global table. *

          * * @return Auto scaling settings for managing provisioned write capacity for the global table. */ public AutoScalingSettingsUpdate getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate() { return this.globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; } /** *

          * Auto scaling settings for managing provisioned write capacity for the global table. *

          * * @param globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate * Auto scaling settings for managing provisioned write capacity for the global table. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate( AutoScalingSettingsUpdate globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate) { setGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate); return this; } /** *

          * Represents the settings of a global secondary index for a global table that will be modified. *

          * * @return Represents the settings of a global secondary index for a global table that will be modified. */ public java.util.List getGlobalTableGlobalSecondaryIndexSettingsUpdate() { return globalTableGlobalSecondaryIndexSettingsUpdate; } /** *

          * Represents the settings of a global secondary index for a global table that will be modified. *

          * * @param globalTableGlobalSecondaryIndexSettingsUpdate * Represents the settings of a global secondary index for a global table that will be modified. */ public void setGlobalTableGlobalSecondaryIndexSettingsUpdate( java.util.Collection globalTableGlobalSecondaryIndexSettingsUpdate) { if (globalTableGlobalSecondaryIndexSettingsUpdate == null) { this.globalTableGlobalSecondaryIndexSettingsUpdate = null; return; } this.globalTableGlobalSecondaryIndexSettingsUpdate = new java.util.ArrayList( globalTableGlobalSecondaryIndexSettingsUpdate); } /** *

          * Represents the settings of a global secondary index for a global table that will be modified. *

          *

          * NOTE: This method appends the values to the existing list (if any). Use * {@link #setGlobalTableGlobalSecondaryIndexSettingsUpdate(java.util.Collection)} or * {@link #withGlobalTableGlobalSecondaryIndexSettingsUpdate(java.util.Collection)} if you want to override the * existing values. *

          * * @param globalTableGlobalSecondaryIndexSettingsUpdate * Represents the settings of a global secondary index for a global table that will be modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableGlobalSecondaryIndexSettingsUpdate( GlobalTableGlobalSecondaryIndexSettingsUpdate... globalTableGlobalSecondaryIndexSettingsUpdate) { if (this.globalTableGlobalSecondaryIndexSettingsUpdate == null) { setGlobalTableGlobalSecondaryIndexSettingsUpdate(new java.util.ArrayList( globalTableGlobalSecondaryIndexSettingsUpdate.length)); } for (GlobalTableGlobalSecondaryIndexSettingsUpdate ele : globalTableGlobalSecondaryIndexSettingsUpdate) { this.globalTableGlobalSecondaryIndexSettingsUpdate.add(ele); } return this; } /** *

          * Represents the settings of a global secondary index for a global table that will be modified. *

          * * @param globalTableGlobalSecondaryIndexSettingsUpdate * Represents the settings of a global secondary index for a global table that will be modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableGlobalSecondaryIndexSettingsUpdate( java.util.Collection globalTableGlobalSecondaryIndexSettingsUpdate) { setGlobalTableGlobalSecondaryIndexSettingsUpdate(globalTableGlobalSecondaryIndexSettingsUpdate); return this; } /** *

          * Represents the settings for a global table in a Region that will be modified. *

          * * @return Represents the settings for a global table in a Region that will be modified. */ public java.util.List getReplicaSettingsUpdate() { return replicaSettingsUpdate; } /** *

          * Represents the settings for a global table in a Region that will be modified. *

          * * @param replicaSettingsUpdate * Represents the settings for a global table in a Region that will be modified. */ public void setReplicaSettingsUpdate(java.util.Collection replicaSettingsUpdate) { if (replicaSettingsUpdate == null) { this.replicaSettingsUpdate = null; return; } this.replicaSettingsUpdate = new java.util.ArrayList(replicaSettingsUpdate); } /** *

          * Represents the settings for a global table in a Region that will be modified. *

          *

          * NOTE: This method appends the values to the existing list (if any). Use * {@link #setReplicaSettingsUpdate(java.util.Collection)} or * {@link #withReplicaSettingsUpdate(java.util.Collection)} if you want to override the existing values. *

          * * @param replicaSettingsUpdate * Represents the settings for a global table in a Region that will be modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withReplicaSettingsUpdate(ReplicaSettingsUpdate... replicaSettingsUpdate) { if (this.replicaSettingsUpdate == null) { setReplicaSettingsUpdate(new java.util.ArrayList(replicaSettingsUpdate.length)); } for (ReplicaSettingsUpdate ele : replicaSettingsUpdate) { this.replicaSettingsUpdate.add(ele); } return this; } /** *

          * Represents the settings for a global table in a Region that will be modified. *

          * * @param replicaSettingsUpdate * Represents the settings for a global table in a Region that will be modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withReplicaSettingsUpdate(java.util.Collection replicaSettingsUpdate) { setReplicaSettingsUpdate(replicaSettingsUpdate); 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 (getGlobalTableName() != null) sb.append("GlobalTableName: ").append(getGlobalTableName()).append(","); if (getGlobalTableBillingMode() != null) sb.append("GlobalTableBillingMode: ").append(getGlobalTableBillingMode()).append(","); if (getGlobalTableProvisionedWriteCapacityUnits() != null) sb.append("GlobalTableProvisionedWriteCapacityUnits: ").append(getGlobalTableProvisionedWriteCapacityUnits()).append(","); if (getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate() != null) sb.append("GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate: ") .append(getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate()).append(","); if (getGlobalTableGlobalSecondaryIndexSettingsUpdate() != null) sb.append("GlobalTableGlobalSecondaryIndexSettingsUpdate: ").append(getGlobalTableGlobalSecondaryIndexSettingsUpdate()).append(","); if (getReplicaSettingsUpdate() != null) sb.append("ReplicaSettingsUpdate: ").append(getReplicaSettingsUpdate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateGlobalTableSettingsRequest == false) return false; UpdateGlobalTableSettingsRequest other = (UpdateGlobalTableSettingsRequest) obj; if (other.getGlobalTableName() == null ^ this.getGlobalTableName() == null) return false; if (other.getGlobalTableName() != null && other.getGlobalTableName().equals(this.getGlobalTableName()) == false) return false; if (other.getGlobalTableBillingMode() == null ^ this.getGlobalTableBillingMode() == null) return false; if (other.getGlobalTableBillingMode() != null && other.getGlobalTableBillingMode().equals(this.getGlobalTableBillingMode()) == false) return false; if (other.getGlobalTableProvisionedWriteCapacityUnits() == null ^ this.getGlobalTableProvisionedWriteCapacityUnits() == null) return false; if (other.getGlobalTableProvisionedWriteCapacityUnits() != null && other.getGlobalTableProvisionedWriteCapacityUnits().equals(this.getGlobalTableProvisionedWriteCapacityUnits()) == false) return false; if (other.getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate() == null ^ this.getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate() == null) return false; if (other.getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate() != null && other.getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate().equals( this.getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate()) == false) return false; if (other.getGlobalTableGlobalSecondaryIndexSettingsUpdate() == null ^ this.getGlobalTableGlobalSecondaryIndexSettingsUpdate() == null) return false; if (other.getGlobalTableGlobalSecondaryIndexSettingsUpdate() != null && other.getGlobalTableGlobalSecondaryIndexSettingsUpdate().equals(this.getGlobalTableGlobalSecondaryIndexSettingsUpdate()) == false) return false; if (other.getReplicaSettingsUpdate() == null ^ this.getReplicaSettingsUpdate() == null) return false; if (other.getReplicaSettingsUpdate() != null && other.getReplicaSettingsUpdate().equals(this.getReplicaSettingsUpdate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGlobalTableName() == null) ? 0 : getGlobalTableName().hashCode()); hashCode = prime * hashCode + ((getGlobalTableBillingMode() == null) ? 0 : getGlobalTableBillingMode().hashCode()); hashCode = prime * hashCode + ((getGlobalTableProvisionedWriteCapacityUnits() == null) ? 0 : getGlobalTableProvisionedWriteCapacityUnits().hashCode()); hashCode = prime * hashCode + ((getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate() == null) ? 0 : getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate().hashCode()); hashCode = prime * hashCode + ((getGlobalTableGlobalSecondaryIndexSettingsUpdate() == null) ? 0 : getGlobalTableGlobalSecondaryIndexSettingsUpdate().hashCode()); hashCode = prime * hashCode + ((getReplicaSettingsUpdate() == null) ? 0 : getReplicaSettingsUpdate().hashCode()); return hashCode; } @Override public UpdateGlobalTableSettingsRequest clone() { return (UpdateGlobalTableSettingsRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy