@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OpsItemFilter extends Object implements Serializable, Cloneable, StructuredPojo
Describes an OpsItem filter.
Constructor and Description |
---|
OpsItemFilter() |
Modifier and Type | Method and Description |
---|---|
OpsItemFilter |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The name of the filter.
|
String |
getOperator()
The operator used by the filter call.
|
List<String> |
getValues()
The filter value.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The name of the filter.
|
void |
setOperator(String operator)
The operator used by the filter call.
|
void |
setValues(Collection<String> values)
The filter value.
|
String |
toString()
Returns a string representation of this object.
|
OpsItemFilter |
withKey(OpsItemFilterKey key)
The name of the filter.
|
OpsItemFilter |
withKey(String key)
The name of the filter.
|
OpsItemFilter |
withOperator(OpsItemFilterOperator operator)
The operator used by the filter call.
|
OpsItemFilter |
withOperator(String operator)
The operator used by the filter call.
|
OpsItemFilter |
withValues(Collection<String> values)
The filter value.
|
OpsItemFilter |
withValues(String... values)
The filter value.
|
public void setKey(String key)
The name of the filter.
key
- The name of the filter.OpsItemFilterKey
public String getKey()
The name of the filter.
OpsItemFilterKey
public OpsItemFilter withKey(String key)
The name of the filter.
key
- The name of the filter.OpsItemFilterKey
public OpsItemFilter withKey(OpsItemFilterKey key)
The name of the filter.
key
- The name of the filter.OpsItemFilterKey
public void setValues(Collection<String> values)
The filter value.
values
- The filter value.public OpsItemFilter withValues(String... values)
The filter value.
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 filter value.public OpsItemFilter withValues(Collection<String> values)
The filter value.
values
- The filter value.public void setOperator(String operator)
The operator used by the filter call.
operator
- The operator used by the filter call.OpsItemFilterOperator
public String getOperator()
The operator used by the filter call.
OpsItemFilterOperator
public OpsItemFilter withOperator(String operator)
The operator used by the filter call.
operator
- The operator used by the filter call.OpsItemFilterOperator
public OpsItemFilter withOperator(OpsItemFilterOperator operator)
The operator used by the filter call.
operator
- The operator used by the filter call.OpsItemFilterOperator
public String toString()
toString
in class Object
Object.toString()
public OpsItemFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.