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

com.pulumi.azurenative.apimanagement.outputs.HttpMessageDiagnosticResponse 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.azurenative.apimanagement.outputs;

import com.pulumi.azurenative.apimanagement.outputs.BodyDiagnosticSettingsResponse;
import com.pulumi.azurenative.apimanagement.outputs.DataMaskingResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class HttpMessageDiagnosticResponse {
    /**
     * @return Body logging settings.
     * 
     */
    private @Nullable BodyDiagnosticSettingsResponse body;
    /**
     * @return Data masking settings.
     * 
     */
    private @Nullable DataMaskingResponse dataMasking;
    /**
     * @return Array of HTTP Headers to log.
     * 
     */
    private @Nullable List headers;

    private HttpMessageDiagnosticResponse() {}
    /**
     * @return Body logging settings.
     * 
     */
    public Optional body() {
        return Optional.ofNullable(this.body);
    }
    /**
     * @return Data masking settings.
     * 
     */
    public Optional dataMasking() {
        return Optional.ofNullable(this.dataMasking);
    }
    /**
     * @return Array of HTTP Headers to log.
     * 
     */
    public List headers() {
        return this.headers == null ? List.of() : this.headers;
    }

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

    public static Builder builder(HttpMessageDiagnosticResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable BodyDiagnosticSettingsResponse body;
        private @Nullable DataMaskingResponse dataMasking;
        private @Nullable List headers;
        public Builder() {}
        public Builder(HttpMessageDiagnosticResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.body = defaults.body;
    	      this.dataMasking = defaults.dataMasking;
    	      this.headers = defaults.headers;
        }

        @CustomType.Setter
        public Builder body(@Nullable BodyDiagnosticSettingsResponse body) {

            this.body = body;
            return this;
        }
        @CustomType.Setter
        public Builder dataMasking(@Nullable DataMaskingResponse dataMasking) {

            this.dataMasking = dataMasking;
            return this;
        }
        @CustomType.Setter
        public Builder headers(@Nullable List headers) {

            this.headers = headers;
            return this;
        }
        public Builder headers(String... headers) {
            return headers(List.of(headers));
        }
        public HttpMessageDiagnosticResponse build() {
            final var _resultValue = new HttpMessageDiagnosticResponse();
            _resultValue.body = body;
            _resultValue.dataMasking = dataMasking;
            _resultValue.headers = headers;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy