/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codecommit.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ConflictResolution implements Serializable, Cloneable, StructuredPojo { /** ** Files to have content replaced as part of the merge conflict resolution. *
*/ private java.util.List* Files to be deleted as part of the merge conflict resolution. *
*/ private java.util.List* File modes that are set as part of the merge conflict resolution. *
*/ private java.util.List* Files to have content replaced as part of the merge conflict resolution. *
* * @return Files to have content replaced as part of the merge conflict resolution. */ public java.util.List* Files to have content replaced as part of the merge conflict resolution. *
* * @param replaceContents * Files to have content replaced as part of the merge conflict resolution. */ public void setReplaceContents(java.util.Collection* Files to have content replaced as part of the merge conflict resolution. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReplaceContents(java.util.Collection)} or {@link #withReplaceContents(java.util.Collection)} if you * want to override the existing values. *
* * @param replaceContents * Files to have content replaced as part of the merge conflict resolution. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictResolution withReplaceContents(ReplaceContentEntry... replaceContents) { if (this.replaceContents == null) { setReplaceContents(new java.util.ArrayList* Files to have content replaced as part of the merge conflict resolution. *
* * @param replaceContents * Files to have content replaced as part of the merge conflict resolution. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictResolution withReplaceContents(java.util.Collection* Files to be deleted as part of the merge conflict resolution. *
* * @return Files to be deleted as part of the merge conflict resolution. */ public java.util.List* Files to be deleted as part of the merge conflict resolution. *
* * @param deleteFiles * Files to be deleted as part of the merge conflict resolution. */ public void setDeleteFiles(java.util.Collection* Files to be deleted as part of the merge conflict resolution. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDeleteFiles(java.util.Collection)} or {@link #withDeleteFiles(java.util.Collection)} if you want to * override the existing values. *
* * @param deleteFiles * Files to be deleted as part of the merge conflict resolution. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictResolution withDeleteFiles(DeleteFileEntry... deleteFiles) { if (this.deleteFiles == null) { setDeleteFiles(new java.util.ArrayList* Files to be deleted as part of the merge conflict resolution. *
* * @param deleteFiles * Files to be deleted as part of the merge conflict resolution. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictResolution withDeleteFiles(java.util.Collection* File modes that are set as part of the merge conflict resolution. *
* * @return File modes that are set as part of the merge conflict resolution. */ public java.util.List* File modes that are set as part of the merge conflict resolution. *
* * @param setFileModes * File modes that are set as part of the merge conflict resolution. */ public void setSetFileModes(java.util.Collection* File modes that are set as part of the merge conflict resolution. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSetFileModes(java.util.Collection)} or {@link #withSetFileModes(java.util.Collection)} if you want to * override the existing values. *
* * @param setFileModes * File modes that are set as part of the merge conflict resolution. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictResolution withSetFileModes(SetFileModeEntry... setFileModes) { if (this.setFileModes == null) { setSetFileModes(new java.util.ArrayList* File modes that are set as part of the merge conflict resolution. *
* * @param setFileModes * File modes that are set as part of the merge conflict resolution. * @return Returns a reference to this object so that method calls can be chained together. */ public ConflictResolution withSetFileModes(java.util.Collection