Class FileMetadata
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.FileMetadata
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FileMetadata.Builder,FileMetadata>
@Generated("software.amazon.awssdk:codegen") public final class FileMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FileMetadata.Builder,FileMetadata>
A file to be added, updated, or deleted as part of a commit.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFileMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringabsolutePath()The full path to the file to be added or updated, including the name of the file.StringblobId()The blob ID that contains the file information.static FileMetadata.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FileModeTypeEnumfileMode()The extrapolated file mode permissions for the file.StringfileModeAsString()The extrapolated file mode permissions for the file.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends FileMetadata.Builder>serializableBuilderClass()FileMetadata.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
absolutePath
public final String absolutePath()
The full path to the file to be added or updated, including the name of the file.
- Returns:
- The full path to the file to be added or updated, including the name of the file.
-
blobId
public final String blobId()
The blob ID that contains the file information.
- Returns:
- The blob ID that contains the file information.
-
fileMode
public final FileModeTypeEnum fileMode()
The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
If the service returns an enum value that is not available in the current SDK version,
fileModewill returnFileModeTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfileModeAsString().- Returns:
- The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
- See Also:
FileModeTypeEnum
-
fileModeAsString
public final String fileModeAsString()
The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
If the service returns an enum value that is not available in the current SDK version,
fileModewill returnFileModeTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfileModeAsString().- Returns:
- The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
- See Also:
FileModeTypeEnum
-
toBuilder
public FileMetadata.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FileMetadata.Builder,FileMetadata>
-
builder
public static FileMetadata.Builder builder()
-
serializableBuilderClass
public static Class<? extends FileMetadata.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-