// *** 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.azure.eventhub.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetEventHubResult {
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private String name;
    private String namespaceName;
    /**
     * @return The number of partitions in the EventHub.
     * 
     */
    private Integer partitionCount;
    /**
     * @return The identifiers for the partitions of this EventHub.
     * 
     */
    private List<String> partitionIds;
    private String resourceGroupName;

    private GetEventHubResult() {}
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public String name() {
        return this.name;
    }
    public String namespaceName() {
        return this.namespaceName;
    }
    /**
     * @return The number of partitions in the EventHub.
     * 
     */
    public Integer partitionCount() {
        return this.partitionCount;
    }
    /**
     * @return The identifiers for the partitions of this EventHub.
     * 
     */
    public List<String> partitionIds() {
        return this.partitionIds;
    }
    public String resourceGroupName() {
        return this.resourceGroupName;
    }

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

    public static Builder builder(GetEventHubResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private String name;
        private String namespaceName;
        private Integer partitionCount;
        private List<String> partitionIds;
        private String resourceGroupName;
        public Builder() {}
        public Builder(GetEventHubResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.namespaceName = defaults.namespaceName;
    	      this.partitionCount = defaults.partitionCount;
    	      this.partitionIds = defaults.partitionIds;
    	      this.resourceGroupName = defaults.resourceGroupName;
        }

        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder namespaceName(String namespaceName) {
            this.namespaceName = Objects.requireNonNull(namespaceName);
            return this;
        }
        @CustomType.Setter
        public Builder partitionCount(Integer partitionCount) {
            this.partitionCount = Objects.requireNonNull(partitionCount);
            return this;
        }
        @CustomType.Setter
        public Builder partitionIds(List<String> partitionIds) {
            this.partitionIds = Objects.requireNonNull(partitionIds);
            return this;
        }
        public Builder partitionIds(String... partitionIds) {
            return partitionIds(List.of(partitionIds));
        }
        @CustomType.Setter
        public Builder resourceGroupName(String resourceGroupName) {
            this.resourceGroupName = Objects.requireNonNull(resourceGroupName);
            return this;
        }
        public GetEventHubResult build() {
            final var o = new GetEventHubResult();
            o.id = id;
            o.name = name;
            o.namespaceName = namespaceName;
            o.partitionCount = partitionCount;
            o.partitionIds = partitionIds;
            o.resourceGroupName = resourceGroupName;
            return o;
        }
    }
}
