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

com.pulumi.azurenative.apimanagement.inputs.PipelineDiagnosticSettingsArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.inputs;

import com.pulumi.azurenative.apimanagement.inputs.HttpMessageDiagnosticArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Diagnostic settings for incoming/outgoing HTTP messages to the Gateway.
 * 
 */
public final class PipelineDiagnosticSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final PipelineDiagnosticSettingsArgs Empty = new PipelineDiagnosticSettingsArgs();

    /**
     * Diagnostic settings for request.
     * 
     */
    @Import(name="request")
    private @Nullable Output request;

    /**
     * @return Diagnostic settings for request.
     * 
     */
    public Optional> request() {
        return Optional.ofNullable(this.request);
    }

    /**
     * Diagnostic settings for response.
     * 
     */
    @Import(name="response")
    private @Nullable Output response;

    /**
     * @return Diagnostic settings for response.
     * 
     */
    public Optional> response() {
        return Optional.ofNullable(this.response);
    }

    private PipelineDiagnosticSettingsArgs() {}

    private PipelineDiagnosticSettingsArgs(PipelineDiagnosticSettingsArgs $) {
        this.request = $.request;
        this.response = $.response;
    }

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

    public static final class Builder {
        private PipelineDiagnosticSettingsArgs $;

        public Builder() {
            $ = new PipelineDiagnosticSettingsArgs();
        }

        public Builder(PipelineDiagnosticSettingsArgs defaults) {
            $ = new PipelineDiagnosticSettingsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param request Diagnostic settings for request.
         * 
         * @return builder
         * 
         */
        public Builder request(@Nullable Output request) {
            $.request = request;
            return this;
        }

        /**
         * @param request Diagnostic settings for request.
         * 
         * @return builder
         * 
         */
        public Builder request(HttpMessageDiagnosticArgs request) {
            return request(Output.of(request));
        }

        /**
         * @param response Diagnostic settings for response.
         * 
         * @return builder
         * 
         */
        public Builder response(@Nullable Output response) {
            $.response = response;
            return this;
        }

        /**
         * @param response Diagnostic settings for response.
         * 
         * @return builder
         * 
         */
        public Builder response(HttpMessageDiagnosticArgs response) {
            return response(Output.of(response));
        }

        public PipelineDiagnosticSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy