com.pulumi.aws.networkfirewall.outputs.RuleGroupRuleGroupRuleVariablesPortSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.networkfirewall.outputs;
import com.pulumi.aws.networkfirewall.outputs.RuleGroupRuleGroupRuleVariablesPortSetPortSet;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class RuleGroupRuleGroupRuleVariablesPortSet {
/**
* @return An unique alphanumeric string to identify the `port_set`.
*
*/
private String key;
/**
* @return A configuration block that defines a set of port ranges. See Port Set below for details.
*
*/
private RuleGroupRuleGroupRuleVariablesPortSetPortSet portSet;
private RuleGroupRuleGroupRuleVariablesPortSet() {}
/**
* @return An unique alphanumeric string to identify the `port_set`.
*
*/
public String key() {
return this.key;
}
/**
* @return A configuration block that defines a set of port ranges. See Port Set below for details.
*
*/
public RuleGroupRuleGroupRuleVariablesPortSetPortSet portSet() {
return this.portSet;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RuleGroupRuleGroupRuleVariablesPortSet defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String key;
private RuleGroupRuleGroupRuleVariablesPortSetPortSet portSet;
public Builder() {}
public Builder(RuleGroupRuleGroupRuleVariablesPortSet defaults) {
Objects.requireNonNull(defaults);
this.key = defaults.key;
this.portSet = defaults.portSet;
}
@CustomType.Setter
public Builder key(String key) {
if (key == null) {
throw new MissingRequiredPropertyException("RuleGroupRuleGroupRuleVariablesPortSet", "key");
}
this.key = key;
return this;
}
@CustomType.Setter
public Builder portSet(RuleGroupRuleGroupRuleVariablesPortSetPortSet portSet) {
if (portSet == null) {
throw new MissingRequiredPropertyException("RuleGroupRuleGroupRuleVariablesPortSet", "portSet");
}
this.portSet = portSet;
return this;
}
public RuleGroupRuleGroupRuleVariablesPortSet build() {
final var _resultValue = new RuleGroupRuleGroupRuleVariablesPortSet();
_resultValue.key = key;
_resultValue.portSet = portSet;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy