Class SyncRepositoryRequest
- java.lang.Object
- 
- com.oracle.bmc.requests.BmcRequest<SyncRepositoryDetails>
- 
- com.oracle.bmc.devops.requests.SyncRepositoryRequest
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20210630") public class SyncRepositoryRequest extends BmcRequest<SyncRepositoryDetails>Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/devops/SyncRepositoryExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use SyncRepositoryRequest. 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSyncRepositoryRequest.Builderstatic classSyncRepositoryRequest.SyncMergeStrategyIf fetch and merge is passed in, the changes from the upstream will be fetched and merged into the destination branch.
 - 
Constructor SummaryConstructors Constructor Description SyncRepositoryRequest()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncRepositoryRequest.Builderbuilder()Return a new builder for this request object.booleanequals(Object o)Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.SyncRepositoryDetailsgetBody$()Alternative accessor for the body parameter.StringgetIfMatch()For optimistic concurrency control.StringgetOpcRequestId()Unique Oracle-assigned identifier for the request.StringgetOpcRetryToken()A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.StringgetRepositoryId()Unique repository identifier.SyncRepositoryRequest.SyncMergeStrategygetSyncMergeStrategy()If fetch and merge is passed in, the changes from the upstream will be fetched and merged into the destination branch.SyncRepositoryDetailsgetSyncRepositoryDetails()Details required for syncing a repository with its upstream.inthashCode()Uses getInvocationCallback and getRetryConfiguration to generate a hash.SyncRepositoryRequest.BuildertoBuilder()Return an instance ofSyncRepositoryRequest.Builderthat allows you to modify request properties.StringtoString()- 
Methods inherited from class com.oracle.bmc.requests.BmcRequestgetInvocationCallback, getRetryConfiguration, setInvocationCallback, setRetryConfiguration, supportsExpect100Continue
 
- 
 
- 
- 
- 
Method Detail- 
getRepositoryIdpublic String getRepositoryId() Unique repository identifier.
 - 
getSyncMergeStrategypublic SyncRepositoryRequest.SyncMergeStrategy getSyncMergeStrategy() 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. 
 - 
getSyncRepositoryDetailspublic SyncRepositoryDetails getSyncRepositoryDetails() Details required for syncing a repository with its upstream.
 - 
getIfMatchpublic String getIfMatch() For optimistic concurrency control.In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value. 
 - 
getOpcRequestIdpublic String getOpcRequestId() Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, provide the request ID. 
 - 
getOpcRetryTokenpublic String getOpcRetryToken() A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.Retry tokens expire after 24 hours, but can be invalidated earlier due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. 
 - 
getBody$public SyncRepositoryDetails getBody$() Alternative accessor for the body parameter.- Overrides:
- getBody$in class- BmcRequest<SyncRepositoryDetails>
- Returns:
- body parameter
 
 - 
toBuilderpublic SyncRepositoryRequest.Builder toBuilder() Return an instance ofSyncRepositoryRequest.Builderthat allows you to modify request properties.- Returns:
- instance of SyncRepositoryRequest.Builderthat allows you to modify request properties.
 
 - 
builderpublic static SyncRepositoryRequest.Builder builder() Return a new builder for this request object.- Returns:
- builder for the request object
 
 - 
equalspublic boolean equals(Object o) Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.- Overrides:
- equalsin class- BmcRequest<SyncRepositoryDetails>
 
 - 
hashCodepublic int hashCode() Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to generate a hash.- Overrides:
- hashCodein class- BmcRequest<SyncRepositoryDetails>
 
 
- 
 
-