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

package com.azure.resourcemanager.datadog.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** Terms properties. */
@Fluent
public final class DatadogAgreementProperties {
    /*
     * Publisher identifier string.
     */
    @JsonProperty(value = "publisher")
    private String publisher;

    /*
     * Product identifier string.
     */
    @JsonProperty(value = "product")
    private String product;

    /*
     * Plan identifier string.
     */
    @JsonProperty(value = "plan")
    private String plan;

    /*
     * Link to HTML with Microsoft and Publisher terms.
     */
    @JsonProperty(value = "licenseTextLink")
    private String licenseTextLink;

    /*
     * Link to the privacy policy of the publisher.
     */
    @JsonProperty(value = "privacyPolicyLink")
    private String privacyPolicyLink;

    /*
     * Date and time in UTC of when the terms were accepted. This is empty if Accepted is false.
     */
    @JsonProperty(value = "retrieveDatetime")
    private OffsetDateTime retrieveDatetime;

    /*
     * Terms signature.
     */
    @JsonProperty(value = "signature")
    private String signature;

    /*
     * If any version of the terms have been accepted, otherwise false.
     */
    @JsonProperty(value = "accepted")
    private Boolean accepted;

    /** Creates an instance of DatadogAgreementProperties class. */
    public DatadogAgreementProperties() {
    }

    /**
     * Get the publisher property: Publisher identifier string.
     *
     * @return the publisher value.
     */
    public String publisher() {
        return this.publisher;
    }

    /**
     * Set the publisher property: Publisher identifier string.
     *
     * @param publisher the publisher value to set.
     * @return the DatadogAgreementProperties object itself.
     */
    public DatadogAgreementProperties withPublisher(String publisher) {
        this.publisher = publisher;
        return this;
    }

    /**
     * Get the product property: Product identifier string.
     *
     * @return the product value.
     */
    public String product() {
        return this.product;
    }

    /**
     * Set the product property: Product identifier string.
     *
     * @param product the product value to set.
     * @return the DatadogAgreementProperties object itself.
     */
    public DatadogAgreementProperties withProduct(String product) {
        this.product = product;
        return this;
    }

    /**
     * Get the plan property: Plan identifier string.
     *
     * @return the plan value.
     */
    public String plan() {
        return this.plan;
    }

    /**
     * Set the plan property: Plan identifier string.
     *
     * @param plan the plan value to set.
     * @return the DatadogAgreementProperties object itself.
     */
    public DatadogAgreementProperties withPlan(String plan) {
        this.plan = plan;
        return this;
    }

    /**
     * Get the licenseTextLink property: Link to HTML with Microsoft and Publisher terms.
     *
     * @return the licenseTextLink value.
     */
    public String licenseTextLink() {
        return this.licenseTextLink;
    }

    /**
     * Set the licenseTextLink property: Link to HTML with Microsoft and Publisher terms.
     *
     * @param licenseTextLink the licenseTextLink value to set.
     * @return the DatadogAgreementProperties object itself.
     */
    public DatadogAgreementProperties withLicenseTextLink(String licenseTextLink) {
        this.licenseTextLink = licenseTextLink;
        return this;
    }

    /**
     * Get the privacyPolicyLink property: Link to the privacy policy of the publisher.
     *
     * @return the privacyPolicyLink value.
     */
    public String privacyPolicyLink() {
        return this.privacyPolicyLink;
    }

    /**
     * Set the privacyPolicyLink property: Link to the privacy policy of the publisher.
     *
     * @param privacyPolicyLink the privacyPolicyLink value to set.
     * @return the DatadogAgreementProperties object itself.
     */
    public DatadogAgreementProperties withPrivacyPolicyLink(String privacyPolicyLink) {
        this.privacyPolicyLink = privacyPolicyLink;
        return this;
    }

    /**
     * Get the retrieveDatetime property: Date and time in UTC of when the terms were accepted. This is empty if
     * Accepted is false.
     *
     * @return the retrieveDatetime value.
     */
    public OffsetDateTime retrieveDatetime() {
        return this.retrieveDatetime;
    }

    /**
     * Set the retrieveDatetime property: Date and time in UTC of when the terms were accepted. This is empty if
     * Accepted is false.
     *
     * @param retrieveDatetime the retrieveDatetime value to set.
     * @return the DatadogAgreementProperties object itself.
     */
    public DatadogAgreementProperties withRetrieveDatetime(OffsetDateTime retrieveDatetime) {
        this.retrieveDatetime = retrieveDatetime;
        return this;
    }

    /**
     * Get the signature property: Terms signature.
     *
     * @return the signature value.
     */
    public String signature() {
        return this.signature;
    }

    /**
     * Set the signature property: Terms signature.
     *
     * @param signature the signature value to set.
     * @return the DatadogAgreementProperties object itself.
     */
    public DatadogAgreementProperties withSignature(String signature) {
        this.signature = signature;
        return this;
    }

    /**
     * Get the accepted property: If any version of the terms have been accepted, otherwise false.
     *
     * @return the accepted value.
     */
    public Boolean accepted() {
        return this.accepted;
    }

    /**
     * Set the accepted property: If any version of the terms have been accepted, otherwise false.
     *
     * @param accepted the accepted value to set.
     * @return the DatadogAgreementProperties object itself.
     */
    public DatadogAgreementProperties withAccepted(Boolean accepted) {
        this.accepted = accepted;
        return this;
    }

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