
com.sap.cloudfoundry.client.facade.adapters.RawV3CloudServiceInstance Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudfoundry-client-facade Show documentation
Show all versions of cloudfoundry-client-facade Show documentation
A facade of the official Cloud Foundry Java client
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