shiver.me.timbers.aws.appsync.DataSourceRdsHttpEndpointConfig Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.appsync;
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;
/**
* DataSourceRdsHttpEndpointConfig
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"AwsRegion",
"Schema",
"DatabaseName",
"DbClusterIdentifier",
"AwsSecretStoreArn"
})
public class DataSourceRdsHttpEndpointConfig implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-awsregion
*
*/
@JsonProperty("AwsRegion")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-awsregion")
private CharSequence awsRegion;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-schema
*
*/
@JsonProperty("Schema")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-schema")
private CharSequence schema;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-databasename
*
*/
@JsonProperty("DatabaseName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-databasename")
private CharSequence databaseName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-dbclusteridentifier
*
*/
@JsonProperty("DbClusterIdentifier")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-dbclusteridentifier")
private CharSequence dbClusterIdentifier;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-awssecretstorearn
*
*/
@JsonProperty("AwsSecretStoreArn")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-awssecretstorearn")
private CharSequence awsSecretStoreArn;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-awsregion
*
*/
@JsonIgnore
public CharSequence getAwsRegion() {
return awsRegion;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-awsregion
*
*/
@JsonIgnore
public void setAwsRegion(CharSequence awsRegion) {
this.awsRegion = awsRegion;
}
public DataSourceRdsHttpEndpointConfig withAwsRegion(CharSequence awsRegion) {
this.awsRegion = awsRegion;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-schema
*
*/
@JsonIgnore
public CharSequence getSchema() {
return schema;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-schema
*
*/
@JsonIgnore
public void setSchema(CharSequence schema) {
this.schema = schema;
}
public DataSourceRdsHttpEndpointConfig withSchema(CharSequence schema) {
this.schema = schema;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-databasename
*
*/
@JsonIgnore
public CharSequence getDatabaseName() {
return databaseName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-databasename
*
*/
@JsonIgnore
public void setDatabaseName(CharSequence databaseName) {
this.databaseName = databaseName;
}
public DataSourceRdsHttpEndpointConfig withDatabaseName(CharSequence databaseName) {
this.databaseName = databaseName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-dbclusteridentifier
*
*/
@JsonIgnore
public CharSequence getDbClusterIdentifier() {
return dbClusterIdentifier;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-dbclusteridentifier
*
*/
@JsonIgnore
public void setDbClusterIdentifier(CharSequence dbClusterIdentifier) {
this.dbClusterIdentifier = dbClusterIdentifier;
}
public DataSourceRdsHttpEndpointConfig withDbClusterIdentifier(CharSequence dbClusterIdentifier) {
this.dbClusterIdentifier = dbClusterIdentifier;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-awssecretstorearn
*
*/
@JsonIgnore
public CharSequence getAwsSecretStoreArn() {
return awsSecretStoreArn;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-awssecretstorearn
*
*/
@JsonIgnore
public void setAwsSecretStoreArn(CharSequence awsSecretStoreArn) {
this.awsSecretStoreArn = awsSecretStoreArn;
}
public DataSourceRdsHttpEndpointConfig withAwsSecretStoreArn(CharSequence awsSecretStoreArn) {
this.awsSecretStoreArn = awsSecretStoreArn;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("awsRegion", awsRegion).append("schema", schema).append("databaseName", databaseName).append("dbClusterIdentifier", dbClusterIdentifier).append("awsSecretStoreArn", awsSecretStoreArn).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(schema).append(dbClusterIdentifier).append(awsSecretStoreArn).append(awsRegion).append(databaseName).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DataSourceRdsHttpEndpointConfig) == false) {
return false;
}
DataSourceRdsHttpEndpointConfig rhs = ((DataSourceRdsHttpEndpointConfig) other);
return new EqualsBuilder().append(schema, rhs.schema).append(dbClusterIdentifier, rhs.dbClusterIdentifier).append(awsSecretStoreArn, rhs.awsSecretStoreArn).append(awsRegion, rhs.awsRegion).append(databaseName, rhs.databaseName).isEquals();
}
}