All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opensearch.cluster.applicationtemplates.SystemTemplate Maven / Gradle / Ivy

There is a newer version: 2.18.0
Show newest version
/*
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 */

package org.opensearch.cluster.applicationtemplates;

import org.opensearch.common.annotation.ExperimentalApi;
import org.opensearch.core.common.bytes.BytesReference;

/**
 * Encapsulates the information and content about a system template available within a repository.
 */
@ExperimentalApi
public class SystemTemplate {

    private final BytesReference templateContent;

    private final SystemTemplateMetadata templateMetadata;

    private final TemplateRepositoryMetadata repositoryMetadata;

    public SystemTemplate(BytesReference templateContent, SystemTemplateMetadata templateInfo, TemplateRepositoryMetadata repositoryInfo) {
        this.templateContent = templateContent;
        this.templateMetadata = templateInfo;
        this.repositoryMetadata = repositoryInfo;
    }

    public BytesReference templateContent() {
        return templateContent;
    }

    public SystemTemplateMetadata templateMetadata() {
        return templateMetadata;
    }

    public TemplateRepositoryMetadata repositoryMetadata() {
        return repositoryMetadata;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy