Class CfnThingPrincipalAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnThingPrincipalAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnThingPrincipalAttachmentProps>
- Enclosing interface:
CfnThingPrincipalAttachmentProps
@Stability(Stable)
public static final class CfnThingPrincipalAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnThingPrincipalAttachmentProps>
A builder for
CfnThingPrincipalAttachmentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnThingPrincipalAttachmentProps.getPrincipal()Sets the value ofCfnThingPrincipalAttachmentProps.getThingName()thingPrincipalType(String thingPrincipalType) Sets the value ofCfnThingPrincipalAttachmentProps.getThingPrincipalType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
principal
Sets the value ofCfnThingPrincipalAttachmentProps.getPrincipal()- Parameters:
principal- The principal, which can be a certificate ARN (as returned from theCreateCertificateoperation) or an Amazon Cognito ID. This parameter is required.- Returns:
this
-
thingName
Sets the value ofCfnThingPrincipalAttachmentProps.getThingName()- Parameters:
thingName- The name of the AWS IoT thing. This parameter is required.- Returns:
this
-
thingPrincipalType
@Stability(Stable) public CfnThingPrincipalAttachmentProps.Builder thingPrincipalType(String thingPrincipalType) Sets the value ofCfnThingPrincipalAttachmentProps.getThingPrincipalType()- Parameters:
thingPrincipalType- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnThingPrincipalAttachmentProps>- Returns:
- a new instance of
CfnThingPrincipalAttachmentProps - Throws:
NullPointerException- if any required attribute was not provided
-