Class GetAccessTokenOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.watsonxdata.watsonx_data.v1.model.GetAccessTokenOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class GetAccessTokenOptions extends com.ibm.cloud.sdk.core.service.model.GenericModel
The getAccessToken options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GetAccessTokenOptions.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
authInstanceId()
Gets the authInstanceId.java.lang.String
instanceId()
Gets the instanceId.java.lang.String
instanceName()
Gets the instanceName.GetAccessTokenOptions.Builder
newBuilder()
New builder.java.lang.String
password()
Gets the password.java.lang.Boolean
setCookie()
Gets the setCookie.java.lang.String
username()
Gets the username.
-
-
-
Method Detail
-
newBuilder
public GetAccessTokenOptions.Builder newBuilder()
New builder.- Returns:
- a GetAccessTokenOptions builder
-
instanceName
public java.lang.String instanceName()
Gets the instanceName. Instance name.- Returns:
- the instanceName
-
password
public java.lang.String password()
Gets the password. Password can be apikey or token or password. On sw_ent if username is ibmapikey, password is base64-encoded of "username:apikey".- Returns:
- the password
-
username
public java.lang.String username()
Gets the username. Format is usertype[_username].- Returns:
- the username
-
instanceId
public java.lang.String instanceId()
Gets the instanceId. Instance id.- Returns:
- the instanceId
-
authInstanceId
public java.lang.String authInstanceId()
Gets the authInstanceId. Instance ID.- Returns:
- the authInstanceId
-
setCookie
public java.lang.Boolean setCookie()
Gets the setCookie. If this is set to true, then cookie with that instance id is generated.- Returns:
- the setCookie
-
-