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 classCollectionShape.Builder<B extends CollectionShape.Builder,S extends CollectionShape>Builder used to create a List or Set shape.
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object other)MemberShapegetMember()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:ShapeGets all of the members contained in the shape.
-
-