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

com.pulumi.azurenative.insights.outputs.GetSubscriptionDiagnosticSettingResult 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.insights.outputs;

import com.pulumi.azurenative.insights.outputs.SubscriptionLogSettingsResponse;
import com.pulumi.azurenative.insights.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetSubscriptionDiagnosticSettingResult {
    /**
     * @return The resource Id for the event hub authorization rule.
     * 
     */
    private @Nullable String eventHubAuthorizationRuleId;
    /**
     * @return The name of the event hub. If none is specified, the default event hub will be selected.
     * 
     */
    private @Nullable String eventHubName;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The list of logs settings.
     * 
     */
    private @Nullable List logs;
    /**
     * @return The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
     * 
     */
    private @Nullable String marketplacePartnerId;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
     * 
     */
    private @Nullable String serviceBusRuleId;
    /**
     * @return The resource ID of the storage account to which you would like to send Diagnostic Logs.
     * 
     */
    private @Nullable String storageAccountId;
    /**
     * @return The system metadata related to this resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;
    /**
     * @return The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
     * 
     */
    private @Nullable String workspaceId;

    private GetSubscriptionDiagnosticSettingResult() {}
    /**
     * @return The resource Id for the event hub authorization rule.
     * 
     */
    public Optional eventHubAuthorizationRuleId() {
        return Optional.ofNullable(this.eventHubAuthorizationRuleId);
    }
    /**
     * @return The name of the event hub. If none is specified, the default event hub will be selected.
     * 
     */
    public Optional eventHubName() {
        return Optional.ofNullable(this.eventHubName);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The list of logs settings.
     * 
     */
    public List logs() {
        return this.logs == null ? List.of() : this.logs;
    }
    /**
     * @return The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
     * 
     */
    public Optional marketplacePartnerId() {
        return Optional.ofNullable(this.marketplacePartnerId);
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
     * 
     */
    public Optional serviceBusRuleId() {
        return Optional.ofNullable(this.serviceBusRuleId);
    }
    /**
     * @return The resource ID of the storage account to which you would like to send Diagnostic Logs.
     * 
     */
    public Optional storageAccountId() {
        return Optional.ofNullable(this.storageAccountId);
    }
    /**
     * @return The system metadata related to this resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
     * 
     */
    public Optional workspaceId() {
        return Optional.ofNullable(this.workspaceId);
    }

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

    public static Builder builder(GetSubscriptionDiagnosticSettingResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String eventHubAuthorizationRuleId;
        private @Nullable String eventHubName;
        private String id;
        private @Nullable List logs;
        private @Nullable String marketplacePartnerId;
        private String name;
        private @Nullable String serviceBusRuleId;
        private @Nullable String storageAccountId;
        private SystemDataResponse systemData;
        private String type;
        private @Nullable String workspaceId;
        public Builder() {}
        public Builder(GetSubscriptionDiagnosticSettingResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.eventHubAuthorizationRuleId = defaults.eventHubAuthorizationRuleId;
    	      this.eventHubName = defaults.eventHubName;
    	      this.id = defaults.id;
    	      this.logs = defaults.logs;
    	      this.marketplacePartnerId = defaults.marketplacePartnerId;
    	      this.name = defaults.name;
    	      this.serviceBusRuleId = defaults.serviceBusRuleId;
    	      this.storageAccountId = defaults.storageAccountId;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
    	      this.workspaceId = defaults.workspaceId;
        }

        @CustomType.Setter
        public Builder eventHubAuthorizationRuleId(@Nullable String eventHubAuthorizationRuleId) {

            this.eventHubAuthorizationRuleId = eventHubAuthorizationRuleId;
            return this;
        }
        @CustomType.Setter
        public Builder eventHubName(@Nullable String eventHubName) {

            this.eventHubName = eventHubName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionDiagnosticSettingResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder logs(@Nullable List logs) {

            this.logs = logs;
            return this;
        }
        public Builder logs(SubscriptionLogSettingsResponse... logs) {
            return logs(List.of(logs));
        }
        @CustomType.Setter
        public Builder marketplacePartnerId(@Nullable String marketplacePartnerId) {

            this.marketplacePartnerId = marketplacePartnerId;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionDiagnosticSettingResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder serviceBusRuleId(@Nullable String serviceBusRuleId) {

            this.serviceBusRuleId = serviceBusRuleId;
            return this;
        }
        @CustomType.Setter
        public Builder storageAccountId(@Nullable String storageAccountId) {

            this.storageAccountId = storageAccountId;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionDiagnosticSettingResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetSubscriptionDiagnosticSettingResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder workspaceId(@Nullable String workspaceId) {

            this.workspaceId = workspaceId;
            return this;
        }
        public GetSubscriptionDiagnosticSettingResult build() {
            final var _resultValue = new GetSubscriptionDiagnosticSettingResult();
            _resultValue.eventHubAuthorizationRuleId = eventHubAuthorizationRuleId;
            _resultValue.eventHubName = eventHubName;
            _resultValue.id = id;
            _resultValue.logs = logs;
            _resultValue.marketplacePartnerId = marketplacePartnerId;
            _resultValue.name = name;
            _resultValue.serviceBusRuleId = serviceBusRuleId;
            _resultValue.storageAccountId = storageAccountId;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            _resultValue.workspaceId = workspaceId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy