com.pulumi.azurenative.cdn.outputs.SecurityPolicyWebApplicationFirewallParametersResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.cdn.outputs;
import com.pulumi.azurenative.cdn.outputs.ResourceReferenceResponse;
import com.pulumi.azurenative.cdn.outputs.SecurityPolicyWebApplicationFirewallAssociationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SecurityPolicyWebApplicationFirewallParametersResponse {
/**
* @return Waf associations
*
*/
private @Nullable List associations;
/**
* @return The type of the Security policy to create.
* Expected value is 'WebApplicationFirewall'.
*
*/
private String type;
/**
* @return Resource ID.
*
*/
private @Nullable ResourceReferenceResponse wafPolicy;
private SecurityPolicyWebApplicationFirewallParametersResponse() {}
/**
* @return Waf associations
*
*/
public List associations() {
return this.associations == null ? List.of() : this.associations;
}
/**
* @return The type of the Security policy to create.
* Expected value is 'WebApplicationFirewall'.
*
*/
public String type() {
return this.type;
}
/**
* @return Resource ID.
*
*/
public Optional wafPolicy() {
return Optional.ofNullable(this.wafPolicy);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SecurityPolicyWebApplicationFirewallParametersResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List associations;
private String type;
private @Nullable ResourceReferenceResponse wafPolicy;
public Builder() {}
public Builder(SecurityPolicyWebApplicationFirewallParametersResponse defaults) {
Objects.requireNonNull(defaults);
this.associations = defaults.associations;
this.type = defaults.type;
this.wafPolicy = defaults.wafPolicy;
}
@CustomType.Setter
public Builder associations(@Nullable List associations) {
this.associations = associations;
return this;
}
public Builder associations(SecurityPolicyWebApplicationFirewallAssociationResponse... associations) {
return associations(List.of(associations));
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("SecurityPolicyWebApplicationFirewallParametersResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder wafPolicy(@Nullable ResourceReferenceResponse wafPolicy) {
this.wafPolicy = wafPolicy;
return this;
}
public SecurityPolicyWebApplicationFirewallParametersResponse build() {
final var _resultValue = new SecurityPolicyWebApplicationFirewallParametersResponse();
_resultValue.associations = associations;
_resultValue.type = type;
_resultValue.wafPolicy = wafPolicy;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy