shiver.me.timbers.aws.lakeformation.PermissionsResource Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
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;
import shiver.me.timbers.aws.Property;
/**
* PermissionsResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-resource.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"TableResource",
"DatabaseResource",
"DataLocationResource",
"TableWithColumnsResource"
})
public class PermissionsResource implements Property
{
/**
* PermissionsTableResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tableresource.html
*
*/
@JsonProperty("TableResource")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tableresource.html")
private Property tableResource;
/**
* PermissionsDatabaseResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-databaseresource.html
*
*/
@JsonProperty("DatabaseResource")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-databaseresource.html")
private Property databaseResource;
/**
* PermissionsDataLocationResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalocationresource.html
*
*/
@JsonProperty("DataLocationResource")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalocationresource.html")
private Property dataLocationResource;
/**
* PermissionsTableWithColumnsResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tablewithcolumnsresource.html
*
*/
@JsonProperty("TableWithColumnsResource")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tablewithcolumnsresource.html")
private Property tableWithColumnsResource;
/**
* PermissionsTableResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tableresource.html
*
*/
@JsonIgnore
public Property getTableResource() {
return tableResource;
}
/**
* PermissionsTableResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tableresource.html
*
*/
@JsonIgnore
public void setTableResource(Property tableResource) {
this.tableResource = tableResource;
}
public PermissionsResource withTableResource(Property tableResource) {
this.tableResource = tableResource;
return this;
}
/**
* PermissionsDatabaseResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-databaseresource.html
*
*/
@JsonIgnore
public Property getDatabaseResource() {
return databaseResource;
}
/**
* PermissionsDatabaseResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-databaseresource.html
*
*/
@JsonIgnore
public void setDatabaseResource(Property databaseResource) {
this.databaseResource = databaseResource;
}
public PermissionsResource withDatabaseResource(Property databaseResource) {
this.databaseResource = databaseResource;
return this;
}
/**
* PermissionsDataLocationResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalocationresource.html
*
*/
@JsonIgnore
public Property getDataLocationResource() {
return dataLocationResource;
}
/**
* PermissionsDataLocationResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalocationresource.html
*
*/
@JsonIgnore
public void setDataLocationResource(Property dataLocationResource) {
this.dataLocationResource = dataLocationResource;
}
public PermissionsResource withDataLocationResource(Property dataLocationResource) {
this.dataLocationResource = dataLocationResource;
return this;
}
/**
* PermissionsTableWithColumnsResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tablewithcolumnsresource.html
*
*/
@JsonIgnore
public Property getTableWithColumnsResource() {
return tableWithColumnsResource;
}
/**
* PermissionsTableWithColumnsResource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-tablewithcolumnsresource.html
*
*/
@JsonIgnore
public void setTableWithColumnsResource(Property tableWithColumnsResource) {
this.tableWithColumnsResource = tableWithColumnsResource;
}
public PermissionsResource withTableWithColumnsResource(Property tableWithColumnsResource) {
this.tableWithColumnsResource = tableWithColumnsResource;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("tableResource", tableResource).append("databaseResource", databaseResource).append("dataLocationResource", dataLocationResource).append("tableWithColumnsResource", tableWithColumnsResource).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(tableResource).append(tableWithColumnsResource).append(databaseResource).append(dataLocationResource).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof PermissionsResource) == false) {
return false;
}
PermissionsResource rhs = ((PermissionsResource) other);
return new EqualsBuilder().append(tableResource, rhs.tableResource).append(tableWithColumnsResource, rhs.tableWithColumnsResource).append(databaseResource, rhs.databaseResource).append(dataLocationResource, rhs.dataLocationResource).isEquals();
}
}