
com.pulumi.azurenative.network.outputs.TargetDnsServerResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.network.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 TargetDnsServerResponse {
/**
* @return DNS server IP address.
*
*/
private String ipAddress;
/**
* @return DNS server port.
*
*/
private @Nullable Integer port;
private TargetDnsServerResponse() {}
/**
* @return DNS server IP address.
*
*/
public String ipAddress() {
return this.ipAddress;
}
/**
* @return DNS server port.
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TargetDnsServerResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String ipAddress;
private @Nullable Integer port;
public Builder() {}
public Builder(TargetDnsServerResponse defaults) {
Objects.requireNonNull(defaults);
this.ipAddress = defaults.ipAddress;
this.port = defaults.port;
}
@CustomType.Setter
public Builder ipAddress(String ipAddress) {
if (ipAddress == null) {
throw new MissingRequiredPropertyException("TargetDnsServerResponse", "ipAddress");
}
this.ipAddress = ipAddress;
return this;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
public TargetDnsServerResponse build() {
final var _resultValue = new TargetDnsServerResponse();
_resultValue.ipAddress = ipAddress;
_resultValue.port = port;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy