Interface ServiceNowConnectorProfileCredentials.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceNowConnectorProfileCredentials.Builder,ServiceNowConnectorProfileCredentials>,SdkBuilder<ServiceNowConnectorProfileCredentials.Builder,ServiceNowConnectorProfileCredentials>,SdkPojo
- Enclosing class:
- ServiceNowConnectorProfileCredentials
public static interface ServiceNowConnectorProfileCredentials.Builder extends SdkPojo, CopyableBuilder<ServiceNowConnectorProfileCredentials.Builder,ServiceNowConnectorProfileCredentials>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ServiceNowConnectorProfileCredentials.BuilderoAuth2Credentials(Consumer<OAuth2Credentials.Builder> oAuth2Credentials)The OAuth 2.0 credentials required to authenticate the user.ServiceNowConnectorProfileCredentials.BuilderoAuth2Credentials(OAuth2Credentials oAuth2Credentials)The OAuth 2.0 credentials required to authenticate the user.ServiceNowConnectorProfileCredentials.Builderpassword(String password)The password that corresponds to the user name.ServiceNowConnectorProfileCredentials.Builderusername(String username)The name of the user.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
username
ServiceNowConnectorProfileCredentials.Builder username(String username)
The name of the user.
- Parameters:
username- The name of the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
password
ServiceNowConnectorProfileCredentials.Builder password(String password)
The password that corresponds to the user name.
- Parameters:
password- The password that corresponds to the user name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
oAuth2Credentials
ServiceNowConnectorProfileCredentials.Builder oAuth2Credentials(OAuth2Credentials oAuth2Credentials)
The OAuth 2.0 credentials required to authenticate the user.
- Parameters:
oAuth2Credentials- The OAuth 2.0 credentials required to authenticate the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
oAuth2Credentials
default ServiceNowConnectorProfileCredentials.Builder oAuth2Credentials(Consumer<OAuth2Credentials.Builder> oAuth2Credentials)
The OAuth 2.0 credentials required to authenticate the user.
This is a convenience method that creates an instance of theOAuth2Credentials.Builderavoiding the need to create one manually viaOAuth2Credentials.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooAuth2Credentials(OAuth2Credentials).- Parameters:
oAuth2Credentials- a consumer that will call methods onOAuth2Credentials.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
oAuth2Credentials(OAuth2Credentials)
-
-