Class PutFileEntry
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.PutFileEntry
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PutFileEntry.Builder,PutFileEntry>
@Generated("software.amazon.awssdk:codegen") public final class PutFileEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PutFileEntry.Builder,PutFileEntry>
Information about a file added or updated as part of a commit.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutFileEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutFileEntry.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)SdkBytesfileContent()The content of the file, if a source file is not specified.FileModeTypeEnumfileMode()The extrapolated file mode permissions for the file.StringfileModeAsString()The extrapolated file mode permissions for the file.StringfilePath()The full path to the file in the repository, including the name of the file.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends PutFileEntry.Builder>serializableBuilderClass()SourceFileSpecifiersourceFile()The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.PutFileEntry.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
-
filePath
public final String filePath()
The full path to the file in the repository, including the name of the file.
- Returns:
- The full path to the file in the repository, including the name of the file.
-
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
-
fileContent
public final SdkBytes fileContent()
The content of the file, if a source file is not specified.
- Returns:
- The content of the file, if a source file is not specified.
-
sourceFile
public final SourceFileSpecifier sourceFile()
The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.
- Returns:
- The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.
-
toBuilder
public PutFileEntry.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutFileEntry.Builder,PutFileEntry>
-
builder
public static PutFileEntry.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutFileEntry.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.
-
-