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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnThingPrincipalAttachmentProps.getPrincipal()
Sets the value ofCfnThingPrincipalAttachmentProps.getThingName()
-
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 theCreateCertificate
operation) 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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnThingPrincipalAttachmentProps>
- Returns:
- a new instance of
CfnThingPrincipalAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-