
com.pulumi.azurenative.eventgrid.outputs.StaticDeliveryAttributeMappingResponse 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.eventgrid.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StaticDeliveryAttributeMappingResponse {
/**
* @return Boolean flag to tell if the attribute contains sensitive information .
*
*/
private @Nullable Boolean isSecret;
/**
* @return Name of the delivery attribute or header.
*
*/
private @Nullable String name;
/**
* @return Type of the delivery attribute or header name.
* Expected value is 'Static'.
*
*/
private String type;
/**
* @return Value of the delivery attribute.
*
*/
private @Nullable String value;
private StaticDeliveryAttributeMappingResponse() {}
/**
* @return Boolean flag to tell if the attribute contains sensitive information .
*
*/
public Optional isSecret() {
return Optional.ofNullable(this.isSecret);
}
/**
* @return Name of the delivery attribute or header.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Type of the delivery attribute or header name.
* Expected value is 'Static'.
*
*/
public String type() {
return this.type;
}
/**
* @return Value of the delivery attribute.
*
*/
public Optional value() {
return Optional.ofNullable(this.value);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StaticDeliveryAttributeMappingResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean isSecret;
private @Nullable String name;
private String type;
private @Nullable String value;
public Builder() {}
public Builder(StaticDeliveryAttributeMappingResponse defaults) {
Objects.requireNonNull(defaults);
this.isSecret = defaults.isSecret;
this.name = defaults.name;
this.type = defaults.type;
this.value = defaults.value;
}
@CustomType.Setter
public Builder isSecret(@Nullable Boolean isSecret) {
this.isSecret = isSecret;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("StaticDeliveryAttributeMappingResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder value(@Nullable String value) {
this.value = value;
return this;
}
public StaticDeliveryAttributeMappingResponse build() {
final var _resultValue = new StaticDeliveryAttributeMappingResponse();
_resultValue.isSecret = isSecret;
_resultValue.name = name;
_resultValue.type = type;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy