@Test public void addMemberWithTarget() { ListShape shape = ListShape.builder() .id("ns.foo#bar") .member(ShapeId.from("ns.foo#bam")) .build(); assertEquals(shape.getMember(), MemberShape.builder().id(shape.getId().withMember("member")).target("ns.foo#bam").build()); }
public static Builder builder() { return new Builder(); }
ListShape extends CollectionShape implements ToSmithyBuilder<ListShape> { public static Builder builder() { return new Builder(); } }
ListShape extends CollectionShape implements ToSmithyBuilder<ListShape> { public static Builder builder() { return new Builder(); } private  ListShape(Builder builder); }
ListShape extends CollectionShape implements ToSmithyBuilder<ListShape> { public static Builder builder() { return new Builder(); } private  ListShape(Builder builder); static Builder builder(); @Override Builder toBuilder(); @Override R accept(ShapeVisitor<R> cases); @Override Optional<ListShape> asListShape(); }
ListShape extends CollectionShape implements ToSmithyBuilder<ListShape> { public static Builder builder() { return new Builder(); } private  ListShape(Builder builder); static Builder builder(); @Override Builder toBuilder(); @Override R accept(ShapeVisitor<R> cases); @Override Optional<ListShape> asListShape();  }