Class AsPrependTemplate.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(Long length,
                       String policy)
        Instantiates a new builder with required properties.
        Parameters:
        length - the length
        policy - the policy
    • Method Detail

      • build

        public AsPrependTemplate build()
        Builds a AsPrependTemplate.
        Returns:
        the new AsPrependTemplate instance
      • addSpecificPrefixes

        public AsPrependTemplate.Builder addSpecificPrefixes​(String specificPrefixes)
        Adds an specificPrefixes to specificPrefixes.
        Parameters:
        specificPrefixes - the new specificPrefixes
        Returns:
        the AsPrependTemplate builder
      • length

        public AsPrependTemplate.Builder length​(long length)
        Set the length.
        Parameters:
        length - the length
        Returns:
        the AsPrependTemplate builder
      • policy

        public AsPrependTemplate.Builder policy​(String policy)
        Set the policy.
        Parameters:
        policy - the policy
        Returns:
        the AsPrependTemplate builder
      • prefix

        public AsPrependTemplate.Builder prefix​(String prefix)
        Set the prefix.
        Parameters:
        prefix - the prefix
        Returns:
        the AsPrependTemplate builder
      • specificPrefixes

        public AsPrependTemplate.Builder specificPrefixes​(List<String> specificPrefixes)
        Set the specificPrefixes. Existing specificPrefixes will be replaced.
        Parameters:
        specificPrefixes - the specificPrefixes
        Returns:
        the AsPrependTemplate builder