@Generated(value="OracleSDKGenerator", comments="API Version: 20210630") public final class RepositoryBranch extends RepositoryRef
Branch related information.
Note: Objects should always be created or deserialized using the RepositoryBranch.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the RepositoryBranch.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryBranch.Builder |
RepositoryRef.RefType
Constructor and Description |
---|
RepositoryBranch(String refName,
String fullRefName,
String repositoryId,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags,
String commitId)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RepositoryBranch.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCommitId()
Commit ID pointed to by the new branch.
|
int |
hashCode() |
RepositoryBranch.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getDefinedTags, getFreeformTags, getFullRefName, getRefName, getRepositoryId
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
public static RepositoryBranch.Builder builder()
Create a new builder.
public RepositoryBranch.Builder toBuilder()
public String getCommitId()
Commit ID pointed to by the new branch.
public String toString()
toString
in class RepositoryRef
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class RepositoryRef
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class RepositoryRef
public int hashCode()
hashCode
in class RepositoryRef
Copyright © 2016–2023. All rights reserved.