com.pulumi.azure.cdn.outputs.FrontdoorSecurityPolicySecurityPoliciesFirewallAssociationDomain 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.cdn.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 FrontdoorSecurityPolicySecurityPoliciesFirewallAssociationDomain {
/**
* @return Is the Front Door Custom Domain/Endpoint activated?
*
*/
private @Nullable Boolean active;
/**
* @return The Resource Id of the **Front Door Custom Domain** or **Front Door Endpoint** that should be bound to this Front Door Security Policy. Changing this forces a new Front Door Security Policy to be created.
*
*/
private String cdnFrontdoorDomainId;
private FrontdoorSecurityPolicySecurityPoliciesFirewallAssociationDomain() {}
/**
* @return Is the Front Door Custom Domain/Endpoint activated?
*
*/
public Optional active() {
return Optional.ofNullable(this.active);
}
/**
* @return The Resource Id of the **Front Door Custom Domain** or **Front Door Endpoint** that should be bound to this Front Door Security Policy. Changing this forces a new Front Door Security Policy to be created.
*
*/
public String cdnFrontdoorDomainId() {
return this.cdnFrontdoorDomainId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FrontdoorSecurityPolicySecurityPoliciesFirewallAssociationDomain defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean active;
private String cdnFrontdoorDomainId;
public Builder() {}
public Builder(FrontdoorSecurityPolicySecurityPoliciesFirewallAssociationDomain defaults) {
Objects.requireNonNull(defaults);
this.active = defaults.active;
this.cdnFrontdoorDomainId = defaults.cdnFrontdoorDomainId;
}
@CustomType.Setter
public Builder active(@Nullable Boolean active) {
this.active = active;
return this;
}
@CustomType.Setter
public Builder cdnFrontdoorDomainId(String cdnFrontdoorDomainId) {
if (cdnFrontdoorDomainId == null) {
throw new MissingRequiredPropertyException("FrontdoorSecurityPolicySecurityPoliciesFirewallAssociationDomain", "cdnFrontdoorDomainId");
}
this.cdnFrontdoorDomainId = cdnFrontdoorDomainId;
return this;
}
public FrontdoorSecurityPolicySecurityPoliciesFirewallAssociationDomain build() {
final var _resultValue = new FrontdoorSecurityPolicySecurityPoliciesFirewallAssociationDomain();
_resultValue.active = active;
_resultValue.cdnFrontdoorDomainId = cdnFrontdoorDomainId;
return _resultValue;
}
}
}