Class CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty>
- Enclosing interface:
CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty
@Stability(Stable)
public static final class CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty>
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
@Stability(Stable) public CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty.Builder code(String code) - Parameters:
code
- The status code.- Returns:
this
-
message
@Stability(Stable) public CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty.Builder message(String message) - Parameters:
message
- The status message, if applicable.- Returns:
this
-
build
@Stability(Stable) public CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty build()Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty>
- Returns:
- a new instance of
CfnTransitGatewayPeeringAttachment.PeeringAttachmentStatusProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-