Interface CreateComputerRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateComputerRequest.Builder,
,CreateComputerRequest> DirectoryRequest.Builder
,SdkBuilder<CreateComputerRequest.Builder,
,CreateComputerRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateComputerRequest
-
Method Summary
Modifier and TypeMethodDescriptioncomputerAttributes
(Collection<Attribute> computerAttributes) An array of Attribute objects that contain any LDAP attributes to apply to the computer account.computerAttributes
(Consumer<Attribute.Builder>... computerAttributes) An array of Attribute objects that contain any LDAP attributes to apply to the computer account.computerAttributes
(Attribute... computerAttributes) An array of Attribute objects that contain any LDAP attributes to apply to the computer account.computerName
(String computerName) The name of the computer account.directoryId
(String directoryId) The identifier of the directory in which to create the computer account.organizationalUnitDistinguishedName
(String organizationalUnitDistinguishedName) The fully-qualified distinguished name of the organizational unit to place the computer account in.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A one-time password that is used to join the computer to the directory.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.directory.model.DirectoryRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
directoryId
The identifier of the directory in which to create the computer account.
- Parameters:
directoryId
- The identifier of the directory in which to create the computer account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computerName
The name of the computer account.
- Parameters:
computerName
- The name of the computer account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
password
A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.
- Parameters:
password
- A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationalUnitDistinguishedName
CreateComputerRequest.Builder organizationalUnitDistinguishedName(String organizationalUnitDistinguishedName) The fully-qualified distinguished name of the organizational unit to place the computer account in.
- Parameters:
organizationalUnitDistinguishedName
- The fully-qualified distinguished name of the organizational unit to place the computer account in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computerAttributes
An array of Attribute objects that contain any LDAP attributes to apply to the computer account.
- Parameters:
computerAttributes
- An array of Attribute objects that contain any LDAP attributes to apply to the computer account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computerAttributes
An array of Attribute objects that contain any LDAP attributes to apply to the computer account.
- Parameters:
computerAttributes
- An array of Attribute objects that contain any LDAP attributes to apply to the computer account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computerAttributes
An array of Attribute objects that contain any LDAP attributes to apply to the computer account.
This is a convenience method that creates an instance of theAttribute.Builder
avoiding the need to create one manually viaAttribute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocomputerAttributes(List<Attribute>)
.- Parameters:
computerAttributes
- a consumer that will call methods onAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateComputerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateComputerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-