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 Parameter
clone()
boolean
equals(Object obj)
String
getParameterKey()
The key associated with the parameter.String
getParameterValue()
The value associated with the parameter.Boolean
getUsePreviousValue()
During a stack update, use the existing parameter value that the stack is using for a given parameter key.int
hashCode()
Boolean
isUsePreviousValue()
During a stack update, use the existing parameter value that the stack is using for a given parameter key.void
setParameterKey(String parameterKey)
The key associated with the parameter.void
setParameterValue(String parameterValue)
The value associated with the parameter.void
setUsePreviousValue(Boolean usePreviousValue)
During a stack update, use the existing parameter value that the stack is using for a given parameter key.String
toString()
Returns a string representation of this object; useful for testing and debugging.Parameter
withParameterKey(String parameterKey)
The key associated with the parameter.Parameter
withParameterValue(String parameterValue)
The value associated with the parameter.Parameter
withUsePreviousValue(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-