Class MultipartBodyOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.MultipartBodyOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MultipartBodyOptions>
- Enclosing interface:
- MultipartBodyOptions
@Stability(Stable)
public static final class MultipartBodyOptions.Builder
extends Object
implements software.amazon.jsii.Builder<MultipartBodyOptions>
A builder for
MultipartBodyOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofMultipartBodyOptions.getBody()
build()
Builds the configured instance.contentType
(String contentType) Sets the value ofMultipartBodyOptions.getContentType()
transferEncoding
(String transferEncoding) Sets the value ofMultipartBodyOptions.getTransferEncoding()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contentType
Sets the value ofMultipartBodyOptions.getContentType()
- Parameters:
contentType
-Content-Type
header of this part. This parameter is required. Some examples of content types:text/x-shellscript; charset="utf-8"
(shell script)text/cloud-boothook; charset="utf-8"
(shell script executed during boot phase)
For Linux shell scripts use
text/x-shellscript
.- Returns:
this
-
body
Sets the value ofMultipartBodyOptions.getBody()
- Parameters:
body
- The body of message.- Returns:
this
-
transferEncoding
Sets the value ofMultipartBodyOptions.getTransferEncoding()
- Parameters:
transferEncoding
-Content-Transfer-Encoding
header specifying part encoding.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MultipartBodyOptions>
- Returns:
- a new instance of
MultipartBodyOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-