com.pulumi.aws.directoryservice.outputs.DirectoryConnectSettings 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.directoryservice.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class DirectoryConnectSettings {
private @Nullable List availabilityZones;
/**
* @return The IP addresses of the AD Connector servers.
*
*/
private @Nullable List connectIps;
/**
* @return The DNS IP addresses of the domain to connect to.
*
*/
private List customerDnsIps;
/**
* @return The username corresponding to the password provided.
*
*/
private String customerUsername;
/**
* @return The identifiers of the subnets for the directory servers (2 subnets in 2 different AZs).
*
*/
private List subnetIds;
/**
* @return The identifier of the VPC that the directory is in.
*
*/
private String vpcId;
private DirectoryConnectSettings() {}
public List availabilityZones() {
return this.availabilityZones == null ? List.of() : this.availabilityZones;
}
/**
* @return The IP addresses of the AD Connector servers.
*
*/
public List connectIps() {
return this.connectIps == null ? List.of() : this.connectIps;
}
/**
* @return The DNS IP addresses of the domain to connect to.
*
*/
public List customerDnsIps() {
return this.customerDnsIps;
}
/**
* @return The username corresponding to the password provided.
*
*/
public String customerUsername() {
return this.customerUsername;
}
/**
* @return The identifiers of the subnets for the directory servers (2 subnets in 2 different AZs).
*
*/
public List subnetIds() {
return this.subnetIds;
}
/**
* @return The identifier of the VPC that the directory is in.
*
*/
public String vpcId() {
return this.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DirectoryConnectSettings defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List availabilityZones;
private @Nullable List connectIps;
private List customerDnsIps;
private String customerUsername;
private List subnetIds;
private String vpcId;
public Builder() {}
public Builder(DirectoryConnectSettings defaults) {
Objects.requireNonNull(defaults);
this.availabilityZones = defaults.availabilityZones;
this.connectIps = defaults.connectIps;
this.customerDnsIps = defaults.customerDnsIps;
this.customerUsername = defaults.customerUsername;
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 connectIps(@Nullable List connectIps) {
this.connectIps = connectIps;
return this;
}
public Builder connectIps(String... connectIps) {
return connectIps(List.of(connectIps));
}
@CustomType.Setter
public Builder customerDnsIps(List customerDnsIps) {
if (customerDnsIps == null) {
throw new MissingRequiredPropertyException("DirectoryConnectSettings", "customerDnsIps");
}
this.customerDnsIps = customerDnsIps;
return this;
}
public Builder customerDnsIps(String... customerDnsIps) {
return customerDnsIps(List.of(customerDnsIps));
}
@CustomType.Setter
public Builder customerUsername(String customerUsername) {
if (customerUsername == null) {
throw new MissingRequiredPropertyException("DirectoryConnectSettings", "customerUsername");
}
this.customerUsername = customerUsername;
return this;
}
@CustomType.Setter
public Builder subnetIds(List subnetIds) {
if (subnetIds == null) {
throw new MissingRequiredPropertyException("DirectoryConnectSettings", "subnetIds");
}
this.subnetIds = subnetIds;
return this;
}
public Builder subnetIds(String... subnetIds) {
return subnetIds(List.of(subnetIds));
}
@CustomType.Setter
public Builder vpcId(String vpcId) {
if (vpcId == null) {
throw new MissingRequiredPropertyException("DirectoryConnectSettings", "vpcId");
}
this.vpcId = vpcId;
return this;
}
public DirectoryConnectSettings build() {
final var _resultValue = new DirectoryConnectSettings();
_resultValue.availabilityZones = availabilityZones;
_resultValue.connectIps = connectIps;
_resultValue.customerDnsIps = customerDnsIps;
_resultValue.customerUsername = customerUsername;
_resultValue.subnetIds = subnetIds;
_resultValue.vpcId = vpcId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy