Class ProtectedBranch.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • branchName

        public ProtectedBranch.Builder branchName​(String branchName)
        The branchName can either be exact branch name or branch pattern.
        Parameters:
        branchName - the value to set
        Returns:
        this builder
      • protectionLevels

        public ProtectedBranch.Builder protectionLevels​(List<ProtectionLevel> protectionLevels)
        Protection levels to be added on the branch.
        Parameters:
        protectionLevels - the value to set
        Returns:
        this builder
      • freeformTags

        public ProtectedBranch.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. See Resource Tags. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public ProtectedBranch.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“foo-namespace”: {“bar-key”: “value”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder