shiver.me.timbers.aws.apigatewayv2.DomainNameDomainNameConfiguration Maven / Gradle / Ivy
package shiver.me.timbers.aws.apigatewayv2;
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;
/**
* DomainNameDomainNameConfiguration
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"EndpointType",
"CertificateName",
"CertificateArn"
})
public class DomainNameDomainNameConfiguration implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-endpointtype
*
*/
@JsonProperty("EndpointType")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-endpointtype")
private CharSequence endpointType;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-certificatename
*
*/
@JsonProperty("CertificateName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-certificatename")
private CharSequence certificateName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-certificatearn
*
*/
@JsonProperty("CertificateArn")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-certificatearn")
private CharSequence certificateArn;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-endpointtype
*
*/
@JsonIgnore
public CharSequence getEndpointType() {
return endpointType;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-endpointtype
*
*/
@JsonIgnore
public void setEndpointType(CharSequence endpointType) {
this.endpointType = endpointType;
}
public DomainNameDomainNameConfiguration withEndpointType(CharSequence endpointType) {
this.endpointType = endpointType;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-certificatename
*
*/
@JsonIgnore
public CharSequence getCertificateName() {
return certificateName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-certificatename
*
*/
@JsonIgnore
public void setCertificateName(CharSequence certificateName) {
this.certificateName = certificateName;
}
public DomainNameDomainNameConfiguration withCertificateName(CharSequence certificateName) {
this.certificateName = certificateName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-certificatearn
*
*/
@JsonIgnore
public CharSequence getCertificateArn() {
return certificateArn;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-domainname-domainnameconfiguration.html#cfn-apigatewayv2-domainname-domainnameconfiguration-certificatearn
*
*/
@JsonIgnore
public void setCertificateArn(CharSequence certificateArn) {
this.certificateArn = certificateArn;
}
public DomainNameDomainNameConfiguration withCertificateArn(CharSequence certificateArn) {
this.certificateArn = certificateArn;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("endpointType", endpointType).append("certificateName", certificateName).append("certificateArn", certificateArn).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(certificateName).append(endpointType).append(certificateArn).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DomainNameDomainNameConfiguration) == false) {
return false;
}
DomainNameDomainNameConfiguration rhs = ((DomainNameDomainNameConfiguration) other);
return new EqualsBuilder().append(certificateName, rhs.certificateName).append(endpointType, rhs.endpointType).append(certificateArn, rhs.certificateArn).isEquals();
}
}