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

package com.azure.resourcemanager.providerhub.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Duration;
import java.util.List;

/** The ResourceTypeExtension model. */
@Fluent
public final class ResourceTypeExtension {
    /*
     * The endpointUri property.
     */
    @JsonProperty(value = "endpointUri")
    private String endpointUri;

    /*
     * The extensionCategories property.
     */
    @JsonProperty(value = "extensionCategories")
    private List<ExtensionCategory> extensionCategories;

    /*
     * The timeout property.
     */
    @JsonProperty(value = "timeout")
    private Duration timeout;

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

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

    /**
     * Set the endpointUri property: The endpointUri property.
     *
     * @param endpointUri the endpointUri value to set.
     * @return the ResourceTypeExtension object itself.
     */
    public ResourceTypeExtension withEndpointUri(String endpointUri) {
        this.endpointUri = endpointUri;
        return this;
    }

    /**
     * Get the extensionCategories property: The extensionCategories property.
     *
     * @return the extensionCategories value.
     */
    public List<ExtensionCategory> extensionCategories() {
        return this.extensionCategories;
    }

    /**
     * Set the extensionCategories property: The extensionCategories property.
     *
     * @param extensionCategories the extensionCategories value to set.
     * @return the ResourceTypeExtension object itself.
     */
    public ResourceTypeExtension withExtensionCategories(List<ExtensionCategory> extensionCategories) {
        this.extensionCategories = extensionCategories;
        return this;
    }

    /**
     * Get the timeout property: The timeout property.
     *
     * @return the timeout value.
     */
    public Duration timeout() {
        return this.timeout;
    }

    /**
     * Set the timeout property: The timeout property.
     *
     * @param timeout the timeout value to set.
     * @return the ResourceTypeExtension object itself.
     */
    public ResourceTypeExtension withTimeout(Duration timeout) {
        this.timeout = timeout;
        return this;
    }

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