com.github.davidmoten.aws.lw.client.Metadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-lightweight-client-java Show documentation
Show all versions of aws-lightweight-client-java Show documentation
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