Class Patch.Builder

  • Enclosing class:
    Patch

    public static class Patch.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • key

        public Patch.Builder key​(String key)
        The object key.
        Parameters:
        key - the value to set
        Returns:
        this builder
      • modelType

        public Patch.Builder modelType​(String modelType)
        The object type.
        Parameters:
        modelType - the value to set
        Returns:
        this builder
      • modelVersion

        public Patch.Builder modelVersion​(String modelVersion)
        The object’s model version.
        Parameters:
        modelVersion - the value to set
        Returns:
        this builder
      • name

        public Patch.Builder name​(String name)
        Free form text without any restriction on permitted characters.

        Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.

        Parameters:
        name - the value to set
        Returns:
        this builder
      • description

        public Patch.Builder description​(String description)
        Detailed description for the object.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • objectVersion

        public Patch.Builder objectVersion​(Integer objectVersion)
        The version of the object that is used to track changes in the object instance.
        Parameters:
        objectVersion - the value to set
        Returns:
        this builder
      • objectStatus

        public Patch.Builder objectStatus​(Integer objectStatus)
        The status of an object that can be set to value 1 for shallow references across objects, other values reserved.
        Parameters:
        objectStatus - the value to set
        Returns:
        this builder
      • identifier

        public Patch.Builder identifier​(String identifier)
        Value can only contain upper case letters, underscore, and numbers.

        It should begin with upper case letter or underscore. The value can be modified.

        Parameters:
        identifier - the value to set
        Returns:
        this builder
      • timePatched

        public Patch.Builder timePatched​(Date timePatched)
        The date and time the patch was applied, in the timestamp format defined by RFC3339.
        Parameters:
        timePatched - the value to set
        Returns:
        this builder
      • errorMessages

        public Patch.Builder errorMessages​(Map<String,​String> errorMessages)
        The errors encountered while applying the patch, if any.
        Parameters:
        errorMessages - the value to set
        Returns:
        this builder
      • applicationVersion

        public Patch.Builder applicationVersion​(Integer applicationVersion)
        The application version of the patch.
        Parameters:
        applicationVersion - the value to set
        Returns:
        this builder
      • patchType

        public Patch.Builder patchType​(Patch.PatchType patchType)
        The type of the patch applied or being applied on the application.
        Parameters:
        patchType - the value to set
        Returns:
        this builder
      • patchStatus

        public Patch.Builder patchStatus​(Patch.PatchStatus patchStatus)
        Status of the patch applied or being applied on the application
        Parameters:
        patchStatus - the value to set
        Returns:
        this builder
      • dependentObjectMetadata

        public Patch.Builder dependentObjectMetadata​(List<PatchObjectMetadata> dependentObjectMetadata)
        List of dependent objects in this patch.
        Parameters:
        dependentObjectMetadata - the value to set
        Returns:
        this builder
      • patchObjectMetadata

        public Patch.Builder patchObjectMetadata​(List<PatchObjectMetadata> patchObjectMetadata)
        List of objects that are published or unpublished in this patch.
        Parameters:
        patchObjectMetadata - the value to set
        Returns:
        this builder
      • keyMap

        public Patch.Builder keyMap​(Map<String,​String> keyMap)
        A key map.

        If provided, key is replaced with generated key. This structure provides mapping between user provided key and generated key.

        Parameters:
        keyMap - the value to set
        Returns:
        this builder
      • build

        public Patch build()