Interface ServiceNowServiceDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceNowServiceDetails.Builder,,ServiceNowServiceDetails> SdkBuilder<ServiceNowServiceDetails.Builder,,ServiceNowServiceDetails> SdkPojo
- Enclosing class:
ServiceNowServiceDetails
@Mutable
@NotThreadSafe
public static interface ServiceNowServiceDetails.Builder
extends SdkPojo, CopyableBuilder<ServiceNowServiceDetails.Builder,ServiceNowServiceDetails>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ServiceNowServiceDetails.BuilderauthorizationConfig(Consumer<ServiceNowServiceAuthorizationConfig.Builder> authorizationConfig) ServiceNow OAuth client credentials configuration.authorizationConfig(ServiceNowServiceAuthorizationConfig authorizationConfig) ServiceNow OAuth client credentials configuration.instanceUrl(String instanceUrl) ServiceNow instance URL.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
instanceUrl
ServiceNow instance URL.
- Parameters:
instanceUrl- ServiceNow instance URL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationConfig
ServiceNowServiceDetails.Builder authorizationConfig(ServiceNowServiceAuthorizationConfig authorizationConfig) ServiceNow OAuth client credentials configuration. Use this when registering with OAuth client credentials flow.
- Parameters:
authorizationConfig- ServiceNow OAuth client credentials configuration. Use this when registering with OAuth client credentials flow.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationConfig
default ServiceNowServiceDetails.Builder authorizationConfig(Consumer<ServiceNowServiceAuthorizationConfig.Builder> authorizationConfig) ServiceNow OAuth client credentials configuration. Use this when registering with OAuth client credentials flow.
This is a convenience method that creates an instance of theServiceNowServiceAuthorizationConfig.Builderavoiding the need to create one manually viaServiceNowServiceAuthorizationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toauthorizationConfig(ServiceNowServiceAuthorizationConfig).- Parameters:
authorizationConfig- a consumer that will call methods onServiceNowServiceAuthorizationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-