Class MissingClientOptionalTrait.Config

java.lang.Object
software.amazon.smithy.linters.MissingClientOptionalTrait.Config
Enclosing class:
MissingClientOptionalTrait

public static final class MissingClientOptionalTrait.Config extends Object
MissingClientOptionalTrait configuration settings.
  • 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)