Interface ServiceNowConnectorProfileCredentials.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceNowConnectorProfileCredentials.Builder,
,ServiceNowConnectorProfileCredentials> SdkBuilder<ServiceNowConnectorProfileCredentials.Builder,
,ServiceNowConnectorProfileCredentials> SdkPojo
- Enclosing class:
ServiceNowConnectorProfileCredentials
@Mutable
@NotThreadSafe
public static interface ServiceNowConnectorProfileCredentials.Builder
extends SdkPojo, CopyableBuilder<ServiceNowConnectorProfileCredentials.Builder,ServiceNowConnectorProfileCredentials>
-
Method Summary
Modifier and TypeMethodDescriptionoAuth2Credentials
(Consumer<OAuth2Credentials.Builder> oAuth2Credentials) The OAuth 2.0 credentials required to authenticate the user.oAuth2Credentials
(OAuth2Credentials oAuth2Credentials) The OAuth 2.0 credentials required to authenticate the user.The password that corresponds to the user name.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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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.Builder
avoiding the need to create one manually viaOAuth2Credentials.builder()
.When the
Consumer
completes,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:
-