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

com.sap.cloudfoundry.client.facade.adapters.RawV3CloudServiceInstance Maven / Gradle / Ivy

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

import com.sap.cloudfoundry.client.facade.domain.CloudServiceInstance;
import com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServiceInstance;
import org.cloudfoundry.client.v3.serviceinstances.ServiceInstance;
import org.immutables.value.Value;

@Value.Immutable
public abstract class RawV3CloudServiceInstance extends RawCloudEntity {

    @Value.Parameter
    public abstract ServiceInstance getServiceInstance();

    @Override
    public CloudServiceInstance derive() {
        ServiceInstance serviceInstance = getServiceInstance();
        return ImmutableCloudServiceInstance.builder()
                                            .metadata(parseResourceMetadata(serviceInstance))
                                            .v3Metadata(serviceInstance.getMetadata())
                                            .name(serviceInstance.getName())
                                            .tags(serviceInstance.getTags())
                                            .build();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy