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

shiver.me.timbers.aws.iam.PolicyDocument 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.iam;

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;


/**
 * Resource
 * 

* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "Version", "Id", "Statement" }) public class PolicyDocument implements Property , HasStatements> { /** * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_version.html * */ @JsonProperty("Version") @JsonPropertyDescription("https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_version.html") private String version = "2012-10-17"; /** * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_id.html * */ @JsonProperty("Id") @JsonPropertyDescription("https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_id.html") private CharSequence id; /** * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_statement.html * */ @JsonProperty("Statement") @JsonPropertyDescription("https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_statement.html") private List> statement = new ArrayList>(); /** * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_version.html * */ @JsonIgnore public String getVersion() { return version; } /** * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_version.html * */ @JsonIgnore public void setVersion(String version) { this.version = version; } public PolicyDocument withVersion(String version) { this.version = version; return this; } /** * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_id.html * */ @JsonIgnore public CharSequence getId() { return id; } /** * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_id.html * */ @JsonIgnore public void setId(CharSequence id) { this.id = id; } public PolicyDocument withId(CharSequence id) { this.id = id; return this; } /** * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_statement.html * */ @JsonIgnore public List> getStatement() { return statement; } /** * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_statement.html * */ @JsonIgnore public void setStatement(List> statement) { this.statement = statement; } public PolicyDocument withStatement(List> statement) { this.statement = statement; return this; } @Override public String toString() { return new ToStringBuilder(this).append("version", version).append("id", id).append("statement", statement).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(statement).append(id).append(version).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof PolicyDocument) == false) { return false; } PolicyDocument rhs = ((PolicyDocument) other); return new EqualsBuilder().append(statement, rhs.statement).append(id, rhs.id).append(version, rhs.version).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy