Class RequestContract


  • public final class RequestContract
    extends Object
    Operation request details.
    • Constructor Detail

      • RequestContract

        public RequestContract()
    • Method Detail

      • description

        public String description()
        Get the description property: Operation request description.
        Returns:
        the description value.
      • withDescription

        public RequestContract withDescription​(String description)
        Set the description property: Operation request description.
        Parameters:
        description - the description value to set.
        Returns:
        the RequestContract object itself.
      • queryParameters

        public List<ParameterContract> queryParameters()
        Get the queryParameters property: Collection of operation request query parameters.
        Returns:
        the queryParameters value.
      • withQueryParameters

        public RequestContract withQueryParameters​(List<ParameterContract> queryParameters)
        Set the queryParameters property: Collection of operation request query parameters.
        Parameters:
        queryParameters - the queryParameters value to set.
        Returns:
        the RequestContract object itself.
      • headers

        public List<ParameterContract> headers()
        Get the headers property: Collection of operation request headers.
        Returns:
        the headers value.
      • withHeaders

        public RequestContract withHeaders​(List<ParameterContract> headers)
        Set the headers property: Collection of operation request headers.
        Parameters:
        headers - the headers value to set.
        Returns:
        the RequestContract object itself.
      • representations

        public List<RepresentationContract> representations()
        Get the representations property: Collection of operation request representations.
        Returns:
        the representations value.
      • withRepresentations

        public RequestContract withRepresentations​(List<RepresentationContract> representations)
        Set the representations property: Collection of operation request representations.
        Parameters:
        representations - the representations value to set.
        Returns:
        the RequestContract object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.