Class ServicePrincipalNameReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.pcaconnectorad.ServicePrincipalNameReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServicePrincipalNameReference>
- Enclosing interface:
ServicePrincipalNameReference
@Stability(Stable)
public static final class ServicePrincipalNameReference.Builder
extends Object
implements software.amazon.jsii.Builder<ServicePrincipalNameReference>
A builder for
ServicePrincipalNameReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.connectorArn(String connectorArn) Sets the value ofServicePrincipalNameReference.getConnectorArn()directoryRegistrationArn(String directoryRegistrationArn) Sets the value ofServicePrincipalNameReference.getDirectoryRegistrationArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectorArn
Sets the value ofServicePrincipalNameReference.getConnectorArn()- Parameters:
connectorArn- The ConnectorArn of the ServicePrincipalName resource. This parameter is required.- Returns:
this
-
directoryRegistrationArn
@Stability(Stable) public ServicePrincipalNameReference.Builder directoryRegistrationArn(String directoryRegistrationArn) Sets the value ofServicePrincipalNameReference.getDirectoryRegistrationArn()- Parameters:
directoryRegistrationArn- The DirectoryRegistrationArn of the ServicePrincipalName resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServicePrincipalNameReference>- Returns:
- a new instance of
ServicePrincipalNameReference - Throws:
NullPointerException- if any required attribute was not provided
-