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

shiver.me.timbers.aws.iam.ManagedPolicy 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.LinkedHashSet;
import java.util.List;
import java.util.Set;
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 com.fasterxml.jackson.databind.annotation.JsonDeserialize;
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;


/**
 * ManagedPolicy
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "Description", "Groups", "ManagedPolicyName", "Path", "PolicyDocument", "Roles", "Users" }) public class ManagedPolicy { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-description * */ @JsonProperty("Description") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-description") private CharSequence description; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-groups * */ @JsonProperty("Groups") @JsonDeserialize(as = java.util.LinkedHashSet.class) @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-groups") private Set groups = new LinkedHashSet(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-managedpolicyname * */ @JsonProperty("ManagedPolicyName") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-managedpolicyname") private CharSequence managedPolicyName; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-ec2-dhcpoptions-path * */ @JsonProperty("Path") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-ec2-dhcpoptions-path") private CharSequence path; /** * Resource *

* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html * */ @JsonProperty("PolicyDocument") @JsonPropertyDescription("https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html") private Property policyDocument; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-roles * */ @JsonProperty("Roles") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-roles") private List roles = new ArrayList(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-users * */ @JsonProperty("Users") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-users") private List users = new ArrayList(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-description * */ @JsonIgnore public CharSequence getDescription() { return description; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-description * */ @JsonIgnore public void setDescription(CharSequence description) { this.description = description; } public ManagedPolicy withDescription(CharSequence description) { this.description = description; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-groups * */ @JsonIgnore public Set getGroups() { return groups; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-groups * */ @JsonIgnore public void setGroups(Set groups) { this.groups = groups; } public ManagedPolicy withGroups(Set groups) { this.groups = groups; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-managedpolicyname * */ @JsonIgnore public CharSequence getManagedPolicyName() { return managedPolicyName; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-managedpolicyname * */ @JsonIgnore public void setManagedPolicyName(CharSequence managedPolicyName) { this.managedPolicyName = managedPolicyName; } public ManagedPolicy withManagedPolicyName(CharSequence managedPolicyName) { this.managedPolicyName = managedPolicyName; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-ec2-dhcpoptions-path * */ @JsonIgnore public CharSequence getPath() { return path; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-ec2-dhcpoptions-path * */ @JsonIgnore public void setPath(CharSequence path) { this.path = path; } public ManagedPolicy withPath(CharSequence path) { this.path = path; return this; } /** * Resource *

* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html * */ @JsonIgnore public Property getPolicyDocument() { return policyDocument; } /** * Resource *

* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html * */ @JsonIgnore public void setPolicyDocument(Property policyDocument) { this.policyDocument = policyDocument; } public ManagedPolicy withPolicyDocument(Property policyDocument) { this.policyDocument = policyDocument; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-roles * */ @JsonIgnore public List getRoles() { return roles; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-roles * */ @JsonIgnore public void setRoles(List roles) { this.roles = roles; } public ManagedPolicy withRoles(List roles) { this.roles = roles; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-users * */ @JsonIgnore public List getUsers() { return users; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-users * */ @JsonIgnore public void setUsers(List users) { this.users = users; } public ManagedPolicy withUsers(List users) { this.users = users; return this; } @Override public String toString() { return new ToStringBuilder(this).append("description", description).append("groups", groups).append("managedPolicyName", managedPolicyName).append("path", path).append("policyDocument", policyDocument).append("roles", roles).append("users", users).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(policyDocument).append(path).append(roles).append(description).append(groups).append(managedPolicyName).append(users).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof ManagedPolicy) == false) { return false; } ManagedPolicy rhs = ((ManagedPolicy) other); return new EqualsBuilder().append(policyDocument, rhs.policyDocument).append(path, rhs.path).append(roles, rhs.roles).append(description, rhs.description).append(groups, rhs.groups).append(managedPolicyName, rhs.managedPolicyName).append(users, rhs.users).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy