Class ExcludeTraits.Config
- java.lang.Object
-
- software.amazon.smithy.build.transforms.ExcludeTraits.Config
-
- Enclosing class:
- ExcludeTraits
public static final class ExcludeTraits.Config extends java.lang.Object
excludeTraits
configuration settings.
-
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getTraits()
Gets the list of trait shape IDs/namespaces to exclude.void
setTraits(java.util.Set<java.lang.String> traits)
Sets the list of trait shape IDs/namespaces to exclude.
-
-
-
Method Detail
-
getTraits
public java.util.Set<java.lang.String> getTraits()
Gets the list of trait shape IDs/namespaces to exclude.- Returns:
- shape IDs to exclude.
-
setTraits
public void setTraits(java.util.Set<java.lang.String> traits)
Sets the list of trait shape IDs/namespaces to exclude.Relative shape IDs are considered traits in the prelude namespace,
smithy.api
. Strings ending in "#" are used to exclude traits from an entire namespace.- Parameters:
traits
- Traits to exclude.
-
-