
com.pulumi.azurenative.web.outputs.GetStaticSiteCustomDomainResult 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.web.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetStaticSiteCustomDomainResult {
/**
* @return The date and time on which the custom domain was created for the static site.
*
*/
private String createdOn;
/**
* @return The domain name for the static site custom domain.
*
*/
private String domainName;
private String errorMessage;
/**
* @return Resource Id.
*
*/
private String id;
/**
* @return Kind of resource.
*
*/
private @Nullable String kind;
/**
* @return Resource Name.
*
*/
private String name;
/**
* @return The status of the custom domain
*
*/
private String status;
/**
* @return Resource type.
*
*/
private String type;
/**
* @return The TXT record validation token
*
*/
private String validationToken;
private GetStaticSiteCustomDomainResult() {}
/**
* @return The date and time on which the custom domain was created for the static site.
*
*/
public String createdOn() {
return this.createdOn;
}
/**
* @return The domain name for the static site custom domain.
*
*/
public String domainName() {
return this.domainName;
}
public String errorMessage() {
return this.errorMessage;
}
/**
* @return Resource Id.
*
*/
public String id() {
return this.id;
}
/**
* @return Kind of resource.
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return Resource Name.
*
*/
public String name() {
return this.name;
}
/**
* @return The status of the custom domain
*
*/
public String status() {
return this.status;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
/**
* @return The TXT record validation token
*
*/
public String validationToken() {
return this.validationToken;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetStaticSiteCustomDomainResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String createdOn;
private String domainName;
private String errorMessage;
private String id;
private @Nullable String kind;
private String name;
private String status;
private String type;
private String validationToken;
public Builder() {}
public Builder(GetStaticSiteCustomDomainResult defaults) {
Objects.requireNonNull(defaults);
this.createdOn = defaults.createdOn;
this.domainName = defaults.domainName;
this.errorMessage = defaults.errorMessage;
this.id = defaults.id;
this.kind = defaults.kind;
this.name = defaults.name;
this.status = defaults.status;
this.type = defaults.type;
this.validationToken = defaults.validationToken;
}
@CustomType.Setter
public Builder createdOn(String createdOn) {
if (createdOn == null) {
throw new MissingRequiredPropertyException("GetStaticSiteCustomDomainResult", "createdOn");
}
this.createdOn = createdOn;
return this;
}
@CustomType.Setter
public Builder domainName(String domainName) {
if (domainName == null) {
throw new MissingRequiredPropertyException("GetStaticSiteCustomDomainResult", "domainName");
}
this.domainName = domainName;
return this;
}
@CustomType.Setter
public Builder errorMessage(String errorMessage) {
if (errorMessage == null) {
throw new MissingRequiredPropertyException("GetStaticSiteCustomDomainResult", "errorMessage");
}
this.errorMessage = errorMessage;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetStaticSiteCustomDomainResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetStaticSiteCustomDomainResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetStaticSiteCustomDomainResult", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetStaticSiteCustomDomainResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder validationToken(String validationToken) {
if (validationToken == null) {
throw new MissingRequiredPropertyException("GetStaticSiteCustomDomainResult", "validationToken");
}
this.validationToken = validationToken;
return this;
}
public GetStaticSiteCustomDomainResult build() {
final var _resultValue = new GetStaticSiteCustomDomainResult();
_resultValue.createdOn = createdOn;
_resultValue.domainName = domainName;
_resultValue.errorMessage = errorMessage;
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.status = status;
_resultValue.type = type;
_resultValue.validationToken = validationToken;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy