Interface MultipartBodyOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MultipartBodyOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-15T10:24:58.432Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forMultipartBodyOptions
static final class
An implementation forMultipartBodyOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic MultipartBodyOptions.Builder
builder()
default String
getBody()
The body of message.Content-Type
header of this part.default String
Content-Transfer-Encoding
header specifying part encoding.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContentType
Content-Type
header 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-Encoding
header specifying part encoding.Default: undefined - body is not encoded
-
builder
- Returns:
- a
MultipartBodyOptions.Builder
ofMultipartBodyOptions
-