// 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;

/** API Release details. */
@Fluent
public final class ApiReleaseContractProperties {
    /*
     * Identifier of the API the release belongs to.
     */
    @JsonProperty(value = "apiId")
    private String apiId;

    /*
     * The time the API was released. The date conforms to the following
     * format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
     */
    @JsonProperty(value = "createdDateTime", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime createdDateTime;

    /*
     * The time the API release was updated.
     */
    @JsonProperty(value = "updatedDateTime", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime updatedDateTime;

    /*
     * Release Notes
     */
    @JsonProperty(value = "notes")
    private String notes;

    /**
     * Get the apiId property: Identifier of the API the release belongs to.
     *
     * @return the apiId value.
     */
    public String apiId() {
        return this.apiId;
    }

    /**
     * Set the apiId property: Identifier of the API the release belongs to.
     *
     * @param apiId the apiId value to set.
     * @return the ApiReleaseContractProperties object itself.
     */
    public ApiReleaseContractProperties withApiId(String apiId) {
        this.apiId = apiId;
        return this;
    }

    /**
     * Get the createdDateTime property: The time the API was released. The date conforms to the following format:
     * yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
     *
     * @return the createdDateTime value.
     */
    public OffsetDateTime createdDateTime() {
        return this.createdDateTime;
    }

    /**
     * Get the updatedDateTime property: The time the API release was updated.
     *
     * @return the updatedDateTime value.
     */
    public OffsetDateTime updatedDateTime() {
        return this.updatedDateTime;
    }

    /**
     * Get the notes property: Release Notes.
     *
     * @return the notes value.
     */
    public String notes() {
        return this.notes;
    }

    /**
     * Set the notes property: Release Notes.
     *
     * @param notes the notes value to set.
     * @return the ApiReleaseContractProperties object itself.
     */
    public ApiReleaseContractProperties withNotes(String notes) {
        this.notes = notes;
        return this;
    }

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