org.cloudfoundry.client.lib.domain.CloudEvent 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.Date;
import java.util.UUID;
import org.cloudfoundry.client.lib.domain.ImmutableCloudEvent.ImmutableParticipant;
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.Enclosing
@Value.Immutable
@JsonSerialize(as = ImmutableCloudEvent.class)
@JsonDeserialize(as = ImmutableCloudEvent.class)
public abstract class CloudEvent extends CloudEntity implements Derivable {
@Nullable
public abstract String getType();
@Nullable
public abstract Participant getActor();
@Nullable
public abstract Participant getActee();
@Nullable
public abstract Date getTimestamp();
@Override
public CloudEvent derive() {
return this;
}
@Value.Immutable
@JsonSerialize(as = ImmutableParticipant.class)
@JsonDeserialize(as = ImmutableParticipant.class)
public interface Participant {
@Nullable
UUID getGuid();
@Nullable
String getName();
@Nullable
String getType();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy