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

shiver.me.timbers.aws.opsworks.AppSource 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.opsworks;

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;


/**
 * AppSource
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "Password", "Revision", "SshKey", "Type", "Url", "Username" }) public class AppSource implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-pw * */ @JsonProperty("Password") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-pw") private CharSequence password; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-revision * */ @JsonProperty("Revision") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-revision") private CharSequence revision; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-sshkey * */ @JsonProperty("SshKey") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-sshkey") private CharSequence sshKey; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-type * */ @JsonProperty("Type") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-type") private CharSequence type; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-url * */ @JsonProperty("Url") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-url") private CharSequence url; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-username * */ @JsonProperty("Username") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-username") private CharSequence username; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-pw * */ @JsonIgnore public CharSequence getPassword() { return password; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-pw * */ @JsonIgnore public void setPassword(CharSequence password) { this.password = password; } public AppSource withPassword(CharSequence password) { this.password = password; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-revision * */ @JsonIgnore public CharSequence getRevision() { return revision; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-revision * */ @JsonIgnore public void setRevision(CharSequence revision) { this.revision = revision; } public AppSource withRevision(CharSequence revision) { this.revision = revision; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-sshkey * */ @JsonIgnore public CharSequence getSshKey() { return sshKey; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-sshkey * */ @JsonIgnore public void setSshKey(CharSequence sshKey) { this.sshKey = sshKey; } public AppSource withSshKey(CharSequence sshKey) { this.sshKey = sshKey; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-type * */ @JsonIgnore public CharSequence getType() { return type; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-type * */ @JsonIgnore public void setType(CharSequence type) { this.type = type; } public AppSource withType(CharSequence type) { this.type = type; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-url * */ @JsonIgnore public CharSequence getUrl() { return url; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-url * */ @JsonIgnore public void setUrl(CharSequence url) { this.url = url; } public AppSource withUrl(CharSequence url) { this.url = url; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-username * */ @JsonIgnore public CharSequence getUsername() { return username; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html#cfn-opsworks-custcookbooksource-username * */ @JsonIgnore public void setUsername(CharSequence username) { this.username = username; } public AppSource withUsername(CharSequence username) { this.username = username; return this; } @Override public String toString() { return new ToStringBuilder(this).append("password", password).append("revision", revision).append("sshKey", sshKey).append("type", type).append("url", url).append("username", username).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(password).append(sshKey).append(type).append(url).append(revision).append(username).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof AppSource) == false) { return false; } AppSource rhs = ((AppSource) other); return new EqualsBuilder().append(password, rhs.password).append(sshKey, rhs.sshKey).append(type, rhs.type).append(url, rhs.url).append(revision, rhs.revision).append(username, rhs.username).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy