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

package com.azure.resourcemanager.advisor.models;

import com.azure.core.util.Context;
import com.azure.resourcemanager.advisor.fluent.models.SuppressionContractInner;
import java.time.OffsetDateTime;

/** An immutable client-side representation of SuppressionContract. */
public interface SuppressionContract {
    /**
     * Gets the id property: Fully qualified resource Id for the resource.
     *
     * @return the id value.
     */
    String id();

    /**
     * Gets the name property: The name of the resource.
     *
     * @return the name value.
     */
    String name();

    /**
     * Gets the type property: The type of the resource.
     *
     * @return the type value.
     */
    String type();

    /**
     * Gets the suppressionId property: The GUID of the suppression.
     *
     * @return the suppressionId value.
     */
    String suppressionId();

    /**
     * Gets the ttl property: The duration for which the suppression is valid.
     *
     * @return the ttl value.
     */
    String ttl();

    /**
     * Gets the expirationTimestamp property: Gets or sets the expiration time stamp.
     *
     * @return the expirationTimestamp value.
     */
    OffsetDateTime expirationTimestamp();

    /**
     * Gets the inner com.azure.resourcemanager.advisor.fluent.models.SuppressionContractInner object.
     *
     * @return the inner object.
     */
    SuppressionContractInner innerModel();

    /** The entirety of the SuppressionContract definition. */
    interface Definition
        extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
    }
    /** The SuppressionContract definition stages. */
    interface DefinitionStages {
        /** The first stage of the SuppressionContract definition. */
        interface Blank extends WithParentResource {
        }
        /** The stage of the SuppressionContract definition allowing to specify parent resource. */
        interface WithParentResource {
            /**
             * Specifies resourceUri, recommendationId.
             *
             * @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which the
             *     recommendation applies.
             * @param recommendationId The recommendation ID.
             * @return the next definition stage.
             */
            WithCreate withExistingRecommendation(String resourceUri, String recommendationId);
        }
        /**
         * The stage of the SuppressionContract definition which contains all the minimum required properties for the
         * resource to be created, but also allows for any other optional properties to be specified.
         */
        interface WithCreate extends DefinitionStages.WithSuppressionId, DefinitionStages.WithTtl {
            /**
             * Executes the create request.
             *
             * @return the created resource.
             */
            SuppressionContract create();

            /**
             * Executes the create request.
             *
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            SuppressionContract create(Context context);
        }
        /** The stage of the SuppressionContract definition allowing to specify suppressionId. */
        interface WithSuppressionId {
            /**
             * Specifies the suppressionId property: The GUID of the suppression..
             *
             * @param suppressionId The GUID of the suppression.
             * @return the next definition stage.
             */
            WithCreate withSuppressionId(String suppressionId);
        }
        /** The stage of the SuppressionContract definition allowing to specify ttl. */
        interface WithTtl {
            /**
             * Specifies the ttl property: The duration for which the suppression is valid..
             *
             * @param ttl The duration for which the suppression is valid.
             * @return the next definition stage.
             */
            WithCreate withTtl(String ttl);
        }
    }
    /**
     * Refreshes the resource to sync with Azure.
     *
     * @return the refreshed resource.
     */
    SuppressionContract refresh();

    /**
     * Refreshes the resource to sync with Azure.
     *
     * @param context The context to associate with this operation.
     * @return the refreshed resource.
     */
    SuppressionContract refresh(Context context);
}
