Class ConflictResolution
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.ConflictResolution
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ConflictResolution.Builder,ConflictResolution>
@Generated("software.amazon.awssdk:codegen") public final class ConflictResolution extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ConflictResolution.Builder,ConflictResolution>
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConflictResolution.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConflictResolution.Builderbuilder()List<DeleteFileEntry>deleteFiles()Files to be deleted as part of the merge conflict resolution.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasDeleteFiles()For responses, this returns true if the service returned a value for the DeleteFiles property.inthashCode()booleanhasReplaceContents()For responses, this returns true if the service returned a value for the ReplaceContents property.booleanhasSetFileModes()For responses, this returns true if the service returned a value for the SetFileModes property.List<ReplaceContentEntry>replaceContents()Files to have content replaced as part of the merge conflict resolution.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ConflictResolution.Builder>serializableBuilderClass()List<SetFileModeEntry>setFileModes()File modes that are set as part of the merge conflict resolution.ConflictResolution.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
-
hasReplaceContents
public final boolean hasReplaceContents()
For responses, this returns true if the service returned a value for the ReplaceContents property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
replaceContents
public final List<ReplaceContentEntry> replaceContents()
Files to have content replaced as part of the merge conflict resolution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasReplaceContents()method.- Returns:
- Files to have content replaced as part of the merge conflict resolution.
-
hasDeleteFiles
public final boolean hasDeleteFiles()
For responses, this returns true if the service returned a value for the DeleteFiles property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
deleteFiles
public final List<DeleteFileEntry> deleteFiles()
Files to be deleted as part of the merge conflict resolution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasDeleteFiles()method.- Returns:
- Files to be deleted as part of the merge conflict resolution.
-
hasSetFileModes
public final boolean hasSetFileModes()
For responses, this returns true if the service returned a value for the SetFileModes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
setFileModes
public final List<SetFileModeEntry> setFileModes()
File modes that are set as part of the merge conflict resolution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSetFileModes()method.- Returns:
- File modes that are set as part of the merge conflict resolution.
-
toBuilder
public ConflictResolution.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ConflictResolution.Builder,ConflictResolution>
-
builder
public static ConflictResolution.Builder builder()
-
serializableBuilderClass
public static Class<? extends ConflictResolution.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-