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

org.cloudfoundry.client.lib.adapters.RawV3CloudDomain Maven / Gradle / Ivy

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