com.pulumi.alicloud.ga.outputs.GetDomainsResult 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.ga.outputs;
import com.pulumi.alicloud.ga.outputs.GetDomainsDomain;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetDomainsResult {
/**
* @return The ID of the global acceleration instance.
*
*/
private @Nullable String acceleratorId;
/**
* @return The accelerated domain name to be added.
*
*/
private @Nullable String domain;
/**
* @return A list of Domain Entries. Each element contains the following attributes:
*
*/
private List domains;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private List ids;
private @Nullable String outputFile;
private @Nullable Integer pageNumber;
private @Nullable Integer pageSize;
/**
* @return The status of the resource
*
*/
private @Nullable String status;
private GetDomainsResult() {}
/**
* @return The ID of the global acceleration instance.
*
*/
public Optional acceleratorId() {
return Optional.ofNullable(this.acceleratorId);
}
/**
* @return The accelerated domain name to be added.
*
*/
public Optional domain() {
return Optional.ofNullable(this.domain);
}
/**
* @return A list of Domain Entries. Each element contains the following attributes:
*
*/
public List domains() {
return this.domains;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public List ids() {
return this.ids;
}
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
public Optional pageNumber() {
return Optional.ofNullable(this.pageNumber);
}
public Optional pageSize() {
return Optional.ofNullable(this.pageSize);
}
/**
* @return The status of the resource
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDomainsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String acceleratorId;
private @Nullable String domain;
private List domains;
private String id;
private List ids;
private @Nullable String outputFile;
private @Nullable Integer pageNumber;
private @Nullable Integer pageSize;
private @Nullable String status;
public Builder() {}
public Builder(GetDomainsResult defaults) {
Objects.requireNonNull(defaults);
this.acceleratorId = defaults.acceleratorId;
this.domain = defaults.domain;
this.domains = defaults.domains;
this.id = defaults.id;
this.ids = defaults.ids;
this.outputFile = defaults.outputFile;
this.pageNumber = defaults.pageNumber;
this.pageSize = defaults.pageSize;
this.status = defaults.status;
}
@CustomType.Setter
public Builder acceleratorId(@Nullable String acceleratorId) {
this.acceleratorId = acceleratorId;
return this;
}
@CustomType.Setter
public Builder domain(@Nullable String domain) {
this.domain = domain;
return this;
}
@CustomType.Setter
public Builder domains(List domains) {
if (domains == null) {
throw new MissingRequiredPropertyException("GetDomainsResult", "domains");
}
this.domains = domains;
return this;
}
public Builder domains(GetDomainsDomain... domains) {
return domains(List.of(domains));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDomainsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetDomainsResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@CustomType.Setter
public Builder outputFile(@Nullable String outputFile) {
this.outputFile = outputFile;
return this;
}
@CustomType.Setter
public Builder pageNumber(@Nullable Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
@CustomType.Setter
public Builder pageSize(@Nullable Integer pageSize) {
this.pageSize = pageSize;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
public GetDomainsResult build() {
final var _resultValue = new GetDomainsResult();
_resultValue.acceleratorId = acceleratorId;
_resultValue.domain = domain;
_resultValue.domains = domains;
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.outputFile = outputFile;
_resultValue.pageNumber = pageNumber;
_resultValue.pageSize = pageSize;
_resultValue.status = status;
return _resultValue;
}
}
}