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 Summary
Enum Constants Enum Constant Description Discard
FetchAndMerge
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncRepositoryRequest.SyncMergeStrategy
create(String key)
String
getValue()
static SyncRepositoryRequest.SyncMergeStrategy
valueOf(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
-
FetchAndMerge
public static final SyncRepositoryRequest.SyncMergeStrategy FetchAndMerge
-
Discard
public static final SyncRepositoryRequest.SyncMergeStrategy Discard
-
-
Method Detail
-
values
public 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
-
valueOf
public 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 nameNullPointerException
- if the argument is null
-
create
public static SyncRepositoryRequest.SyncMergeStrategy create(String key)
-
-