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

com.sap.cloudfoundry.client.facade.domain.CloudEntity Maven / Gradle / Ivy

There is a newer version: 2.56.0
Show newest version
package com.sap.cloudfoundry.client.facade.domain;

import java.util.UUID;

import org.cloudfoundry.client.v3.Metadata;

import com.sap.cloudfoundry.client.facade.Nullable;

/**
 * Do not extend {@code Derivable} in this interface. It is tempting, because all of its children have the same implementation, but
 * implementing the {@code derive()} method here leads to this bug: https://github.com/immutables/immutables/issues/1045
 *
 */
public abstract class CloudEntity {

    @Nullable
    public abstract String getName();

    @Nullable
    public abstract CloudMetadata getMetadata();

    @Nullable
    public abstract Metadata getV3Metadata();

    public UUID getGuid() {
        return getMetadata().getGuid();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy