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

com.pulumi.azurenative.securityinsights.outputs.EnrichmentDomainWhoisDetailsResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.securityinsights.outputs;

import com.pulumi.azurenative.securityinsights.outputs.EnrichmentDomainWhoisContactsResponse;
import com.pulumi.azurenative.securityinsights.outputs.EnrichmentDomainWhoisRegistrarDetailsResponse;
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 EnrichmentDomainWhoisDetailsResponse {
    /**
     * @return The set of contacts associated with this domain
     * 
     */
    private @Nullable EnrichmentDomainWhoisContactsResponse contacts;
    /**
     * @return A list of name servers associated with this domain
     * 
     */
    private @Nullable List nameServers;
    /**
     * @return The registrar associated with this domain
     * 
     */
    private @Nullable EnrichmentDomainWhoisRegistrarDetailsResponse registrar;
    /**
     * @return The set of status flags for this whois record
     * 
     */
    private @Nullable List statuses;

    private EnrichmentDomainWhoisDetailsResponse() {}
    /**
     * @return The set of contacts associated with this domain
     * 
     */
    public Optional contacts() {
        return Optional.ofNullable(this.contacts);
    }
    /**
     * @return A list of name servers associated with this domain
     * 
     */
    public List nameServers() {
        return this.nameServers == null ? List.of() : this.nameServers;
    }
    /**
     * @return The registrar associated with this domain
     * 
     */
    public Optional registrar() {
        return Optional.ofNullable(this.registrar);
    }
    /**
     * @return The set of status flags for this whois record
     * 
     */
    public List statuses() {
        return this.statuses == null ? List.of() : this.statuses;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(EnrichmentDomainWhoisDetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable EnrichmentDomainWhoisContactsResponse contacts;
        private @Nullable List nameServers;
        private @Nullable EnrichmentDomainWhoisRegistrarDetailsResponse registrar;
        private @Nullable List statuses;
        public Builder() {}
        public Builder(EnrichmentDomainWhoisDetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.contacts = defaults.contacts;
    	      this.nameServers = defaults.nameServers;
    	      this.registrar = defaults.registrar;
    	      this.statuses = defaults.statuses;
        }

        @CustomType.Setter
        public Builder contacts(@Nullable EnrichmentDomainWhoisContactsResponse contacts) {

            this.contacts = contacts;
            return this;
        }
        @CustomType.Setter
        public Builder nameServers(@Nullable List nameServers) {

            this.nameServers = nameServers;
            return this;
        }
        public Builder nameServers(String... nameServers) {
            return nameServers(List.of(nameServers));
        }
        @CustomType.Setter
        public Builder registrar(@Nullable EnrichmentDomainWhoisRegistrarDetailsResponse registrar) {

            this.registrar = registrar;
            return this;
        }
        @CustomType.Setter
        public Builder statuses(@Nullable List statuses) {

            this.statuses = statuses;
            return this;
        }
        public Builder statuses(String... statuses) {
            return statuses(List.of(statuses));
        }
        public EnrichmentDomainWhoisDetailsResponse build() {
            final var _resultValue = new EnrichmentDomainWhoisDetailsResponse();
            _resultValue.contacts = contacts;
            _resultValue.nameServers = nameServers;
            _resultValue.registrar = registrar;
            _resultValue.statuses = statuses;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy