shiver.me.timbers.aws.dms.EndpointDynamoDbSettings Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.dms;
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;
/**
* EndpointDynamoDbSettings
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-dynamodbsettings.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"ServiceAccessRoleArn"
})
public class EndpointDynamoDbSettings implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-dynamodbsettings.html#cfn-dms-endpoint-dynamodbsettings-serviceaccessrolearn
*
*/
@JsonProperty("ServiceAccessRoleArn")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-dynamodbsettings.html#cfn-dms-endpoint-dynamodbsettings-serviceaccessrolearn")
private CharSequence serviceAccessRoleArn;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-dynamodbsettings.html#cfn-dms-endpoint-dynamodbsettings-serviceaccessrolearn
*
*/
@JsonIgnore
public CharSequence getServiceAccessRoleArn() {
return serviceAccessRoleArn;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-dynamodbsettings.html#cfn-dms-endpoint-dynamodbsettings-serviceaccessrolearn
*
*/
@JsonIgnore
public void setServiceAccessRoleArn(CharSequence serviceAccessRoleArn) {
this.serviceAccessRoleArn = serviceAccessRoleArn;
}
public EndpointDynamoDbSettings withServiceAccessRoleArn(CharSequence serviceAccessRoleArn) {
this.serviceAccessRoleArn = serviceAccessRoleArn;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("serviceAccessRoleArn", serviceAccessRoleArn).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(serviceAccessRoleArn).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof EndpointDynamoDbSettings) == false) {
return false;
}
EndpointDynamoDbSettings rhs = ((EndpointDynamoDbSettings) other);
return new EqualsBuilder().append(serviceAccessRoleArn, rhs.serviceAccessRoleArn).isEquals();
}
}