@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyNameConstraint extends Object implements Serializable, Cloneable
If provided, the generated manifest includes only source bucket objects whose object keys match the string
constraints specified for MatchAnyPrefix
, MatchAnySuffix
, and
MatchAnySubstring
.
Constructor and Description |
---|
KeyNameConstraint() |
Modifier and Type | Method and Description |
---|---|
KeyNameConstraint |
clone() |
boolean |
equals(Object obj) |
List<String> |
getMatchAnyPrefix()
If provided, the generated manifest includes objects where the specified string appears at the start of the
object key string.
|
List<String> |
getMatchAnySubstring()
If provided, the generated manifest includes objects where the specified string appears anywhere within the
object key string.
|
List<String> |
getMatchAnySuffix()
If provided, the generated manifest includes objects where the specified string appears at the end of the object
key string.
|
int |
hashCode() |
void |
setMatchAnyPrefix(Collection<String> matchAnyPrefix)
If provided, the generated manifest includes objects where the specified string appears at the start of the
object key string.
|
void |
setMatchAnySubstring(Collection<String> matchAnySubstring)
If provided, the generated manifest includes objects where the specified string appears anywhere within the
object key string.
|
void |
setMatchAnySuffix(Collection<String> matchAnySuffix)
If provided, the generated manifest includes objects where the specified string appears at the end of the object
key string.
|
String |
toString()
Returns a string representation of this object.
|
KeyNameConstraint |
withMatchAnyPrefix(Collection<String> matchAnyPrefix)
If provided, the generated manifest includes objects where the specified string appears at the start of the
object key string.
|
KeyNameConstraint |
withMatchAnyPrefix(String... matchAnyPrefix)
If provided, the generated manifest includes objects where the specified string appears at the start of the
object key string.
|
KeyNameConstraint |
withMatchAnySubstring(Collection<String> matchAnySubstring)
If provided, the generated manifest includes objects where the specified string appears anywhere within the
object key string.
|
KeyNameConstraint |
withMatchAnySubstring(String... matchAnySubstring)
If provided, the generated manifest includes objects where the specified string appears anywhere within the
object key string.
|
KeyNameConstraint |
withMatchAnySuffix(Collection<String> matchAnySuffix)
If provided, the generated manifest includes objects where the specified string appears at the end of the object
key string.
|
KeyNameConstraint |
withMatchAnySuffix(String... matchAnySuffix)
If provided, the generated manifest includes objects where the specified string appears at the end of the object
key string.
|
public List<String> getMatchAnyPrefix()
If provided, the generated manifest includes objects where the specified string appears at the start of the object key string.
public void setMatchAnyPrefix(Collection<String> matchAnyPrefix)
If provided, the generated manifest includes objects where the specified string appears at the start of the object key string.
matchAnyPrefix
- If provided, the generated manifest includes objects where the specified string appears at the start of
the object key string.public KeyNameConstraint withMatchAnyPrefix(String... matchAnyPrefix)
If provided, the generated manifest includes objects where the specified string appears at the start of the object key string.
NOTE: This method appends the values to the existing list (if any). Use
setMatchAnyPrefix(java.util.Collection)
or withMatchAnyPrefix(java.util.Collection)
if you want
to override the existing values.
matchAnyPrefix
- If provided, the generated manifest includes objects where the specified string appears at the start of
the object key string.public KeyNameConstraint withMatchAnyPrefix(Collection<String> matchAnyPrefix)
If provided, the generated manifest includes objects where the specified string appears at the start of the object key string.
matchAnyPrefix
- If provided, the generated manifest includes objects where the specified string appears at the start of
the object key string.public List<String> getMatchAnySuffix()
If provided, the generated manifest includes objects where the specified string appears at the end of the object key string.
public void setMatchAnySuffix(Collection<String> matchAnySuffix)
If provided, the generated manifest includes objects where the specified string appears at the end of the object key string.
matchAnySuffix
- If provided, the generated manifest includes objects where the specified string appears at the end of the
object key string.public KeyNameConstraint withMatchAnySuffix(String... matchAnySuffix)
If provided, the generated manifest includes objects where the specified string appears at the end of the object key string.
NOTE: This method appends the values to the existing list (if any). Use
setMatchAnySuffix(java.util.Collection)
or withMatchAnySuffix(java.util.Collection)
if you want
to override the existing values.
matchAnySuffix
- If provided, the generated manifest includes objects where the specified string appears at the end of the
object key string.public KeyNameConstraint withMatchAnySuffix(Collection<String> matchAnySuffix)
If provided, the generated manifest includes objects where the specified string appears at the end of the object key string.
matchAnySuffix
- If provided, the generated manifest includes objects where the specified string appears at the end of the
object key string.public List<String> getMatchAnySubstring()
If provided, the generated manifest includes objects where the specified string appears anywhere within the object key string.
public void setMatchAnySubstring(Collection<String> matchAnySubstring)
If provided, the generated manifest includes objects where the specified string appears anywhere within the object key string.
matchAnySubstring
- If provided, the generated manifest includes objects where the specified string appears anywhere within
the object key string.public KeyNameConstraint withMatchAnySubstring(String... matchAnySubstring)
If provided, the generated manifest includes objects where the specified string appears anywhere within the object key string.
NOTE: This method appends the values to the existing list (if any). Use
setMatchAnySubstring(java.util.Collection)
or withMatchAnySubstring(java.util.Collection)
if
you want to override the existing values.
matchAnySubstring
- If provided, the generated manifest includes objects where the specified string appears anywhere within
the object key string.public KeyNameConstraint withMatchAnySubstring(Collection<String> matchAnySubstring)
If provided, the generated manifest includes objects where the specified string appears anywhere within the object key string.
matchAnySubstring
- If provided, the generated manifest includes objects where the specified string appears anywhere within
the object key string.public String toString()
toString
in class Object
Object.toString()
public KeyNameConstraint clone()