com.pulumi.scm.outputs.GetVulnerabilityProtectionProfileRuleActionBlockIp 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.scm.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetVulnerabilityProtectionProfileRuleActionBlockIp {
/**
* @return The Duration param. Value must be between 1 and 3600.
*
*/
private Integer duration;
/**
* @return The TrackBy param. String must be one of these: `"source-and-destination"`, `"source"`.
*
*/
private String trackBy;
private GetVulnerabilityProtectionProfileRuleActionBlockIp() {}
/**
* @return The Duration param. Value must be between 1 and 3600.
*
*/
public Integer duration() {
return this.duration;
}
/**
* @return The TrackBy param. String must be one of these: `"source-and-destination"`, `"source"`.
*
*/
public String trackBy() {
return this.trackBy;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVulnerabilityProtectionProfileRuleActionBlockIp defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer duration;
private String trackBy;
public Builder() {}
public Builder(GetVulnerabilityProtectionProfileRuleActionBlockIp defaults) {
Objects.requireNonNull(defaults);
this.duration = defaults.duration;
this.trackBy = defaults.trackBy;
}
@CustomType.Setter
public Builder duration(Integer duration) {
if (duration == null) {
throw new MissingRequiredPropertyException("GetVulnerabilityProtectionProfileRuleActionBlockIp", "duration");
}
this.duration = duration;
return this;
}
@CustomType.Setter
public Builder trackBy(String trackBy) {
if (trackBy == null) {
throw new MissingRequiredPropertyException("GetVulnerabilityProtectionProfileRuleActionBlockIp", "trackBy");
}
this.trackBy = trackBy;
return this;
}
public GetVulnerabilityProtectionProfileRuleActionBlockIp build() {
final var _resultValue = new GetVulnerabilityProtectionProfileRuleActionBlockIp();
_resultValue.duration = duration;
_resultValue.trackBy = trackBy;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy