// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.securityinsights.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The registrar associated with this domain. */
@Fluent
public final class EnrichmentDomainWhoisRegistrarDetails {
    /*
     * The name of this registrar
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * This registrar's abuse contact email
     */
    @JsonProperty(value = "abuseContactEmail")
    private String abuseContactEmail;

    /*
     * This registrar's abuse contact phone number
     */
    @JsonProperty(value = "abuseContactPhone")
    private String abuseContactPhone;

    /*
     * This registrar's Internet Assigned Numbers Authority id
     */
    @JsonProperty(value = "ianaId")
    private String ianaId;

    /*
     * This registrar's URL
     */
    @JsonProperty(value = "url")
    private String url;

    /*
     * The hostname of this registrar's whois server
     */
    @JsonProperty(value = "whoisServer")
    private String whoisServer;

    /**
     * Get the name property: The name of this registrar.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: The name of this registrar.
     *
     * @param name the name value to set.
     * @return the EnrichmentDomainWhoisRegistrarDetails object itself.
     */
    public EnrichmentDomainWhoisRegistrarDetails withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the abuseContactEmail property: This registrar's abuse contact email.
     *
     * @return the abuseContactEmail value.
     */
    public String abuseContactEmail() {
        return this.abuseContactEmail;
    }

    /**
     * Set the abuseContactEmail property: This registrar's abuse contact email.
     *
     * @param abuseContactEmail the abuseContactEmail value to set.
     * @return the EnrichmentDomainWhoisRegistrarDetails object itself.
     */
    public EnrichmentDomainWhoisRegistrarDetails withAbuseContactEmail(String abuseContactEmail) {
        this.abuseContactEmail = abuseContactEmail;
        return this;
    }

    /**
     * Get the abuseContactPhone property: This registrar's abuse contact phone number.
     *
     * @return the abuseContactPhone value.
     */
    public String abuseContactPhone() {
        return this.abuseContactPhone;
    }

    /**
     * Set the abuseContactPhone property: This registrar's abuse contact phone number.
     *
     * @param abuseContactPhone the abuseContactPhone value to set.
     * @return the EnrichmentDomainWhoisRegistrarDetails object itself.
     */
    public EnrichmentDomainWhoisRegistrarDetails withAbuseContactPhone(String abuseContactPhone) {
        this.abuseContactPhone = abuseContactPhone;
        return this;
    }

    /**
     * Get the ianaId property: This registrar's Internet Assigned Numbers Authority id.
     *
     * @return the ianaId value.
     */
    public String ianaId() {
        return this.ianaId;
    }

    /**
     * Set the ianaId property: This registrar's Internet Assigned Numbers Authority id.
     *
     * @param ianaId the ianaId value to set.
     * @return the EnrichmentDomainWhoisRegistrarDetails object itself.
     */
    public EnrichmentDomainWhoisRegistrarDetails withIanaId(String ianaId) {
        this.ianaId = ianaId;
        return this;
    }

    /**
     * Get the url property: This registrar's URL.
     *
     * @return the url value.
     */
    public String url() {
        return this.url;
    }

    /**
     * Set the url property: This registrar's URL.
     *
     * @param url the url value to set.
     * @return the EnrichmentDomainWhoisRegistrarDetails object itself.
     */
    public EnrichmentDomainWhoisRegistrarDetails withUrl(String url) {
        this.url = url;
        return this;
    }

    /**
     * Get the whoisServer property: The hostname of this registrar's whois server.
     *
     * @return the whoisServer value.
     */
    public String whoisServer() {
        return this.whoisServer;
    }

    /**
     * Set the whoisServer property: The hostname of this registrar's whois server.
     *
     * @param whoisServer the whoisServer value to set.
     * @return the EnrichmentDomainWhoisRegistrarDetails object itself.
     */
    public EnrichmentDomainWhoisRegistrarDetails withWhoisServer(String whoisServer) {
        this.whoisServer = whoisServer;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
