Class ImmutableRoleActorBean

java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.RoleActorBean
com.riadalabs.jira.plugins.insight.services.model.ImmutableRoleActorBean
All Implemented Interfaces:
Serializable

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRoleActorBean extends RoleActorBean
Immutable implementation of RoleActorBean.

Use the builder to create immutable instances: ImmutableRoleActorBean.builder().

See Also:
  • Method Details

    • getId

      @Nullable public Integer getId()
      Specified by:
      getId in class RoleActorBean
      Returns:
      The value of the id attribute
    • getType

      public String getType()
      Specified by:
      getType in class RoleActorBean
      Returns:
      The value of the type attribute
    • getTypeParameter

      public String getTypeParameter()
      Specified by:
      getTypeParameter in class RoleActorBean
      Returns:
      The value of the typeParameter attribute
    • withId

      public final ImmutableRoleActorBean withId(@Nullable Integer value)
      Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for id (can be null)
      Returns:
      A modified copy of the this object
    • withType

      public final ImmutableRoleActorBean withType(String value)
      Copy the current immutable object by setting a value for the type attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for type
      Returns:
      A modified copy of the this object
    • withTypeParameter

      public final ImmutableRoleActorBean withTypeParameter(String value)
      Copy the current immutable object by setting a value for the typeParameter attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for typeParameter
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableRoleActorBean that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: id, type, typeParameter.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value RoleActorBean with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableRoleActorBean copyOf(RoleActorBean instance)
      Creates an immutable copy of a RoleActorBean value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable RoleActorBean instance
    • builder

      public static ImmutableRoleActorBean.Builder builder()
      Creates a builder for ImmutableRoleActorBean.
       ImmutableRoleActorBean.builder()
          .setId(Integer | null) // nullable id
          .setType(String) // required type
          .setTypeParameter(String) // required typeParameter
          .build();
       
      Returns:
      A new ImmutableRoleActorBean builder