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

com.microsoft.azure.toolkit.lib.cosmos.cassandra.CassandraTable Maven / Gradle / Ivy

There is a newer version: 0.48.0
Show newest version
/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for license information.
 */

package com.microsoft.azure.toolkit.lib.cosmos.cassandra;

import com.azure.resourcemanager.cosmos.fluent.models.CassandraTableGetResultsInner;
import com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource;
import com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule;
import com.microsoft.azure.toolkit.lib.common.model.Deletable;
import com.microsoft.azure.toolkit.lib.cosmos.ICosmosCollection;

import javax.annotation.Nonnull;
import java.util.Collections;
import java.util.List;

public class CassandraTable extends AbstractAzResource implements Deletable, ICosmosCollection {

    protected CassandraTable(@Nonnull String name, @Nonnull String resourceGroupName, @Nonnull CassandraTableModule module) {
        super(name, resourceGroupName, module);
    }

    protected CassandraTable(@Nonnull CassandraTableGetResultsInner remote, @Nonnull CassandraTableModule module) {
        super(remote.name(), module);
    }

    protected CassandraTable(@Nonnull CassandraTable collection) {
        super(collection);
    }

    @Nonnull
    @Override
    public List> getSubModules() {
        return Collections.emptyList();
    }

    @Nonnull
    @Override
    protected String loadStatus(@Nonnull CassandraTableGetResultsInner remote) {
        return Status.RUNNING;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy