@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SnapshotFilter extends Object implements Serializable, Cloneable, StructuredPojo
A filter used to restrict the results of DescribeSnapshots calls. You can use multiple filters to return
results that meet all applied filter requirements.
| Constructor and Description |
|---|
SnapshotFilter() |
| Modifier and Type | Method and Description |
|---|---|
SnapshotFilter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the filter to use.
|
List<String> |
getValues()
The
file-system-id or volume-id that you are filtering for. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setName(String name)
The name of the filter to use.
|
void |
setValues(Collection<String> values)
The
file-system-id or volume-id that you are filtering for. |
String |
toString()
Returns a string representation of this object.
|
SnapshotFilter |
withName(SnapshotFilterName name)
The name of the filter to use.
|
SnapshotFilter |
withName(String name)
The name of the filter to use.
|
SnapshotFilter |
withValues(Collection<String> values)
The
file-system-id or volume-id that you are filtering for. |
SnapshotFilter |
withValues(String... values)
The
file-system-id or volume-id that you are filtering for. |
public void setName(String name)
The name of the filter to use. You can filter by the file-system-id or by volume-id.
name - The name of the filter to use. You can filter by the file-system-id or by
volume-id.SnapshotFilterNamepublic String getName()
The name of the filter to use. You can filter by the file-system-id or by volume-id.
file-system-id or by
volume-id.SnapshotFilterNamepublic SnapshotFilter withName(String name)
The name of the filter to use. You can filter by the file-system-id or by volume-id.
name - The name of the filter to use. You can filter by the file-system-id or by
volume-id.SnapshotFilterNamepublic SnapshotFilter withName(SnapshotFilterName name)
The name of the filter to use. You can filter by the file-system-id or by volume-id.
name - The name of the filter to use. You can filter by the file-system-id or by
volume-id.SnapshotFilterNamepublic List<String> getValues()
The file-system-id or volume-id that you are filtering for.
file-system-id or volume-id that you are filtering for.public void setValues(Collection<String> values)
The file-system-id or volume-id that you are filtering for.
values - The file-system-id or volume-id that you are filtering for.public SnapshotFilter withValues(String... values)
The file-system-id or volume-id that you are filtering for.
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 file-system-id or volume-id that you are filtering for.public SnapshotFilter withValues(Collection<String> values)
The file-system-id or volume-id that you are filtering for.
values - The file-system-id or volume-id that you are filtering for.public String toString()
toString in class ObjectObject.toString()public SnapshotFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2025. All rights reserved.