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

shiver.me.timbers.aws.budgets.BudgetNotification Maven / Gradle / Ivy


package shiver.me.timbers.aws.budgets;

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;


/**
 * BudgetNotification
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "ComparisonOperator", "NotificationType", "Threshold", "ThresholdType" }) public class BudgetNotification implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-comparisonoperator * */ @JsonProperty("ComparisonOperator") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-comparisonoperator") private CharSequence comparisonOperator; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-notificationtype * */ @JsonProperty("NotificationType") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-notificationtype") private CharSequence notificationType; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-threshold * */ @JsonProperty("Threshold") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-threshold") private Number threshold; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-thresholdtype * */ @JsonProperty("ThresholdType") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-thresholdtype") private CharSequence thresholdType; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-comparisonoperator * */ @JsonIgnore public CharSequence getComparisonOperator() { return comparisonOperator; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-comparisonoperator * */ @JsonIgnore public void setComparisonOperator(CharSequence comparisonOperator) { this.comparisonOperator = comparisonOperator; } public BudgetNotification withComparisonOperator(CharSequence comparisonOperator) { this.comparisonOperator = comparisonOperator; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-notificationtype * */ @JsonIgnore public CharSequence getNotificationType() { return notificationType; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-notificationtype * */ @JsonIgnore public void setNotificationType(CharSequence notificationType) { this.notificationType = notificationType; } public BudgetNotification withNotificationType(CharSequence notificationType) { this.notificationType = notificationType; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-threshold * */ @JsonIgnore public Number getThreshold() { return threshold; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-threshold * */ @JsonIgnore public void setThreshold(Number threshold) { this.threshold = threshold; } public BudgetNotification withThreshold(Number threshold) { this.threshold = threshold; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-thresholdtype * */ @JsonIgnore public CharSequence getThresholdType() { return thresholdType; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-notification.html#cfn-budgets-budget-notification-thresholdtype * */ @JsonIgnore public void setThresholdType(CharSequence thresholdType) { this.thresholdType = thresholdType; } public BudgetNotification withThresholdType(CharSequence thresholdType) { this.thresholdType = thresholdType; return this; } @Override public String toString() { return new ToStringBuilder(this).append("comparisonOperator", comparisonOperator).append("notificationType", notificationType).append("threshold", threshold).append("thresholdType", thresholdType).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(threshold).append(notificationType).append(comparisonOperator).append(thresholdType).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof BudgetNotification) == false) { return false; } BudgetNotification rhs = ((BudgetNotification) other); return new EqualsBuilder().append(threshold, rhs.threshold).append(notificationType, rhs.notificationType).append(comparisonOperator, rhs.comparisonOperator).append(thresholdType, rhs.thresholdType).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy