Class EphemeralAgentTemplateImpl
- java.lang.Object
-
- com.atlassian.bamboo.agent.ephemeral.EphemeralAgentTemplateImpl
-
- All Implemented Interfaces:
EphemeralAgentTemplate
,BambooIdProvider
,BambooObject
@Entity public class EphemeralAgentTemplateImpl extends Object implements EphemeralAgentTemplate
-
-
Constructor Summary
Constructors Constructor Description EphemeralAgentTemplateImpl()
EphemeralAgentTemplateImpl(@NotNull String configurationName, @NotNull String template, boolean enabled)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EphemeralAgentTemplate
copy(EphemeralAgentTemplate ephemeralAgentTemplate)
boolean
equals(Object o)
EphemeralAgentTemplateCapabilitySet
getCapabilitySet()
@NotNull String
getConfigurationName()
Get Ephemeral Configuration's name.long
getId()
@NotNull String
getTemplate()
Get Ephemeral Configuration's template.int
hashCode()
boolean
isDedicated()
boolean
isEnabled()
void
setCapabilitySet(EphemeralAgentTemplateCapabilitySet capabilitySet)
Sets Ephemeral template related capability set.void
setConfigurationName(@NotNull String configurationName)
Sets Ephemeral Configuration's name.void
setEnabled(boolean enabled)
void
setId(long id)
void
setTemplate(@NotNull String template)
Sets Ephemeral Configuration's template.
-
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
-
setId
public void setId(long id)
- Specified by:
setId
in interfaceBambooObject
-
getConfigurationName
@NotNull public @NotNull String getConfigurationName()
Description copied from interface:EphemeralAgentTemplate
Get Ephemeral Configuration's name.- Specified by:
getConfigurationName
in interfaceEphemeralAgentTemplate
- Returns:
- Ephemeral Configuration's name
-
setConfigurationName
public void setConfigurationName(@NotNull @NotNull String configurationName)
Description copied from interface:EphemeralAgentTemplate
Sets Ephemeral Configuration's name.- Specified by:
setConfigurationName
in interfaceEphemeralAgentTemplate
- Parameters:
configurationName
- Ephemeral Configuration's name
-
getTemplate
@NotNull public @NotNull String getTemplate()
Description copied from interface:EphemeralAgentTemplate
Get Ephemeral Configuration's template.- Specified by:
getTemplate
in interfaceEphemeralAgentTemplate
- Returns:
- Ephemeral Configuration's template
-
setTemplate
public void setTemplate(@NotNull @NotNull String template)
Description copied from interface:EphemeralAgentTemplate
Sets Ephemeral Configuration's template.- Specified by:
setTemplate
in interfaceEphemeralAgentTemplate
- Parameters:
template
- Ephemeral Configuration's template
-
getCapabilitySet
public EphemeralAgentTemplateCapabilitySet getCapabilitySet()
- Specified by:
getCapabilitySet
in interfaceEphemeralAgentTemplate
- Returns:
- capabilities of template
-
setCapabilitySet
public void setCapabilitySet(EphemeralAgentTemplateCapabilitySet capabilitySet)
Description copied from interface:EphemeralAgentTemplate
Sets Ephemeral template related capability set.- Specified by:
setCapabilitySet
in interfaceEphemeralAgentTemplate
- Parameters:
capabilitySet
- Ephemeral template related capability set
-
isDedicated
public boolean isDedicated()
- Specified by:
isDedicated
in interfaceEphemeralAgentTemplate
- Returns:
- true if template is dedicated to project/plan/job/deployment/environment
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceEphemeralAgentTemplate
- Returns:
- true if Ephemeral template is enabled
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interfaceEphemeralAgentTemplate
-
copy
public static EphemeralAgentTemplate copy(EphemeralAgentTemplate ephemeralAgentTemplate)
-
-