Class Operation

    • Constructor Detail

      • Operation

        protected Operation​(Operation.Builder builder)
        Protected constructor of the Operation.
        Parameters:
        builder - Operation Builder
    • Method Detail

      • getDescription

        public LocalizableString getDescription()
        Getter of the description.
        Returns:
        Description
      • getSupportedLocales

        public String[] getSupportedLocales()
        Getter of the supported locales array.
        Returns:
        Supported locales
      • getApiErrors

        public ApiError[] getApiErrors()
        Getter of the error array.
        Returns:
        ApiError array
      • getParameters

        public Parameter[] getParameters()
        Getter of the parameters array.
        Returns:
        Parameters
      • getStability

        public Stability getStability()
        Getter of Operation stability.
        Returns:
        Stability or null which suggests Stability.STABLE (default).
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • allocateToResource

        protected abstract void allocateToResource​(Resource.Builder resourceBuilder)
        Allocates the operation by operation type to the given Resource Builder by calling the corresonding method by type.
        Parameters:
        resourceBuilder - - Resource Builder to add the operation