Interface CreateDirectoryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateDirectoryRequest.Builder,
,CreateDirectoryRequest> DirectoryRequest.Builder
,SdkBuilder<CreateDirectoryRequest.Builder,
,CreateDirectoryRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateDirectoryRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) A description for the directory.The fully qualified name for the directory, such ascorp.example.com
.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The password for the directory administrator.The NetBIOS name of the directory, such asCORP
.The size of the directory.size
(DirectorySize size) The size of the directory.tags
(Collection<Tag> tags) The tags to be assigned to the Simple AD directory.tags
(Consumer<Tag.Builder>... tags) The tags to be assigned to the Simple AD directory.The tags to be assigned to the Simple AD directory.default CreateDirectoryRequest.Builder
vpcSettings
(Consumer<DirectoryVpcSettings.Builder> vpcSettings) A DirectoryVpcSettings object that contains additional information for the operation.vpcSettings
(DirectoryVpcSettings vpcSettings) A DirectoryVpcSettings object that contains additional information for the operation.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
-
name
The fully qualified name for the directory, such as
corp.example.com
.- Parameters:
name
- The fully qualified name for the directory, such ascorp.example.com
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shortName
The NetBIOS name of the directory, such as
CORP
.- Parameters:
shortName
- The NetBIOS name of the directory, such asCORP
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
password
The password for the directory administrator. The directory creation process creates a directory administrator account with the user name
Administrator
and this password.If you need to change the password for the administrator account, you can use the ResetUserPassword API call.
The regex pattern for this string is made up of the following conditions:
-
Length (?=^.{8,64}$) – Must be between 8 and 64 characters
AND any 3 of the following password complexity rules required by Active Directory:
-
Numbers and upper case and lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])
-
Numbers and special characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])
-
Special characters and upper case and lower case (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])
-
Numbers and upper case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])
For additional information about how Active Directory passwords are enforced, see Password must meet complexity requirements on the Microsoft website.
- Parameters:
password
- The password for the directory administrator. The directory creation process creates a directory administrator account with the user nameAdministrator
and this password.If you need to change the password for the administrator account, you can use the ResetUserPassword API call.
The regex pattern for this string is made up of the following conditions:
-
Length (?=^.{8,64}$) – Must be between 8 and 64 characters
AND any 3 of the following password complexity rules required by Active Directory:
-
Numbers and upper case and lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])
-
Numbers and special characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])
-
Special characters and upper case and lower case (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])
-
Numbers and upper case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])
For additional information about how Active Directory passwords are enforced, see Password must meet complexity requirements on the Microsoft website.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
description
A description for the directory.
- Parameters:
description
- A description for the directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
size
The size of the directory.
- Parameters:
size
- The size of the directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
size
The size of the directory.
- Parameters:
size
- The size of the directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcSettings
A DirectoryVpcSettings object that contains additional information for the operation.
- Parameters:
vpcSettings
- A DirectoryVpcSettings object that contains additional information for the operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcSettings
default CreateDirectoryRequest.Builder vpcSettings(Consumer<DirectoryVpcSettings.Builder> vpcSettings) A DirectoryVpcSettings object that contains additional information for the operation.
This is a convenience method that creates an instance of theDirectoryVpcSettings.Builder
avoiding the need to create one manually viaDirectoryVpcSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcSettings(DirectoryVpcSettings)
.- Parameters:
vpcSettings
- a consumer that will call methods onDirectoryVpcSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to be assigned to the Simple AD directory.
- Parameters:
tags
- The tags to be assigned to the Simple AD directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to be assigned to the Simple AD directory.
- Parameters:
tags
- The tags to be assigned to the Simple AD directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to be assigned to the Simple AD directory.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateDirectoryRequest.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
CreateDirectoryRequest.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.
-