
com.pulumi.azurenative.domainregistration.outputs.HostNameResponse 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.azurenative.domainregistration.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class HostNameResponse {
/**
* @return Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.
*
*/
private @Nullable String azureResourceName;
/**
* @return Type of the Azure resource the hostname is assigned to.
*
*/
private @Nullable String azureResourceType;
/**
* @return Type of the DNS record.
*
*/
private @Nullable String customHostNameDnsRecordType;
/**
* @return Type of the hostname.
*
*/
private @Nullable String hostNameType;
/**
* @return Name of the hostname.
*
*/
private @Nullable String name;
/**
* @return List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.
*
*/
private @Nullable List siteNames;
private HostNameResponse() {}
/**
* @return Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.
*
*/
public Optional azureResourceName() {
return Optional.ofNullable(this.azureResourceName);
}
/**
* @return Type of the Azure resource the hostname is assigned to.
*
*/
public Optional azureResourceType() {
return Optional.ofNullable(this.azureResourceType);
}
/**
* @return Type of the DNS record.
*
*/
public Optional customHostNameDnsRecordType() {
return Optional.ofNullable(this.customHostNameDnsRecordType);
}
/**
* @return Type of the hostname.
*
*/
public Optional hostNameType() {
return Optional.ofNullable(this.hostNameType);
}
/**
* @return Name of the hostname.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.
*
*/
public List siteNames() {
return this.siteNames == null ? List.of() : this.siteNames;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HostNameResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String azureResourceName;
private @Nullable String azureResourceType;
private @Nullable String customHostNameDnsRecordType;
private @Nullable String hostNameType;
private @Nullable String name;
private @Nullable List siteNames;
public Builder() {}
public Builder(HostNameResponse defaults) {
Objects.requireNonNull(defaults);
this.azureResourceName = defaults.azureResourceName;
this.azureResourceType = defaults.azureResourceType;
this.customHostNameDnsRecordType = defaults.customHostNameDnsRecordType;
this.hostNameType = defaults.hostNameType;
this.name = defaults.name;
this.siteNames = defaults.siteNames;
}
@CustomType.Setter
public Builder azureResourceName(@Nullable String azureResourceName) {
this.azureResourceName = azureResourceName;
return this;
}
@CustomType.Setter
public Builder azureResourceType(@Nullable String azureResourceType) {
this.azureResourceType = azureResourceType;
return this;
}
@CustomType.Setter
public Builder customHostNameDnsRecordType(@Nullable String customHostNameDnsRecordType) {
this.customHostNameDnsRecordType = customHostNameDnsRecordType;
return this;
}
@CustomType.Setter
public Builder hostNameType(@Nullable String hostNameType) {
this.hostNameType = hostNameType;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder siteNames(@Nullable List siteNames) {
this.siteNames = siteNames;
return this;
}
public Builder siteNames(String... siteNames) {
return siteNames(List.of(siteNames));
}
public HostNameResponse build() {
final var _resultValue = new HostNameResponse();
_resultValue.azureResourceName = azureResourceName;
_resultValue.azureResourceType = azureResourceType;
_resultValue.customHostNameDnsRecordType = customHostNameDnsRecordType;
_resultValue.hostNameType = hostNameType;
_resultValue.name = name;
_resultValue.siteNames = siteNames;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy