com.pulumi.azurenative.domainregistration.outputs.GetDomainResult 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.domainregistration.outputs;
import com.pulumi.azurenative.domainregistration.outputs.HostNameResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetDomainResult {
private @Nullable String authCode;
/**
* @return <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>.
*
*/
private @Nullable Boolean autoRenew;
/**
* @return Domain creation timestamp.
*
*/
private String createdTime;
/**
* @return Current DNS type
*
*/
private @Nullable String dnsType;
/**
* @return Azure DNS Zone to use
*
*/
private @Nullable String dnsZoneId;
/**
* @return Reasons why domain is not renewable.
*
*/
private List domainNotRenewableReasons;
/**
* @return Domain expiration timestamp.
*
*/
private String expirationTime;
/**
* @return Resource Id.
*
*/
private String id;
/**
* @return Kind of resource.
*
*/
private @Nullable String kind;
/**
* @return Timestamp when the domain was renewed last time.
*
*/
private String lastRenewedTime;
/**
* @return Resource Location.
*
*/
private String location;
/**
* @return All hostnames derived from the domain and assigned to Azure resources.
*
*/
private List managedHostNames;
/**
* @return Resource Name.
*
*/
private String name;
/**
* @return Name servers.
*
*/
private List nameServers;
/**
* @return <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>.
*
*/
private @Nullable Boolean privacy;
/**
* @return Domain provisioning state.
*
*/
private String provisioningState;
/**
* @return <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>. This value will be <code>true</code> if domain registration status is active and
* it is hosted on name servers Azure has programmatic access to.
*
*/
private Boolean readyForDnsRecordManagement;
/**
* @return Domain registration status.
*
*/
private String registrationStatus;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return Target DNS type (would be used for migration)
*
*/
private @Nullable String targetDnsType;
/**
* @return Resource type.
*
*/
private String type;
private GetDomainResult() {}
public Optional authCode() {
return Optional.ofNullable(this.authCode);
}
/**
* @return <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>.
*
*/
public Optional autoRenew() {
return Optional.ofNullable(this.autoRenew);
}
/**
* @return Domain creation timestamp.
*
*/
public String createdTime() {
return this.createdTime;
}
/**
* @return Current DNS type
*
*/
public Optional dnsType() {
return Optional.ofNullable(this.dnsType);
}
/**
* @return Azure DNS Zone to use
*
*/
public Optional dnsZoneId() {
return Optional.ofNullable(this.dnsZoneId);
}
/**
* @return Reasons why domain is not renewable.
*
*/
public List domainNotRenewableReasons() {
return this.domainNotRenewableReasons;
}
/**
* @return Domain expiration timestamp.
*
*/
public String expirationTime() {
return this.expirationTime;
}
/**
* @return Resource Id.
*
*/
public String id() {
return this.id;
}
/**
* @return Kind of resource.
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return Timestamp when the domain was renewed last time.
*
*/
public String lastRenewedTime() {
return this.lastRenewedTime;
}
/**
* @return Resource Location.
*
*/
public String location() {
return this.location;
}
/**
* @return All hostnames derived from the domain and assigned to Azure resources.
*
*/
public List managedHostNames() {
return this.managedHostNames;
}
/**
* @return Resource Name.
*
*/
public String name() {
return this.name;
}
/**
* @return Name servers.
*
*/
public List nameServers() {
return this.nameServers;
}
/**
* @return <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>.
*
*/
public Optional privacy() {
return Optional.ofNullable(this.privacy);
}
/**
* @return Domain provisioning state.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>. This value will be <code>true</code> if domain registration status is active and
* it is hosted on name servers Azure has programmatic access to.
*
*/
public Boolean readyForDnsRecordManagement() {
return this.readyForDnsRecordManagement;
}
/**
* @return Domain registration status.
*
*/
public String registrationStatus() {
return this.registrationStatus;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Target DNS type (would be used for migration)
*
*/
public Optional targetDnsType() {
return Optional.ofNullable(this.targetDnsType);
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDomainResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String authCode;
private @Nullable Boolean autoRenew;
private String createdTime;
private @Nullable String dnsType;
private @Nullable String dnsZoneId;
private List domainNotRenewableReasons;
private String expirationTime;
private String id;
private @Nullable String kind;
private String lastRenewedTime;
private String location;
private List managedHostNames;
private String name;
private List nameServers;
private @Nullable Boolean privacy;
private String provisioningState;
private Boolean readyForDnsRecordManagement;
private String registrationStatus;
private @Nullable Map tags;
private @Nullable String targetDnsType;
private String type;
public Builder() {}
public Builder(GetDomainResult defaults) {
Objects.requireNonNull(defaults);
this.authCode = defaults.authCode;
this.autoRenew = defaults.autoRenew;
this.createdTime = defaults.createdTime;
this.dnsType = defaults.dnsType;
this.dnsZoneId = defaults.dnsZoneId;
this.domainNotRenewableReasons = defaults.domainNotRenewableReasons;
this.expirationTime = defaults.expirationTime;
this.id = defaults.id;
this.kind = defaults.kind;
this.lastRenewedTime = defaults.lastRenewedTime;
this.location = defaults.location;
this.managedHostNames = defaults.managedHostNames;
this.name = defaults.name;
this.nameServers = defaults.nameServers;
this.privacy = defaults.privacy;
this.provisioningState = defaults.provisioningState;
this.readyForDnsRecordManagement = defaults.readyForDnsRecordManagement;
this.registrationStatus = defaults.registrationStatus;
this.tags = defaults.tags;
this.targetDnsType = defaults.targetDnsType;
this.type = defaults.type;
}
@CustomType.Setter
public Builder authCode(@Nullable String authCode) {
this.authCode = authCode;
return this;
}
@CustomType.Setter
public Builder autoRenew(@Nullable Boolean autoRenew) {
this.autoRenew = autoRenew;
return this;
}
@CustomType.Setter
public Builder createdTime(String createdTime) {
if (createdTime == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "createdTime");
}
this.createdTime = createdTime;
return this;
}
@CustomType.Setter
public Builder dnsType(@Nullable String dnsType) {
this.dnsType = dnsType;
return this;
}
@CustomType.Setter
public Builder dnsZoneId(@Nullable String dnsZoneId) {
this.dnsZoneId = dnsZoneId;
return this;
}
@CustomType.Setter
public Builder domainNotRenewableReasons(List domainNotRenewableReasons) {
if (domainNotRenewableReasons == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "domainNotRenewableReasons");
}
this.domainNotRenewableReasons = domainNotRenewableReasons;
return this;
}
public Builder domainNotRenewableReasons(String... domainNotRenewableReasons) {
return domainNotRenewableReasons(List.of(domainNotRenewableReasons));
}
@CustomType.Setter
public Builder expirationTime(String expirationTime) {
if (expirationTime == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "expirationTime");
}
this.expirationTime = expirationTime;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder lastRenewedTime(String lastRenewedTime) {
if (lastRenewedTime == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "lastRenewedTime");
}
this.lastRenewedTime = lastRenewedTime;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder managedHostNames(List managedHostNames) {
if (managedHostNames == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "managedHostNames");
}
this.managedHostNames = managedHostNames;
return this;
}
public Builder managedHostNames(HostNameResponse... managedHostNames) {
return managedHostNames(List.of(managedHostNames));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder nameServers(List nameServers) {
if (nameServers == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "nameServers");
}
this.nameServers = nameServers;
return this;
}
public Builder nameServers(String... nameServers) {
return nameServers(List.of(nameServers));
}
@CustomType.Setter
public Builder privacy(@Nullable Boolean privacy) {
this.privacy = privacy;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder readyForDnsRecordManagement(Boolean readyForDnsRecordManagement) {
if (readyForDnsRecordManagement == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "readyForDnsRecordManagement");
}
this.readyForDnsRecordManagement = readyForDnsRecordManagement;
return this;
}
@CustomType.Setter
public Builder registrationStatus(String registrationStatus) {
if (registrationStatus == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "registrationStatus");
}
this.registrationStatus = registrationStatus;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder targetDnsType(@Nullable String targetDnsType) {
this.targetDnsType = targetDnsType;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetDomainResult", "type");
}
this.type = type;
return this;
}
public GetDomainResult build() {
final var _resultValue = new GetDomainResult();
_resultValue.authCode = authCode;
_resultValue.autoRenew = autoRenew;
_resultValue.createdTime = createdTime;
_resultValue.dnsType = dnsType;
_resultValue.dnsZoneId = dnsZoneId;
_resultValue.domainNotRenewableReasons = domainNotRenewableReasons;
_resultValue.expirationTime = expirationTime;
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.lastRenewedTime = lastRenewedTime;
_resultValue.location = location;
_resultValue.managedHostNames = managedHostNames;
_resultValue.name = name;
_resultValue.nameServers = nameServers;
_resultValue.privacy = privacy;
_resultValue.provisioningState = provisioningState;
_resultValue.readyForDnsRecordManagement = readyForDnsRecordManagement;
_resultValue.registrationStatus = registrationStatus;
_resultValue.tags = tags;
_resultValue.targetDnsType = targetDnsType;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy