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

shiver.me.timbers.aws.cognito.UserPoolResourceServer Maven / Gradle / Ivy


package shiver.me.timbers.aws.cognito;

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;
import shiver.me.timbers.aws.Property;


/**
 * UserPoolResourceServer
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "UserPoolId", "Identifier", "Scopes", "Name" }) public class UserPoolResourceServer { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-userpoolid * */ @JsonProperty("UserPoolId") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-userpoolid") private CharSequence userPoolId; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-identifier * */ @JsonProperty("Identifier") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-identifier") private CharSequence identifier; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-scopes * */ @JsonProperty("Scopes") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-scopes") private List> scopes = new ArrayList>(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-name * */ @JsonProperty("Name") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-name") private CharSequence name; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-userpoolid * */ @JsonIgnore public CharSequence getUserPoolId() { return userPoolId; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-userpoolid * */ @JsonIgnore public void setUserPoolId(CharSequence userPoolId) { this.userPoolId = userPoolId; } public UserPoolResourceServer withUserPoolId(CharSequence userPoolId) { this.userPoolId = userPoolId; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-identifier * */ @JsonIgnore public CharSequence getIdentifier() { return identifier; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-identifier * */ @JsonIgnore public void setIdentifier(CharSequence identifier) { this.identifier = identifier; } public UserPoolResourceServer withIdentifier(CharSequence identifier) { this.identifier = identifier; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-scopes * */ @JsonIgnore public List> getScopes() { return scopes; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-scopes * */ @JsonIgnore public void setScopes(List> scopes) { this.scopes = scopes; } public UserPoolResourceServer withScopes(List> scopes) { this.scopes = scopes; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-name * */ @JsonIgnore public CharSequence getName() { return name; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolresourceserver.html#cfn-cognito-userpoolresourceserver-name * */ @JsonIgnore public void setName(CharSequence name) { this.name = name; } public UserPoolResourceServer withName(CharSequence name) { this.name = name; return this; } @Override public String toString() { return new ToStringBuilder(this).append("userPoolId", userPoolId).append("identifier", identifier).append("scopes", scopes).append("name", name).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(name).append(identifier).append(scopes).append(userPoolId).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof UserPoolResourceServer) == false) { return false; } UserPoolResourceServer rhs = ((UserPoolResourceServer) other); return new EqualsBuilder().append(name, rhs.name).append(identifier, rhs.identifier).append(scopes, rhs.scopes).append(userPoolId, rhs.userPoolId).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy