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

shiver.me.timbers.aws.synthetics.CanarySchedule Maven / Gradle / Ivy


package shiver.me.timbers.aws.synthetics;

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;


/**
 * CanarySchedule
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-schedule.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "Expression", "DurationInSeconds" }) public class CanarySchedule implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-schedule.html#cfn-synthetics-canary-schedule-expression * */ @JsonProperty("Expression") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-schedule.html#cfn-synthetics-canary-schedule-expression") private CharSequence expression; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-schedule.html#cfn-synthetics-canary-schedule-durationinseconds * */ @JsonProperty("DurationInSeconds") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-schedule.html#cfn-synthetics-canary-schedule-durationinseconds") private CharSequence durationInSeconds; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-schedule.html#cfn-synthetics-canary-schedule-expression * */ @JsonIgnore public CharSequence getExpression() { return expression; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-schedule.html#cfn-synthetics-canary-schedule-expression * */ @JsonIgnore public void setExpression(CharSequence expression) { this.expression = expression; } public CanarySchedule withExpression(CharSequence expression) { this.expression = expression; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-schedule.html#cfn-synthetics-canary-schedule-durationinseconds * */ @JsonIgnore public CharSequence getDurationInSeconds() { return durationInSeconds; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-synthetics-canary-schedule.html#cfn-synthetics-canary-schedule-durationinseconds * */ @JsonIgnore public void setDurationInSeconds(CharSequence durationInSeconds) { this.durationInSeconds = durationInSeconds; } public CanarySchedule withDurationInSeconds(CharSequence durationInSeconds) { this.durationInSeconds = durationInSeconds; return this; } @Override public String toString() { return new ToStringBuilder(this).append("expression", expression).append("durationInSeconds", durationInSeconds).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(durationInSeconds).append(expression).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof CanarySchedule) == false) { return false; } CanarySchedule rhs = ((CanarySchedule) other); return new EqualsBuilder().append(durationInSeconds, rhs.durationInSeconds).append(expression, rhs.expression).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy