@Test public void doesNotRequireItems() { PaginatedTrait t = new PaginatedTrait.Provider().createTrait(ShapeId.from("ns.qux#foo"), Node.objectNode() .withMember("inputToken", Node.from("inputToken")) .withMember("outputToken", Node.from("outputToken"))); assertThat(t.getItems(), equalTo(Optional.empty())); }
public Optional<String> getItems() { return Optional.ofNullable(items); }
PaginatedTrait extends AbstractTrait implements ToSmithyBuilder<PaginatedTrait> { public Optional<String> getItems() { return Optional.ofNullable(items); } }
PaginatedTrait extends AbstractTrait implements ToSmithyBuilder<PaginatedTrait> { public Optional<String> getItems() { return Optional.ofNullable(items); } private  PaginatedTrait(Builder builder); }
PaginatedTrait extends AbstractTrait implements ToSmithyBuilder<PaginatedTrait> { public Optional<String> getItems() { return Optional.ofNullable(items); } private  PaginatedTrait(Builder builder); Optional<String> getItems(); Optional<String> getInputToken(); Optional<String> getOutputToken(); Optional<String> getPageSize(); static Optional<MemberShape> resolvePath(
            String path,
            Model model,
            StructureShape shape
    ); PaginatedTrait merge(PaginatedTrait other); @Override Builder toBuilder(); static Builder builder(); }
PaginatedTrait extends AbstractTrait implements ToSmithyBuilder<PaginatedTrait> { public Optional<String> getItems() { return Optional.ofNullable(items); } private  PaginatedTrait(Builder builder); Optional<String> getItems(); Optional<String> getInputToken(); Optional<String> getOutputToken(); Optional<String> getPageSize(); static Optional<MemberShape> resolvePath(
            String path,
            Model model,
            StructureShape shape
    ); PaginatedTrait merge(PaginatedTrait other); @Override Builder toBuilder(); static Builder builder(); static final ShapeId ID; }