Class GetFileRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.codecommit.model.CodeCommitRequest
-
- software.amazon.awssdk.services.codecommit.model.GetFileRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetFileRequest.Builder,GetFileRequest>
@Generated("software.amazon.awssdk:codegen") public final class GetFileRequest extends CodeCommitRequest implements ToCopyableBuilder<GetFileRequest.Builder,GetFileRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetFileRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetFileRequest.Builderbuilder()StringcommitSpecifier()The fully quaified reference that identifies the commit that contains the file.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfilePath()The fully qualified path to the file, including the full name and extension of the file.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringrepositoryName()The name of the repository that contains the file.List<SdkField<?>>sdkFields()static Class<? extends GetFileRequest.Builder>serializableBuilderClass()GetFileRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
repositoryName
public final String repositoryName()
The name of the repository that contains the file.
- Returns:
- The name of the repository that contains the file.
-
commitSpecifier
public final String commitSpecifier()
The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/main. If none is provided, the head commit is used.
- Returns:
- The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/main. If none is provided, the head commit is used.
-
filePath
public final String filePath()
The fully qualified path to the file, including the full name and extension of the file. For example, /examples/file.md is the fully qualified path to a file named file.md in a folder named examples.
- Returns:
- The fully qualified path to the file, including the full name and extension of the file. For example, /examples/file.md is the fully qualified path to a file named file.md in a folder named examples.
-
toBuilder
public GetFileRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetFileRequest.Builder,GetFileRequest>- Specified by:
toBuilderin classCodeCommitRequest
-
builder
public static GetFileRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetFileRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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 classSdkRequest
-
-