com.pulumi.linode.outputs.GetNodeBalancerFirewall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linode Show documentation
Show all versions of linode Show documentation
A Pulumi package for creating and managing linode 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.linode.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.outputs.GetNodeBalancerFirewallInbound;
import com.pulumi.linode.outputs.GetNodeBalancerFirewallOutbound;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetNodeBalancerFirewall {
/**
* @return When this firewall was created.
*
*/
private String created;
/**
* @return The NodeBalancer's ID.
*
*/
private Integer id;
/**
* @return The default behavior for inbound traffic. (`ACCEPT`, `DROP`)
*
*/
private String inboundPolicy;
/**
* @return A set of firewall rules that specify what inbound network traffic is allowed.
*
*/
private @Nullable List inbounds;
/**
* @return Used to identify this rule. For display purposes only.
*
*/
private String label;
/**
* @return The default behavior for outbound traffic. (`ACCEPT`, `DROP`)
*
*/
private String outboundPolicy;
/**
* @return A set of firewall rules that specify what outbound network traffic is allowed.
*
*/
private @Nullable List outbounds;
/**
* @return The status of the firewall. (`enabled`, `disabled`, `deleted`)
*
*/
private String status;
/**
* @return The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
*
*/
private List tags;
/**
* @return When this firewall was last updated.
*
*/
private String updated;
private GetNodeBalancerFirewall() {}
/**
* @return When this firewall was created.
*
*/
public String created() {
return this.created;
}
/**
* @return The NodeBalancer's ID.
*
*/
public Integer id() {
return this.id;
}
/**
* @return The default behavior for inbound traffic. (`ACCEPT`, `DROP`)
*
*/
public String inboundPolicy() {
return this.inboundPolicy;
}
/**
* @return A set of firewall rules that specify what inbound network traffic is allowed.
*
*/
public List inbounds() {
return this.inbounds == null ? List.of() : this.inbounds;
}
/**
* @return Used to identify this rule. For display purposes only.
*
*/
public String label() {
return this.label;
}
/**
* @return The default behavior for outbound traffic. (`ACCEPT`, `DROP`)
*
*/
public String outboundPolicy() {
return this.outboundPolicy;
}
/**
* @return A set of firewall rules that specify what outbound network traffic is allowed.
*
*/
public List outbounds() {
return this.outbounds == null ? List.of() : this.outbounds;
}
/**
* @return The status of the firewall. (`enabled`, `disabled`, `deleted`)
*
*/
public String status() {
return this.status;
}
/**
* @return The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
*
*/
public List tags() {
return this.tags;
}
/**
* @return When this firewall was last updated.
*
*/
public String updated() {
return this.updated;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetNodeBalancerFirewall defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String created;
private Integer id;
private String inboundPolicy;
private @Nullable List inbounds;
private String label;
private String outboundPolicy;
private @Nullable List outbounds;
private String status;
private List tags;
private String updated;
public Builder() {}
public Builder(GetNodeBalancerFirewall defaults) {
Objects.requireNonNull(defaults);
this.created = defaults.created;
this.id = defaults.id;
this.inboundPolicy = defaults.inboundPolicy;
this.inbounds = defaults.inbounds;
this.label = defaults.label;
this.outboundPolicy = defaults.outboundPolicy;
this.outbounds = defaults.outbounds;
this.status = defaults.status;
this.tags = defaults.tags;
this.updated = defaults.updated;
}
@CustomType.Setter
public Builder created(String created) {
if (created == null) {
throw new MissingRequiredPropertyException("GetNodeBalancerFirewall", "created");
}
this.created = created;
return this;
}
@CustomType.Setter
public Builder id(Integer id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetNodeBalancerFirewall", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder inboundPolicy(String inboundPolicy) {
if (inboundPolicy == null) {
throw new MissingRequiredPropertyException("GetNodeBalancerFirewall", "inboundPolicy");
}
this.inboundPolicy = inboundPolicy;
return this;
}
@CustomType.Setter
public Builder inbounds(@Nullable List inbounds) {
this.inbounds = inbounds;
return this;
}
public Builder inbounds(GetNodeBalancerFirewallInbound... inbounds) {
return inbounds(List.of(inbounds));
}
@CustomType.Setter
public Builder label(String label) {
if (label == null) {
throw new MissingRequiredPropertyException("GetNodeBalancerFirewall", "label");
}
this.label = label;
return this;
}
@CustomType.Setter
public Builder outboundPolicy(String outboundPolicy) {
if (outboundPolicy == null) {
throw new MissingRequiredPropertyException("GetNodeBalancerFirewall", "outboundPolicy");
}
this.outboundPolicy = outboundPolicy;
return this;
}
@CustomType.Setter
public Builder outbounds(@Nullable List outbounds) {
this.outbounds = outbounds;
return this;
}
public Builder outbounds(GetNodeBalancerFirewallOutbound... outbounds) {
return outbounds(List.of(outbounds));
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetNodeBalancerFirewall", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder tags(List tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetNodeBalancerFirewall", "tags");
}
this.tags = tags;
return this;
}
public Builder tags(String... tags) {
return tags(List.of(tags));
}
@CustomType.Setter
public Builder updated(String updated) {
if (updated == null) {
throw new MissingRequiredPropertyException("GetNodeBalancerFirewall", "updated");
}
this.updated = updated;
return this;
}
public GetNodeBalancerFirewall build() {
final var _resultValue = new GetNodeBalancerFirewall();
_resultValue.created = created;
_resultValue.id = id;
_resultValue.inboundPolicy = inboundPolicy;
_resultValue.inbounds = inbounds;
_resultValue.label = label;
_resultValue.outboundPolicy = outboundPolicy;
_resultValue.outbounds = outbounds;
_resultValue.status = status;
_resultValue.tags = tags;
_resultValue.updated = updated;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy