com.pulumi.aws.elasticsearch.outputs.DomainVpcOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) 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.aws.elasticsearch.outputs;
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 DomainVpcOptions {
/**
* @return If the domain was created inside a VPC, the names of the availability zones the configured `subnet_ids` were created inside.
*
*/
private @Nullable List availabilityZones;
/**
* @return List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used.
*
*/
private @Nullable List securityGroupIds;
/**
* @return List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in.
*
*/
private @Nullable List subnetIds;
/**
* @return If the domain was created inside a VPC, the ID of the VPC.
*
*/
private @Nullable String vpcId;
private DomainVpcOptions() {}
/**
* @return If the domain was created inside a VPC, the names of the availability zones the configured `subnet_ids` were created inside.
*
*/
public List availabilityZones() {
return this.availabilityZones == null ? List.of() : this.availabilityZones;
}
/**
* @return List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used.
*
*/
public List securityGroupIds() {
return this.securityGroupIds == null ? List.of() : this.securityGroupIds;
}
/**
* @return List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in.
*
*/
public List subnetIds() {
return this.subnetIds == null ? List.of() : this.subnetIds;
}
/**
* @return If the domain was created inside a VPC, the ID of the VPC.
*
*/
public Optional vpcId() {
return Optional.ofNullable(this.vpcId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DomainVpcOptions defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List availabilityZones;
private @Nullable List securityGroupIds;
private @Nullable List subnetIds;
private @Nullable String vpcId;
public Builder() {}
public Builder(DomainVpcOptions defaults) {
Objects.requireNonNull(defaults);
this.availabilityZones = defaults.availabilityZones;
this.securityGroupIds = defaults.securityGroupIds;
this.subnetIds = defaults.subnetIds;
this.vpcId = defaults.vpcId;
}
@CustomType.Setter
public Builder availabilityZones(@Nullable List availabilityZones) {
this.availabilityZones = availabilityZones;
return this;
}
public Builder availabilityZones(String... availabilityZones) {
return availabilityZones(List.of(availabilityZones));
}
@CustomType.Setter
public Builder securityGroupIds(@Nullable List securityGroupIds) {
this.securityGroupIds = securityGroupIds;
return this;
}
public Builder securityGroupIds(String... securityGroupIds) {
return securityGroupIds(List.of(securityGroupIds));
}
@CustomType.Setter
public Builder subnetIds(@Nullable List subnetIds) {
this.subnetIds = subnetIds;
return this;
}
public Builder subnetIds(String... subnetIds) {
return subnetIds(List.of(subnetIds));
}
@CustomType.Setter
public Builder vpcId(@Nullable String vpcId) {
this.vpcId = vpcId;
return this;
}
public DomainVpcOptions build() {
final var _resultValue = new DomainVpcOptions();
_resultValue.availabilityZones = availabilityZones;
_resultValue.securityGroupIds = securityGroupIds;
_resultValue.subnetIds = subnetIds;
_resultValue.vpcId = vpcId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy