
com.pulumi.aws.ec2.outputs.GetSecurityGroupResult Maven / Gradle / Ivy
// *** 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.GetSecurityGroupFilter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetSecurityGroupResult {
/**
* @return Computed ARN of the security group.
*
*/
private String arn;
/**
* @return Description of the security group.
*
*/
private String description;
private @Nullable List filters;
private String id;
private String name;
private Map tags;
private String vpcId;
private GetSecurityGroupResult() {}
/**
* @return Computed ARN of the security group.
*
*/
public String arn() {
return this.arn;
}
/**
* @return Description of the security group.
*
*/
public String description() {
return this.description;
}
public List filters() {
return this.filters == null ? List.of() : this.filters;
}
public String id() {
return this.id;
}
public String name() {
return this.name;
}
public Map tags() {
return this.tags;
}
public String vpcId() {
return this.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSecurityGroupResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private String description;
private @Nullable List filters;
private String id;
private String name;
private Map tags;
private String vpcId;
public Builder() {}
public Builder(GetSecurityGroupResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.description = defaults.description;
this.filters = defaults.filters;
this.id = defaults.id;
this.name = defaults.name;
this.tags = defaults.tags;
this.vpcId = defaults.vpcId;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetSecurityGroupResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder description(String description) {
if (description == null) {
throw new MissingRequiredPropertyException("GetSecurityGroupResult", "description");
}
this.description = description;
return this;
}
@CustomType.Setter
public Builder filters(@Nullable List filters) {
this.filters = filters;
return this;
}
public Builder filters(GetSecurityGroupFilter... filters) {
return filters(List.of(filters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetSecurityGroupResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetSecurityGroupResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetSecurityGroupResult", "tags");
}
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder vpcId(String vpcId) {
if (vpcId == null) {
throw new MissingRequiredPropertyException("GetSecurityGroupResult", "vpcId");
}
this.vpcId = vpcId;
return this;
}
public GetSecurityGroupResult build() {
final var _resultValue = new GetSecurityGroupResult();
_resultValue.arn = arn;
_resultValue.description = description;
_resultValue.filters = filters;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.tags = tags;
_resultValue.vpcId = vpcId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy