All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.wafv3.outputs.GetDomainsResult Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** 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.wafv3.outputs;

import com.pulumi.alicloud.wafv3.outputs.GetDomainsDomain;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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 {
    private @Nullable String backend;
    /**
     * @return The name of the domain.
     * 
     */
    private @Nullable String domain;
    /**
     * @return A list of Domain Entries. Each element contains the following attributes:
     * 
     */
    private List domains;
    private @Nullable Boolean enableDetails;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private List ids;
    private String instanceId;
    private @Nullable String outputFile;
    private @Nullable Integer pageNumber;
    private @Nullable Integer pageSize;

    private GetDomainsResult() {}
    public Optional backend() {
        return Optional.ofNullable(this.backend);
    }
    /**
     * @return The name of the domain.
     * 
     */
    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;
    }
    public Optional enableDetails() {
        return Optional.ofNullable(this.enableDetails);
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public List ids() {
        return this.ids;
    }
    public String instanceId() {
        return this.instanceId;
    }
    public Optional outputFile() {
        return Optional.ofNullable(this.outputFile);
    }
    public Optional pageNumber() {
        return Optional.ofNullable(this.pageNumber);
    }
    public Optional pageSize() {
        return Optional.ofNullable(this.pageSize);
    }

    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 backend;
        private @Nullable String domain;
        private List domains;
        private @Nullable Boolean enableDetails;
        private String id;
        private List ids;
        private String instanceId;
        private @Nullable String outputFile;
        private @Nullable Integer pageNumber;
        private @Nullable Integer pageSize;
        public Builder() {}
        public Builder(GetDomainsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.backend = defaults.backend;
    	      this.domain = defaults.domain;
    	      this.domains = defaults.domains;
    	      this.enableDetails = defaults.enableDetails;
    	      this.id = defaults.id;
    	      this.ids = defaults.ids;
    	      this.instanceId = defaults.instanceId;
    	      this.outputFile = defaults.outputFile;
    	      this.pageNumber = defaults.pageNumber;
    	      this.pageSize = defaults.pageSize;
        }

        @CustomType.Setter
        public Builder backend(@Nullable String backend) {

            this.backend = backend;
            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 enableDetails(@Nullable Boolean enableDetails) {

            this.enableDetails = enableDetails;
            return this;
        }
        @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 instanceId(String instanceId) {
            if (instanceId == null) {
              throw new MissingRequiredPropertyException("GetDomainsResult", "instanceId");
            }
            this.instanceId = instanceId;
            return this;
        }
        @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;
        }
        public GetDomainsResult build() {
            final var _resultValue = new GetDomainsResult();
            _resultValue.backend = backend;
            _resultValue.domain = domain;
            _resultValue.domains = domains;
            _resultValue.enableDetails = enableDetails;
            _resultValue.id = id;
            _resultValue.ids = ids;
            _resultValue.instanceId = instanceId;
            _resultValue.outputFile = outputFile;
            _resultValue.pageNumber = pageNumber;
            _resultValue.pageSize = pageSize;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy