Package com.oracle.bmc.devops.model
Class CommitInfo
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.devops.model.CommitInfo
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20210630") public final class CommitInfo extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelCommit details that need to be used for the build run.
 Note: Objects should always be created or deserialized using theCommitInfo.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 theCommitInfo.Builder, which maintain a set of all explicitly set fields calledCommitInfo.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCommitInfo.Builder
 - 
Constructor SummaryConstructors Constructor Description CommitInfo(String repositoryUrl, String repositoryBranch, String commitHash)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommitInfo.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCommitHash()Commit hash pertinent to the repository URL and the specified branch.StringgetRepositoryBranch()Name of the repository branch.StringgetRepositoryUrl()Repository URL.inthashCode()CommitInfo.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
CommitInfo@Deprecated @ConstructorProperties({"repositoryUrl","repositoryBranch","commitHash"}) public CommitInfo(String repositoryUrl, String repositoryBranch, String commitHash) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static CommitInfo.Builder builder() Create a new builder.
 - 
toBuilderpublic CommitInfo.Builder toBuilder() 
 - 
getRepositoryUrlpublic String getRepositoryUrl() Repository URL.- Returns:
- the value
 
 - 
getRepositoryBranchpublic String getRepositoryBranch() Name of the repository branch.- Returns:
- the value
 
 - 
getCommitHashpublic String getCommitHash() Commit hash pertinent to the repository URL and the specified branch.- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-