Class GetFileResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.codecommit.model.CodeCommitResponse
-
- software.amazon.awssdk.services.codecommit.model.GetFileResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetFileResponse.Builder,GetFileResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetFileResponse extends CodeCommitResponse implements ToCopyableBuilder<GetFileResponse.Builder,GetFileResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetFileResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringblobId()The blob ID of the object that represents the file content.static GetFileResponse.Builderbuilder()StringcommitId()The full commit ID of the commit that contains the content returned by GetFile.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)SdkBytesfileContent()The base-64 encoded binary data object that represents the content of the file.FileModeTypeEnumfileMode()The extrapolated file mode permissions of the blob.StringfileModeAsString()The extrapolated file mode permissions of the blob.StringfilePath()The fully qualified path to the specified file.LongfileSize()The size of the contents of the file, in bytes.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends GetFileResponse.Builder>serializableBuilderClass()GetFileResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.codecommit.model.CodeCommitResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
commitId
public final String commitId()
The full commit ID of the commit that contains the content returned by GetFile.
- Returns:
- The full commit ID of the commit that contains the content returned by GetFile.
-
blobId
public final String blobId()
The blob ID of the object that represents the file content.
- Returns:
- The blob ID of the object that represents the file content.
-
filePath
public final String filePath()
The fully qualified path to the specified file. Returns the name and extension of the file.
- Returns:
- The fully qualified path to the specified file. Returns the name and extension of the file.
-
fileMode
public final FileModeTypeEnum fileMode()
The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.
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 of the blob. Valid values include strings such as EXECUTABLE and
not numeric values.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.
- See Also:
FileModeTypeEnum
-
fileModeAsString
public final String fileModeAsString()
The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.
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 of the blob. Valid values include strings such as EXECUTABLE and
not numeric values.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.
- See Also:
FileModeTypeEnum
-
fileSize
public final Long fileSize()
The size of the contents of the file, in bytes.
- Returns:
- The size of the contents of the file, in bytes.
-
fileContent
public final SdkBytes fileContent()
The base-64 encoded binary data object that represents the content of the file.
- Returns:
- The base-64 encoded binary data object that represents the content of the file.
-
toBuilder
public GetFileResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetFileResponse.Builder,GetFileResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetFileResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetFileResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-