Class Schema

    • Method Detail

      • getRef

        public java.util.Optional<java.lang.String> getRef()
      • getType

        public java.util.Optional<java.lang.String> getType()
      • getEnumValues

        public java.util.Optional<java.util.Collection<java.lang.String>> getEnumValues()
      • getIntEnumValues

        public java.util.Optional<java.util.Collection<java.lang.Integer>> getIntEnumValues()
      • getConstValue

        public java.util.Optional<Node> getConstValue()
      • getDefaultValue

        public java.util.Optional<Node> getDefaultValue()
      • getMultipleOf

        public java.util.Optional<java.lang.Number> getMultipleOf()
      • getMaximum

        public java.util.Optional<java.lang.Number> getMaximum()
      • getExclusiveMaximum

        public java.util.Optional<java.lang.Number> getExclusiveMaximum()
      • getMinimum

        public java.util.Optional<java.lang.Number> getMinimum()
      • getExclusiveMinimum

        public java.util.Optional<java.lang.Number> getExclusiveMinimum()
      • getMaxLength

        public java.util.Optional<java.lang.Long> getMaxLength()
      • getMinLength

        public java.util.Optional<java.lang.Long> getMinLength()
      • getPattern

        public java.util.Optional<java.lang.String> getPattern()
      • getItems

        public java.util.Optional<Schema> getItems()
      • getMaxItems

        public java.util.Optional<java.lang.Integer> getMaxItems()
      • getMinItems

        public java.util.Optional<java.lang.Integer> getMinItems()
      • getUniqueItems

        public boolean getUniqueItems()
      • getMaxProperties

        public java.util.Optional<java.lang.Integer> getMaxProperties()
      • getMinProperties

        public java.util.Optional<java.lang.Integer> getMinProperties()
      • getRequired

        public java.util.Collection<java.lang.String> getRequired()
      • getProperties

        public java.util.Map<java.lang.String,​Schema> getProperties()
      • getProperty

        public java.util.Optional<Schema> getProperty​(java.lang.String key)
      • getAdditionalProperties

        public java.util.Optional<Schema> getAdditionalProperties()
      • getPropertyNames

        public java.util.Optional<Schema> getPropertyNames()
      • getPatternProperties

        public java.util.Map<java.lang.String,​Schema> getPatternProperties()
      • getAllOf

        public java.util.List<Schema> getAllOf()
      • getAnyOf

        public java.util.List<Schema> getAnyOf()
      • getOneOf

        public java.util.List<Schema> getOneOf()
      • getNot

        public java.util.Optional<Schema> getNot()
      • getTitle

        public java.util.Optional<java.lang.String> getTitle()
      • getDescription

        public java.util.Optional<java.lang.String> getDescription()
      • getFormat

        public java.util.Optional<java.lang.String> getFormat()
      • getReadOnly

        public boolean getReadOnly()
      • getWriteOnly

        public boolean getWriteOnly()
      • getComment

        public java.util.Optional<java.lang.String> getComment()
      • getExamples

        public java.util.Optional<Node> getExamples()
      • isDeprecated

        public boolean isDeprecated()
      • getContentEncoding

        public java.util.Optional<java.lang.String> getContentEncoding()
      • getContentMediaType

        public java.util.Optional<java.lang.String> getContentMediaType()
      • getExtension

        public java.util.Optional<ToNode> getExtension​(java.lang.String key)
      • getAllExtensions

        public java.util.Map<java.lang.String,​ToNode> getAllExtensions()
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • selectSchema

        public java.util.Optional<Schema> selectSchema​(java.lang.String... segments)
        Selects a nested schema using a variadic list of property names to descend into.

        For example, this method can be used to get the items schema nested inside of an array inside of an object:

        
         Schema itemsSchema = schema.selectSchema("properties", "foo", "items").get();
         
        Parameters:
        segments - The properties names to retrieve.
        Returns:
        Returns the selected Schema.
      • toBuilder

        public Schema.Builder toBuilder()
        Description copied from interface: ToSmithyBuilder
        Take this object and create a builder that contains all of the current property values of this object.
        Specified by:
        toBuilder in interface ToSmithyBuilder<Schema>
        Returns:
        a builder for type T
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object