public class StreamNameCondition extends Object implements Serializable
Specifies the condition that streams must satisfy to be returned when you
list streams (see the ListStreams API). A condition has a
comparison operation and a value. Currently, you can specify only the
BEGINS_WITH operator, which finds streams whose names start with
a given prefix.
| Constructor and Description |
|---|
StreamNameCondition() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getComparisonOperator()
A comparison operator.
|
String |
getComparisonValue()
A value to compare.
|
int |
hashCode() |
void |
setComparisonOperator(ComparisonOperator comparisonOperator)
A comparison operator.
|
void |
setComparisonOperator(String comparisonOperator)
A comparison operator.
|
void |
setComparisonValue(String comparisonValue)
A value to compare.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StreamNameCondition |
withComparisonOperator(ComparisonOperator comparisonOperator)
A comparison operator.
|
StreamNameCondition |
withComparisonOperator(String comparisonOperator)
A comparison operator.
|
StreamNameCondition |
withComparisonValue(String comparisonValue)
A value to compare.
|
public String getComparisonOperator()
A comparison operator. Currently, you can specify only the
BEGINS_WITH operator, which finds streams whose names start
with a given prefix.
Constraints:
Allowed Values: BEGINS_WITH
A comparison operator. Currently, you can specify only the
BEGINS_WITH operator, which finds streams whose
names start with a given prefix.
ComparisonOperatorpublic void setComparisonOperator(String comparisonOperator)
A comparison operator. Currently, you can specify only the
BEGINS_WITH operator, which finds streams whose names start
with a given prefix.
Constraints:
Allowed Values: BEGINS_WITH
comparisonOperator -
A comparison operator. Currently, you can specify only the
BEGINS_WITH operator, which finds streams whose
names start with a given prefix.
ComparisonOperatorpublic StreamNameCondition withComparisonOperator(String comparisonOperator)
A comparison operator. Currently, you can specify only the
BEGINS_WITH operator, which finds streams whose names start
with a given prefix.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: BEGINS_WITH
comparisonOperator -
A comparison operator. Currently, you can specify only the
BEGINS_WITH operator, which finds streams whose
names start with a given prefix.
ComparisonOperatorpublic void setComparisonOperator(ComparisonOperator comparisonOperator)
A comparison operator. Currently, you can specify only the
BEGINS_WITH operator, which finds streams whose names start
with a given prefix.
Constraints:
Allowed Values: BEGINS_WITH
comparisonOperator -
A comparison operator. Currently, you can specify only the
BEGINS_WITH operator, which finds streams whose
names start with a given prefix.
ComparisonOperatorpublic StreamNameCondition withComparisonOperator(ComparisonOperator comparisonOperator)
A comparison operator. Currently, you can specify only the
BEGINS_WITH operator, which finds streams whose names start
with a given prefix.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: BEGINS_WITH
comparisonOperator -
A comparison operator. Currently, you can specify only the
BEGINS_WITH operator, which finds streams whose
names start with a given prefix.
ComparisonOperatorpublic String getComparisonValue()
A value to compare.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
A value to compare.
public void setComparisonValue(String comparisonValue)
A value to compare.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
comparisonValue - A value to compare.
public StreamNameCondition withComparisonValue(String comparisonValue)
A value to compare.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
comparisonValue - A value to compare.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.