com.pulumi.cloudngfwaws.outputs.NgfwStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudngfwaws Show documentation
Show all versions of cloudngfwaws Show documentation
A Pulumi package for creating and managing Cloud NGFW for AWS resources.
The newest version!
// *** 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.cloudngfwaws.outputs;
import com.pulumi.cloudngfwaws.outputs.NgfwStatusAttachment;
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 NgfwStatus {
/**
* @return The firewall attachments.
*
*/
private @Nullable List attachments;
/**
* @return The firewall failure reason.
*
*/
private @Nullable String failureReason;
/**
* @return The firewall status.
*
*/
private @Nullable String firewallStatus;
/**
* @return The rulestack status.
*
*/
private @Nullable String rulestackStatus;
private NgfwStatus() {}
/**
* @return The firewall attachments.
*
*/
public List attachments() {
return this.attachments == null ? List.of() : this.attachments;
}
/**
* @return The firewall failure reason.
*
*/
public Optional failureReason() {
return Optional.ofNullable(this.failureReason);
}
/**
* @return The firewall status.
*
*/
public Optional firewallStatus() {
return Optional.ofNullable(this.firewallStatus);
}
/**
* @return The rulestack status.
*
*/
public Optional rulestackStatus() {
return Optional.ofNullable(this.rulestackStatus);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NgfwStatus defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List attachments;
private @Nullable String failureReason;
private @Nullable String firewallStatus;
private @Nullable String rulestackStatus;
public Builder() {}
public Builder(NgfwStatus defaults) {
Objects.requireNonNull(defaults);
this.attachments = defaults.attachments;
this.failureReason = defaults.failureReason;
this.firewallStatus = defaults.firewallStatus;
this.rulestackStatus = defaults.rulestackStatus;
}
@CustomType.Setter
public Builder attachments(@Nullable List attachments) {
this.attachments = attachments;
return this;
}
public Builder attachments(NgfwStatusAttachment... attachments) {
return attachments(List.of(attachments));
}
@CustomType.Setter
public Builder failureReason(@Nullable String failureReason) {
this.failureReason = failureReason;
return this;
}
@CustomType.Setter
public Builder firewallStatus(@Nullable String firewallStatus) {
this.firewallStatus = firewallStatus;
return this;
}
@CustomType.Setter
public Builder rulestackStatus(@Nullable String rulestackStatus) {
this.rulestackStatus = rulestackStatus;
return this;
}
public NgfwStatus build() {
final var _resultValue = new NgfwStatus();
_resultValue.attachments = attachments;
_resultValue.failureReason = failureReason;
_resultValue.firewallStatus = firewallStatus;
_resultValue.rulestackStatus = rulestackStatus;
return _resultValue;
}
}
}