@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableAgentInfo extends Object implements AgentInfo
AgentInfo.
Use the builder to create immutable instances:
ImmutableAgentInfo.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableAgentInfo.Builder
Builds instances of type
ImmutableAgentInfo. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableAgentInfo.Builder |
builder()
Creates a builder for
ImmutableAgentInfo. |
static ImmutableAgentInfo |
copyOf(AgentInfo instance)
Creates an immutable copy of a
AgentInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableAgentInfo that have equal attribute values. |
OperatingSystem |
getOperatingSystem() |
int |
hashCode()
Computes a hash code from attributes:
operatingSystem. |
String |
toString()
Prints the immutable value
AgentInfo with attribute values. |
ImmutableAgentInfo |
withOperatingSystem(OperatingSystem value)
Copy the current immutable object by setting a value for the
operatingSystem attribute. |
public OperatingSystem getOperatingSystem()
getOperatingSystem in interface AgentInfooperatingSystem attributepublic final ImmutableAgentInfo withOperatingSystem(OperatingSystem value)
operatingSystem attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for operatingSystemthis objectpublic boolean equals(@Nullable Object another)
ImmutableAgentInfo that have equal attribute values.public int hashCode()
operatingSystem.public String toString()
AgentInfo with attribute values.public static ImmutableAgentInfo copyOf(AgentInfo instance)
AgentInfo value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableAgentInfo.Builder builder()
ImmutableAgentInfo.
ImmutableAgentInfo.builder()
.operatingSystem(io.jenkins.plugins.projectenv.agent.OperatingSystem) // required operatingSystem
.build();
Copyright © 2016–2021. All rights reserved.