@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SavingsPlanOfferingFilterElement extends Object implements Serializable, Cloneable, StructuredPojo
Information about a Savings Plan offering filter.
Constructor and Description |
---|
SavingsPlanOfferingFilterElement() |
Modifier and Type | Method and Description |
---|---|
SavingsPlanOfferingFilterElement |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The filter name.
|
List<String> |
getValues()
The filter values.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The filter name.
|
void |
setValues(Collection<String> values)
The filter values.
|
String |
toString()
Returns a string representation of this object.
|
SavingsPlanOfferingFilterElement |
withName(SavingsPlanOfferingFilterAttribute name)
The filter name.
|
SavingsPlanOfferingFilterElement |
withName(String name)
The filter name.
|
SavingsPlanOfferingFilterElement |
withValues(Collection<String> values)
The filter values.
|
SavingsPlanOfferingFilterElement |
withValues(String... values)
The filter values.
|
public void setName(String name)
The filter name.
name
- The filter name.SavingsPlanOfferingFilterAttribute
public String getName()
The filter name.
SavingsPlanOfferingFilterAttribute
public SavingsPlanOfferingFilterElement withName(String name)
The filter name.
name
- The filter name.SavingsPlanOfferingFilterAttribute
public SavingsPlanOfferingFilterElement withName(SavingsPlanOfferingFilterAttribute name)
The filter name.
name
- The filter name.SavingsPlanOfferingFilterAttribute
public void setValues(Collection<String> values)
The filter values.
values
- The filter values.public SavingsPlanOfferingFilterElement withValues(String... values)
The filter values.
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 values.public SavingsPlanOfferingFilterElement withValues(Collection<String> values)
The filter values.
values
- The filter values.public String toString()
toString
in class Object
Object.toString()
public SavingsPlanOfferingFilterElement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.