com.pulumi.azure.apimanagement.outputs.DiagnosticBackendRequestDataMaskingHeader 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.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class DiagnosticBackendRequestDataMaskingHeader {
/**
* @return The data masking mode. Possible values are `Mask` and `Hide` for `query_params`. The only possible value is `Mask` for `headers`.
*
*/
private String mode;
/**
* @return The name of the header or the query parameter to mask.
*
*/
private String value;
private DiagnosticBackendRequestDataMaskingHeader() {}
/**
* @return The data masking mode. Possible values are `Mask` and `Hide` for `query_params`. The only possible value is `Mask` for `headers`.
*
*/
public String mode() {
return this.mode;
}
/**
* @return The name of the header or the query parameter to mask.
*
*/
public String value() {
return this.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DiagnosticBackendRequestDataMaskingHeader defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String mode;
private String value;
public Builder() {}
public Builder(DiagnosticBackendRequestDataMaskingHeader defaults) {
Objects.requireNonNull(defaults);
this.mode = defaults.mode;
this.value = defaults.value;
}
@CustomType.Setter
public Builder mode(String mode) {
if (mode == null) {
throw new MissingRequiredPropertyException("DiagnosticBackendRequestDataMaskingHeader", "mode");
}
this.mode = mode;
return this;
}
@CustomType.Setter
public Builder value(String value) {
if (value == null) {
throw new MissingRequiredPropertyException("DiagnosticBackendRequestDataMaskingHeader", "value");
}
this.value = value;
return this;
}
public DiagnosticBackendRequestDataMaskingHeader build() {
final var _resultValue = new DiagnosticBackendRequestDataMaskingHeader();
_resultValue.mode = mode;
_resultValue.value = value;
return _resultValue;
}
}
}