All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.customerinsights.outputs.GetHubResult Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.azurenative.customerinsights.outputs;

import com.pulumi.azurenative.customerinsights.outputs.HubBillingInfoFormatResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetHubResult {
    /**
     * @return API endpoint URL of the hub.
     * 
     */
    private String apiEndpoint;
    /**
     * @return Billing settings of the hub.
     * 
     */
    private @Nullable HubBillingInfoFormatResponse hubBillingInfo;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Resource location.
     * 
     */
    private @Nullable String location;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Provisioning state of the hub.
     * 
     */
    private String provisioningState;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0.
     * 
     */
    private @Nullable Integer tenantFeatures;
    /**
     * @return Resource type.
     * 
     */
    private String type;
    /**
     * @return Web endpoint URL of the hub.
     * 
     */
    private String webEndpoint;

    private GetHubResult() {}
    /**
     * @return API endpoint URL of the hub.
     * 
     */
    public String apiEndpoint() {
        return this.apiEndpoint;
    }
    /**
     * @return Billing settings of the hub.
     * 
     */
    public Optional hubBillingInfo() {
        return Optional.ofNullable(this.hubBillingInfo);
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource location.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Provisioning state of the hub.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0.
     * 
     */
    public Optional tenantFeatures() {
        return Optional.ofNullable(this.tenantFeatures);
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Web endpoint URL of the hub.
     * 
     */
    public String webEndpoint() {
        return this.webEndpoint;
    }

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

    public static Builder builder(GetHubResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String apiEndpoint;
        private @Nullable HubBillingInfoFormatResponse hubBillingInfo;
        private String id;
        private @Nullable String location;
        private String name;
        private String provisioningState;
        private @Nullable Map tags;
        private @Nullable Integer tenantFeatures;
        private String type;
        private String webEndpoint;
        public Builder() {}
        public Builder(GetHubResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.apiEndpoint = defaults.apiEndpoint;
    	      this.hubBillingInfo = defaults.hubBillingInfo;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.tags = defaults.tags;
    	      this.tenantFeatures = defaults.tenantFeatures;
    	      this.type = defaults.type;
    	      this.webEndpoint = defaults.webEndpoint;
        }

        @CustomType.Setter
        public Builder apiEndpoint(String apiEndpoint) {
            if (apiEndpoint == null) {
              throw new MissingRequiredPropertyException("GetHubResult", "apiEndpoint");
            }
            this.apiEndpoint = apiEndpoint;
            return this;
        }
        @CustomType.Setter
        public Builder hubBillingInfo(@Nullable HubBillingInfoFormatResponse hubBillingInfo) {

            this.hubBillingInfo = hubBillingInfo;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetHubResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetHubResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetHubResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder tenantFeatures(@Nullable Integer tenantFeatures) {

            this.tenantFeatures = tenantFeatures;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetHubResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder webEndpoint(String webEndpoint) {
            if (webEndpoint == null) {
              throw new MissingRequiredPropertyException("GetHubResult", "webEndpoint");
            }
            this.webEndpoint = webEndpoint;
            return this;
        }
        public GetHubResult build() {
            final var _resultValue = new GetHubResult();
            _resultValue.apiEndpoint = apiEndpoint;
            _resultValue.hubBillingInfo = hubBillingInfo;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.tags = tags;
            _resultValue.tenantFeatures = tenantFeatures;
            _resultValue.type = type;
            _resultValue.webEndpoint = webEndpoint;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy