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

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

Go to download

This library is a complete mapping of the AWS CloudFormation Resource Specification into Java objects. The objects have been generated directly from the specification so should be a direct one to one mapping.

The newest version!

package shiver.me.timbers.aws.lakeformation;

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;


/**
 * Permissions
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-permissions.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "DataLakePrincipal", "Resource", "Permissions", "PermissionsWithGrantOption" }) public class Permissions { /** * PermissionsDataLakePrincipal *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalakeprincipal.html * */ @JsonProperty("DataLakePrincipal") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalakeprincipal.html") private Property dataLakePrincipal; /** * PermissionsDataLocationResource *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalocationresource.html * */ @JsonProperty("Resource") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalocationresource.html") private Property resource; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-permissions.html#cfn-lakeformation-permissions-permissions * */ @JsonProperty("Permissions") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-permissions.html#cfn-lakeformation-permissions-permissions") private List permissions = new ArrayList(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-permissions.html#cfn-lakeformation-permissions-permissionswithgrantoption * */ @JsonProperty("PermissionsWithGrantOption") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-permissions.html#cfn-lakeformation-permissions-permissionswithgrantoption") private List permissionsWithGrantOption = new ArrayList(); /** * PermissionsDataLakePrincipal *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalakeprincipal.html * */ @JsonIgnore public Property getDataLakePrincipal() { return dataLakePrincipal; } /** * PermissionsDataLakePrincipal *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalakeprincipal.html * */ @JsonIgnore public void setDataLakePrincipal(Property dataLakePrincipal) { this.dataLakePrincipal = dataLakePrincipal; } public Permissions withDataLakePrincipal(Property dataLakePrincipal) { this.dataLakePrincipal = dataLakePrincipal; return this; } /** * PermissionsDataLocationResource *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalocationresource.html * */ @JsonIgnore public Property getResource() { return resource; } /** * PermissionsDataLocationResource *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-permissions-datalocationresource.html * */ @JsonIgnore public void setResource(Property resource) { this.resource = resource; } public Permissions withResource(Property resource) { this.resource = resource; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-permissions.html#cfn-lakeformation-permissions-permissions * */ @JsonIgnore public List getPermissions() { return permissions; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-permissions.html#cfn-lakeformation-permissions-permissions * */ @JsonIgnore public void setPermissions(List permissions) { this.permissions = permissions; } public Permissions withPermissions(List permissions) { this.permissions = permissions; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-permissions.html#cfn-lakeformation-permissions-permissionswithgrantoption * */ @JsonIgnore public List getPermissionsWithGrantOption() { return permissionsWithGrantOption; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-permissions.html#cfn-lakeformation-permissions-permissionswithgrantoption * */ @JsonIgnore public void setPermissionsWithGrantOption(List permissionsWithGrantOption) { this.permissionsWithGrantOption = permissionsWithGrantOption; } public Permissions withPermissionsWithGrantOption(List permissionsWithGrantOption) { this.permissionsWithGrantOption = permissionsWithGrantOption; return this; } @Override public String toString() { return new ToStringBuilder(this).append("dataLakePrincipal", dataLakePrincipal).append("resource", resource).append("permissions", permissions).append("permissionsWithGrantOption", permissionsWithGrantOption).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(permissionsWithGrantOption).append(resource).append(dataLakePrincipal).append(permissions).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Permissions) == false) { return false; } Permissions rhs = ((Permissions) other); return new EqualsBuilder().append(permissionsWithGrantOption, rhs.permissionsWithGrantOption).append(resource, rhs.resource).append(dataLakePrincipal, rhs.dataLakePrincipal).append(permissions, rhs.permissions).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy