Class DefaultProtocolMetadataConstants
- java.lang.Object
-
- software.amazon.awssdk.codegen.internal.DefaultProtocolMetadataConstants
-
- All Implemented Interfaces:
ProtocolMetadataConstants
public final class DefaultProtocolMetadataConstants extends Object implements ProtocolMetadataConstants
Default implementation ofProtocolMetadataConstants
.
-
-
Constructor Summary
Constructors Constructor Description DefaultProtocolMetadataConstants()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(OperationMetadataAttribute<T> key)
Gets the constant value for the operation metadata key.List<Map.Entry<Class<?>,OperationMetadataAttribute<?>>>
keys()
Returns the list of keys sets.<T> T
put(Class<?> containingClass, OperationMetadataAttribute<T> key, T value)
Adds an operation metadata to the set of constants.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.codegen.internal.ProtocolMetadataConstants
put
-
-
-
-
Method Detail
-
keys
public List<Map.Entry<Class<?>,OperationMetadataAttribute<?>>> keys()
Description copied from interface:ProtocolMetadataConstants
Returns the list of keys sets. TheMap.Entry
contains as key the class containing the key field and the value contains the key constant itself. The class is needed to properly codegen a reference to the key.- Specified by:
keys
in interfaceProtocolMetadataConstants
- Returns:
-
put
public <T> T put(Class<?> containingClass, OperationMetadataAttribute<T> key, T value)
Description copied from interface:ProtocolMetadataConstants
Adds an operation metadata to the set of constants.- Specified by:
put
in interfaceProtocolMetadataConstants
-
get
public <T> T get(OperationMetadataAttribute<T> key)
Description copied from interface:ProtocolMetadataConstants
Gets the constant value for the operation metadata key.- Specified by:
get
in interfaceProtocolMetadataConstants
-
-