Interface MultipartBodyOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
MultipartBodyOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.460Z") @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();
 
  • Method Details

    • getContentType

      @Stability(Stable) @NotNull String 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

      @Stability(Stable) @Nullable default String getBody()
      The body of message.

      Default: undefined - body will not be added to part

    • getTransferEncoding

      @Stability(Stable) @Nullable default String getTransferEncoding()
      Content-Transfer-Encoding header specifying part encoding.

      Default: undefined - body is not encoded

    • builder

      @Stability(Stable) static MultipartBodyOptions.Builder builder()
      Returns:
      a MultipartBodyOptions.Builder of MultipartBodyOptions