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

io.sphere.sdk.subscriptions.ResourceCreatedPayload Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.subscriptions;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.annotations.ResourceValue;

import java.time.ZonedDateTime;

/**
 * This payload will be sent for a ChangeSubscription if a resource was created.
 *
 * @param  the resource type
 */
@JsonDeserialize(as = ResourceCreatedPayloadImpl.class)
@ResourceValue
public interface ResourceCreatedPayload extends Payload {

    /**
     * The version of the resource after it was created.
     *
     * @return the resource version after creation
     */
    Long getVersion();

    /**
     * @return The point in time when the resource was created
     */
    ZonedDateTime getModifiedAt();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy