com.amazonaws.services.ec2.model
Class Filter

java.lang.Object
  extended by com.amazonaws.services.ec2.model.Filter
All Implemented Interfaces:
java.io.Serializable

public class Filter
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Filter()
          Default constructor for a new Filter object.
Filter(java.lang.String name)
          Constructs a new Filter object.
Filter(java.lang.String name, java.util.List<java.lang.String> values)
          Constructs a new Filter object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          The name of the filter.
 java.util.List<java.lang.String> getValues()
          One or more filter values.
 int hashCode()
           
 void setName(java.lang.String name)
          The name of the filter.
 void setValues(java.util.Collection<java.lang.String> values)
          One or more filter values.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Filter withName(java.lang.String name)
          The name of the filter.
 Filter withValues(java.util.Collection<java.lang.String> values)
          One or more filter values.
 Filter withValues(java.lang.String... values)
          One or more filter values.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Filter

public Filter()
Default constructor for a new Filter object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


Filter

public Filter(java.lang.String name,
              java.util.List<java.lang.String> values)
Constructs a new Filter object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
name - The name of the filter.
values - One or more filter values.

Filter

public Filter(java.lang.String name)
Constructs a new Filter object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
name - The name of the filter.
Method Detail

getName

public java.lang.String getName()
The name of the filter.

Returns:
The name of the filter.

setName

public void setName(java.lang.String name)
The name of the filter.

Parameters:
name - The name of the filter.

withName

public Filter withName(java.lang.String name)
The name of the filter.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - The name of the filter.
Returns:
A reference to this updated object so that method calls can be chained together.

getValues

public java.util.List<java.lang.String> getValues()
One or more filter values.

Returns:
One or more filter values.

setValues

public void setValues(java.util.Collection<java.lang.String> values)
One or more filter values.

Parameters:
values - One or more filter values.

withValues

public Filter withValues(java.lang.String... values)
One or more filter values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
values - One or more filter values.
Returns:
A reference to this updated object so that method calls can be chained together.

withValues

public Filter withValues(java.util.Collection<java.lang.String> values)
One or more filter values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
values - One or more filter values.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.