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

package com.azure.resourcemanager.apimanagement.fluent.models;

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

/** The DeletedServiceContractProperties model. */
@Fluent
public final class DeletedServiceContractProperties {
    /*
     * Fully-qualified API Management Service Resource ID
     */
    @JsonProperty(value = "serviceId")
    private String serviceId;

    /*
     * UTC Date and Time when the service will be automatically purged. The
     * date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified
     * by the ISO 8601 standard.
     */
    @JsonProperty(value = "scheduledPurgeDate")
    private OffsetDateTime scheduledPurgeDate;

    /*
     * UTC Timestamp when the service was soft-deleted. The date conforms to
     * the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601
     * standard.
     */
    @JsonProperty(value = "deletionDate")
    private OffsetDateTime deletionDate;

    /**
     * Get the serviceId property: Fully-qualified API Management Service Resource ID.
     *
     * @return the serviceId value.
     */
    public String serviceId() {
        return this.serviceId;
    }

    /**
     * Set the serviceId property: Fully-qualified API Management Service Resource ID.
     *
     * @param serviceId the serviceId value to set.
     * @return the DeletedServiceContractProperties object itself.
     */
    public DeletedServiceContractProperties withServiceId(String serviceId) {
        this.serviceId = serviceId;
        return this;
    }

    /**
     * Get the scheduledPurgeDate property: UTC Date and Time when the service will be automatically purged. The date
     * conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
     *
     * @return the scheduledPurgeDate value.
     */
    public OffsetDateTime scheduledPurgeDate() {
        return this.scheduledPurgeDate;
    }

    /**
     * Set the scheduledPurgeDate property: UTC Date and Time when the service will be automatically purged. The date
     * conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
     *
     * @param scheduledPurgeDate the scheduledPurgeDate value to set.
     * @return the DeletedServiceContractProperties object itself.
     */
    public DeletedServiceContractProperties withScheduledPurgeDate(OffsetDateTime scheduledPurgeDate) {
        this.scheduledPurgeDate = scheduledPurgeDate;
        return this;
    }

    /**
     * Get the deletionDate property: UTC Timestamp when the service was soft-deleted. The date conforms to the
     * following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
     *
     * @return the deletionDate value.
     */
    public OffsetDateTime deletionDate() {
        return this.deletionDate;
    }

    /**
     * Set the deletionDate property: UTC Timestamp when the service was soft-deleted. The date conforms to the
     * following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
     *
     * @param deletionDate the deletionDate value to set.
     * @return the DeletedServiceContractProperties object itself.
     */
    public DeletedServiceContractProperties withDeletionDate(OffsetDateTime deletionDate) {
        this.deletionDate = deletionDate;
        return this;
    }

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