Interface ProjectChangeLanguagesAction

All Superinterfaces:
ProjectUpdateAction, ResourceUpdateAction<ProjectUpdateAction>

public interface ProjectChangeLanguagesAction extends ProjectUpdateAction

Removing a language used by a Store returns a LanguageUsedInStores error.


Example to create an instance using the builder pattern

     ProjectChangeLanguagesAction projectChangeLanguagesAction = ProjectChangeLanguagesAction.builder()
             .plusLanguages(languagesBuilder -> languagesBuilder)
             .build()
 
  • Field Details

    • CHANGE_LANGUAGES

      static final String CHANGE_LANGUAGES
      discriminator value for ProjectChangeLanguagesAction
      See Also:
  • Method Details

    • getLanguages

      @NotNull @NotNull List<String> getLanguages()

      New value to set. Must not be empty.

      Returns:
      languages
    • setLanguages

      void setLanguages(String... languages)

      New value to set. Must not be empty.

      Parameters:
      languages - values to be set
    • setLanguages

      void setLanguages(List<String> languages)

      New value to set. Must not be empty.

      Parameters:
      languages - values to be set
    • of

      factory method
      Returns:
      instance of ProjectChangeLanguagesAction
    • of

      factory method to create a shallow copy ProjectChangeLanguagesAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ProjectChangeLanguagesAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for ProjectChangeLanguagesAction
      Returns:
      builder
    • builder

      create builder for ProjectChangeLanguagesAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProjectChangeLanguagesAction

      default <T> T withProjectChangeLanguagesAction(Function<ProjectChangeLanguagesAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ProjectChangeLanguagesAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference