com.pulumi.alicloud.cdn.outputs.DomainHttpHeaderConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** 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.alicloud.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 DomainHttpHeaderConfig {
private @Nullable String headerId;
private String headerKey;
private String headerValue;
private DomainHttpHeaderConfig() {}
public Optional headerId() {
return Optional.ofNullable(this.headerId);
}
public String headerKey() {
return this.headerKey;
}
public String headerValue() {
return this.headerValue;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DomainHttpHeaderConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String headerId;
private String headerKey;
private String headerValue;
public Builder() {}
public Builder(DomainHttpHeaderConfig defaults) {
Objects.requireNonNull(defaults);
this.headerId = defaults.headerId;
this.headerKey = defaults.headerKey;
this.headerValue = defaults.headerValue;
}
@CustomType.Setter
public Builder headerId(@Nullable String headerId) {
this.headerId = headerId;
return this;
}
@CustomType.Setter
public Builder headerKey(String headerKey) {
if (headerKey == null) {
throw new MissingRequiredPropertyException("DomainHttpHeaderConfig", "headerKey");
}
this.headerKey = headerKey;
return this;
}
@CustomType.Setter
public Builder headerValue(String headerValue) {
if (headerValue == null) {
throw new MissingRequiredPropertyException("DomainHttpHeaderConfig", "headerValue");
}
this.headerValue = headerValue;
return this;
}
public DomainHttpHeaderConfig build() {
final var _resultValue = new DomainHttpHeaderConfig();
_resultValue.headerId = headerId;
_resultValue.headerKey = headerKey;
_resultValue.headerValue = headerValue;
return _resultValue;
}
}
}