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

com.pulumi.azure.apimanagement.inputs.DiagnosticBackendResponseArgs 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.azure.apimanagement.inputs;

import com.pulumi.azure.apimanagement.inputs.DiagnosticBackendResponseDataMaskingArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DiagnosticBackendResponseArgs extends com.pulumi.resources.ResourceArgs {

    public static final DiagnosticBackendResponseArgs Empty = new DiagnosticBackendResponseArgs();

    /**
     * Number of payload bytes to log (up to 8192).
     * 
     */
    @Import(name="bodyBytes")
    private @Nullable Output bodyBytes;

    /**
     * @return Number of payload bytes to log (up to 8192).
     * 
     */
    public Optional> bodyBytes() {
        return Optional.ofNullable(this.bodyBytes);
    }

    /**
     * A `data_masking` block as defined below.
     * 
     */
    @Import(name="dataMasking")
    private @Nullable Output dataMasking;

    /**
     * @return A `data_masking` block as defined below.
     * 
     */
    public Optional> dataMasking() {
        return Optional.ofNullable(this.dataMasking);
    }

    /**
     * Specifies a list of headers to log.
     * 
     */
    @Import(name="headersToLogs")
    private @Nullable Output> headersToLogs;

    /**
     * @return Specifies a list of headers to log.
     * 
     */
    public Optional>> headersToLogs() {
        return Optional.ofNullable(this.headersToLogs);
    }

    private DiagnosticBackendResponseArgs() {}

    private DiagnosticBackendResponseArgs(DiagnosticBackendResponseArgs $) {
        this.bodyBytes = $.bodyBytes;
        this.dataMasking = $.dataMasking;
        this.headersToLogs = $.headersToLogs;
    }

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

    public static final class Builder {
        private DiagnosticBackendResponseArgs $;

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

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

        /**
         * @param bodyBytes Number of payload bytes to log (up to 8192).
         * 
         * @return builder
         * 
         */
        public Builder bodyBytes(@Nullable Output bodyBytes) {
            $.bodyBytes = bodyBytes;
            return this;
        }

        /**
         * @param bodyBytes Number of payload bytes to log (up to 8192).
         * 
         * @return builder
         * 
         */
        public Builder bodyBytes(Integer bodyBytes) {
            return bodyBytes(Output.of(bodyBytes));
        }

        /**
         * @param dataMasking A `data_masking` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder dataMasking(@Nullable Output dataMasking) {
            $.dataMasking = dataMasking;
            return this;
        }

        /**
         * @param dataMasking A `data_masking` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder dataMasking(DiagnosticBackendResponseDataMaskingArgs dataMasking) {
            return dataMasking(Output.of(dataMasking));
        }

        /**
         * @param headersToLogs Specifies a list of headers to log.
         * 
         * @return builder
         * 
         */
        public Builder headersToLogs(@Nullable Output> headersToLogs) {
            $.headersToLogs = headersToLogs;
            return this;
        }

        /**
         * @param headersToLogs Specifies a list of headers to log.
         * 
         * @return builder
         * 
         */
        public Builder headersToLogs(List headersToLogs) {
            return headersToLogs(Output.of(headersToLogs));
        }

        /**
         * @param headersToLogs Specifies a list of headers to log.
         * 
         * @return builder
         * 
         */
        public Builder headersToLogs(String... headersToLogs) {
            return headersToLogs(List.of(headersToLogs));
        }

        public DiagnosticBackendResponseArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy