Record Class ImmutableEphemeralAgentTemplateDto
java.lang.Object
java.lang.Record
com.atlassian.bamboo.agent.ephemeral.ImmutableEphemeralAgentTemplateDto
- Record Components:
id
- the unique identifier of the ephemeral agent templateconfigurationName
- the name of the ephemeral configurationtemplate
- the template of the ephemeral configurationenabled
- indicates whether the ephemeral template is enabled
- All Implemented Interfaces:
ImmutableEphemeralAgentTemplate
public record ImmutableEphemeralAgentTemplateDto(long id, String configurationName, String template, boolean enabled)
extends Record
implements ImmutableEphemeralAgentTemplate
A Data Transfer Object (DTO) implementation of the
ImmutableEphemeralAgentTemplate
interface.
This class is immutable and represents the template for an ephemeral agent in Bamboo.- Since:
- 10.1
-
Constructor Summary
ConstructorDescriptionImmutableEphemeralAgentTemplateDto
(long id, String configurationName, String template, boolean enabled) Creates an instance of aImmutableEphemeralAgentTemplateDto
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationName
record component.boolean
enabled()
Returns the value of theenabled
record component.final boolean
Indicates whether some other object is "equal to" this one.@NotNull String
Get Ephemeral Configuration's name.long
getId()
Gets the Ephemeral Configuration ID.@NotNull String
Get Ephemeral Configuration's template.final int
hashCode()
Returns a hash code value for this object.long
id()
Returns the value of theid
record component.boolean
of
(ImmutableEphemeralAgentTemplate template) template()
Returns the value of thetemplate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ImmutableEphemeralAgentTemplateDto
public ImmutableEphemeralAgentTemplateDto(long id, String configurationName, String template, boolean enabled) Creates an instance of aImmutableEphemeralAgentTemplateDto
record class.- Parameters:
id
- the value for theid
record componentconfigurationName
- the value for theconfigurationName
record componenttemplate
- the value for thetemplate
record componentenabled
- the value for theenabled
record component
-
-
Method Details
-
of
-
getId
public long getId()Description copied from interface:ImmutableEphemeralAgentTemplate
Gets the Ephemeral Configuration ID.- Specified by:
getId
in interfaceImmutableEphemeralAgentTemplate
- Returns:
- Ephemeral Configuration ID
-
getConfigurationName
Description copied from interface:ImmutableEphemeralAgentTemplate
Get Ephemeral Configuration's name.- Specified by:
getConfigurationName
in interfaceImmutableEphemeralAgentTemplate
- Returns:
- Ephemeral Configuration's name
-
getTemplate
Description copied from interface:ImmutableEphemeralAgentTemplate
Get Ephemeral Configuration's template.- Specified by:
getTemplate
in interfaceImmutableEphemeralAgentTemplate
- Returns:
- Ephemeral Configuration's template
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceImmutableEphemeralAgentTemplate
- Returns:
- true if Ephemeral Configuration is enabled
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
public long id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
configurationName
Returns the value of theconfigurationName
record component.- Returns:
- the value of the
configurationName
record component
-
template
Returns the value of thetemplate
record component.- Returns:
- the value of the
template
record component
-
enabled
public boolean enabled()Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component
-