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

com.pulumi.azure.monitoring.outputs.GetWorkspaceResult Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.monitoring.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;

@CustomType
public final class GetWorkspaceResult {
    /**
     * @return The ID of the managed default Data Collection Endpoint created with the Azure Monitor Workspace.
     * 
     */
    private String defaultDataCollectionEndpointId;
    /**
     * @return The ID of the managed default Data Collection Rule created with the Azure Monitor Workspace.
     * 
     */
    private String defaultDataCollectionRuleId;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The Azure Region where the Workspace is located.
     * 
     */
    private String location;
    private String name;
    /**
     * @return Whether network access from public internet to the Workspace are allowed.
     * 
     */
    private Boolean publicNetworkAccessEnabled;
    /**
     * @return The query endpoint for the Azure Monitor Workspace.
     * 
     */
    private String queryEndpoint;
    private String resourceGroupName;
    /**
     * @return A mapping of tags that are assigned to the Workspace.
     * 
     */
    private Map tags;

    private GetWorkspaceResult() {}
    /**
     * @return The ID of the managed default Data Collection Endpoint created with the Azure Monitor Workspace.
     * 
     */
    public String defaultDataCollectionEndpointId() {
        return this.defaultDataCollectionEndpointId;
    }
    /**
     * @return The ID of the managed default Data Collection Rule created with the Azure Monitor Workspace.
     * 
     */
    public String defaultDataCollectionRuleId() {
        return this.defaultDataCollectionRuleId;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The Azure Region where the Workspace is located.
     * 
     */
    public String location() {
        return this.location;
    }
    public String name() {
        return this.name;
    }
    /**
     * @return Whether network access from public internet to the Workspace are allowed.
     * 
     */
    public Boolean publicNetworkAccessEnabled() {
        return this.publicNetworkAccessEnabled;
    }
    /**
     * @return The query endpoint for the Azure Monitor Workspace.
     * 
     */
    public String queryEndpoint() {
        return this.queryEndpoint;
    }
    public String resourceGroupName() {
        return this.resourceGroupName;
    }
    /**
     * @return A mapping of tags that are assigned to the Workspace.
     * 
     */
    public Map tags() {
        return this.tags;
    }

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

    public static Builder builder(GetWorkspaceResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String defaultDataCollectionEndpointId;
        private String defaultDataCollectionRuleId;
        private String id;
        private String location;
        private String name;
        private Boolean publicNetworkAccessEnabled;
        private String queryEndpoint;
        private String resourceGroupName;
        private Map tags;
        public Builder() {}
        public Builder(GetWorkspaceResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.defaultDataCollectionEndpointId = defaults.defaultDataCollectionEndpointId;
    	      this.defaultDataCollectionRuleId = defaults.defaultDataCollectionRuleId;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.publicNetworkAccessEnabled = defaults.publicNetworkAccessEnabled;
    	      this.queryEndpoint = defaults.queryEndpoint;
    	      this.resourceGroupName = defaults.resourceGroupName;
    	      this.tags = defaults.tags;
        }

        @CustomType.Setter
        public Builder defaultDataCollectionEndpointId(String defaultDataCollectionEndpointId) {
            if (defaultDataCollectionEndpointId == null) {
              throw new MissingRequiredPropertyException("GetWorkspaceResult", "defaultDataCollectionEndpointId");
            }
            this.defaultDataCollectionEndpointId = defaultDataCollectionEndpointId;
            return this;
        }
        @CustomType.Setter
        public Builder defaultDataCollectionRuleId(String defaultDataCollectionRuleId) {
            if (defaultDataCollectionRuleId == null) {
              throw new MissingRequiredPropertyException("GetWorkspaceResult", "defaultDataCollectionRuleId");
            }
            this.defaultDataCollectionRuleId = defaultDataCollectionRuleId;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetWorkspaceResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetWorkspaceResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetWorkspaceResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder publicNetworkAccessEnabled(Boolean publicNetworkAccessEnabled) {
            if (publicNetworkAccessEnabled == null) {
              throw new MissingRequiredPropertyException("GetWorkspaceResult", "publicNetworkAccessEnabled");
            }
            this.publicNetworkAccessEnabled = publicNetworkAccessEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder queryEndpoint(String queryEndpoint) {
            if (queryEndpoint == null) {
              throw new MissingRequiredPropertyException("GetWorkspaceResult", "queryEndpoint");
            }
            this.queryEndpoint = queryEndpoint;
            return this;
        }
        @CustomType.Setter
        public Builder resourceGroupName(String resourceGroupName) {
            if (resourceGroupName == null) {
              throw new MissingRequiredPropertyException("GetWorkspaceResult", "resourceGroupName");
            }
            this.resourceGroupName = resourceGroupName;
            return this;
        }
        @CustomType.Setter
        public Builder tags(Map tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetWorkspaceResult", "tags");
            }
            this.tags = tags;
            return this;
        }
        public GetWorkspaceResult build() {
            final var _resultValue = new GetWorkspaceResult();
            _resultValue.defaultDataCollectionEndpointId = defaultDataCollectionEndpointId;
            _resultValue.defaultDataCollectionRuleId = defaultDataCollectionRuleId;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.publicNetworkAccessEnabled = publicNetworkAccessEnabled;
            _resultValue.queryEndpoint = queryEndpoint;
            _resultValue.resourceGroupName = resourceGroupName;
            _resultValue.tags = tags;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy