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
ConstructorsConstructorDescriptionImmutableEphemeralAgentTemplateDto(long id, String configurationName, String template, boolean enabled) Creates an instance of aImmutableEphemeralAgentTemplateDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationNamerecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull StringGet Ephemeral Configuration's name.longgetId()Gets the Ephemeral Configuration ID.@NotNull StringGet Ephemeral Configuration's template.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.booleanof(ImmutableEphemeralAgentTemplate template) template()Returns the value of thetemplaterecord component.final StringtoString()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 aImmutableEphemeralAgentTemplateDtorecord class.- Parameters:
id- the value for theidrecord componentconfigurationName- the value for theconfigurationNamerecord componenttemplate- the value for thetemplaterecord componentenabled- the value for theenabledrecord component
-
-
Method Details
-
of
-
getId
public long getId()Description copied from interface:ImmutableEphemeralAgentTemplateGets the Ephemeral Configuration ID.- Specified by:
getIdin interfaceImmutableEphemeralAgentTemplate- Returns:
- Ephemeral Configuration ID
-
getConfigurationName
Description copied from interface:ImmutableEphemeralAgentTemplateGet Ephemeral Configuration's name.- Specified by:
getConfigurationNamein interfaceImmutableEphemeralAgentTemplate- Returns:
- Ephemeral Configuration's name
-
getTemplate
Description copied from interface:ImmutableEphemeralAgentTemplateGet Ephemeral Configuration's template.- Specified by:
getTemplatein interfaceImmutableEphemeralAgentTemplate- Returns:
- Ephemeral Configuration's template
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin 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 theidrecord component.- Returns:
- the value of the
idrecord component
-
configurationName
Returns the value of theconfigurationNamerecord component.- Returns:
- the value of the
configurationNamerecord component
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-