shiver.me.timbers.aws.apigateway.DeploymentAccessLogSetting Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
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;
/**
* DeploymentAccessLogSetting
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"DestinationArn",
"Format"
})
public class DeploymentAccessLogSetting implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-destinationarn
*
*/
@JsonProperty("DestinationArn")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-destinationarn")
private CharSequence destinationArn;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-format
*
*/
@JsonProperty("Format")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-format")
private CharSequence format;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-destinationarn
*
*/
@JsonIgnore
public CharSequence getDestinationArn() {
return destinationArn;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-destinationarn
*
*/
@JsonIgnore
public void setDestinationArn(CharSequence destinationArn) {
this.destinationArn = destinationArn;
}
public DeploymentAccessLogSetting withDestinationArn(CharSequence destinationArn) {
this.destinationArn = destinationArn;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-format
*
*/
@JsonIgnore
public CharSequence getFormat() {
return format;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-format
*
*/
@JsonIgnore
public void setFormat(CharSequence format) {
this.format = format;
}
public DeploymentAccessLogSetting withFormat(CharSequence format) {
this.format = format;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("destinationArn", destinationArn).append("format", format).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(format).append(destinationArn).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DeploymentAccessLogSetting) == false) {
return false;
}
DeploymentAccessLogSetting rhs = ((DeploymentAccessLogSetting) other);
return new EqualsBuilder().append(format, rhs.format).append(destinationArn, rhs.destinationArn).isEquals();
}
}