Class CommonPrefix
java.lang.Object
software.amazon.awssdk.services.s3.model.CommonPrefix
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CommonPrefix.Builder,CommonPrefix>
@Generated("software.amazon.awssdk:codegen")
public final class CommonPrefix
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<CommonPrefix.Builder,CommonPrefix>
Container for all (if there are any) keys between Prefix and the next occurrence of the string specified by a delimiter. CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix. For example, if the prefix is notes/ and the delimiter is a slash (/) as in notes/summer/july, the common prefix is notes/summer/.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CommonPrefix.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringprefix()Container for the specified common prefix.static Class<? extends CommonPrefix.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
prefix
Container for the specified common prefix.
- Returns:
- Container for the specified common prefix.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<CommonPrefix.Builder,CommonPrefix>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-