SetShape extends CollectionShape implements ToSmithyBuilder<SetShape> { public static Builder builder() { return new Builder(); } private  SetShape(Builder builder); static Builder builder(); @Override Builder toBuilder(); @Override R accept(ShapeVisitor<R> cases); @Override Optional<SetShape> asSetShape();  }
@Test public void builderUpdatesMemberId() { SetShape shape = SetShape.builder() .id("ns.foo#bar") .member(ShapeId.from("ns.foo#bam")) .id("ns.bar#bar") .build(); assertThat(shape.getMember().getId(), equalTo(ShapeId.from("ns.bar#bar$member"))); assertThat(shape.getMember().getTarget(), equalTo(ShapeId.from("ns.foo#bam"))); }