Package software.amazon.smithy.linters
Class MissingClientOptionalTrait.Config
- java.lang.Object
-
- software.amazon.smithy.linters.MissingClientOptionalTrait.Config
-
- Enclosing class:
- MissingClientOptionalTrait
public static final class MissingClientOptionalTrait.Config extends java.lang.Object
MissingClientOptionalTrait configuration settings.
-
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
onRequiredOrDefault()
Whether clientOptional is required for all members marked as required or default.void
onRequiredOrDefault(boolean onDefault)
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).void
onRequiredStructureOrUnion(boolean onRequiredStructuresOrUnion)
-
-
-
Method Detail
-
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)
-
-