Class ImmutableAgentInfo
java.lang.Object
io.jenkins.plugins.projectenv.agent.ImmutableAgentInfo
- All Implemented Interfaces:
AgentInfo
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableAgentInfo
extends Object
implements AgentInfo
Immutable implementation of
AgentInfo
.
Use the builder to create immutable instances:
ImmutableAgentInfo.builder()
.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableAgentInfo.Builder
builder()
Creates a builder forImmutableAgentInfo
.static ImmutableAgentInfo
Creates an immutable copy of aAgentInfo
value.boolean
This instance is equal to all instances ofImmutableAgentInfo
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:operatingSystem
,lineSeparator
.toString()
Prints the immutable valueAgentInfo
with attribute values.final ImmutableAgentInfo
withLineSeparator
(String value) Copy the current immutable object by setting a value for thelineSeparator
attribute.final ImmutableAgentInfo
Copy the current immutable object by setting a value for theoperatingSystem
attribute.
-
Method Details
-
getOperatingSystem
- Specified by:
getOperatingSystem
in interfaceAgentInfo
- Returns:
- The value of the
operatingSystem
attribute
-
getLineSeparator
- Specified by:
getLineSeparator
in interfaceAgentInfo
- Returns:
- The value of the
lineSeparator
attribute
-
withOperatingSystem
Copy the current immutable object by setting a value for theoperatingSystem
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for operatingSystem- Returns:
- A modified copy of the
this
object
-
withLineSeparator
Copy the current immutable object by setting a value for thelineSeparator
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for lineSeparator- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableAgentInfo
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:operatingSystem
,lineSeparator
. -
toString
Prints the immutable valueAgentInfo
with attribute values. -
copyOf
Creates an immutable copy of aAgentInfo
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 AgentInfo instance
-
builder
Creates a builder forImmutableAgentInfo
.ImmutableAgentInfo.builder() .operatingSystem(io.jenkins.plugins.projectenv.agent.OperatingSystem) // required
operatingSystem
.lineSeparator(String) // requiredlineSeparator
.build();- Returns:
- A new ImmutableAgentInfo builder
-