@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.FilterType
public String getFilterType()
The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
FilterType
public 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.FilterType
public 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.FilterType
public 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 Object
Object.toString()
public FilterRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.