shiver.me.timbers.aws.acmpca.CertificateAuthorityResource Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.acmpca;
import java.util.List;
import java.util.Map;
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.CreationPolicy;
import shiver.me.timbers.aws.DeletionPolicy;
import shiver.me.timbers.aws.HasAttributes;
import shiver.me.timbers.aws.HasCondition;
import shiver.me.timbers.aws.HasDependsOn;
import shiver.me.timbers.aws.Resource;
import shiver.me.timbers.aws.UpdatePolicy;
/**
* CertificateAuthorityResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Type",
"Properties"
})
public class CertificateAuthorityResource
extends Resource
implements HasAttributes , HasCondition , HasDependsOn
{
@JsonProperty("Type")
private java.lang.String type = "AWS::ACMPCA::CertificateAuthority";
/**
* CertificateAuthority
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html
*
*/
@JsonProperty("Properties")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html")
private CertificateAuthority properties;
/**
* No args constructor for use in serialization
*
*/
public CertificateAuthorityResource() {
}
/**
*
* @param name
*/
public CertificateAuthorityResource(java.lang.String name) {
super(name);
}
@JsonIgnore
public java.lang.String getType() {
return type;
}
@JsonIgnore
public void setType(java.lang.String type) {
this.type = type;
}
public CertificateAuthorityResource withType(java.lang.String type) {
this.type = type;
return this;
}
/**
* CertificateAuthority
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html
*
*/
@JsonIgnore
public CertificateAuthority getProperties() {
return properties;
}
/**
* CertificateAuthority
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-acmpca-certificateauthority.html
*
*/
@JsonIgnore
public void setProperties(CertificateAuthority properties) {
this.properties = properties;
}
public CertificateAuthorityResource withProperties(CertificateAuthority properties) {
this.properties = properties;
return this;
}
@Override
public CertificateAuthorityResource withCondition(java.lang.String condition) {
super.withCondition(condition);
return this;
}
@Override
public CertificateAuthorityResource withCreationPolicy(CreationPolicy creationPolicy) {
super.withCreationPolicy(creationPolicy);
return this;
}
@Override
public CertificateAuthorityResource withUpdatePolicy(UpdatePolicy updatePolicy) {
super.withUpdatePolicy(updatePolicy);
return this;
}
@Override
public CertificateAuthorityResource withDeletionPolicy(DeletionPolicy deletionPolicy) {
super.withDeletionPolicy(deletionPolicy);
return this;
}
@Override
public CertificateAuthorityResource withDependsOn(List dependsOn) {
super.withDependsOn(dependsOn);
return this;
}
@Override
public CertificateAuthorityResource withMetadata(Map metadata) {
super.withMetadata(metadata);
return this;
}
@Override
public CertificateAuthorityResource withName(java.lang.String name) {
super.withName(name);
return this;
}
@Override
public java.lang.String toString() {
return new ToStringBuilder(this).appendSuper(super.toString()).append("type", type).append("properties", properties).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().appendSuper(super.hashCode()).append(type).append(properties).toHashCode();
}
@Override
public boolean equals(java.lang.Object other) {
if (other == this) {
return true;
}
if ((other instanceof CertificateAuthorityResource) == false) {
return false;
}
CertificateAuthorityResource rhs = ((CertificateAuthorityResource) other);
return new EqualsBuilder().appendSuper(super.equals(other)).append(type, rhs.type).append(properties, rhs.properties).isEquals();
}
}