Package io.dialob.security.uaa.spi.model
Class ImmutableUaaGroup
- java.lang.Object
-
- io.dialob.security.uaa.spi.model.ImmutableUaaGroup
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableUaaGroup extends Object implements UaaGroup
Immutable implementation ofUaaGroup.Use the builder to create immutable instances:
ImmutableUaaGroup.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableUaaGroup.BuilderBuilds instances of typeImmutableUaaGroup.static classImmutableUaaGroup.MemberImmutable implementation ofUaaGroup.Member.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUaaGroup.Builderbuilder()Creates a builder forImmutableUaaGroup.static ImmutableUaaGroupcopyOf(UaaGroup instance)Creates an immutable copy of aUaaGroupvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableUaaGroupthat have equal attribute values.StringgetDescription()StringgetDisplayName()StringgetId()List<UaaGroup.Member>getMembers()UaaMetagetMeta()List<String>getSchemas()StringgetZoneId()inthashCode()Computes a hash code from attributes:id,schemas,displayName,description,members,zoneId,meta.StringtoString()Prints the immutable valueUaaGroupwith attribute values.ImmutableUaaGroupwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableUaaGroupwithDisplayName(String value)Copy the current immutable object by setting a value for thedisplayNameattribute.ImmutableUaaGroupwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableUaaGroupwithMembers(UaaGroup.Member... elements)Copy the current immutable object with elements that replace the content ofmembers.ImmutableUaaGroupwithMembers(Iterable<? extends UaaGroup.Member> elements)Copy the current immutable object with elements that replace the content ofmembers.ImmutableUaaGroupwithMeta(UaaMeta value)Copy the current immutable object by setting a value for themetaattribute.ImmutableUaaGroupwithSchemas(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofschemas.ImmutableUaaGroupwithSchemas(String... elements)Copy the current immutable object with elements that replace the content ofschemas.ImmutableUaaGroupwithZoneId(String value)Copy the current immutable object by setting a value for thezoneIdattribute.
-
-
-
Method Detail
-
getId
public String getId()
-
getSchemas
public List<String> getSchemas()
- Specified by:
getSchemasin interfaceUaaEntity- Returns:
- The value of the
schemasattribute
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceUaaGroup- Returns:
- The value of the
displayNameattribute
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceUaaGroup- Returns:
- The value of the
descriptionattribute
-
getMembers
public List<UaaGroup.Member> getMembers()
- Specified by:
getMembersin interfaceUaaGroup- Returns:
- The value of the
membersattribute
-
getZoneId
public String getZoneId()
-
getMeta
public UaaMeta getMeta()
-
withId
public final ImmutableUaaGroup withId(String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withSchemas
public final ImmutableUaaGroup withSchemas(String... elements)
Copy the current immutable object with elements that replace the content ofschemas.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSchemas
public final ImmutableUaaGroup withSchemas(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofschemas. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of schemas elements to set- Returns:
- A modified copy of
thisobject
-
withDisplayName
public final ImmutableUaaGroup withDisplayName(String value)
Copy the current immutable object by setting a value for thedisplayNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for displayName- Returns:
- A modified copy of the
thisobject
-
withDescription
public final ImmutableUaaGroup withDescription(String value)
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy of the
thisobject
-
withMembers
public final ImmutableUaaGroup withMembers(UaaGroup.Member... elements)
Copy the current immutable object with elements that replace the content ofmembers.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withMembers
public final ImmutableUaaGroup withMembers(Iterable<? extends UaaGroup.Member> elements)
Copy the current immutable object with elements that replace the content ofmembers. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of members elements to set- Returns:
- A modified copy of
thisobject
-
withZoneId
public final ImmutableUaaGroup withZoneId(String value)
Copy the current immutable object by setting a value for thezoneIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for zoneId (can benull)- Returns:
- A modified copy of the
thisobject
-
withMeta
public final ImmutableUaaGroup withMeta(UaaMeta value)
Copy the current immutable object by setting a value for themetaattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for meta (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableUaaGroupthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,schemas,displayName,description,members,zoneId,meta.
-
toString
public String toString()
Prints the immutable valueUaaGroupwith attribute values.
-
copyOf
public static ImmutableUaaGroup copyOf(UaaGroup instance)
Creates an immutable copy of aUaaGroupvalue. 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 UaaGroup instance
-
builder
public static ImmutableUaaGroup.Builder builder()
Creates a builder forImmutableUaaGroup.ImmutableUaaGroup.builder() .id(String) // requiredid.addSchemas|addAllSchemas(String) //schemaselements .displayName(String) // requireddisplayName.description(String | null) // nullabledescription.addMembers|addAllMembers(io.dialob.security.uaa.spi.model.UaaGroup.Member) //memberselements .zoneId(String | null) // nullablezoneId.meta(io.dialob.security.uaa.spi.model.UaaMeta | null) // nullablemeta.build();- Returns:
- A new ImmutableUaaGroup builder
-
-