Interface CreateDirectoryRequest.Builder

    • Method Detail

      • name

        CreateDirectoryRequest.Builder name​(String name)

        The fully qualified name for the directory, such as corp.example.com.

        Parameters:
        name - The fully qualified name for the directory, such as corp.example.com.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • shortName

        CreateDirectoryRequest.Builder shortName​(String shortName)

        The NetBIOS name of the directory, such as CORP.

        Parameters:
        shortName - The NetBIOS name of the directory, such as CORP.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • password

        CreateDirectoryRequest.Builder password​(String 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 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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreateDirectoryRequest.Builder description​(String 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.
      • tags

        CreateDirectoryRequest.Builder tags​(Collection<Tag> 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

        CreateDirectoryRequest.Builder tags​(Tag... 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

        CreateDirectoryRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        The tags to be assigned to the Simple AD directory.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)