Class EphemeralAgentTemplateImpl
java.lang.Object
com.atlassian.bamboo.agent.ephemeral.EphemeralAgentTemplateImpl
- All Implemented Interfaces:
EphemeralAgentTemplate
,ImmutableEphemeralAgentTemplate
,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()
Gets the Ephemeral Configuration ID.@NotNull String
Get Ephemeral Configuration's template.int
hashCode()
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) Sets whether the Ephemeral template should be 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()Description copied from interface:ImmutableEphemeralAgentTemplate
Gets the Ephemeral Configuration ID.- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceImmutableEphemeralAgentTemplate
- Returns:
- Ephemeral Configuration ID
-
setId
public void setId(long id) - Specified by:
setId
in interfaceBambooObject
-
getConfigurationName
Description copied from interface:ImmutableEphemeralAgentTemplate
Get Ephemeral Configuration's name.- Specified by:
getConfigurationName
in interfaceImmutableEphemeralAgentTemplate
- 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:ImmutableEphemeralAgentTemplate
Get Ephemeral Configuration's template.- Specified by:
getTemplate
in interfaceImmutableEphemeralAgentTemplate
- 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
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceImmutableEphemeralAgentTemplate
- Returns:
- true if Ephemeral Configuration is enabled
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:EphemeralAgentTemplate
Sets whether the Ephemeral template should be enabled.- Specified by:
setEnabled
in interfaceEphemeralAgentTemplate
- Parameters:
enabled
- true if enabled, false otherwise
-
equals
-
hashCode
public int hashCode() -
copy
-