org.cloudfoundry.client.lib.domain.CloudServiceInstance 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.domain;
import java.util.List;
import java.util.Map;
import org.cloudfoundry.AllowNulls;
import org.cloudfoundry.client.lib.domain.annotation.Nullable;
import org.immutables.value.Value;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@Value.Immutable
@JsonSerialize(as = ImmutableCloudServiceInstance.class)
@JsonDeserialize(as = ImmutableCloudServiceInstance.class)
public abstract class CloudServiceInstance extends CloudEntity implements Derivable {
@Nullable
public abstract String getLabel();
@Nullable
public abstract String getPlan();
@Nullable
public abstract String getProvider();
@Nullable
public abstract String getBroker();
@Nullable
public abstract String getVersion();
@AllowNulls
public abstract Map getCredentials();
public abstract List getTags();
@Nullable
public abstract ServiceInstanceType getType();
@Nullable
public abstract ServiceOperation getLastOperation();
public boolean isUserProvided() {
return getType() != null && getType().equals(ServiceInstanceType.USER_PROVIDED);
}
@Override
public CloudServiceInstance derive() {
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy