Class EphemeralAgentTemplateImpl
java.lang.Object
com.atlassian.bamboo.agent.ephemeral.EphemeralAgentTemplateImpl
- All Implemented Interfaces:
EphemeralAgentTemplate
,BambooIdProvider
,BambooObject
-
Constructor Summary
ConstructorDescriptionEphemeralAgentTemplateImpl
(@NotNull String configurationName, @NotNull String template, boolean enabled) -
Method Summary
Modifier and TypeMethodDescriptionstatic EphemeralAgentTemplate
copy
(EphemeralAgentTemplate ephemeralAgentTemplate) boolean
@NotNull String
Get Ephemeral Configuration's name.long
getId()
@NotNull String
Get Ephemeral Configuration's template.int
hashCode()
boolean
boolean
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.
-
Constructor Details
-
EphemeralAgentTemplateImpl
public EphemeralAgentTemplateImpl() -
EphemeralAgentTemplateImpl
-
-
Method Details
-
getId
public long getId()- Specified by:
getId
in interfaceBambooIdProvider
-
setId
public void setId(long id) - Specified by:
setId
in interfaceBambooObject
-
getConfigurationName
Description copied from interface:EphemeralAgentTemplate
Get Ephemeral Configuration's name.- Specified by:
getConfigurationName
in interfaceEphemeralAgentTemplate
- Returns:
- Ephemeral Configuration's name
-
setConfigurationName
Description copied from interface:EphemeralAgentTemplate
Sets Ephemeral Configuration's name.- Specified by:
setConfigurationName
in interfaceEphemeralAgentTemplate
- Parameters:
configurationName
- Ephemeral Configuration's name
-
getTemplate
Description copied from interface:EphemeralAgentTemplate
Get Ephemeral Configuration's template.- Specified by:
getTemplate
in interfaceEphemeralAgentTemplate
- Returns:
- Ephemeral Configuration's template
-
setTemplate
Description copied from interface:EphemeralAgentTemplate
Sets Ephemeral Configuration's template.- Specified by:
setTemplate
in interfaceEphemeralAgentTemplate
- Parameters:
template
- Ephemeral Configuration's template
-
getCapabilitySet
- Specified by:
getCapabilitySet
in interfaceEphemeralAgentTemplate
- Returns:
- capabilities of template
-
setCapabilitySet
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
-
equals
-
hashCode
public int hashCode() -
copy
-