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

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

import com.pulumi.azure.apimanagement.inputs.ApiDiagnosticBackendRequestDataMaskingArgs;
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 ApiDiagnosticBackendRequestArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApiDiagnosticBackendRequestArgs Empty = new ApiDiagnosticBackendRequestArgs();

    /**
     * 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 ApiDiagnosticBackendRequestArgs() {}

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

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

    public static final class Builder {
        private ApiDiagnosticBackendRequestArgs $;

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

        public Builder(ApiDiagnosticBackendRequestArgs defaults) {
            $ = new ApiDiagnosticBackendRequestArgs(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(ApiDiagnosticBackendRequestDataMaskingArgs 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 ApiDiagnosticBackendRequestArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy