Class CfnQueuePropsMixin.JobRunAsUserProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.deadline.CfnQueuePropsMixin.JobRunAsUserProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQueuePropsMixin.JobRunAsUserProperty>
- Enclosing interface:
CfnQueuePropsMixin.JobRunAsUserProperty
@Stability(Stable)
public static final class CfnQueuePropsMixin.JobRunAsUserProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQueuePropsMixin.JobRunAsUserProperty>
A builder for
CfnQueuePropsMixin.JobRunAsUserProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnQueuePropsMixin.JobRunAsUserProperty.getPosix()posix(IResolvable posix) Sets the value ofCfnQueuePropsMixin.JobRunAsUserProperty.getPosix()Sets the value ofCfnQueuePropsMixin.JobRunAsUserProperty.getRunAs()Sets the value ofCfnQueuePropsMixin.JobRunAsUserProperty.getWindows()windows(IResolvable windows) Sets the value ofCfnQueuePropsMixin.JobRunAsUserProperty.getWindows()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
posix
Sets the value ofCfnQueuePropsMixin.JobRunAsUserProperty.getPosix()- Parameters:
posix- The user and group that the jobs in the queue run as.- Returns:
this
-
posix
@Stability(Stable) public CfnQueuePropsMixin.JobRunAsUserProperty.Builder posix(CfnQueuePropsMixin.PosixUserProperty posix) Sets the value ofCfnQueuePropsMixin.JobRunAsUserProperty.getPosix()- Parameters:
posix- The user and group that the jobs in the queue run as.- Returns:
this
-
runAs
Sets the value ofCfnQueuePropsMixin.JobRunAsUserProperty.getRunAs()- Parameters:
runAs- Specifies whether the job should run using the queue's system user or if the job should run using the worker agent system user.- Returns:
this
-
windows
@Stability(Stable) public CfnQueuePropsMixin.JobRunAsUserProperty.Builder windows(IResolvable windows) Sets the value ofCfnQueuePropsMixin.JobRunAsUserProperty.getWindows()- Parameters:
windows- Identifies a Microsoft Windows user.- Returns:
this
-
windows
@Stability(Stable) public CfnQueuePropsMixin.JobRunAsUserProperty.Builder windows(CfnQueuePropsMixin.WindowsUserProperty windows) Sets the value ofCfnQueuePropsMixin.JobRunAsUserProperty.getWindows()- Parameters:
windows- Identifies a Microsoft Windows user.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnQueuePropsMixin.JobRunAsUserProperty>- Returns:
- a new instance of
CfnQueuePropsMixin.JobRunAsUserProperty - Throws:
NullPointerException- if any required attribute was not provided
-