Class ExternalScmConfiguration
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.adm.model.ScmConfiguration
- 
- com.oracle.bmc.adm.model.ExternalScmConfiguration
 
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20220421") public final class ExternalScmConfiguration extends ScmConfigurationAn external SCM configuration extends a SCM Configuration with necessary data to reach and use the Source Code Management tool/platform used by a Remediation Recipe.An external SCM in ADM refers to GitHub, or GitLab. 
 Note: Objects should always be created or deserialized using theExternalScmConfiguration.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 theExternalScmConfiguration.Builder, which maintain a set of all explicitly set fields calledExternalScmConfiguration.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 classExternalScmConfiguration.Builderstatic classExternalScmConfiguration.ExternalScmTypeThe type of External Source Code Management.- 
Nested classes/interfaces inherited from class com.oracle.bmc.adm.model.ScmConfigurationScmConfiguration.ScmType
 
- 
 - 
Constructor SummaryConstructors Constructor Description ExternalScmConfiguration(String branch, String buildFileLocation, Boolean isAutomergeEnabled, ExternalScmConfiguration.ExternalScmType externalScmType, String repositoryUrl, String username, String patSecretId)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExternalScmConfiguration.Builderbuilder()Create a new builder.booleanequals(Object o)ExternalScmConfiguration.ExternalScmTypegetExternalScmType()The type of External Source Code Management.StringgetPatSecretId()The Oracle Cloud Identifier (OCID) of the Private Access Token (PAT) Secret.StringgetRepositoryUrl()The repository URL for the SCM.StringgetUsername()The username for the SCM (to perform operations such as cloning or pushing via HTTP).inthashCode()ExternalScmConfiguration.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.- 
Methods inherited from class com.oracle.bmc.adm.model.ScmConfigurationgetBranch, getBuildFileLocation, getIsAutomergeEnabled
 
- 
 
- 
- 
- 
Constructor Detail- 
ExternalScmConfiguration@Deprecated public ExternalScmConfiguration(String branch, String buildFileLocation, Boolean isAutomergeEnabled, ExternalScmConfiguration.ExternalScmType externalScmType, String repositoryUrl, String username, String patSecretId) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static ExternalScmConfiguration.Builder builder() Create a new builder.
 - 
toBuilderpublic ExternalScmConfiguration.Builder toBuilder() 
 - 
getExternalScmTypepublic ExternalScmConfiguration.ExternalScmType getExternalScmType() The type of External Source Code Management.- Returns:
- the value
 
 - 
getRepositoryUrlpublic String getRepositoryUrl() The repository URL for the SCM.For Non-Enterprise GitHub the expected format is https://github.com/[owner]/[repoName] For Enterprise GitHub the expected format is http(s)://[hostname]/api/v3/repos/[owner]/[repoName] For GitLab the expected format is https://gitlab.com/[groupName]/[repoName] - Returns:
- the value
 
 - 
getUsernamepublic String getUsername() The username for the SCM (to perform operations such as cloning or pushing via HTTP).- Returns:
- the value
 
 - 
getPatSecretIdpublic String getPatSecretId() The Oracle Cloud Identifier (OCID) of the Private Access Token (PAT) Secret.The secret provides the credentials necessary to authenticate against the SCM. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- ScmConfiguration
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Overrides:
- toStringin class- ScmConfiguration
- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- ScmConfiguration
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- ScmConfiguration
 
 
- 
 
-