Interface GetServicePrincipalNameResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetServicePrincipalNameResponse.Builder,
,GetServicePrincipalNameResponse> PcaConnectorAdResponse.Builder
,SdkBuilder<GetServicePrincipalNameResponse.Builder,
,GetServicePrincipalNameResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetServicePrincipalNameResponse
public static interface GetServicePrincipalNameResponse.Builder
extends PcaConnectorAdResponse.Builder, SdkPojo, CopyableBuilder<GetServicePrincipalNameResponse.Builder,GetServicePrincipalNameResponse>
-
Method Summary
Modifier and TypeMethodDescriptionservicePrincipalName
(Consumer<ServicePrincipalName.Builder> servicePrincipalName) The service principal name that the connector uses to authenticate with Active Directory.servicePrincipalName
(ServicePrincipalName servicePrincipalName) The service principal name that the connector uses to authenticate with Active Directory.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.pcaconnectorad.model.PcaConnectorAdResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
servicePrincipalName
GetServicePrincipalNameResponse.Builder servicePrincipalName(ServicePrincipalName servicePrincipalName) The service principal name that the connector uses to authenticate with Active Directory.
- Parameters:
servicePrincipalName
- The service principal name that the connector uses to authenticate with Active Directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
servicePrincipalName
default GetServicePrincipalNameResponse.Builder servicePrincipalName(Consumer<ServicePrincipalName.Builder> servicePrincipalName) The service principal name that the connector uses to authenticate with Active Directory.
This is a convenience method that creates an instance of theServicePrincipalName.Builder
avoiding the need to create one manually viaServicePrincipalName.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toservicePrincipalName(ServicePrincipalName)
.- Parameters:
servicePrincipalName
- a consumer that will call methods onServicePrincipalName.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-