Class LabelCreate

java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.LabelCreate

@Generated("io.github.primelib.primecodegen") public class LabelCreate extends Object
LabelCreate
  • Field Details

    • prefix

      protected String prefix
      The prefix for the label. `global`, `my` `team`, etc.
    • name

      protected String name
      The name of the label, which will be shown in the UI.
  • Constructor Details

    • LabelCreate

      public LabelCreate(Consumer<LabelCreate> spec)
      Constructs a validated instance of LabelCreate.
      Parameters:
      spec - the specification to process
    • LabelCreate

      @Internal protected LabelCreate()
      Protected no-args constructor for use by serialization frameworks.
    • LabelCreate

      @Internal public LabelCreate(String prefix, String name)
      Constructs a validated instance of LabelCreate.

      NOTE: This constructor is not considered stable and may change if the model is updated. Consider using LabelCreate(Consumer) instead.

      Parameters:
      prefix - The prefix for the label. `global`, `my` `team`, etc.
      name - The name of the label, which will be shown in the UI.
  • Method Details

    • prefix

      public String prefix()
      Fluent getter for prefix.

      The prefix for the label. `global`, `my` `team`, etc.

      Returns:
      prefix
    • prefix

      public LabelCreate prefix(String prefix)
      Fluent setter for prefix.

      The prefix for the label. `global`, `my` `team`, etc.

      Parameters:
      prefix - prefix
      Returns:
      this
    • getPrefix

      public String getPrefix()
      Gets the value of prefix.

      The prefix for the label. `global`, `my` `team`, etc.

      Returns:
      prefix
    • setPrefix

      public void setPrefix(String prefix)
      Sets the value of prefix.

      The prefix for the label. `global`, `my` `team`, etc.

      Parameters:
      prefix - prefix
    • name

      public String name()
      Fluent getter for name.

      The name of the label, which will be shown in the UI.

      Returns:
      name
    • name

      public LabelCreate name(String name)
      Fluent setter for name.

      The name of the label, which will be shown in the UI.

      Parameters:
      name - name
      Returns:
      this
    • getName

      public String getName()
      Gets the value of name.

      The name of the label, which will be shown in the UI.

      Returns:
      name
    • setName

      public void setName(String name)
      Sets the value of name.

      The name of the label, which will be shown in the UI.

      Parameters:
      name - name
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object