com.pulumi.cloudngfwaws.outputs.GetNgfwsResult 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.GetNgfwsInstance;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetNgfwsResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return List of NGFWs.
*
*/
private List instances;
/**
* @return The rulestack to filter on.
*
*/
private @Nullable String rulestack;
/**
* @return List of vpc ids to filter on.
*
*/
private @Nullable List vpcIds;
private GetNgfwsResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return List of NGFWs.
*
*/
public List instances() {
return this.instances;
}
/**
* @return The rulestack to filter on.
*
*/
public Optional rulestack() {
return Optional.ofNullable(this.rulestack);
}
/**
* @return List of vpc ids to filter on.
*
*/
public List vpcIds() {
return this.vpcIds == null ? List.of() : this.vpcIds;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetNgfwsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private List instances;
private @Nullable String rulestack;
private @Nullable List vpcIds;
public Builder() {}
public Builder(GetNgfwsResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.instances = defaults.instances;
this.rulestack = defaults.rulestack;
this.vpcIds = defaults.vpcIds;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetNgfwsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder instances(List instances) {
if (instances == null) {
throw new MissingRequiredPropertyException("GetNgfwsResult", "instances");
}
this.instances = instances;
return this;
}
public Builder instances(GetNgfwsInstance... instances) {
return instances(List.of(instances));
}
@CustomType.Setter
public Builder rulestack(@Nullable String rulestack) {
this.rulestack = rulestack;
return this;
}
@CustomType.Setter
public Builder vpcIds(@Nullable List vpcIds) {
this.vpcIds = vpcIds;
return this;
}
public Builder vpcIds(String... vpcIds) {
return vpcIds(List.of(vpcIds));
}
public GetNgfwsResult build() {
final var _resultValue = new GetNgfwsResult();
_resultValue.id = id;
_resultValue.instances = instances;
_resultValue.rulestack = rulestack;
_resultValue.vpcIds = vpcIds;
return _resultValue;
}
}
}