shiver.me.timbers.aws.appsync.GraphQLApiUserPoolConfig 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;
/**
* GraphQLApiUserPoolConfig
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"AppIdClientRegex",
"UserPoolId",
"AwsRegion",
"DefaultAction"
})
public class GraphQLApiUserPoolConfig implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-appidclientregex
*
*/
@JsonProperty("AppIdClientRegex")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-appidclientregex")
private CharSequence appIdClientRegex;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-userpoolid
*
*/
@JsonProperty("UserPoolId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-userpoolid")
private CharSequence userPoolId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-awsregion
*
*/
@JsonProperty("AwsRegion")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-awsregion")
private CharSequence awsRegion;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-defaultaction
*
*/
@JsonProperty("DefaultAction")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-defaultaction")
private CharSequence defaultAction;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-appidclientregex
*
*/
@JsonIgnore
public CharSequence getAppIdClientRegex() {
return appIdClientRegex;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-appidclientregex
*
*/
@JsonIgnore
public void setAppIdClientRegex(CharSequence appIdClientRegex) {
this.appIdClientRegex = appIdClientRegex;
}
public GraphQLApiUserPoolConfig withAppIdClientRegex(CharSequence appIdClientRegex) {
this.appIdClientRegex = appIdClientRegex;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-userpoolid
*
*/
@JsonIgnore
public CharSequence getUserPoolId() {
return userPoolId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-userpoolid
*
*/
@JsonIgnore
public void setUserPoolId(CharSequence userPoolId) {
this.userPoolId = userPoolId;
}
public GraphQLApiUserPoolConfig withUserPoolId(CharSequence userPoolId) {
this.userPoolId = userPoolId;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-awsregion
*
*/
@JsonIgnore
public CharSequence getAwsRegion() {
return awsRegion;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-awsregion
*
*/
@JsonIgnore
public void setAwsRegion(CharSequence awsRegion) {
this.awsRegion = awsRegion;
}
public GraphQLApiUserPoolConfig withAwsRegion(CharSequence awsRegion) {
this.awsRegion = awsRegion;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-defaultaction
*
*/
@JsonIgnore
public CharSequence getDefaultAction() {
return defaultAction;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-userpoolconfig.html#cfn-appsync-graphqlapi-userpoolconfig-defaultaction
*
*/
@JsonIgnore
public void setDefaultAction(CharSequence defaultAction) {
this.defaultAction = defaultAction;
}
public GraphQLApiUserPoolConfig withDefaultAction(CharSequence defaultAction) {
this.defaultAction = defaultAction;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("appIdClientRegex", appIdClientRegex).append("userPoolId", userPoolId).append("awsRegion", awsRegion).append("defaultAction", defaultAction).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(awsRegion).append(defaultAction).append(userPoolId).append(appIdClientRegex).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof GraphQLApiUserPoolConfig) == false) {
return false;
}
GraphQLApiUserPoolConfig rhs = ((GraphQLApiUserPoolConfig) other);
return new EqualsBuilder().append(awsRegion, rhs.awsRegion).append(defaultAction, rhs.defaultAction).append(userPoolId, rhs.userPoolId).append(appIdClientRegex, rhs.appIdClientRegex).isEquals();
}
}