Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.simpleemail.model;
 

Represents the user's current activity limits returned from a successful GetSendQuota request.

 
 public class GetSendQuotaResult implements SerializableCloneable {

    
The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.
 
     private Double max24HourSend;

    
The maximum number of emails that Amazon SES can accept from the user's account per second. <note>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</note>
 
     private Double maxSendRate;

    
The number of emails sent during the previous 24 hours.
 
     private Double sentLast24Hours;

    
The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.

Returns:
The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.
 
     public Double getMax24HourSend() {
         return ;
     }
    
    
The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.

Parameters:
max24HourSend The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.
 
     public void setMax24HourSend(Double max24HourSend) {
         this. = max24HourSend;
     }
    
    
The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.

Returns a reference to this object so that method calls can be chained together.

Parameters:
max24HourSend The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GetSendQuotaResult withMax24HourSend(Double max24HourSend) {
         this. = max24HourSend;
         return this;
     }

    
The maximum number of emails that Amazon SES can accept from the user's account per second. <note>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</note>

Returns:
The maximum number of emails that Amazon SES can accept from the user's account per second. <note>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</note>
 
     public Double getMaxSendRate() {
         return ;
     }
    
    
The maximum number of emails that Amazon SES can accept from the user's account per second. <note>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</note>

Parameters:
maxSendRate The maximum number of emails that Amazon SES can accept from the user's account per second. <note>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</note>
    public void setMaxSendRate(Double maxSendRate) {
        this. = maxSendRate;
    }
    
    
The maximum number of emails that Amazon SES can accept from the user's account per second. <note>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</note>

Returns a reference to this object so that method calls can be chained together.

Parameters:
maxSendRate The maximum number of emails that Amazon SES can accept from the user's account per second. <note>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</note>
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetSendQuotaResult withMaxSendRate(Double maxSendRate) {
        this. = maxSendRate;
        return this;
    }

    
The number of emails sent during the previous 24 hours.

Returns:
The number of emails sent during the previous 24 hours.
    public Double getSentLast24Hours() {
        return ;
    }
    
    
The number of emails sent during the previous 24 hours.

Parameters:
sentLast24Hours The number of emails sent during the previous 24 hours.
    public void setSentLast24Hours(Double sentLast24Hours) {
        this. = sentLast24Hours;
    }
    
    
The number of emails sent during the previous 24 hours.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sentLast24Hours The number of emails sent during the previous 24 hours.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetSendQuotaResult withSentLast24Hours(Double sentLast24Hours) {
        this. = sentLast24Hours;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getMax24HourSend() != nullsb.append("Max24HourSend: " + getMax24HourSend() + ",");
        if (getMaxSendRate() != nullsb.append("MaxSendRate: " + getMaxSendRate() + ",");
        if (getSentLast24Hours() != nullsb.append("SentLast24Hours: " + getSentLast24Hours() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getMax24HourSend() == null) ? 0 : getMax24HourSend().hashCode()); 
        hashCode = prime * hashCode + ((getMaxSendRate() == null) ? 0 : getMaxSendRate().hashCode()); 
        hashCode = prime * hashCode + ((getSentLast24Hours() == null) ? 0 : getSentLast24Hours().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof GetSendQuotaResult == falsereturn false;
        GetSendQuotaResult other = (GetSendQuotaResult)obj;
        
        if (other.getMax24HourSend() == null ^ this.getMax24HourSend() == nullreturn false;
        if (other.getMax24HourSend() != null && other.getMax24HourSend().equals(this.getMax24HourSend()) == falsereturn false
        if (other.getMaxSendRate() == null ^ this.getMaxSendRate() == nullreturn false;
        if (other.getMaxSendRate() != null && other.getMaxSendRate().equals(this.getMaxSendRate()) == falsereturn false
        if (other.getSentLast24Hours() == null ^ this.getSentLast24Hours() == nullreturn false;
        if (other.getSentLast24Hours() != null && other.getSentLast24Hours().equals(this.getSentLast24Hours()) == falsereturn false
        return true;
    }
    
    @Override
    public GetSendQuotaResult clone() {
        try {
            return (GetSendQuotaResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X