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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbase64Encoded
(Boolean base64Encoded) Sets the value ofInitFileOptions.getBase64Encoded()
build()
Builds the configured instance.Sets the value ofInitFileOptions.getGroup()
Sets the value ofInitFileOptions.getMode()
Sets the value ofInitFileOptions.getOwner()
serviceRestartHandles
(List<? extends InitServiceRestartHandle> serviceRestartHandles) Sets the value ofInitFileOptions.getServiceRestartHandles()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
base64Encoded
Sets the value ofInitFileOptions.getBase64Encoded()
- 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
Sets the value ofInitFileOptions.getGroup()
- Parameters:
group
- The name of the owning group for this file. Not supported for Windows systems.- Returns:
this
-
mode
Sets the value ofInitFileOptions.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
Sets the value ofInitFileOptions.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) Sets the value ofInitFileOptions.getServiceRestartHandles()
- Parameters:
serviceRestartHandles
- Restart the given service after this file has been written.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<InitFileOptions>
- Returns:
- a new instance of
InitFileOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-