@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.483Z") @Stability(value=Stable) public interface MultipartBodyOptions extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
MultipartBodyOptions.Builder
A builder for
MultipartBodyOptions |
static class |
MultipartBodyOptions.Jsii$Proxy
An implementation for
MultipartBodyOptions |
| Modifier and Type | Method and Description |
|---|---|
static MultipartBodyOptions.Builder |
builder() |
default String |
getBody()
The body of message.
|
String |
getContentType()
`Content-Type` header of this part.
|
default String |
getTransferEncoding()
`Content-Transfer-Encoding` header specifying part encoding.
|
@Stability(value=Stable) @NotNull String getContentType()
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.
@Stability(value=Stable) @Nullable default String getBody()
Default: undefined - body will not be added to part
@Stability(value=Stable) @Nullable default String getTransferEncoding()
Default: undefined - body is not encoded
@Stability(value=Stable) static MultipartBodyOptions.Builder builder()
MultipartBodyOptions.Builder of MultipartBodyOptionsCopyright © 2022. All rights reserved.