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

com.pulumi.azurenative.apimanagement.outputs.GetLoggerResult 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.apimanagement.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;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetLoggerResult {
    /**
     * @return The name and SendRule connection string of the event hub for azureEventHub logger.
     * Instrumentation key for applicationInsights logger.
     * 
     */
    private @Nullable Map credentials;
    /**
     * @return Logger description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return Whether records are buffered in the logger before publishing. Default is assumed to be true.
     * 
     */
    private @Nullable Boolean isBuffered;
    /**
     * @return Logger type.
     * 
     */
    private String loggerType;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource).
     * 
     */
    private @Nullable String resourceId;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetLoggerResult() {}
    /**
     * @return The name and SendRule connection string of the event hub for azureEventHub logger.
     * Instrumentation key for applicationInsights logger.
     * 
     */
    public Map credentials() {
        return this.credentials == null ? Map.of() : this.credentials;
    }
    /**
     * @return Logger description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Whether records are buffered in the logger before publishing. Default is assumed to be true.
     * 
     */
    public Optional isBuffered() {
        return Optional.ofNullable(this.isBuffered);
    }
    /**
     * @return Logger type.
     * 
     */
    public String loggerType() {
        return this.loggerType;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource).
     * 
     */
    public Optional resourceId() {
        return Optional.ofNullable(this.resourceId);
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetLoggerResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Map credentials;
        private @Nullable String description;
        private String id;
        private @Nullable Boolean isBuffered;
        private String loggerType;
        private String name;
        private @Nullable String resourceId;
        private String type;
        public Builder() {}
        public Builder(GetLoggerResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.credentials = defaults.credentials;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.isBuffered = defaults.isBuffered;
    	      this.loggerType = defaults.loggerType;
    	      this.name = defaults.name;
    	      this.resourceId = defaults.resourceId;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder credentials(@Nullable Map credentials) {

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

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetLoggerResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder isBuffered(@Nullable Boolean isBuffered) {

            this.isBuffered = isBuffered;
            return this;
        }
        @CustomType.Setter
        public Builder loggerType(String loggerType) {
            if (loggerType == null) {
              throw new MissingRequiredPropertyException("GetLoggerResult", "loggerType");
            }
            this.loggerType = loggerType;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetLoggerResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder resourceId(@Nullable String resourceId) {

            this.resourceId = resourceId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetLoggerResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetLoggerResult build() {
            final var _resultValue = new GetLoggerResult();
            _resultValue.credentials = credentials;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.isBuffered = isBuffered;
            _resultValue.loggerType = loggerType;
            _resultValue.name = name;
            _resultValue.resourceId = resourceId;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy