
com.pulumi.azurenative.avs.outputs.GetWorkloadNetworkDnsZoneResult 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.avs.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetWorkloadNetworkDnsZoneResult {
/**
* @return Display name of the DNS Zone.
*
*/
private @Nullable String displayName;
/**
* @return DNS Server IP array of the DNS Zone.
*
*/
private @Nullable List dnsServerIps;
/**
* @return Number of DNS Services using the DNS zone.
*
*/
private @Nullable Double dnsServices;
/**
* @return Domain names of the DNS Zone.
*
*/
private @Nullable List domain;
/**
* @return Resource ID.
*
*/
private String id;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return The provisioning state
*
*/
private String provisioningState;
/**
* @return NSX revision number.
*
*/
private @Nullable Double revision;
/**
* @return Source IP of the DNS Zone.
*
*/
private @Nullable String sourceIp;
/**
* @return Resource type.
*
*/
private String type;
private GetWorkloadNetworkDnsZoneResult() {}
/**
* @return Display name of the DNS Zone.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @return DNS Server IP array of the DNS Zone.
*
*/
public List dnsServerIps() {
return this.dnsServerIps == null ? List.of() : this.dnsServerIps;
}
/**
* @return Number of DNS Services using the DNS zone.
*
*/
public Optional dnsServices() {
return Optional.ofNullable(this.dnsServices);
}
/**
* @return Domain names of the DNS Zone.
*
*/
public List domain() {
return this.domain == null ? List.of() : this.domain;
}
/**
* @return Resource ID.
*
*/
public String id() {
return this.id;
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return The provisioning state
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return NSX revision number.
*
*/
public Optional revision() {
return Optional.ofNullable(this.revision);
}
/**
* @return Source IP of the DNS Zone.
*
*/
public Optional sourceIp() {
return Optional.ofNullable(this.sourceIp);
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetWorkloadNetworkDnsZoneResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String displayName;
private @Nullable List dnsServerIps;
private @Nullable Double dnsServices;
private @Nullable List domain;
private String id;
private String name;
private String provisioningState;
private @Nullable Double revision;
private @Nullable String sourceIp;
private String type;
public Builder() {}
public Builder(GetWorkloadNetworkDnsZoneResult defaults) {
Objects.requireNonNull(defaults);
this.displayName = defaults.displayName;
this.dnsServerIps = defaults.dnsServerIps;
this.dnsServices = defaults.dnsServices;
this.domain = defaults.domain;
this.id = defaults.id;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.revision = defaults.revision;
this.sourceIp = defaults.sourceIp;
this.type = defaults.type;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder dnsServerIps(@Nullable List dnsServerIps) {
this.dnsServerIps = dnsServerIps;
return this;
}
public Builder dnsServerIps(String... dnsServerIps) {
return dnsServerIps(List.of(dnsServerIps));
}
@CustomType.Setter
public Builder dnsServices(@Nullable Double dnsServices) {
this.dnsServices = dnsServices;
return this;
}
@CustomType.Setter
public Builder domain(@Nullable List domain) {
this.domain = domain;
return this;
}
public Builder domain(String... domain) {
return domain(List.of(domain));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetWorkloadNetworkDnsZoneResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetWorkloadNetworkDnsZoneResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetWorkloadNetworkDnsZoneResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder revision(@Nullable Double revision) {
this.revision = revision;
return this;
}
@CustomType.Setter
public Builder sourceIp(@Nullable String sourceIp) {
this.sourceIp = sourceIp;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetWorkloadNetworkDnsZoneResult", "type");
}
this.type = type;
return this;
}
public GetWorkloadNetworkDnsZoneResult build() {
final var _resultValue = new GetWorkloadNetworkDnsZoneResult();
_resultValue.displayName = displayName;
_resultValue.dnsServerIps = dnsServerIps;
_resultValue.dnsServices = dnsServices;
_resultValue.domain = domain;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.revision = revision;
_resultValue.sourceIp = sourceIp;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy