Class Plan.Builder

  • Enclosing class:
    Plan

    public static class Plan.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
    • Method Detail

      • build

        public Plan build()
        Builds a Plan.
        Returns:
        the new Plan instance
      • addTags

        public Plan.Builder addTags​(java.lang.String tags)
        Adds an tags to tags.
        Parameters:
        tags - the new tags
        Returns:
        the Plan builder
      • addAdditionalFeatures

        public Plan.Builder addAdditionalFeatures​(Feature additionalFeatures)
        Adds an additionalFeatures to additionalFeatures.
        Parameters:
        additionalFeatures - the new additionalFeatures
        Returns:
        the Plan builder
      • addDeployments

        public Plan.Builder addDeployments​(Deployment deployments)
        Adds an deployments to deployments.
        Parameters:
        deployments - the new deployments
        Returns:
        the Plan builder
      • id

        public Plan.Builder id​(java.lang.String id)
        Set the id.
        Parameters:
        id - the id
        Returns:
        the Plan builder
      • label

        public Plan.Builder label​(java.lang.String label)
        Set the label.
        Parameters:
        label - the label
        Returns:
        the Plan builder
      • name

        public Plan.Builder name​(java.lang.String name)
        Set the name.
        Parameters:
        name - the name
        Returns:
        the Plan builder
      • shortDescription

        public Plan.Builder shortDescription​(java.lang.String shortDescription)
        Set the shortDescription.
        Parameters:
        shortDescription - the shortDescription
        Returns:
        the Plan builder
      • longDescription

        public Plan.Builder longDescription​(java.lang.String longDescription)
        Set the longDescription.
        Parameters:
        longDescription - the longDescription
        Returns:
        the Plan builder
      • metadata

        public Plan.Builder metadata​(java.util.Map<java.lang.String,​java.lang.Object> metadata)
        Set the metadata.
        Parameters:
        metadata - the metadata
        Returns:
        the Plan builder
      • tags

        public Plan.Builder tags​(java.util.List<java.lang.String> tags)
        Set the tags. Existing tags will be replaced.
        Parameters:
        tags - the tags
        Returns:
        the Plan builder
      • additionalFeatures

        public Plan.Builder additionalFeatures​(java.util.List<Feature> additionalFeatures)
        Set the additionalFeatures. Existing additionalFeatures will be replaced.
        Parameters:
        additionalFeatures - the additionalFeatures
        Returns:
        the Plan builder
      • created

        public Plan.Builder created​(java.util.Date created)
        Set the created.
        Parameters:
        created - the created
        Returns:
        the Plan builder
      • updated

        public Plan.Builder updated​(java.util.Date updated)
        Set the updated.
        Parameters:
        updated - the updated
        Returns:
        the Plan builder
      • deployments

        public Plan.Builder deployments​(java.util.List<Deployment> deployments)
        Set the deployments. Existing deployments will be replaced.
        Parameters:
        deployments - the deployments
        Returns:
        the Plan builder