com.pulumi.alicloud.directmail.DomainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.directmail;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class DomainArgs extends com.pulumi.resources.ResourceArgs {
public static final DomainArgs Empty = new DomainArgs();
/**
* Domain, length `1` to `50`, including numbers or capitals or lowercase letters or `.` or `-`
*
*/
@Import(name="domainName", required=true)
private Output domainName;
/**
* @return Domain, length `1` to `50`, including numbers or capitals or lowercase letters or `.` or `-`
*
*/
public Output domainName() {
return this.domainName;
}
private DomainArgs() {}
private DomainArgs(DomainArgs $) {
this.domainName = $.domainName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DomainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DomainArgs $;
public Builder() {
$ = new DomainArgs();
}
public Builder(DomainArgs defaults) {
$ = new DomainArgs(Objects.requireNonNull(defaults));
}
/**
* @param domainName Domain, length `1` to `50`, including numbers or capitals or lowercase letters or `.` or `-`
*
* @return builder
*
*/
public Builder domainName(Output domainName) {
$.domainName = domainName;
return this;
}
/**
* @param domainName Domain, length `1` to `50`, including numbers or capitals or lowercase letters or `.` or `-`
*
* @return builder
*
*/
public Builder domainName(String domainName) {
return domainName(Output.of(domainName));
}
public DomainArgs build() {
if ($.domainName == null) {
throw new MissingRequiredPropertyException("DomainArgs", "domainName");
}
return $;
}
}
}