Class UpdateCredentialsOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.UpdateCredentialsOptions.Builder
- Enclosing class:
- UpdateCredentialsOptions
public static class UpdateCredentialsOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description UpdateCredentialsOptions
build()
Builds a UpdateCredentialsOptions.UpdateCredentialsOptions.Builder
credentialDetails(CredentialDetails credentialDetails)
Set the credentialDetails.UpdateCredentialsOptions.Builder
credentialId(String credentialId)
Set the credentialId.UpdateCredentialsOptions.Builder
credentials(Credentials credentials)
Set the credentials.UpdateCredentialsOptions.Builder
environmentId(String environmentId)
Set the environmentId.UpdateCredentialsOptions.Builder
sourceType(String sourceType)
Set the sourceType.UpdateCredentialsOptions.Builder
status(String status)
Set the status.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId
- the environmentIdcredentialId
- the credentialId
-
-
Method Details
-
build
Builds a UpdateCredentialsOptions.- Returns:
- the new UpdateCredentialsOptions instance
-
environmentId
Set the environmentId.- Parameters:
environmentId
- the environmentId- Returns:
- the UpdateCredentialsOptions builder
-
credentialId
Set the credentialId.- Parameters:
credentialId
- the credentialId- Returns:
- the UpdateCredentialsOptions builder
-
sourceType
Set the sourceType.- Parameters:
sourceType
- the sourceType- Returns:
- the UpdateCredentialsOptions builder
-
credentialDetails
Set the credentialDetails.- Parameters:
credentialDetails
- the credentialDetails- Returns:
- the UpdateCredentialsOptions builder
-
status
Set the status.- Parameters:
status
- the status- Returns:
- the UpdateCredentialsOptions builder
-
credentials
Set the credentials.- Parameters:
credentials
- the credentials- Returns:
- the UpdateCredentialsOptions builder
-