org.cloudfoundry.client.lib.adapters.RawV3CloudDomain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudfoundry-client-lib Show documentation
Show all versions of cloudfoundry-client-lib Show documentation
A Cloud Foundry client library for Java
The newest version!
package org.cloudfoundry.client.lib.adapters;
import org.cloudfoundry.client.lib.domain.CloudDomain;
import org.cloudfoundry.client.lib.domain.ImmutableCloudDomain;
import org.cloudfoundry.client.v3.domains.Domain;
import org.immutables.value.Value;
@Value.Immutable
public abstract class RawV3CloudDomain extends RawCloudEntity {
@Value.Parameter
public abstract Domain getResource();
@Override
public CloudDomain derive() {
Domain resource = getResource();
return ImmutableCloudDomain.builder()
.metadata(parseResourceMetadata(resource))
.name(resource.getName())
.build();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy