public class StreamNameCondition
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.lang.String |
getComparisonOperator()
A comparison operator.
|
java.lang.String |
getComparisonValue()
A value to compare.
|
int |
hashCode() |
void |
setComparisonOperator(ComparisonOperator comparisonOperator)
A comparison operator.
|
void |
setComparisonOperator(java.lang.String comparisonOperator)
A comparison operator.
|
void |
setComparisonValue(java.lang.String comparisonValue)
A value to compare.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StreamNameCondition |
withComparisonOperator(ComparisonOperator comparisonOperator)
A comparison operator.
|
StreamNameCondition |
withComparisonOperator(java.lang.String comparisonOperator)
A comparison operator.
|
StreamNameCondition |
withComparisonValue(java.lang.String comparisonValue)
A value to compare.
|
public java.lang.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.
ComparisonOperator
public void setComparisonOperator(java.lang.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.
ComparisonOperator
public StreamNameCondition withComparisonOperator(java.lang.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.
ComparisonOperator
public 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.
ComparisonOperator
public 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.
ComparisonOperator
public java.lang.String getComparisonValue()
A value to compare.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
A value to compare.
public void setComparisonValue(java.lang.String comparisonValue)
A value to compare.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
comparisonValue
- A value to compare.
public StreamNameCondition withComparisonValue(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.