Package com.amazonaws.services.s3.model
Class ExtraMaterialsDescription
- java.lang.Object
-
- com.amazonaws.services.s3.model.ExtraMaterialsDescription
-
- All Implemented Interfaces:
Serializable
public class ExtraMaterialsDescription extends Object implements Serializable
Used to provide additional/supplemental material description (typically on a per-request basis and for more advanced use-case) to supplement the one stored in S3 for crypto material retrieval.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtraMaterialsDescription.ConflictResolution
Used to resolve conflicts when merging the additional material description to the core material description.
-
Field Summary
Fields Modifier and Type Field Description static ExtraMaterialsDescription
NONE
-
Constructor Summary
Constructors Constructor Description ExtraMaterialsDescription(Map<String,String> matdesc)
ExtraMaterialsDescription(Map<String,String> matdesc, ExtraMaterialsDescription.ConflictResolution resolve)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtraMaterialsDescription.ConflictResolution
getConflictResolution()
Returns the conflict resolution strategy; neve null.Map<String,String>
getMaterialDescription()
Returns the extra material description; never null.Map<String,String>
mergeInto(Map<String,String> core)
Combine this supplemental material descriptions with those specified in the "core" parameter.
-
-
-
Field Detail
-
NONE
public static final ExtraMaterialsDescription NONE
-
-
Method Detail
-
getMaterialDescription
public Map<String,String> getMaterialDescription()
Returns the extra material description; never null.
-
getConflictResolution
public ExtraMaterialsDescription.ConflictResolution getConflictResolution()
Returns the conflict resolution strategy; neve null.
-
mergeInto
public Map<String,String> mergeInto(Map<String,String> core)
Combine this supplemental material descriptions with those specified in the "core" parameter. This method has no side effect.- Parameters:
core
- the core material descriptions to be supplemented; assumed to be unmodifiable.- Returns:
- the merged material descriptions; never null. The returned map is always unmodifiable, assuming the passed in core material descriptions are unmodifiable.
- Throws:
IllegalArgumentException
- if this supplemental material descriptions contains conflicting entriesUnsupportedOperationException
- if the conflict resolution strategy is not supported
-
-