
com.pulumi.cloudamqp.outputs.GetVpcInfoResult 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.cloudamqp.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetVpcInfoResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private @Nullable Integer instanceId;
private String name;
private String ownerId;
private String securityGroupId;
private @Nullable String vpcId;
private String vpcSubnet;
private GetVpcInfoResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public Optional instanceId() {
return Optional.ofNullable(this.instanceId);
}
public String name() {
return this.name;
}
public String ownerId() {
return this.ownerId;
}
public String securityGroupId() {
return this.securityGroupId;
}
public Optional vpcId() {
return Optional.ofNullable(this.vpcId);
}
public String vpcSubnet() {
return this.vpcSubnet;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVpcInfoResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable Integer instanceId;
private String name;
private String ownerId;
private String securityGroupId;
private @Nullable String vpcId;
private String vpcSubnet;
public Builder() {}
public Builder(GetVpcInfoResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.instanceId = defaults.instanceId;
this.name = defaults.name;
this.ownerId = defaults.ownerId;
this.securityGroupId = defaults.securityGroupId;
this.vpcId = defaults.vpcId;
this.vpcSubnet = defaults.vpcSubnet;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetVpcInfoResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder instanceId(@Nullable Integer instanceId) {
this.instanceId = instanceId;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVpcInfoResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder ownerId(String ownerId) {
if (ownerId == null) {
throw new MissingRequiredPropertyException("GetVpcInfoResult", "ownerId");
}
this.ownerId = ownerId;
return this;
}
@CustomType.Setter
public Builder securityGroupId(String securityGroupId) {
if (securityGroupId == null) {
throw new MissingRequiredPropertyException("GetVpcInfoResult", "securityGroupId");
}
this.securityGroupId = securityGroupId;
return this;
}
@CustomType.Setter
public Builder vpcId(@Nullable String vpcId) {
this.vpcId = vpcId;
return this;
}
@CustomType.Setter
public Builder vpcSubnet(String vpcSubnet) {
if (vpcSubnet == null) {
throw new MissingRequiredPropertyException("GetVpcInfoResult", "vpcSubnet");
}
this.vpcSubnet = vpcSubnet;
return this;
}
public GetVpcInfoResult build() {
final var _resultValue = new GetVpcInfoResult();
_resultValue.id = id;
_resultValue.instanceId = instanceId;
_resultValue.name = name;
_resultValue.ownerId = ownerId;
_resultValue.securityGroupId = securityGroupId;
_resultValue.vpcId = vpcId;
_resultValue.vpcSubnet = vpcSubnet;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy