
shiver.me.timbers.aws.pinpoint.ADMChannel Maven / Gradle / Ivy
package shiver.me.timbers.aws.pinpoint;
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;
/**
* ADMChannel
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"ClientSecret",
"Enabled",
"ClientId",
"ApplicationId"
})
public class ADMChannel {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-clientsecret
*
*/
@JsonProperty("ClientSecret")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-clientsecret")
private CharSequence clientSecret;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-enabled
*
*/
@JsonProperty("Enabled")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-enabled")
private CharSequence enabled;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-clientid
*
*/
@JsonProperty("ClientId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-clientid")
private CharSequence clientId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-applicationid
*
*/
@JsonProperty("ApplicationId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-applicationid")
private CharSequence applicationId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-clientsecret
*
*/
@JsonIgnore
public CharSequence getClientSecret() {
return clientSecret;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-clientsecret
*
*/
@JsonIgnore
public void setClientSecret(CharSequence clientSecret) {
this.clientSecret = clientSecret;
}
public ADMChannel withClientSecret(CharSequence clientSecret) {
this.clientSecret = clientSecret;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-enabled
*
*/
@JsonIgnore
public CharSequence getEnabled() {
return enabled;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-enabled
*
*/
@JsonIgnore
public void setEnabled(CharSequence enabled) {
this.enabled = enabled;
}
public ADMChannel withEnabled(CharSequence enabled) {
this.enabled = enabled;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-clientid
*
*/
@JsonIgnore
public CharSequence getClientId() {
return clientId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-clientid
*
*/
@JsonIgnore
public void setClientId(CharSequence clientId) {
this.clientId = clientId;
}
public ADMChannel withClientId(CharSequence clientId) {
this.clientId = clientId;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-applicationid
*
*/
@JsonIgnore
public CharSequence getApplicationId() {
return applicationId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-admchannel.html#cfn-pinpoint-admchannel-applicationid
*
*/
@JsonIgnore
public void setApplicationId(CharSequence applicationId) {
this.applicationId = applicationId;
}
public ADMChannel withApplicationId(CharSequence applicationId) {
this.applicationId = applicationId;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("clientSecret", clientSecret).append("enabled", enabled).append("clientId", clientId).append("applicationId", applicationId).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(clientSecret).append(clientId).append(applicationId).append(enabled).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ADMChannel) == false) {
return false;
}
ADMChannel rhs = ((ADMChannel) other);
return new EqualsBuilder().append(clientSecret, rhs.clientSecret).append(clientId, rhs.clientId).append(applicationId, rhs.applicationId).append(enabled, rhs.enabled).isEquals();
}
}