// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.connect.outputs;

import com.pulumi.aws.connect.outputs.UserHierarchyStructureHierarchyStructureLevelFive;
import com.pulumi.aws.connect.outputs.UserHierarchyStructureHierarchyStructureLevelFour;
import com.pulumi.aws.connect.outputs.UserHierarchyStructureHierarchyStructureLevelOne;
import com.pulumi.aws.connect.outputs.UserHierarchyStructureHierarchyStructureLevelThree;
import com.pulumi.aws.connect.outputs.UserHierarchyStructureHierarchyStructureLevelTwo;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class UserHierarchyStructureHierarchyStructure {
    /**
     * @return A block that defines the details of level five. The level block is documented below.
     * 
     * Each level block supports the following arguments:
     * 
     */
    private @Nullable UserHierarchyStructureHierarchyStructureLevelFive levelFive;
    /**
     * @return A block that defines the details of level four. The level block is documented below.
     * 
     */
    private @Nullable UserHierarchyStructureHierarchyStructureLevelFour levelFour;
    /**
     * @return A block that defines the details of level one. The level block is documented below.
     * 
     */
    private @Nullable UserHierarchyStructureHierarchyStructureLevelOne levelOne;
    /**
     * @return A block that defines the details of level three. The level block is documented below.
     * 
     */
    private @Nullable UserHierarchyStructureHierarchyStructureLevelThree levelThree;
    /**
     * @return A block that defines the details of level two. The level block is documented below.
     * 
     */
    private @Nullable UserHierarchyStructureHierarchyStructureLevelTwo levelTwo;

    private UserHierarchyStructureHierarchyStructure() {}
    /**
     * @return A block that defines the details of level five. The level block is documented below.
     * 
     * Each level block supports the following arguments:
     * 
     */
    public Optional<UserHierarchyStructureHierarchyStructureLevelFive> levelFive() {
        return Optional.ofNullable(this.levelFive);
    }
    /**
     * @return A block that defines the details of level four. The level block is documented below.
     * 
     */
    public Optional<UserHierarchyStructureHierarchyStructureLevelFour> levelFour() {
        return Optional.ofNullable(this.levelFour);
    }
    /**
     * @return A block that defines the details of level one. The level block is documented below.
     * 
     */
    public Optional<UserHierarchyStructureHierarchyStructureLevelOne> levelOne() {
        return Optional.ofNullable(this.levelOne);
    }
    /**
     * @return A block that defines the details of level three. The level block is documented below.
     * 
     */
    public Optional<UserHierarchyStructureHierarchyStructureLevelThree> levelThree() {
        return Optional.ofNullable(this.levelThree);
    }
    /**
     * @return A block that defines the details of level two. The level block is documented below.
     * 
     */
    public Optional<UserHierarchyStructureHierarchyStructureLevelTwo> levelTwo() {
        return Optional.ofNullable(this.levelTwo);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(UserHierarchyStructureHierarchyStructure defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable UserHierarchyStructureHierarchyStructureLevelFive levelFive;
        private @Nullable UserHierarchyStructureHierarchyStructureLevelFour levelFour;
        private @Nullable UserHierarchyStructureHierarchyStructureLevelOne levelOne;
        private @Nullable UserHierarchyStructureHierarchyStructureLevelThree levelThree;
        private @Nullable UserHierarchyStructureHierarchyStructureLevelTwo levelTwo;
        public Builder() {}
        public Builder(UserHierarchyStructureHierarchyStructure defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.levelFive = defaults.levelFive;
    	      this.levelFour = defaults.levelFour;
    	      this.levelOne = defaults.levelOne;
    	      this.levelThree = defaults.levelThree;
    	      this.levelTwo = defaults.levelTwo;
        }

        @CustomType.Setter
        public Builder levelFive(@Nullable UserHierarchyStructureHierarchyStructureLevelFive levelFive) {
            this.levelFive = levelFive;
            return this;
        }
        @CustomType.Setter
        public Builder levelFour(@Nullable UserHierarchyStructureHierarchyStructureLevelFour levelFour) {
            this.levelFour = levelFour;
            return this;
        }
        @CustomType.Setter
        public Builder levelOne(@Nullable UserHierarchyStructureHierarchyStructureLevelOne levelOne) {
            this.levelOne = levelOne;
            return this;
        }
        @CustomType.Setter
        public Builder levelThree(@Nullable UserHierarchyStructureHierarchyStructureLevelThree levelThree) {
            this.levelThree = levelThree;
            return this;
        }
        @CustomType.Setter
        public Builder levelTwo(@Nullable UserHierarchyStructureHierarchyStructureLevelTwo levelTwo) {
            this.levelTwo = levelTwo;
            return this;
        }
        public UserHierarchyStructureHierarchyStructure build() {
            final var o = new UserHierarchyStructureHierarchyStructure();
            o.levelFive = levelFive;
            o.levelFour = levelFour;
            o.levelOne = levelOne;
            o.levelThree = levelThree;
            o.levelTwo = levelTwo;
            return o;
        }
    }
}
