All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shiver.me.timbers.aws.apigatewayv2.Authorizer Maven / Gradle / Ivy


package shiver.me.timbers.aws.apigatewayv2;

import java.util.ArrayList;
import java.util.List;
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;


/**
 * Authorizer
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "IdentityValidationExpression", "AuthorizerUri", "AuthorizerCredentialsArn", "AuthorizerType", "AuthorizerResultTtlInSeconds", "IdentitySource", "ApiId", "Name" }) public class Authorizer { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-identityvalidationexpression * */ @JsonProperty("IdentityValidationExpression") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-identityvalidationexpression") private CharSequence identityValidationExpression; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizeruri * */ @JsonProperty("AuthorizerUri") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizeruri") private CharSequence authorizerUri; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizercredentialsarn * */ @JsonProperty("AuthorizerCredentialsArn") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizercredentialsarn") private CharSequence authorizerCredentialsArn; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizertype * */ @JsonProperty("AuthorizerType") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizertype") private CharSequence authorizerType; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizerresultttlinseconds * */ @JsonProperty("AuthorizerResultTtlInSeconds") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizerresultttlinseconds") private Number authorizerResultTtlInSeconds; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-identitysource * */ @JsonProperty("IdentitySource") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-identitysource") private List identitySource = new ArrayList(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-apiid * */ @JsonProperty("ApiId") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-apiid") private CharSequence apiId; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-name * */ @JsonProperty("Name") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-name") private CharSequence name; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-identityvalidationexpression * */ @JsonIgnore public CharSequence getIdentityValidationExpression() { return identityValidationExpression; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-identityvalidationexpression * */ @JsonIgnore public void setIdentityValidationExpression(CharSequence identityValidationExpression) { this.identityValidationExpression = identityValidationExpression; } public Authorizer withIdentityValidationExpression(CharSequence identityValidationExpression) { this.identityValidationExpression = identityValidationExpression; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizeruri * */ @JsonIgnore public CharSequence getAuthorizerUri() { return authorizerUri; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizeruri * */ @JsonIgnore public void setAuthorizerUri(CharSequence authorizerUri) { this.authorizerUri = authorizerUri; } public Authorizer withAuthorizerUri(CharSequence authorizerUri) { this.authorizerUri = authorizerUri; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizercredentialsarn * */ @JsonIgnore public CharSequence getAuthorizerCredentialsArn() { return authorizerCredentialsArn; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizercredentialsarn * */ @JsonIgnore public void setAuthorizerCredentialsArn(CharSequence authorizerCredentialsArn) { this.authorizerCredentialsArn = authorizerCredentialsArn; } public Authorizer withAuthorizerCredentialsArn(CharSequence authorizerCredentialsArn) { this.authorizerCredentialsArn = authorizerCredentialsArn; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizertype * */ @JsonIgnore public CharSequence getAuthorizerType() { return authorizerType; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizertype * */ @JsonIgnore public void setAuthorizerType(CharSequence authorizerType) { this.authorizerType = authorizerType; } public Authorizer withAuthorizerType(CharSequence authorizerType) { this.authorizerType = authorizerType; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizerresultttlinseconds * */ @JsonIgnore public Number getAuthorizerResultTtlInSeconds() { return authorizerResultTtlInSeconds; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-authorizerresultttlinseconds * */ @JsonIgnore public void setAuthorizerResultTtlInSeconds(Number authorizerResultTtlInSeconds) { this.authorizerResultTtlInSeconds = authorizerResultTtlInSeconds; } public Authorizer withAuthorizerResultTtlInSeconds(Number authorizerResultTtlInSeconds) { this.authorizerResultTtlInSeconds = authorizerResultTtlInSeconds; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-identitysource * */ @JsonIgnore public List getIdentitySource() { return identitySource; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-identitysource * */ @JsonIgnore public void setIdentitySource(List identitySource) { this.identitySource = identitySource; } public Authorizer withIdentitySource(List identitySource) { this.identitySource = identitySource; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-apiid * */ @JsonIgnore public CharSequence getApiId() { return apiId; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-apiid * */ @JsonIgnore public void setApiId(CharSequence apiId) { this.apiId = apiId; } public Authorizer withApiId(CharSequence apiId) { this.apiId = apiId; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-name * */ @JsonIgnore public CharSequence getName() { return name; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-authorizer.html#cfn-apigatewayv2-authorizer-name * */ @JsonIgnore public void setName(CharSequence name) { this.name = name; } public Authorizer withName(CharSequence name) { this.name = name; return this; } @Override public String toString() { return new ToStringBuilder(this).append("identityValidationExpression", identityValidationExpression).append("authorizerUri", authorizerUri).append("authorizerCredentialsArn", authorizerCredentialsArn).append("authorizerType", authorizerType).append("authorizerResultTtlInSeconds", authorizerResultTtlInSeconds).append("identitySource", identitySource).append("apiId", apiId).append("name", name).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(identityValidationExpression).append(identitySource).append(authorizerCredentialsArn).append(authorizerUri).append(authorizerResultTtlInSeconds).append(name).append(authorizerType).append(apiId).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Authorizer) == false) { return false; } Authorizer rhs = ((Authorizer) other); return new EqualsBuilder().append(identityValidationExpression, rhs.identityValidationExpression).append(identitySource, rhs.identitySource).append(authorizerCredentialsArn, rhs.authorizerCredentialsArn).append(authorizerUri, rhs.authorizerUri).append(authorizerResultTtlInSeconds, rhs.authorizerResultTtlInSeconds).append(name, rhs.name).append(authorizerType, rhs.authorizerType).append(apiId, rhs.apiId).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy