Class InitFileOptions.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.InitFileOptions.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<InitFileOptions>
Enclosing interface:
InitFileOptions

@Stability(Stable) public static final class InitFileOptions.Builder extends Object implements software.amazon.jsii.Builder<InitFileOptions>
A builder for InitFileOptions
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • base64Encoded

      @Stability(Stable) public InitFileOptions.Builder base64Encoded(Boolean base64Encoded)
      Parameters:
      base64Encoded - True if the inlined content (from a string or file) should be treated as base64 encoded. Only applicable for inlined string and file content.
      Returns:
      this
    • group

      @Stability(Stable) public InitFileOptions.Builder group(String group)
      Sets the value of InitFileOptions.getGroup()
      Parameters:
      group - The name of the owning group for this file. Not supported for Windows systems.
      Returns:
      this
    • mode

      @Stability(Stable) public InitFileOptions.Builder mode(String mode)
      Sets the value of InitFileOptions.getMode()
      Parameters:
      mode - A six-digit octal value representing the mode for this file. Use the first three digits for symlinks and the last three digits for setting permissions. To create a symlink, specify 120xxx, where xxx defines the permissions of the target file. To specify permissions for a file, use the last three digits, such as 000644.

      Not supported for Windows systems.

      Returns:
      this
    • owner

      @Stability(Stable) public InitFileOptions.Builder owner(String owner)
      Sets the value of InitFileOptions.getOwner()
      Parameters:
      owner - The name of the owning user for this file. Not supported for Windows systems.
      Returns:
      this
    • serviceRestartHandles

      @Stability(Stable) public InitFileOptions.Builder serviceRestartHandles(List<? extends InitServiceRestartHandle> serviceRestartHandles)
      Parameters:
      serviceRestartHandles - Restart the given service after this file has been written.
      Returns:
      this
    • build

      @Stability(Stable) public InitFileOptions build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<InitFileOptions>
      Returns:
      a new instance of InitFileOptions
      Throws:
      NullPointerException - if any required attribute was not provided