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