@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OpsItemEventFilter extends Object implements Serializable, Cloneable, StructuredPojo
Describes a filter for a specific list of OpsItem events. You can filter event information by using tags. You specify tags by using a key-value pair mapping.
Constructor and Description |
---|
OpsItemEventFilter() |
Modifier and Type | Method and Description |
---|---|
OpsItemEventFilter |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The name of the filter key.
|
String |
getOperator()
The operator used by the filter call.
|
List<String> |
getValues()
The values for the filter, consisting of one or more OpsItem IDs.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The name of the filter key.
|
void |
setOperator(String operator)
The operator used by the filter call.
|
void |
setValues(Collection<String> values)
The values for the filter, consisting of one or more OpsItem IDs.
|
String |
toString()
Returns a string representation of this object.
|
OpsItemEventFilter |
withKey(OpsItemEventFilterKey key)
The name of the filter key.
|
OpsItemEventFilter |
withKey(String key)
The name of the filter key.
|
OpsItemEventFilter |
withOperator(OpsItemEventFilterOperator operator)
The operator used by the filter call.
|
OpsItemEventFilter |
withOperator(String operator)
The operator used by the filter call.
|
OpsItemEventFilter |
withValues(Collection<String> values)
The values for the filter, consisting of one or more OpsItem IDs.
|
OpsItemEventFilter |
withValues(String... values)
The values for the filter, consisting of one or more OpsItem IDs.
|
public void setKey(String key)
The name of the filter key. Currently, the only supported value is OpsItemId
.
key
- The name of the filter key. Currently, the only supported value is OpsItemId
.OpsItemEventFilterKey
public String getKey()
The name of the filter key. Currently, the only supported value is OpsItemId
.
OpsItemId
.OpsItemEventFilterKey
public OpsItemEventFilter withKey(String key)
The name of the filter key. Currently, the only supported value is OpsItemId
.
key
- The name of the filter key. Currently, the only supported value is OpsItemId
.OpsItemEventFilterKey
public OpsItemEventFilter withKey(OpsItemEventFilterKey key)
The name of the filter key. Currently, the only supported value is OpsItemId
.
key
- The name of the filter key. Currently, the only supported value is OpsItemId
.OpsItemEventFilterKey
public List<String> getValues()
The values for the filter, consisting of one or more OpsItem IDs.
public void setValues(Collection<String> values)
The values for the filter, consisting of one or more OpsItem IDs.
values
- The values for the filter, consisting of one or more OpsItem IDs.public OpsItemEventFilter withValues(String... values)
The values for the filter, consisting of one or more OpsItem IDs.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- The values for the filter, consisting of one or more OpsItem IDs.public OpsItemEventFilter withValues(Collection<String> values)
The values for the filter, consisting of one or more OpsItem IDs.
values
- The values for the filter, consisting of one or more OpsItem IDs.public void setOperator(String operator)
The operator used by the filter call. Currently, the only supported value is Equal
.
operator
- The operator used by the filter call. Currently, the only supported value is Equal
.OpsItemEventFilterOperator
public String getOperator()
The operator used by the filter call. Currently, the only supported value is Equal
.
Equal
.OpsItemEventFilterOperator
public OpsItemEventFilter withOperator(String operator)
The operator used by the filter call. Currently, the only supported value is Equal
.
operator
- The operator used by the filter call. Currently, the only supported value is Equal
.OpsItemEventFilterOperator
public OpsItemEventFilter withOperator(OpsItemEventFilterOperator operator)
The operator used by the filter call. Currently, the only supported value is Equal
.
operator
- The operator used by the filter call. Currently, the only supported value is Equal
.OpsItemEventFilterOperator
public String toString()
toString
in class Object
Object.toString()
public OpsItemEventFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.