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

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

Go to download

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

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

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

/**
 * 

* Contains the details for the read/write capacity mode. This page talks about PROVISIONED and * PAY_PER_REQUEST billing modes. For more information about these modes, see Read/write capacity mode. *

* *

* You may need to switch to on-demand mode at least once in order to return a BillingModeSummary response. *

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

* Controls how you are charged for read and write throughput and how you manage capacity. This setting can be * changed later. *

*
    *
  • *

    * PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend using * PROVISIONED for predictable workloads. *

    *
  • *
  • *

    * PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend * using PAY_PER_REQUEST for unpredictable workloads. *

    *
  • *
*/ private String billingMode; /** *

* Represents the time when PAY_PER_REQUEST was last set as the read/write capacity mode. *

*/ private java.util.Date lastUpdateToPayPerRequestDateTime; /** *

* Controls how you are charged for read and write throughput and how you manage capacity. This setting can be * changed later. *

*
    *
  • *

    * PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend using * PROVISIONED for predictable workloads. *

    *
  • *
  • *

    * PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend * using PAY_PER_REQUEST for unpredictable workloads. *

    *
  • *
* * @param billingMode * Controls how you are charged for read and write throughput and how you manage capacity. This setting can * be changed later.

*
    *
  • *

    * PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend * using PROVISIONED for predictable workloads. *

    *
  • *
  • *

    * PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We * recommend using PAY_PER_REQUEST for unpredictable workloads. *

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

    * Controls how you are charged for read and write throughput and how you manage capacity. This setting can be * changed later. *

    *
      *
    • *

      * PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend using * PROVISIONED for predictable workloads. *

      *
    • *
    • *

      * PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend * using PAY_PER_REQUEST for unpredictable workloads. *

      *
    • *
    * * @return Controls how you are charged for read and write throughput and how you manage capacity. This setting can * be changed later.

    *
      *
    • *

      * PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend * using PROVISIONED for predictable workloads. *

      *
    • *
    • *

      * PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We * recommend using PAY_PER_REQUEST for unpredictable workloads. *

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

      * Controls how you are charged for read and write throughput and how you manage capacity. This setting can be * changed later. *

      *
        *
      • *

        * PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend using * PROVISIONED for predictable workloads. *

        *
      • *
      • *

        * PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend * using PAY_PER_REQUEST for unpredictable workloads. *

        *
      • *
      * * @param billingMode * Controls how you are charged for read and write throughput and how you manage capacity. This setting can * be changed later.

      *
        *
      • *

        * PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend * using PROVISIONED for predictable workloads. *

        *
      • *
      • *

        * PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We * recommend using PAY_PER_REQUEST for unpredictable workloads. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see BillingMode */ public BillingModeSummary withBillingMode(String billingMode) { setBillingMode(billingMode); return this; } /** *

        * Controls how you are charged for read and write throughput and how you manage capacity. This setting can be * changed later. *

        *
          *
        • *

          * PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend using * PROVISIONED for predictable workloads. *

          *
        • *
        • *

          * PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend * using PAY_PER_REQUEST for unpredictable workloads. *

          *
        • *
        * * @param billingMode * Controls how you are charged for read and write throughput and how you manage capacity. This setting can * be changed later.

        *
          *
        • *

          * PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend * using PROVISIONED for predictable workloads. *

          *
        • *
        • *

          * PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We * recommend using PAY_PER_REQUEST for unpredictable workloads. *

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

          * Represents the time when PAY_PER_REQUEST was last set as the read/write capacity mode. *

          * * @param lastUpdateToPayPerRequestDateTime * Represents the time when PAY_PER_REQUEST was last set as the read/write capacity mode. */ public void setLastUpdateToPayPerRequestDateTime(java.util.Date lastUpdateToPayPerRequestDateTime) { this.lastUpdateToPayPerRequestDateTime = lastUpdateToPayPerRequestDateTime; } /** *

          * Represents the time when PAY_PER_REQUEST was last set as the read/write capacity mode. *

          * * @return Represents the time when PAY_PER_REQUEST was last set as the read/write capacity mode. */ public java.util.Date getLastUpdateToPayPerRequestDateTime() { return this.lastUpdateToPayPerRequestDateTime; } /** *

          * Represents the time when PAY_PER_REQUEST was last set as the read/write capacity mode. *

          * * @param lastUpdateToPayPerRequestDateTime * Represents the time when PAY_PER_REQUEST was last set as the read/write capacity mode. * @return Returns a reference to this object so that method calls can be chained together. */ public BillingModeSummary withLastUpdateToPayPerRequestDateTime(java.util.Date lastUpdateToPayPerRequestDateTime) { setLastUpdateToPayPerRequestDateTime(lastUpdateToPayPerRequestDateTime); 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 (getBillingMode() != null) sb.append("BillingMode: ").append(getBillingMode()).append(","); if (getLastUpdateToPayPerRequestDateTime() != null) sb.append("LastUpdateToPayPerRequestDateTime: ").append(getLastUpdateToPayPerRequestDateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BillingModeSummary == false) return false; BillingModeSummary other = (BillingModeSummary) obj; if (other.getBillingMode() == null ^ this.getBillingMode() == null) return false; if (other.getBillingMode() != null && other.getBillingMode().equals(this.getBillingMode()) == false) return false; if (other.getLastUpdateToPayPerRequestDateTime() == null ^ this.getLastUpdateToPayPerRequestDateTime() == null) return false; if (other.getLastUpdateToPayPerRequestDateTime() != null && other.getLastUpdateToPayPerRequestDateTime().equals(this.getLastUpdateToPayPerRequestDateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBillingMode() == null) ? 0 : getBillingMode().hashCode()); hashCode = prime * hashCode + ((getLastUpdateToPayPerRequestDateTime() == null) ? 0 : getLastUpdateToPayPerRequestDateTime().hashCode()); return hashCode; } @Override public BillingModeSummary clone() { try { return (BillingModeSummary) 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.dynamodbv2.model.transform.BillingModeSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy