@Test public void returnsMembers() { StructureShape shape = StructureShape.builder() .id("ns.foo#bar") .addMember("foo", ShapeId.from("ns.foo#bam")) .addMember("baz", ShapeId.from("ns.foo#bam")) .build(); assertThat(shape.members(), hasSize(2)); assertThat(shape.members(), contains(shape.getMember("foo").get(), shape.getMember("baz").get())); assertThat(shape.getAllMembers().keySet(), contains("foo", "baz")); }
public static Builder builder() { return new Builder(); }
StructureShape extends NamedMembersShape implements ToSmithyBuilder<StructureShape> { public static Builder builder() { return new Builder(); } }
StructureShape extends NamedMembersShape implements ToSmithyBuilder<StructureShape> { public static Builder builder() { return new Builder(); } private  StructureShape(Builder builder); }
StructureShape extends NamedMembersShape implements ToSmithyBuilder<StructureShape> { public static Builder builder() { return new Builder(); } private  StructureShape(Builder builder); static Builder builder(); @Override Builder toBuilder(); @Override R accept(ShapeVisitor<R> cases); @Override Optional<StructureShape> asStructureShape(); }
StructureShape extends NamedMembersShape implements ToSmithyBuilder<StructureShape> { public static Builder builder() { return new Builder(); } private  StructureShape(Builder builder); static Builder builder(); @Override Builder toBuilder(); @Override R accept(ShapeVisitor<R> cases); @Override Optional<StructureShape> asStructureShape();  }