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

com.amazonaws.services.cloudformation.model.ParameterDeclaration Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS CloudFormation module holds the client classes that are used for communicating with AWS CloudFormation Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.cloudformation.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* The ParameterDeclaration data type. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ParameterDeclaration implements Serializable, Cloneable { /** *

* The name that is associated with the parameter. *

*/ private String parameterKey; /** *

* The default value of the parameter. *

*/ private String defaultValue; /** *

* The type of parameter. *

*/ private String parameterType; /** *

* Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management Console. *

*/ private Boolean noEcho; /** *

* The description that is associate with the parameter. *

*/ private String description; /** *

* The criteria that AWS CloudFormation uses to validate parameter values. *

*/ private ParameterConstraints parameterConstraints; /** *

* The name that is associated with the parameter. *

* * @param parameterKey * The name that is associated with the parameter. */ public void setParameterKey(String parameterKey) { this.parameterKey = parameterKey; } /** *

* The name that is associated with the parameter. *

* * @return The name that is associated with the parameter. */ public String getParameterKey() { return this.parameterKey; } /** *

* The name that is associated with the parameter. *

* * @param parameterKey * The name that is associated with the parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterDeclaration withParameterKey(String parameterKey) { setParameterKey(parameterKey); return this; } /** *

* The default value of the parameter. *

* * @param defaultValue * The default value of the parameter. */ public void setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; } /** *

* The default value of the parameter. *

* * @return The default value of the parameter. */ public String getDefaultValue() { return this.defaultValue; } /** *

* The default value of the parameter. *

* * @param defaultValue * The default value of the parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterDeclaration withDefaultValue(String defaultValue) { setDefaultValue(defaultValue); return this; } /** *

* The type of parameter. *

* * @param parameterType * The type of parameter. */ public void setParameterType(String parameterType) { this.parameterType = parameterType; } /** *

* The type of parameter. *

* * @return The type of parameter. */ public String getParameterType() { return this.parameterType; } /** *

* The type of parameter. *

* * @param parameterType * The type of parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterDeclaration withParameterType(String parameterType) { setParameterType(parameterType); return this; } /** *

* Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management Console. *

* * @param noEcho * Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management * Console. */ public void setNoEcho(Boolean noEcho) { this.noEcho = noEcho; } /** *

* Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management Console. *

* * @return Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management * Console. */ public Boolean getNoEcho() { return this.noEcho; } /** *

* Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management Console. *

* * @param noEcho * Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management * Console. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterDeclaration withNoEcho(Boolean noEcho) { setNoEcho(noEcho); return this; } /** *

* Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management Console. *

* * @return Flag that indicates whether the parameter value is shown as plain text in logs and in the AWS Management * Console. */ public Boolean isNoEcho() { return this.noEcho; } /** *

* The description that is associate with the parameter. *

* * @param description * The description that is associate with the parameter. */ public void setDescription(String description) { this.description = description; } /** *

* The description that is associate with the parameter. *

* * @return The description that is associate with the parameter. */ public String getDescription() { return this.description; } /** *

* The description that is associate with the parameter. *

* * @param description * The description that is associate with the parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterDeclaration withDescription(String description) { setDescription(description); return this; } /** *

* The criteria that AWS CloudFormation uses to validate parameter values. *

* * @param parameterConstraints * The criteria that AWS CloudFormation uses to validate parameter values. */ public void setParameterConstraints(ParameterConstraints parameterConstraints) { this.parameterConstraints = parameterConstraints; } /** *

* The criteria that AWS CloudFormation uses to validate parameter values. *

* * @return The criteria that AWS CloudFormation uses to validate parameter values. */ public ParameterConstraints getParameterConstraints() { return this.parameterConstraints; } /** *

* The criteria that AWS CloudFormation uses to validate parameter values. *

* * @param parameterConstraints * The criteria that AWS CloudFormation uses to validate parameter values. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterDeclaration withParameterConstraints(ParameterConstraints parameterConstraints) { setParameterConstraints(parameterConstraints); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getParameterKey() != null) sb.append("ParameterKey: ").append(getParameterKey()).append(","); if (getDefaultValue() != null) sb.append("DefaultValue: ").append(getDefaultValue()).append(","); if (getParameterType() != null) sb.append("ParameterType: ").append(getParameterType()).append(","); if (getNoEcho() != null) sb.append("NoEcho: ").append(getNoEcho()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getParameterConstraints() != null) sb.append("ParameterConstraints: ").append(getParameterConstraints()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ParameterDeclaration == false) return false; ParameterDeclaration other = (ParameterDeclaration) obj; if (other.getParameterKey() == null ^ this.getParameterKey() == null) return false; if (other.getParameterKey() != null && other.getParameterKey().equals(this.getParameterKey()) == false) return false; if (other.getDefaultValue() == null ^ this.getDefaultValue() == null) return false; if (other.getDefaultValue() != null && other.getDefaultValue().equals(this.getDefaultValue()) == false) return false; if (other.getParameterType() == null ^ this.getParameterType() == null) return false; if (other.getParameterType() != null && other.getParameterType().equals(this.getParameterType()) == false) return false; if (other.getNoEcho() == null ^ this.getNoEcho() == null) return false; if (other.getNoEcho() != null && other.getNoEcho().equals(this.getNoEcho()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getParameterConstraints() == null ^ this.getParameterConstraints() == null) return false; if (other.getParameterConstraints() != null && other.getParameterConstraints().equals(this.getParameterConstraints()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getParameterKey() == null) ? 0 : getParameterKey().hashCode()); hashCode = prime * hashCode + ((getDefaultValue() == null) ? 0 : getDefaultValue().hashCode()); hashCode = prime * hashCode + ((getParameterType() == null) ? 0 : getParameterType().hashCode()); hashCode = prime * hashCode + ((getNoEcho() == null) ? 0 : getNoEcho().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getParameterConstraints() == null) ? 0 : getParameterConstraints().hashCode()); return hashCode; } @Override public ParameterDeclaration clone() { try { return (ParameterDeclaration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy