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

package com.azure.resourcemanager.appplatform.models;

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

/** Custom domain of app resource payload. */
@Fluent
public final class CustomDomainProperties {
    /*
     * The thumbprint of bound certificate.
     */
    @JsonProperty(value = "thumbprint")
    private String thumbprint;

    /*
     * The app name of domain.
     */
    @JsonProperty(value = "appName", access = JsonProperty.Access.WRITE_ONLY)
    private String appName;

    /*
     * The bound certificate name of domain.
     */
    @JsonProperty(value = "certName")
    private String certName;

    /*
     * Provisioning state of the Domain
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private CustomDomainResourceProvisioningState provisioningState;

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

    /**
     * Set the thumbprint property: The thumbprint of bound certificate.
     *
     * @param thumbprint the thumbprint value to set.
     * @return the CustomDomainProperties object itself.
     */
    public CustomDomainProperties withThumbprint(String thumbprint) {
        this.thumbprint = thumbprint;
        return this;
    }

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

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

    /**
     * Set the certName property: The bound certificate name of domain.
     *
     * @param certName the certName value to set.
     * @return the CustomDomainProperties object itself.
     */
    public CustomDomainProperties withCertName(String certName) {
        this.certName = certName;
        return this;
    }

    /**
     * Get the provisioningState property: Provisioning state of the Domain.
     *
     * @return the provisioningState value.
     */
    public CustomDomainResourceProvisioningState provisioningState() {
        return this.provisioningState;
    }

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