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

shiver.me.timbers.aws.apigateway.UsagePlanQuotaSettings Maven / Gradle / Ivy


package shiver.me.timbers.aws.apigateway;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import shiver.me.timbers.aws.Property;


/**
 * UsagePlanQuotaSettings
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "Limit", "Offset", "Period" }) public class UsagePlanQuotaSettings implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-limit * */ @JsonProperty("Limit") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-limit") private Number limit; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-offset * */ @JsonProperty("Offset") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-offset") private Number offset; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-period * */ @JsonProperty("Period") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-period") private CharSequence period; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-limit * */ @JsonIgnore public Number getLimit() { return limit; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-limit * */ @JsonIgnore public void setLimit(Number limit) { this.limit = limit; } public UsagePlanQuotaSettings withLimit(Number limit) { this.limit = limit; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-offset * */ @JsonIgnore public Number getOffset() { return offset; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-offset * */ @JsonIgnore public void setOffset(Number offset) { this.offset = offset; } public UsagePlanQuotaSettings withOffset(Number offset) { this.offset = offset; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-period * */ @JsonIgnore public CharSequence getPeriod() { return period; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-quotasettings.html#cfn-apigateway-usageplan-quotasettings-period * */ @JsonIgnore public void setPeriod(CharSequence period) { this.period = period; } public UsagePlanQuotaSettings withPeriod(CharSequence period) { this.period = period; return this; } @Override public String toString() { return new ToStringBuilder(this).append("limit", limit).append("offset", offset).append("period", period).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(limit).append(period).append(offset).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof UsagePlanQuotaSettings) == false) { return false; } UsagePlanQuotaSettings rhs = ((UsagePlanQuotaSettings) other); return new EqualsBuilder().append(limit, rhs.limit).append(period, rhs.period).append(offset, rhs.offset).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy