Class Parameter
- java.lang.Object
-
- com.amazonaws.services.cloudformation.model.Parameter
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Parameter extends Object implements Serializable, Cloneable
The Parameter data type.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Parameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Parameterclone()booleanequals(Object obj)StringgetParameterKey()The key associated with the parameter.StringgetParameterValue()The value associated with the parameter.BooleangetUsePreviousValue()During a stack update, use the existing parameter value that the stack is using for a given parameter key.inthashCode()BooleanisUsePreviousValue()During a stack update, use the existing parameter value that the stack is using for a given parameter key.voidsetParameterKey(String parameterKey)The key associated with the parameter.voidsetParameterValue(String parameterValue)The value associated with the parameter.voidsetUsePreviousValue(Boolean usePreviousValue)During a stack update, use the existing parameter value that the stack is using for a given parameter key.StringtoString()Returns a string representation of this object; useful for testing and debugging.ParameterwithParameterKey(String parameterKey)The key associated with the parameter.ParameterwithParameterValue(String parameterValue)The value associated with the parameter.ParameterwithUsePreviousValue(Boolean usePreviousValue)During a stack update, use the existing parameter value that the stack is using for a given parameter key.
-
-
-
Method Detail
-
setParameterKey
public void setParameterKey(String parameterKey)
The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template.
- Parameters:
parameterKey- The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template.
-
getParameterKey
public String getParameterKey()
The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template.
- Returns:
- The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template.
-
withParameterKey
public Parameter withParameterKey(String parameterKey)
The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template.
- Parameters:
parameterKey- The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setParameterValue
public void setParameterValue(String parameterValue)
The value associated with the parameter.
- Parameters:
parameterValue- The value associated with the parameter.
-
getParameterValue
public String getParameterValue()
The value associated with the parameter.
- Returns:
- The value associated with the parameter.
-
withParameterValue
public Parameter withParameterValue(String parameterValue)
The value associated with the parameter.
- Parameters:
parameterValue- The value associated with the parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUsePreviousValue
public void setUsePreviousValue(Boolean usePreviousValue)
During a stack update, use the existing parameter value that the stack is using for a given parameter key. If you specify
true, do not specify a parameter value.- Parameters:
usePreviousValue- During a stack update, use the existing parameter value that the stack is using for a given parameter key. If you specifytrue, do not specify a parameter value.
-
getUsePreviousValue
public Boolean getUsePreviousValue()
During a stack update, use the existing parameter value that the stack is using for a given parameter key. If you specify
true, do not specify a parameter value.- Returns:
- During a stack update, use the existing parameter value that the
stack is using for a given parameter key. If you specify
true, do not specify a parameter value.
-
withUsePreviousValue
public Parameter withUsePreviousValue(Boolean usePreviousValue)
During a stack update, use the existing parameter value that the stack is using for a given parameter key. If you specify
true, do not specify a parameter value.- Parameters:
usePreviousValue- During a stack update, use the existing parameter value that the stack is using for a given parameter key. If you specifytrue, do not specify a parameter value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isUsePreviousValue
public Boolean isUsePreviousValue()
During a stack update, use the existing parameter value that the stack is using for a given parameter key. If you specify
true, do not specify a parameter value.- Returns:
- During a stack update, use the existing parameter value that the
stack is using for a given parameter key. If you specify
true, do not specify a parameter value.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-