Interface MultipartBodyOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MultipartBodyOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:03.505Z")
@Stability(Stable)
public interface MultipartBodyOptions
extends software.amazon.jsii.JsiiSerializable
Options when creating
MultipartBody.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
MultipartBodyOptions multipartBodyOptions = MultipartBodyOptions.builder()
.contentType("contentType")
// the properties below are optional
.body("body")
.transferEncoding("transferEncoding")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forMultipartBodyOptionsstatic final classAn implementation forMultipartBodyOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic MultipartBodyOptions.Builderbuilder()default StringgetBody()The body of message.Content-Typeheader of this part.default StringContent-Transfer-Encodingheader specifying part encoding.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContentType
Content-Typeheader of this part.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. -
getBody
The body of message.Default: undefined - body will not be added to part
-
getTransferEncoding
Content-Transfer-Encodingheader specifying part encoding.Default: undefined - body is not encoded
-
builder
- Returns:
- a
MultipartBodyOptions.BuilderofMultipartBodyOptions
-