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

com.github.davidmoten.aws.lw.client.Metadata Maven / Gradle / Ivy

Go to download

Lightweight client for all AWS services (but still with useful builders and XML parser)

The newest version!
package com.github.davidmoten.aws.lw.client;

import java.util.Map;
import java.util.Map.Entry;
import java.util.Optional;
import java.util.Set;

import com.github.davidmoten.aws.lw.client.internal.util.Preconditions;
import com.github.davidmoten.aws.lw.client.internal.util.Util;

public final class Metadata {

    private final Map map;

    Metadata(Map map) {
        this.map = map;
    }

    public Optional value(String key) {
        Preconditions.checkNotNull(key);
        return Optional.ofNullable(map.get(Util.canonicalMetadataKey(key)));
    }

    public Set> entrySet() {
        return map.entrySet();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy