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