Class Visibility
java.lang.Object
io.github.primelib.jira4j.restv2.model.Visibility
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class Visibility
extends Object
Visibility
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Whether visibility of this item is restricted to a group or role.static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
The ID of the group or the name of the role that visibility of this item is restricted to.protected Visibility.TypeEnum
Whether visibility of this item is restricted to a group or role.protected String
The name of the group or role that visibility of this item is restricted to. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Visibility
(String identifier, Visibility.TypeEnum type, String value) Constructs a validated instance ofVisibility
.Visibility
(Consumer<Visibility> spec) Constructs a validated instance ofVisibility
. -
Method Summary
Modifier and TypeMethodDescriptionstatic Visibility.VisibilityBuilder
builder()
protected boolean
boolean
int
hashCode()
The ID of the group or the name of the role that visibility of this item is restricted to.identifier
(String identifier) The ID of the group or the name of the role that visibility of this item is restricted to.toString()
type()
Whether visibility of this item is restricted to a group or role.type
(Visibility.TypeEnum type) Whether visibility of this item is restricted to a group or role.value()
The name of the group or role that visibility of this item is restricted to.The name of the group or role that visibility of this item is restricted to.
-
Field Details
-
identifier
The ID of the group or the name of the role that visibility of this item is restricted to. -
type
Whether visibility of this item is restricted to a group or role. -
value
The name of the group or role that visibility of this item is restricted to. Please note that the name of a group is mutable, to reliably identify a group useidentifier
.
-
-
Constructor Details
-
Visibility
Constructs a validated instance ofVisibility
.- Parameters:
spec
- the specification to process
-
Visibility
Constructs a validated instance ofVisibility
.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
Visibility(Consumer)
instead.- Parameters:
identifier
- The ID of the group or the name of the role that visibility of this item is restricted to.type
- Whether visibility of this item is restricted to a group or role.value
- The name of the group or role that visibility of this item is restricted to. Please note that the name of a group is mutable, to reliably identify a group useidentifier
.
-
Visibility
protected Visibility()
-
-
Method Details
-
builder
-
identifier
The ID of the group or the name of the role that visibility of this item is restricted to. -
type
Whether visibility of this item is restricted to a group or role. -
value
The name of the group or role that visibility of this item is restricted to. Please note that the name of a group is mutable, to reliably identify a group useidentifier
. -
identifier
The ID of the group or the name of the role that visibility of this item is restricted to.- Returns:
this
.
-
type
Whether visibility of this item is restricted to a group or role.- Returns:
this
.
-
value
The name of the group or role that visibility of this item is restricted to. Please note that the name of a group is mutable, to reliably identify a group useidentifier
.- Returns:
this
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-