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

com.github.nagyesta.lowkeyvault.model.common.KeyVaultItemListModel Maven / Gradle / Ivy

There is a newer version: 2.5.81
Show newest version
package com.github.nagyesta.lowkeyvault.model.common;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NonNull;
import org.springframework.lang.Nullable;

import java.net.URI;
import java.util.List;
import java.util.Optional;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class KeyVaultItemListModel {
    @JsonProperty("nextLink")
    private String nextLink;

    @JsonProperty("value")
    private List value;

    public KeyVaultItemListModel(@NonNull final List value,
                                 @Nullable final URI nextLinkUri) {
        this.value = List.copyOf(value);
        this.nextLink = Optional.ofNullable(nextLinkUri).map(URI::toString).orElse(null);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy