@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FilterRule extends Object implements Serializable, Cloneable, StructuredPojo
Specifies which files, folders, and objects to include or exclude when transferring files from source to destination.
| Constructor and Description |
|---|
FilterRule() |
| Modifier and Type | Method and Description |
|---|---|
FilterRule |
clone() |
boolean |
equals(Object obj) |
String |
getFilterType()
The type of filter rule to apply.
|
String |
getValue()
A single filter string that consists of the patterns to include or exclude.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFilterType(String filterType)
The type of filter rule to apply.
|
void |
setValue(String value)
A single filter string that consists of the patterns to include or exclude.
|
String |
toString()
Returns a string representation of this object.
|
FilterRule |
withFilterType(FilterType filterType)
The type of filter rule to apply.
|
FilterRule |
withFilterType(String filterType)
The type of filter rule to apply.
|
FilterRule |
withValue(String value)
A single filter string that consists of the patterns to include or exclude.
|
public void setFilterType(String filterType)
The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
filterType - The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.FilterTypepublic String getFilterType()
The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
FilterTypepublic FilterRule withFilterType(String filterType)
The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
filterType - The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.FilterTypepublic FilterRule withFilterType(FilterType filterType)
The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
filterType - The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.FilterTypepublic void setValue(String value)
A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|"
(that is, a pipe), for example: /folder1|/folder2
value - A single filter string that consists of the patterns to include or exclude. The patterns are delimited by
"|" (that is, a pipe), for example: /folder1|/folder2
public String getValue()
A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|"
(that is, a pipe), for example: /folder1|/folder2
/folder1|/folder2
public FilterRule withValue(String value)
A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|"
(that is, a pipe), for example: /folder1|/folder2
value - A single filter string that consists of the patterns to include or exclude. The patterns are delimited by
"|" (that is, a pipe), for example: /folder1|/folder2
public String toString()
toString in class ObjectObject.toString()public FilterRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.