Class OptionRestrictionRegex
- java.lang.Object
-
- com.amazonaws.services.elasticbeanstalk.model.OptionRestrictionRegex
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class OptionRestrictionRegex extends Object implements Serializable, Cloneable
A regular expression representing a restriction on a string configuration option value.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OptionRestrictionRegex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptionRestrictionRegex
clone()
boolean
equals(Object obj)
String
getLabel()
A unique name representing this regular expression.String
getPattern()
The regular expression pattern that a string configuration option value with this restriction must match.int
hashCode()
void
setLabel(String label)
A unique name representing this regular expression.void
setPattern(String pattern)
The regular expression pattern that a string configuration option value with this restriction must match.String
toString()
Returns a string representation of this object; useful for testing and debugging.OptionRestrictionRegex
withLabel(String label)
A unique name representing this regular expression.OptionRestrictionRegex
withPattern(String pattern)
The regular expression pattern that a string configuration option value with this restriction must match.
-
-
-
Method Detail
-
setPattern
public void setPattern(String pattern)
The regular expression pattern that a string configuration option value with this restriction must match.
- Parameters:
pattern
- The regular expression pattern that a string configuration option value with this restriction must match.
-
getPattern
public String getPattern()
The regular expression pattern that a string configuration option value with this restriction must match.
- Returns:
- The regular expression pattern that a string configuration option value with this restriction must match.
-
withPattern
public OptionRestrictionRegex withPattern(String pattern)
The regular expression pattern that a string configuration option value with this restriction must match.
- Parameters:
pattern
- The regular expression pattern that a string configuration option value with this restriction must match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLabel
public void setLabel(String label)
A unique name representing this regular expression.
- Parameters:
label
- A unique name representing this regular expression.
-
getLabel
public String getLabel()
A unique name representing this regular expression.
- Returns:
- A unique name representing this regular expression.
-
withLabel
public OptionRestrictionRegex withLabel(String label)
A unique name representing this regular expression.
- Parameters:
label
- A unique name representing this regular expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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()
-
clone
public OptionRestrictionRegex clone()
-
-