Package com.oracle.bmc.devops.requests
Enum SyncRepositoryRequest.SyncMergeStrategy
- java.lang.Object
- 
- java.lang.Enum<SyncRepositoryRequest.SyncMergeStrategy>
- 
- com.oracle.bmc.devops.requests.SyncRepositoryRequest.SyncMergeStrategy
 
 
- 
- All Implemented Interfaces:
- BmcEnum,- Serializable,- Comparable<SyncRepositoryRequest.SyncMergeStrategy>
 - Enclosing class:
- SyncRepositoryRequest
 
 public static enum SyncRepositoryRequest.SyncMergeStrategy extends Enum<SyncRepositoryRequest.SyncMergeStrategy> implements BmcEnum If fetch and merge is passed in, the changes from the upstream will be fetched and merged into the destination branch.If discard is passed in, the changes in the fork will be overwritten with the changes brought in from the upstream. 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description DiscardFetchAndMerge
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncRepositoryRequest.SyncMergeStrategycreate(String key)StringgetValue()static SyncRepositoryRequest.SyncMergeStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static SyncRepositoryRequest.SyncMergeStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
FetchAndMergepublic static final SyncRepositoryRequest.SyncMergeStrategy FetchAndMerge 
 - 
Discardpublic static final SyncRepositoryRequest.SyncMergeStrategy Discard 
 
- 
 - 
Method Detail- 
valuespublic static SyncRepositoryRequest.SyncMergeStrategy[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SyncRepositoryRequest.SyncMergeStrategy c : SyncRepositoryRequest.SyncMergeStrategy.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static SyncRepositoryRequest.SyncMergeStrategy valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
createpublic static SyncRepositoryRequest.SyncMergeStrategy create(String key) 
 
- 
 
-