
com.pulumi.azurenative.cdn.outputs.HeaderActionParametersResponse 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.cdn.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class HeaderActionParametersResponse {
/**
* @return Action to perform
*
*/
private String headerAction;
/**
* @return Name of the header to modify
*
*/
private String headerName;
private String typeName;
/**
* @return Value for the specified action
*
*/
private @Nullable String value;
private HeaderActionParametersResponse() {}
/**
* @return Action to perform
*
*/
public String headerAction() {
return this.headerAction;
}
/**
* @return Name of the header to modify
*
*/
public String headerName() {
return this.headerName;
}
public String typeName() {
return this.typeName;
}
/**
* @return Value for the specified action
*
*/
public Optional value() {
return Optional.ofNullable(this.value);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HeaderActionParametersResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String headerAction;
private String headerName;
private String typeName;
private @Nullable String value;
public Builder() {}
public Builder(HeaderActionParametersResponse defaults) {
Objects.requireNonNull(defaults);
this.headerAction = defaults.headerAction;
this.headerName = defaults.headerName;
this.typeName = defaults.typeName;
this.value = defaults.value;
}
@CustomType.Setter
public Builder headerAction(String headerAction) {
if (headerAction == null) {
throw new MissingRequiredPropertyException("HeaderActionParametersResponse", "headerAction");
}
this.headerAction = headerAction;
return this;
}
@CustomType.Setter
public Builder headerName(String headerName) {
if (headerName == null) {
throw new MissingRequiredPropertyException("HeaderActionParametersResponse", "headerName");
}
this.headerName = headerName;
return this;
}
@CustomType.Setter
public Builder typeName(String typeName) {
if (typeName == null) {
throw new MissingRequiredPropertyException("HeaderActionParametersResponse", "typeName");
}
this.typeName = typeName;
return this;
}
@CustomType.Setter
public Builder value(@Nullable String value) {
this.value = value;
return this;
}
public HeaderActionParametersResponse build() {
final var _resultValue = new HeaderActionParametersResponse();
_resultValue.headerAction = headerAction;
_resultValue.headerName = headerName;
_resultValue.typeName = typeName;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy