/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the codecommit-2015-04-13.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CodeCommit.Model
{
///
/// Information about the metadata for a conflict in a merge operation.
///
public partial class ConflictMetadata
{
private bool? _contentConflict;
private bool? _fileModeConflict;
private FileModes _fileModes;
private string _filePath;
private FileSizes _fileSizes;
private IsBinaryFile _isBinaryFile;
private MergeOperations _mergeOperations;
private int? _numberOfConflicts;
private bool? _objectTypeConflict;
private ObjectTypes _objectTypes;
///
/// Gets and sets the property ContentConflict.
///
/// A boolean value indicating whether there are conflicts in the content of a file.
///
///
public bool ContentConflict
{
get { return this._contentConflict.GetValueOrDefault(); }
set { this._contentConflict = value; }
}
// Check to see if ContentConflict property is set
internal bool IsSetContentConflict()
{
return this._contentConflict.HasValue;
}
///
/// Gets and sets the property FileModeConflict.
///
/// A boolean value indicating whether there are conflicts in the file mode of a file.
///
///
public bool FileModeConflict
{
get { return this._fileModeConflict.GetValueOrDefault(); }
set { this._fileModeConflict = value; }
}
// Check to see if FileModeConflict property is set
internal bool IsSetFileModeConflict()
{
return this._fileModeConflict.HasValue;
}
///
/// Gets and sets the property FileModes.
///
/// The file modes of the file in the source, destination, and base of the merge.
///
///
public FileModes FileModes
{
get { return this._fileModes; }
set { this._fileModes = value; }
}
// Check to see if FileModes property is set
internal bool IsSetFileModes()
{
return this._fileModes != null;
}
///
/// Gets and sets the property FilePath.
///
/// The path of the file that contains conflicts.
///
///
public string FilePath
{
get { return this._filePath; }
set { this._filePath = value; }
}
// Check to see if FilePath property is set
internal bool IsSetFilePath()
{
return this._filePath != null;
}
///
/// Gets and sets the property FileSizes.
///
/// The file sizes of the file in the source, destination, and base of the merge.
///
///
public FileSizes FileSizes
{
get { return this._fileSizes; }
set { this._fileSizes = value; }
}
// Check to see if FileSizes property is set
internal bool IsSetFileSizes()
{
return this._fileSizes != null;
}
///
/// Gets and sets the property IsBinaryFile.
///
/// A boolean value (true or false) indicating whether the file is binary or textual in
/// the source, destination, and base of the merge.
///
///
public IsBinaryFile IsBinaryFile
{
get { return this._isBinaryFile; }
set { this._isBinaryFile = value; }
}
// Check to see if IsBinaryFile property is set
internal bool IsSetIsBinaryFile()
{
return this._isBinaryFile != null;
}
///
/// Gets and sets the property MergeOperations.
///
/// Whether an add, modify, or delete operation caused the conflict between the source
/// and destination of the merge.
///
///
public MergeOperations MergeOperations
{
get { return this._mergeOperations; }
set { this._mergeOperations = value; }
}
// Check to see if MergeOperations property is set
internal bool IsSetMergeOperations()
{
return this._mergeOperations != null;
}
///
/// Gets and sets the property NumberOfConflicts.
///
/// The number of conflicts, including both hunk conflicts and metadata conflicts.
///
///
public int NumberOfConflicts
{
get { return this._numberOfConflicts.GetValueOrDefault(); }
set { this._numberOfConflicts = value; }
}
// Check to see if NumberOfConflicts property is set
internal bool IsSetNumberOfConflicts()
{
return this._numberOfConflicts.HasValue;
}
///
/// Gets and sets the property ObjectTypeConflict.
///
/// A boolean value (true or false) indicating whether there are conflicts between the
/// branches in the object type of a file, folder, or submodule.
///
///
public bool ObjectTypeConflict
{
get { return this._objectTypeConflict.GetValueOrDefault(); }
set { this._objectTypeConflict = value; }
}
// Check to see if ObjectTypeConflict property is set
internal bool IsSetObjectTypeConflict()
{
return this._objectTypeConflict.HasValue;
}
///
/// Gets and sets the property ObjectTypes.
///
/// Information about any object type conflicts in a merge operation.
///
///
public ObjectTypes ObjectTypes
{
get { return this._objectTypes; }
set { this._objectTypes = value; }
}
// Check to see if ObjectTypes property is set
internal bool IsSetObjectTypes()
{
return this._objectTypes != null;
}
}
}