
shiver.me.timbers.aws.glue.CrawlerJdbcTarget Maven / Gradle / Ivy
package shiver.me.timbers.aws.glue;
import java.util.ArrayList;
import java.util.List;
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;
/**
* CrawlerJdbcTarget
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"ConnectionName",
"Path",
"Exclusions"
})
public class CrawlerJdbcTarget implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-connectionname
*
*/
@JsonProperty("ConnectionName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-connectionname")
private CharSequence connectionName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-path
*
*/
@JsonProperty("Path")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-path")
private CharSequence path;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-exclusions
*
*/
@JsonProperty("Exclusions")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-exclusions")
private List exclusions = new ArrayList();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-connectionname
*
*/
@JsonIgnore
public CharSequence getConnectionName() {
return connectionName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-connectionname
*
*/
@JsonIgnore
public void setConnectionName(CharSequence connectionName) {
this.connectionName = connectionName;
}
public CrawlerJdbcTarget withConnectionName(CharSequence connectionName) {
this.connectionName = connectionName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-path
*
*/
@JsonIgnore
public CharSequence getPath() {
return path;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-path
*
*/
@JsonIgnore
public void setPath(CharSequence path) {
this.path = path;
}
public CrawlerJdbcTarget withPath(CharSequence path) {
this.path = path;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-exclusions
*
*/
@JsonIgnore
public List getExclusions() {
return exclusions;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-crawler-jdbctarget.html#cfn-glue-crawler-jdbctarget-exclusions
*
*/
@JsonIgnore
public void setExclusions(List exclusions) {
this.exclusions = exclusions;
}
public CrawlerJdbcTarget withExclusions(List exclusions) {
this.exclusions = exclusions;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("connectionName", connectionName).append("path", path).append("exclusions", exclusions).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(path).append(exclusions).append(connectionName).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof CrawlerJdbcTarget) == false) {
return false;
}
CrawlerJdbcTarget rhs = ((CrawlerJdbcTarget) other);
return new EqualsBuilder().append(path, rhs.path).append(exclusions, rhs.exclusions).append(connectionName, rhs.connectionName).isEquals();
}
}