com.pulumi.azurenative.network.outputs.DnsResourceReferenceResponse 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.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DnsResourceReferenceResponse {
/**
* @return A list of dns Records
*
*/
private @Nullable List dnsResources;
/**
* @return A reference to an azure resource from where the dns resource value is taken.
*
*/
private @Nullable SubResourceResponse targetResource;
private DnsResourceReferenceResponse() {}
/**
* @return A list of dns Records
*
*/
public List dnsResources() {
return this.dnsResources == null ? List.of() : this.dnsResources;
}
/**
* @return A reference to an azure resource from where the dns resource value is taken.
*
*/
public Optional targetResource() {
return Optional.ofNullable(this.targetResource);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DnsResourceReferenceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List dnsResources;
private @Nullable SubResourceResponse targetResource;
public Builder() {}
public Builder(DnsResourceReferenceResponse defaults) {
Objects.requireNonNull(defaults);
this.dnsResources = defaults.dnsResources;
this.targetResource = defaults.targetResource;
}
@CustomType.Setter
public Builder dnsResources(@Nullable List dnsResources) {
this.dnsResources = dnsResources;
return this;
}
public Builder dnsResources(SubResourceResponse... dnsResources) {
return dnsResources(List.of(dnsResources));
}
@CustomType.Setter
public Builder targetResource(@Nullable SubResourceResponse targetResource) {
this.targetResource = targetResource;
return this;
}
public DnsResourceReferenceResponse build() {
final var _resultValue = new DnsResourceReferenceResponse();
_resultValue.dnsResources = dnsResources;
_resultValue.targetResource = targetResource;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy