public class Credentials
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
Credentials.Builder
Builder.
|
static interface |
Credentials.SourceType
The source that this credentials object connects to.
|
static interface |
Credentials.Status
The current status of this set of credentials.
|
Modifier and Type | Field and Description |
---|---|
protected CredentialDetails |
credentialDetails |
protected java.lang.String |
credentialId |
protected java.lang.String |
sourceType |
protected java.lang.String |
status |
Modifier | Constructor and Description |
---|---|
protected |
Credentials(Credentials.Builder builder) |
Modifier and Type | Method and Description |
---|---|
CredentialDetails |
credentialDetails()
Gets the credentialDetails.
|
java.lang.String |
credentialId()
Gets the credentialId.
|
Credentials.Builder |
newBuilder()
New builder.
|
java.lang.String |
sourceType()
Gets the sourceType.
|
java.lang.String |
status()
Gets the status.
|
@SerializedName(value="credential_id") protected java.lang.String credentialId
@SerializedName(value="source_type") protected java.lang.String sourceType
@SerializedName(value="credential_details") protected CredentialDetails credentialDetails
protected java.lang.String status
protected Credentials(Credentials.Builder builder)
public Credentials.Builder newBuilder()
public java.lang.String credentialId()
Unique identifier for this set of credentials.
public java.lang.String sourceType()
The source that this credentials object connects to. - `box` indicates the credentials are used to connect an instance of Enterprise Box. - `salesforce` indicates the credentials are used to connect to Salesforce. - `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online. - `web_crawl` indicates the credentials are used to perform a web crawl. = `cloud_object_storage` indicates the credentials are used to connect to an IBM Cloud Object Store.
public CredentialDetails credentialDetails()
Object containing details of the stored credentials.
Obtain credentials for your source from the administrator of the source.
public java.lang.String status()
The current status of this set of credentials. `connected` indicates that the credentials are available to use with the source configuration of a collection. `invalid` refers to the credentials (for example, the password provided has expired) and must be corrected before they can be used with a collection.