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

shiver.me.timbers.aws.lakeformation.Resource Maven / Gradle / Ivy


package shiver.me.timbers.aws.lakeformation;

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;


/**
 * Resource
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "ResourceArn", "UseServiceLinkedRole", "RoleArn" }) public class Resource { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-resourcearn * */ @JsonProperty("ResourceArn") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-resourcearn") private CharSequence resourceArn; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-useservicelinkedrole * */ @JsonProperty("UseServiceLinkedRole") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-useservicelinkedrole") private CharSequence useServiceLinkedRole; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-rolearn * */ @JsonProperty("RoleArn") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-rolearn") private CharSequence roleArn; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-resourcearn * */ @JsonIgnore public CharSequence getResourceArn() { return resourceArn; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-resourcearn * */ @JsonIgnore public void setResourceArn(CharSequence resourceArn) { this.resourceArn = resourceArn; } public Resource withResourceArn(CharSequence resourceArn) { this.resourceArn = resourceArn; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-useservicelinkedrole * */ @JsonIgnore public CharSequence getUseServiceLinkedRole() { return useServiceLinkedRole; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-useservicelinkedrole * */ @JsonIgnore public void setUseServiceLinkedRole(CharSequence useServiceLinkedRole) { this.useServiceLinkedRole = useServiceLinkedRole; } public Resource withUseServiceLinkedRole(CharSequence useServiceLinkedRole) { this.useServiceLinkedRole = useServiceLinkedRole; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-rolearn * */ @JsonIgnore public CharSequence getRoleArn() { return roleArn; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-rolearn * */ @JsonIgnore public void setRoleArn(CharSequence roleArn) { this.roleArn = roleArn; } public Resource withRoleArn(CharSequence roleArn) { this.roleArn = roleArn; return this; } @Override public String toString() { return new ToStringBuilder(this).append("resourceArn", resourceArn).append("useServiceLinkedRole", useServiceLinkedRole).append("roleArn", roleArn).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(resourceArn).append(useServiceLinkedRole).append(roleArn).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Resource) == false) { return false; } Resource rhs = ((Resource) other); return new EqualsBuilder().append(resourceArn, rhs.resourceArn).append(useServiceLinkedRole, rhs.useServiceLinkedRole).append(roleArn, rhs.roleArn).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy