Class ReplaceContentEntry
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.ReplaceContentEntry
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReplaceContentEntry.Builder,ReplaceContentEntry>
@Generated("software.amazon.awssdk:codegen") public final class ReplaceContentEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReplaceContentEntry.Builder,ReplaceContentEntry>
Information about a replacement content entry in the conflict of a merge or pull request operation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReplaceContentEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReplaceContentEntry.Builderbuilder()SdkBytescontent()The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FileModeTypeEnumfileMode()The file mode to apply during conflict resoltion.StringfileModeAsString()The file mode to apply during conflict resoltion.StringfilePath()The path of the conflicting file.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ReplacementTypeEnumreplacementType()The replacement type to use when determining how to resolve the conflict.StringreplacementTypeAsString()The replacement type to use when determining how to resolve the conflict.List<SdkField<?>>sdkFields()static Class<? extends ReplaceContentEntry.Builder>serializableBuilderClass()ReplaceContentEntry.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 path of the conflicting file.
- Returns:
- The path of the conflicting file.
-
replacementType
public final ReplacementTypeEnum replacementType()
The replacement type to use when determining how to resolve the conflict.
If the service returns an enum value that is not available in the current SDK version,
replacementTypewill returnReplacementTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreplacementTypeAsString().- Returns:
- The replacement type to use when determining how to resolve the conflict.
- See Also:
ReplacementTypeEnum
-
replacementTypeAsString
public final String replacementTypeAsString()
The replacement type to use when determining how to resolve the conflict.
If the service returns an enum value that is not available in the current SDK version,
replacementTypewill returnReplacementTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreplacementTypeAsString().- Returns:
- The replacement type to use when determining how to resolve the conflict.
- See Also:
ReplacementTypeEnum
-
content
public final SdkBytes content()
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
- Returns:
- The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
-
fileMode
public final FileModeTypeEnum fileMode()
The file mode to apply during conflict resoltion.
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 file mode to apply during conflict resoltion.
- See Also:
FileModeTypeEnum
-
fileModeAsString
public final String fileModeAsString()
The file mode to apply during conflict resoltion.
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 file mode to apply during conflict resoltion.
- See Also:
FileModeTypeEnum
-
toBuilder
public ReplaceContentEntry.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReplaceContentEntry.Builder,ReplaceContentEntry>
-
builder
public static ReplaceContentEntry.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReplaceContentEntry.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.
-
-