Class ModifiableQuestionnaireMetadata

    • Method Detail

      • clear

        public ModifiableQuestionnaireMetadata clear()
        Clears the object by setting all attributes to their initial values.
        Returns:
        this for use in a chained invocation
      • from

        public ModifiableQuestionnaireMetadata from​(Questionnaire.Metadata instance)
        Fill this modifiable instance with attribute values from the provided Questionnaire.Metadata instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values). Collection elements and entries will be added, not replaced.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this for use in a chained invocation
      • from

        public ModifiableQuestionnaireMetadata from​(ModifiableQuestionnaireMetadata instance)
        Fill this modifiable instance with attribute values from the provided Questionnaire.Metadata instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values). Collection elements and entries will be added, not replaced.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this for use in a chained invocation
      • setFormId

        public ModifiableQuestionnaireMetadata setFormId​(String formId)
        Assigns a value to the formId attribute.
        Parameters:
        formId - The value for formId, can be null
        Returns:
        this for use in a chained invocation
      • setFormName

        public ModifiableQuestionnaireMetadata setFormName​(String formName)
        Assigns a value to the formName attribute.
        Parameters:
        formName - The value for formName, can be null
        Returns:
        this for use in a chained invocation
      • setFormRev

        public ModifiableQuestionnaireMetadata setFormRev​(String formRev)
        Assigns a value to the formRev attribute.
        Parameters:
        formRev - The value for formRev, can be null
        Returns:
        this for use in a chained invocation
      • setTenantId

        public ModifiableQuestionnaireMetadata setTenantId​(String tenantId)
        Assigns a value to the tenantId attribute.
        Parameters:
        tenantId - The value for tenantId, can be null
        Returns:
        this for use in a chained invocation
      • setCreated

        public ModifiableQuestionnaireMetadata setCreated​(Date created)
        Assigns a value to the created attribute.
        Parameters:
        created - The value for created, can be null
        Returns:
        this for use in a chained invocation
      • setLastAnswer

        public ModifiableQuestionnaireMetadata setLastAnswer​(Date lastAnswer)
        Assigns a value to the lastAnswer attribute.
        Parameters:
        lastAnswer - The value for lastAnswer, can be null
        Returns:
        this for use in a chained invocation
      • setOpened

        public ModifiableQuestionnaireMetadata setOpened​(Date opened)
        Assigns a value to the opened attribute.
        Parameters:
        opened - The value for opened, can be null
        Returns:
        this for use in a chained invocation
      • setCompleted

        public ModifiableQuestionnaireMetadata setCompleted​(Date completed)
        Assigns a value to the completed attribute.
        Parameters:
        completed - The value for completed, can be null
        Returns:
        this for use in a chained invocation
      • setLabel

        public ModifiableQuestionnaireMetadata setLabel​(String label)
        Assigns a value to the label attribute.
        Parameters:
        label - The value for label, can be null
        Returns:
        this for use in a chained invocation
      • setSubmitUrl

        public ModifiableQuestionnaireMetadata setSubmitUrl​(String submitUrl)
        Assigns a value to the submitUrl attribute.
        Parameters:
        submitUrl - The value for submitUrl, can be null
        Returns:
        this for use in a chained invocation
      • setLanguage

        public ModifiableQuestionnaireMetadata setLanguage​(String language)
        Assigns a value to the language attribute.
        Parameters:
        language - The value for language, can be null
        Returns:
        this for use in a chained invocation
      • setOwner

        public ModifiableQuestionnaireMetadata setOwner​(String owner)
        Assigns a value to the owner attribute.
        Parameters:
        owner - The value for owner, can be null
        Returns:
        this for use in a chained invocation
      • setCreator

        public ModifiableQuestionnaireMetadata setCreator​(String creator)
        Assigns a value to the creator attribute.
        Parameters:
        creator - The value for creator, can be null
        Returns:
        this for use in a chained invocation
      • putAdditionalProperties

        public ModifiableQuestionnaireMetadata putAdditionalProperties​(String key,
                                                                       Object value)
        Put one entry to the additionalProperties map.
        Parameters:
        key - The key in additionalProperties map
        value - The associated value in the additionalProperties map
        Returns:
        this for use in a chained invocation
      • setAdditionalProperties

        public ModifiableQuestionnaireMetadata setAdditionalProperties​(Map<String,​? extends Object> entries)
        Sets or replaces all mappings from the specified map as entries for the additionalProperties map. Nulls are not permitted as keys or values.
        Parameters:
        entries - The entries that will be added to the additionalProperties map
        Returns:
        this for use in a chained invocation
      • putAllAdditionalProperties

        public ModifiableQuestionnaireMetadata putAllAdditionalProperties​(Map<String,​? extends Object> entries)
        Put all mappings from the specified map as entries to the additionalProperties map. Nulls are not permitted as keys or values.
        Parameters:
        entries - to be added to additionalProperties map
        Returns:
        this for use in a chained invocation
      • statusIsSet

        public final boolean statusIsSet()
        Returns true if the default attribute status is set.
        Returns:
        true if set
      • isInitialized

        public final boolean isInitialized()
        Returns true if all required attributes are set, indicating that the object is initialized.
        Returns:
        true if set
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ModifiableQuestionnaireMetadata that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: formId, formName, status, formRev, tenantId, created, lastAnswer, opened, completed, label, submitUrl, reason, language, owner, creator, additionalProperties.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Generates a string representation of this Metadata. If uninitialized, some attribute values may appear as question marks.
        Overrides:
        toString in class Object
        Returns:
        A string representation