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 template
configurationName - the name of the ephemeral configuration
template - the template of the ephemeral configuration
enabled - 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 Details

    • ImmutableEphemeralAgentTemplateDto

      public ImmutableEphemeralAgentTemplateDto(long id, String configurationName, String template, boolean enabled)
      Creates an instance of a ImmutableEphemeralAgentTemplateDto record class.
      Parameters:
      id - the value for the id record component
      configurationName - the value for the configurationName record component
      template - the value for the template record component
      enabled - the value for the enabled record component
  • Method Details

    • of

    • getId

      public long getId()
      Description copied from interface: ImmutableEphemeralAgentTemplate
      Gets the Ephemeral Configuration ID.
      Specified by:
      getId in interface ImmutableEphemeralAgentTemplate
      Returns:
      Ephemeral Configuration ID
    • getConfigurationName

      @NotNull public @NotNull String getConfigurationName()
      Description copied from interface: ImmutableEphemeralAgentTemplate
      Get Ephemeral Configuration's name.
      Specified by:
      getConfigurationName in interface ImmutableEphemeralAgentTemplate
      Returns:
      Ephemeral Configuration's name
    • getTemplate

      @NotNull public @NotNull String getTemplate()
      Description copied from interface: ImmutableEphemeralAgentTemplate
      Get Ephemeral Configuration's template.
      Specified by:
      getTemplate in interface ImmutableEphemeralAgentTemplate
      Returns:
      Ephemeral Configuration's template
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface ImmutableEphemeralAgentTemplate
      Returns:
      true if Ephemeral Configuration is enabled
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • configurationName

      public String configurationName()
      Returns the value of the configurationName record component.
      Returns:
      the value of the configurationName record component
    • template

      public String template()
      Returns the value of the template record component.
      Returns:
      the value of the template record component
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component