Class CollectionShape
- java.lang.Object
-
- software.amazon.smithy.model.shapes.Shape
-
- software.amazon.smithy.model.shapes.CollectionShape
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CollectionShape.Builder<B extends CollectionShape.Builder,S extends CollectionShape>
Builder used to create a List or Set shape.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
MemberShape
getMember()
Get the member shape of the collection.java.util.Collection<MemberShape>
members()
Gets all of the members contained in the shape.-
Methods inherited from class software.amazon.smithy.model.shapes.Shape
accept, asBigDecimalShape, asBigIntegerShape, asBlobShape, asBooleanShape, asByteShape, asDocumentShape, asDoubleShape, asFloatShape, asIntegerShape, asListShape, asLongShape, asMapShape, asMemberShape, asOperationShape, asResourceShape, asServiceShape, asSetShape, asShortShape, asStringShape, asStructureShape, asTimestampShape, asUnionShape, compareTo, expectTrait, findMemberTrait, findTrait, findTrait, getAllTraits, getId, getMemberTrait, getSourceLocation, getTags, getTrait, getType, hashCode, hasTrait, hasTrait, hasTrait, isBigDecimalShape, isBigIntegerShape, isBlobShape, isBooleanShape, isByteShape, isDocumentShape, isDoubleShape, isFloatShape, isIntegerShape, isListShape, isLongShape, isMapShape, isMemberShape, isOperationShape, isResourceShape, isServiceShape, isSetShape, isShortShape, isStringShape, isStructureShape, isTimestampShape, isUnionShape, shapeToBuilder, toShapeId, toString
-
-
-
-
Method Detail
-
getMember
public final MemberShape getMember()
Get the member shape of the collection.- Returns:
- Returns the member shape.
-
members
public java.util.Collection<MemberShape> members()
Description copied from class:Shape
Gets all of the members contained in the shape.
-
-