@Generated(value="software.amazon.awssdk:codegen") public final class GetFileResponse extends CodeCommitResponse implements ToCopyableBuilder<GetFileResponse.Builder,GetFileResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
GetFileResponse.Builder |
Modifier and Type | Method and Description |
---|---|
String |
blobId()
The blob ID of the object that represents the file content.
|
static GetFileResponse.Builder |
builder() |
String |
commitId()
The full commit ID of the commit that contains the content returned by GetFile.
|
boolean |
equals(Object obj) |
SdkBytes |
fileContent()
The base-64 encoded binary data object that represents the content of the file.
|
FileModeTypeEnum |
fileMode()
The extrapolated file mode permissions of the blob.
|
String |
fileModeAsString()
The extrapolated file mode permissions of the blob.
|
String |
filePath()
The fully qualified path to the specified file.
|
Long |
fileSize()
The size of the contents of the file, in bytes.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetFileResponse.Builder> |
serializableBuilderClass() |
GetFileResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
responseMetadata
sdkHttpResponse
copy
public String commitId()
The full commit ID of the commit that contains the content returned by GetFile.
public String blobId()
The blob ID of the object that represents the file content.
public String filePath()
The fully qualified path to the specified file. This returns the name and extension of the file.
public 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 below for a full list of supported return values.
If the service returns an enum value that is not available in the current SDK version, fileMode
will
return FileModeTypeEnum.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
fileModeAsString()
.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See below for a full list of supported return values.
FileModeTypeEnum
public 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 below for a full list of supported return values.
If the service returns an enum value that is not available in the current SDK version, fileMode
will
return FileModeTypeEnum.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
fileModeAsString()
.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See below for a full list of supported return values.
FileModeTypeEnum
public Long fileSize()
The size of the contents of the file, in bytes.
public SdkBytes fileContent()
The base-64 encoded binary data object that represents the content of the file.
public GetFileResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetFileResponse.Builder,GetFileResponse>
toBuilder
in class AwsResponse
public static GetFileResponse.Builder builder()
public static Class<? extends GetFileResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.