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