Class CfnRelatedItemPropsMixin.CommentContentProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cases.CfnRelatedItemPropsMixin.CommentContentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRelatedItemPropsMixin.CommentContentProperty>
- Enclosing interface:
CfnRelatedItemPropsMixin.CommentContentProperty
@Stability(Stable)
public static final class CfnRelatedItemPropsMixin.CommentContentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRelatedItemPropsMixin.CommentContentProperty>
A builder for
CfnRelatedItemPropsMixin.CommentContentProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRelatedItemPropsMixin.CommentContentProperty.getBody()build()Builds the configured instance.contentType(String contentType) Sets the value ofCfnRelatedItemPropsMixin.CommentContentProperty.getContentType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
body
Sets the value ofCfnRelatedItemPropsMixin.CommentContentProperty.getBody()- Parameters:
body- Text in the body of a comment.- Returns:
this
-
contentType
@Stability(Stable) public CfnRelatedItemPropsMixin.CommentContentProperty.Builder contentType(String contentType) Sets the value ofCfnRelatedItemPropsMixin.CommentContentProperty.getContentType()- Parameters:
contentType- Type of the text in the comment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRelatedItemPropsMixin.CommentContentProperty>- Returns:
- a new instance of
CfnRelatedItemPropsMixin.CommentContentProperty - Throws:
NullPointerException- if any required attribute was not provided
-