com.pulumi.aws.ec2.outputs.NetworkInsightsAnalysisExplanationSecurityGroupRule 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.ec2.outputs;
import com.pulumi.aws.ec2.outputs.NetworkInsightsAnalysisExplanationSecurityGroupRulePortRange;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class NetworkInsightsAnalysisExplanationSecurityGroupRule {
private @Nullable String cidr;
private @Nullable String direction;
private @Nullable List portRanges;
private @Nullable String prefixListId;
private @Nullable String protocol;
private @Nullable String securityGroupId;
private NetworkInsightsAnalysisExplanationSecurityGroupRule() {}
public Optional cidr() {
return Optional.ofNullable(this.cidr);
}
public Optional direction() {
return Optional.ofNullable(this.direction);
}
public List portRanges() {
return this.portRanges == null ? List.of() : this.portRanges;
}
public Optional prefixListId() {
return Optional.ofNullable(this.prefixListId);
}
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
public Optional securityGroupId() {
return Optional.ofNullable(this.securityGroupId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkInsightsAnalysisExplanationSecurityGroupRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String cidr;
private @Nullable String direction;
private @Nullable List portRanges;
private @Nullable String prefixListId;
private @Nullable String protocol;
private @Nullable String securityGroupId;
public Builder() {}
public Builder(NetworkInsightsAnalysisExplanationSecurityGroupRule defaults) {
Objects.requireNonNull(defaults);
this.cidr = defaults.cidr;
this.direction = defaults.direction;
this.portRanges = defaults.portRanges;
this.prefixListId = defaults.prefixListId;
this.protocol = defaults.protocol;
this.securityGroupId = defaults.securityGroupId;
}
@CustomType.Setter
public Builder cidr(@Nullable String cidr) {
this.cidr = cidr;
return this;
}
@CustomType.Setter
public Builder direction(@Nullable String direction) {
this.direction = direction;
return this;
}
@CustomType.Setter
public Builder portRanges(@Nullable List portRanges) {
this.portRanges = portRanges;
return this;
}
public Builder portRanges(NetworkInsightsAnalysisExplanationSecurityGroupRulePortRange... portRanges) {
return portRanges(List.of(portRanges));
}
@CustomType.Setter
public Builder prefixListId(@Nullable String prefixListId) {
this.prefixListId = prefixListId;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder securityGroupId(@Nullable String securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
public NetworkInsightsAnalysisExplanationSecurityGroupRule build() {
final var _resultValue = new NetworkInsightsAnalysisExplanationSecurityGroupRule();
_resultValue.cidr = cidr;
_resultValue.direction = direction;
_resultValue.portRanges = portRanges;
_resultValue.prefixListId = prefixListId;
_resultValue.protocol = protocol;
_resultValue.securityGroupId = securityGroupId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy