Class CfnSubscriber.SubscriberIdentityProperty.Builder
java.lang.Object
software.amazon.awscdk.services.securitylake.CfnSubscriber.SubscriberIdentityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriber.SubscriberIdentityProperty>
- Enclosing interface:
CfnSubscriber.SubscriberIdentityProperty
@Stability(Stable)
public static final class CfnSubscriber.SubscriberIdentityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubscriber.SubscriberIdentityProperty>
A builder for
CfnSubscriber.SubscriberIdentityProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.externalId(String externalId) Sets the value ofCfnSubscriber.SubscriberIdentityProperty.getExternalId()Sets the value ofCfnSubscriber.SubscriberIdentityProperty.getPrincipal()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
externalId
@Stability(Stable) public CfnSubscriber.SubscriberIdentityProperty.Builder externalId(String externalId) Sets the value ofCfnSubscriber.SubscriberIdentityProperty.getExternalId()- Parameters:
externalId- The external ID is a unique identifier that the subscriber provides to you. This parameter is required.- Returns:
this
-
principal
@Stability(Stable) public CfnSubscriber.SubscriberIdentityProperty.Builder principal(String principal) Sets the value ofCfnSubscriber.SubscriberIdentityProperty.getPrincipal()- Parameters:
principal- Principals can include accounts, users, roles, federated users, or AWS services. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubscriber.SubscriberIdentityProperty>- Returns:
- a new instance of
CfnSubscriber.SubscriberIdentityProperty - Throws:
NullPointerException- if any required attribute was not provided
-