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

com.pulumi.azurenative.eventgrid.outputs.GetNamespaceResult Maven / Gradle / Ivy

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

import com.pulumi.azurenative.eventgrid.outputs.IdentityInfoResponse;
import com.pulumi.azurenative.eventgrid.outputs.InboundIpRuleResponse;
import com.pulumi.azurenative.eventgrid.outputs.NamespaceSkuResponse;
import com.pulumi.azurenative.eventgrid.outputs.PrivateEndpointConnectionResponse;
import com.pulumi.azurenative.eventgrid.outputs.SystemDataResponse;
import com.pulumi.azurenative.eventgrid.outputs.TopicSpacesConfigurationResponse;
import com.pulumi.azurenative.eventgrid.outputs.TopicsConfigurationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetNamespaceResult {
    /**
     * @return Fully qualified identifier of the resource.
     * 
     */
    private String id;
    /**
     * @return Identity information for the Namespace resource.
     * 
     */
    private @Nullable IdentityInfoResponse identity;
    /**
     * @return This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
     * 
     */
    private @Nullable List inboundIpRules;
    /**
     * @return Allows the user to specify if the service is zone-redundant. This is a required property and user needs to specify this value explicitly.
     * Once specified, this property cannot be updated.
     * 
     */
    private @Nullable Boolean isZoneRedundant;
    /**
     * @return Location of the resource.
     * 
     */
    private String location;
    /**
     * @return Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
     * 
     */
    private @Nullable String minimumTlsVersionAllowed;
    /**
     * @return Name of the resource.
     * 
     */
    private String name;
    private @Nullable List privateEndpointConnections;
    /**
     * @return Provisioning state of the namespace resource.
     * 
     */
    private String provisioningState;
    /**
     * @return This determines if traffic is allowed over public network. By default it is enabled.
     * You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceProperties.InboundIpRules" />
     * 
     */
    private @Nullable String publicNetworkAccess;
    /**
     * @return Represents available Sku pricing tiers.
     * 
     */
    private @Nullable NamespaceSkuResponse sku;
    /**
     * @return The system metadata relating to the namespace resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Tags of the resource.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Topic spaces configuration information for the namespace resource
     * 
     */
    private @Nullable TopicSpacesConfigurationResponse topicSpacesConfiguration;
    /**
     * @return Topics configuration information for the namespace resource
     * 
     */
    private @Nullable TopicsConfigurationResponse topicsConfiguration;
    /**
     * @return Type of the resource.
     * 
     */
    private String type;

    private GetNamespaceResult() {}
    /**
     * @return Fully qualified identifier of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Identity information for the Namespace resource.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.
     * 
     */
    public List inboundIpRules() {
        return this.inboundIpRules == null ? List.of() : this.inboundIpRules;
    }
    /**
     * @return Allows the user to specify if the service is zone-redundant. This is a required property and user needs to specify this value explicitly.
     * Once specified, this property cannot be updated.
     * 
     */
    public Optional isZoneRedundant() {
        return Optional.ofNullable(this.isZoneRedundant);
    }
    /**
     * @return Location of the resource.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.
     * 
     */
    public Optional minimumTlsVersionAllowed() {
        return Optional.ofNullable(this.minimumTlsVersionAllowed);
    }
    /**
     * @return Name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    public List privateEndpointConnections() {
        return this.privateEndpointConnections == null ? List.of() : this.privateEndpointConnections;
    }
    /**
     * @return Provisioning state of the namespace resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return This determines if traffic is allowed over public network. By default it is enabled.
     * You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PubSub.NamespaceProperties.InboundIpRules" />
     * 
     */
    public Optional publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }
    /**
     * @return Represents available Sku pricing tiers.
     * 
     */
    public Optional sku() {
        return Optional.ofNullable(this.sku);
    }
    /**
     * @return The system metadata relating to the namespace resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Tags of the resource.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Topic spaces configuration information for the namespace resource
     * 
     */
    public Optional topicSpacesConfiguration() {
        return Optional.ofNullable(this.topicSpacesConfiguration);
    }
    /**
     * @return Topics configuration information for the namespace resource
     * 
     */
    public Optional topicsConfiguration() {
        return Optional.ofNullable(this.topicsConfiguration);
    }
    /**
     * @return Type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetNamespaceResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private @Nullable IdentityInfoResponse identity;
        private @Nullable List inboundIpRules;
        private @Nullable Boolean isZoneRedundant;
        private String location;
        private @Nullable String minimumTlsVersionAllowed;
        private String name;
        private @Nullable List privateEndpointConnections;
        private String provisioningState;
        private @Nullable String publicNetworkAccess;
        private @Nullable NamespaceSkuResponse sku;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private @Nullable TopicSpacesConfigurationResponse topicSpacesConfiguration;
        private @Nullable TopicsConfigurationResponse topicsConfiguration;
        private String type;
        public Builder() {}
        public Builder(GetNamespaceResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.identity = defaults.identity;
    	      this.inboundIpRules = defaults.inboundIpRules;
    	      this.isZoneRedundant = defaults.isZoneRedundant;
    	      this.location = defaults.location;
    	      this.minimumTlsVersionAllowed = defaults.minimumTlsVersionAllowed;
    	      this.name = defaults.name;
    	      this.privateEndpointConnections = defaults.privateEndpointConnections;
    	      this.provisioningState = defaults.provisioningState;
    	      this.publicNetworkAccess = defaults.publicNetworkAccess;
    	      this.sku = defaults.sku;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.topicSpacesConfiguration = defaults.topicSpacesConfiguration;
    	      this.topicsConfiguration = defaults.topicsConfiguration;
    	      this.type = defaults.type;
        }

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

            this.identity = identity;
            return this;
        }
        @CustomType.Setter
        public Builder inboundIpRules(@Nullable List inboundIpRules) {

            this.inboundIpRules = inboundIpRules;
            return this;
        }
        public Builder inboundIpRules(InboundIpRuleResponse... inboundIpRules) {
            return inboundIpRules(List.of(inboundIpRules));
        }
        @CustomType.Setter
        public Builder isZoneRedundant(@Nullable Boolean isZoneRedundant) {

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

            this.minimumTlsVersionAllowed = minimumTlsVersionAllowed;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetNamespaceResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder privateEndpointConnections(@Nullable List privateEndpointConnections) {

            this.privateEndpointConnections = privateEndpointConnections;
            return this;
        }
        public Builder privateEndpointConnections(PrivateEndpointConnectionResponse... privateEndpointConnections) {
            return privateEndpointConnections(List.of(privateEndpointConnections));
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetNamespaceResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder publicNetworkAccess(@Nullable String publicNetworkAccess) {

            this.publicNetworkAccess = publicNetworkAccess;
            return this;
        }
        @CustomType.Setter
        public Builder sku(@Nullable NamespaceSkuResponse sku) {

            this.sku = sku;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetNamespaceResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

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

            this.topicSpacesConfiguration = topicSpacesConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder topicsConfiguration(@Nullable TopicsConfigurationResponse topicsConfiguration) {

            this.topicsConfiguration = topicsConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetNamespaceResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetNamespaceResult build() {
            final var _resultValue = new GetNamespaceResult();
            _resultValue.id = id;
            _resultValue.identity = identity;
            _resultValue.inboundIpRules = inboundIpRules;
            _resultValue.isZoneRedundant = isZoneRedundant;
            _resultValue.location = location;
            _resultValue.minimumTlsVersionAllowed = minimumTlsVersionAllowed;
            _resultValue.name = name;
            _resultValue.privateEndpointConnections = privateEndpointConnections;
            _resultValue.provisioningState = provisioningState;
            _resultValue.publicNetworkAccess = publicNetworkAccess;
            _resultValue.sku = sku;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.topicSpacesConfiguration = topicSpacesConfiguration;
            _resultValue.topicsConfiguration = topicsConfiguration;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy