Package software.amazon.smithy.linters
Class MissingClientOptionalTrait.Config
java.lang.Object
software.amazon.smithy.linters.MissingClientOptionalTrait.Config
- Enclosing class:
- MissingClientOptionalTrait
MissingClientOptionalTrait configuration settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether clientOptional is required for all members marked as required or default.void
onRequiredOrDefault
(boolean onDefault) boolean
Whether clientOptional is required for members marked as required that target structures or unions (shapes with no zero value, meaning it's impossible to later remove the required trait and replace it with the default trait).void
onRequiredStructureOrUnion
(boolean onRequiredStructuresOrUnion)
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
onRequiredStructureOrUnion
public boolean onRequiredStructureOrUnion()Whether clientOptional is required for members marked as required that target structures or unions (shapes with no zero value, meaning it's impossible to later remove the required trait and replace it with the default trait).- Returns:
- Returns true if required.
-
onRequiredStructureOrUnion
public void onRequiredStructureOrUnion(boolean onRequiredStructuresOrUnion) -
onRequiredOrDefault
public boolean onRequiredOrDefault()Whether clientOptional is required for all members marked as required or default.- Returns:
- Returns true if required.
-
onRequiredOrDefault
public void onRequiredOrDefault(boolean onDefault)
-