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