Class File
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.File
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<File.Builder,File>
@Generated("software.amazon.awssdk:codegen") public final class File extends Object implements SdkPojo, Serializable, ToCopyableBuilder<File.Builder,File>
Returns information about a file in a repository.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFile.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringabsolutePath()The fully qualified path to the file in the repository.StringblobId()The blob ID that contains the file information.static File.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()StringrelativePath()The relative path of the file from the folder where the query originated.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends File.Builder>serializableBuilderClass()File.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
-
blobId
public final String blobId()
The blob ID that contains the file information.
- Returns:
- The blob ID that contains the file information.
-
absolutePath
public final String absolutePath()
The fully qualified path to the file in the repository.
- Returns:
- The fully qualified path to the file in the repository.
-
relativePath
public final String relativePath()
The relative path of the file from the folder where the query originated.
- Returns:
- The relative path of the file from the folder where the query originated.
-
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 File.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<File.Builder,File>
-
builder
public static File.Builder builder()
-
serializableBuilderClass
public static Class<? extends File.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
-
-