Class CfnJobDefinition.SecurityContextProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.SecurityContextProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.SecurityContextProperty>
- Enclosing interface:
CfnJobDefinition.SecurityContextProperty
@Stability(Stable)
public static final class CfnJobDefinition.SecurityContextProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.SecurityContextProperty>
A builder for
CfnJobDefinition.SecurityContextProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowPrivilegeEscalation
(Boolean allowPrivilegeEscalation) Sets the value ofCfnJobDefinition.SecurityContextProperty.getAllowPrivilegeEscalation()
allowPrivilegeEscalation
(IResolvable allowPrivilegeEscalation) Sets the value ofCfnJobDefinition.SecurityContextProperty.getAllowPrivilegeEscalation()
build()
Builds the configured instance.privileged
(Boolean privileged) Sets the value ofCfnJobDefinition.SecurityContextProperty.getPrivileged()
privileged
(IResolvable privileged) Sets the value ofCfnJobDefinition.SecurityContextProperty.getPrivileged()
readOnlyRootFilesystem
(Boolean readOnlyRootFilesystem) Sets the value ofCfnJobDefinition.SecurityContextProperty.getReadOnlyRootFilesystem()
readOnlyRootFilesystem
(IResolvable readOnlyRootFilesystem) Sets the value ofCfnJobDefinition.SecurityContextProperty.getReadOnlyRootFilesystem()
runAsGroup
(Number runAsGroup) Sets the value ofCfnJobDefinition.SecurityContextProperty.getRunAsGroup()
runAsNonRoot
(Boolean runAsNonRoot) Sets the value ofCfnJobDefinition.SecurityContextProperty.getRunAsNonRoot()
runAsNonRoot
(IResolvable runAsNonRoot) Sets the value ofCfnJobDefinition.SecurityContextProperty.getRunAsNonRoot()
Sets the value ofCfnJobDefinition.SecurityContextProperty.getRunAsUser()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowPrivilegeEscalation
@Stability(Stable) public CfnJobDefinition.SecurityContextProperty.Builder allowPrivilegeEscalation(Boolean allowPrivilegeEscalation) Sets the value ofCfnJobDefinition.SecurityContextProperty.getAllowPrivilegeEscalation()
- Parameters:
allowPrivilegeEscalation
- the value to be set.- Returns:
this
-
allowPrivilegeEscalation
@Stability(Stable) public CfnJobDefinition.SecurityContextProperty.Builder allowPrivilegeEscalation(IResolvable allowPrivilegeEscalation) Sets the value ofCfnJobDefinition.SecurityContextProperty.getAllowPrivilegeEscalation()
- Parameters:
allowPrivilegeEscalation
- the value to be set.- Returns:
this
-
privileged
@Stability(Stable) public CfnJobDefinition.SecurityContextProperty.Builder privileged(Boolean privileged) Sets the value ofCfnJobDefinition.SecurityContextProperty.getPrivileged()
- Parameters:
privileged
- the value to be set.- Returns:
this
-
privileged
@Stability(Stable) public CfnJobDefinition.SecurityContextProperty.Builder privileged(IResolvable privileged) Sets the value ofCfnJobDefinition.SecurityContextProperty.getPrivileged()
- Parameters:
privileged
- the value to be set.- Returns:
this
-
readOnlyRootFilesystem
@Stability(Stable) public CfnJobDefinition.SecurityContextProperty.Builder readOnlyRootFilesystem(Boolean readOnlyRootFilesystem) Sets the value ofCfnJobDefinition.SecurityContextProperty.getReadOnlyRootFilesystem()
- Parameters:
readOnlyRootFilesystem
- the value to be set.- Returns:
this
-
readOnlyRootFilesystem
@Stability(Stable) public CfnJobDefinition.SecurityContextProperty.Builder readOnlyRootFilesystem(IResolvable readOnlyRootFilesystem) Sets the value ofCfnJobDefinition.SecurityContextProperty.getReadOnlyRootFilesystem()
- Parameters:
readOnlyRootFilesystem
- the value to be set.- Returns:
this
-
runAsGroup
@Stability(Stable) public CfnJobDefinition.SecurityContextProperty.Builder runAsGroup(Number runAsGroup) Sets the value ofCfnJobDefinition.SecurityContextProperty.getRunAsGroup()
- Parameters:
runAsGroup
- the value to be set.- Returns:
this
-
runAsNonRoot
@Stability(Stable) public CfnJobDefinition.SecurityContextProperty.Builder runAsNonRoot(Boolean runAsNonRoot) Sets the value ofCfnJobDefinition.SecurityContextProperty.getRunAsNonRoot()
- Parameters:
runAsNonRoot
- the value to be set.- Returns:
this
-
runAsNonRoot
@Stability(Stable) public CfnJobDefinition.SecurityContextProperty.Builder runAsNonRoot(IResolvable runAsNonRoot) Sets the value ofCfnJobDefinition.SecurityContextProperty.getRunAsNonRoot()
- Parameters:
runAsNonRoot
- the value to be set.- Returns:
this
-
runAsUser
@Stability(Stable) public CfnJobDefinition.SecurityContextProperty.Builder runAsUser(Number runAsUser) Sets the value ofCfnJobDefinition.SecurityContextProperty.getRunAsUser()
- Parameters:
runAsUser
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.SecurityContextProperty>
- Returns:
- a new instance of
CfnJobDefinition.SecurityContextProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-