
shiver.me.timbers.aws.apigateway.UsagePlanKey Maven / Gradle / Ivy
package shiver.me.timbers.aws.apigateway;
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;
/**
* UsagePlanKey
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"KeyId",
"KeyType",
"UsagePlanId"
})
public class UsagePlanKey {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-keyid
*
*/
@JsonProperty("KeyId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-keyid")
private CharSequence keyId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-keytype
*
*/
@JsonProperty("KeyType")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-keytype")
private CharSequence keyType;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-usageplanid
*
*/
@JsonProperty("UsagePlanId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-usageplanid")
private CharSequence usagePlanId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-keyid
*
*/
@JsonIgnore
public CharSequence getKeyId() {
return keyId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-keyid
*
*/
@JsonIgnore
public void setKeyId(CharSequence keyId) {
this.keyId = keyId;
}
public UsagePlanKey withKeyId(CharSequence keyId) {
this.keyId = keyId;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-keytype
*
*/
@JsonIgnore
public CharSequence getKeyType() {
return keyType;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-keytype
*
*/
@JsonIgnore
public void setKeyType(CharSequence keyType) {
this.keyType = keyType;
}
public UsagePlanKey withKeyType(CharSequence keyType) {
this.keyType = keyType;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-usageplanid
*
*/
@JsonIgnore
public CharSequence getUsagePlanId() {
return usagePlanId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplankey.html#cfn-apigateway-usageplankey-usageplanid
*
*/
@JsonIgnore
public void setUsagePlanId(CharSequence usagePlanId) {
this.usagePlanId = usagePlanId;
}
public UsagePlanKey withUsagePlanId(CharSequence usagePlanId) {
this.usagePlanId = usagePlanId;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("keyId", keyId).append("keyType", keyType).append("usagePlanId", usagePlanId).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(keyId).append(keyType).append(usagePlanId).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof UsagePlanKey) == false) {
return false;
}
UsagePlanKey rhs = ((UsagePlanKey) other);
return new EqualsBuilder().append(keyId, rhs.keyId).append(keyType, rhs.keyType).append(usagePlanId, rhs.usagePlanId).isEquals();
}
}