com.pulumi.scm.outputs.GetVulnerabilityProtectionProfileRuleAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scm Show documentation
Show all versions of scm Show documentation
A Pulumi package for managing resources on Strata Cloud Manager.
// *** 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.scm.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.scm.outputs.GetVulnerabilityProtectionProfileRuleActionBlockIp;
import java.lang.Boolean;
import java.util.Objects;
@CustomType
public final class GetVulnerabilityProtectionProfileRuleAction {
/**
* @return The Alert param.
*
*/
private Boolean alert;
/**
* @return The Allow param.
*
*/
private Boolean allow;
/**
* @return The BlockIp param.
*
*/
private GetVulnerabilityProtectionProfileRuleActionBlockIp blockIp;
/**
* @return The Default param.
*
*/
private Boolean default_;
/**
* @return The Drop param.
*
*/
private Boolean drop;
/**
* @return The ResetBoth param.
*
*/
private Boolean resetBoth;
/**
* @return The ResetClient param.
*
*/
private Boolean resetClient;
/**
* @return The ResetServer param.
*
*/
private Boolean resetServer;
private GetVulnerabilityProtectionProfileRuleAction() {}
/**
* @return The Alert param.
*
*/
public Boolean alert() {
return this.alert;
}
/**
* @return The Allow param.
*
*/
public Boolean allow() {
return this.allow;
}
/**
* @return The BlockIp param.
*
*/
public GetVulnerabilityProtectionProfileRuleActionBlockIp blockIp() {
return this.blockIp;
}
/**
* @return The Default param.
*
*/
public Boolean default_() {
return this.default_;
}
/**
* @return The Drop param.
*
*/
public Boolean drop() {
return this.drop;
}
/**
* @return The ResetBoth param.
*
*/
public Boolean resetBoth() {
return this.resetBoth;
}
/**
* @return The ResetClient param.
*
*/
public Boolean resetClient() {
return this.resetClient;
}
/**
* @return The ResetServer param.
*
*/
public Boolean resetServer() {
return this.resetServer;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVulnerabilityProtectionProfileRuleAction defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean alert;
private Boolean allow;
private GetVulnerabilityProtectionProfileRuleActionBlockIp blockIp;
private Boolean default_;
private Boolean drop;
private Boolean resetBoth;
private Boolean resetClient;
private Boolean resetServer;
public Builder() {}
public Builder(GetVulnerabilityProtectionProfileRuleAction defaults) {
Objects.requireNonNull(defaults);
this.alert = defaults.alert;
this.allow = defaults.allow;
this.blockIp = defaults.blockIp;
this.default_ = defaults.default_;
this.drop = defaults.drop;
this.resetBoth = defaults.resetBoth;
this.resetClient = defaults.resetClient;
this.resetServer = defaults.resetServer;
}
@CustomType.Setter
public Builder alert(Boolean alert) {
if (alert == null) {
throw new MissingRequiredPropertyException("GetVulnerabilityProtectionProfileRuleAction", "alert");
}
this.alert = alert;
return this;
}
@CustomType.Setter
public Builder allow(Boolean allow) {
if (allow == null) {
throw new MissingRequiredPropertyException("GetVulnerabilityProtectionProfileRuleAction", "allow");
}
this.allow = allow;
return this;
}
@CustomType.Setter
public Builder blockIp(GetVulnerabilityProtectionProfileRuleActionBlockIp blockIp) {
if (blockIp == null) {
throw new MissingRequiredPropertyException("GetVulnerabilityProtectionProfileRuleAction", "blockIp");
}
this.blockIp = blockIp;
return this;
}
@CustomType.Setter("default")
public Builder default_(Boolean default_) {
if (default_ == null) {
throw new MissingRequiredPropertyException("GetVulnerabilityProtectionProfileRuleAction", "default_");
}
this.default_ = default_;
return this;
}
@CustomType.Setter
public Builder drop(Boolean drop) {
if (drop == null) {
throw new MissingRequiredPropertyException("GetVulnerabilityProtectionProfileRuleAction", "drop");
}
this.drop = drop;
return this;
}
@CustomType.Setter
public Builder resetBoth(Boolean resetBoth) {
if (resetBoth == null) {
throw new MissingRequiredPropertyException("GetVulnerabilityProtectionProfileRuleAction", "resetBoth");
}
this.resetBoth = resetBoth;
return this;
}
@CustomType.Setter
public Builder resetClient(Boolean resetClient) {
if (resetClient == null) {
throw new MissingRequiredPropertyException("GetVulnerabilityProtectionProfileRuleAction", "resetClient");
}
this.resetClient = resetClient;
return this;
}
@CustomType.Setter
public Builder resetServer(Boolean resetServer) {
if (resetServer == null) {
throw new MissingRequiredPropertyException("GetVulnerabilityProtectionProfileRuleAction", "resetServer");
}
this.resetServer = resetServer;
return this;
}
public GetVulnerabilityProtectionProfileRuleAction build() {
final var _resultValue = new GetVulnerabilityProtectionProfileRuleAction();
_resultValue.alert = alert;
_resultValue.allow = allow;
_resultValue.blockIp = blockIp;
_resultValue.default_ = default_;
_resultValue.drop = drop;
_resultValue.resetBoth = resetBoth;
_resultValue.resetClient = resetClient;
_resultValue.resetServer = resetServer;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy