Class TaskTemplateMap
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.amazonecs.pipeline.TaskTemplateMap
-
@Extension public class TaskTemplateMap extends Object
A map ofECSCloud
-> List ofECSTaskTemplate
instances.
-
-
Constructor Summary
Constructors Constructor Description TaskTemplateMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTemplate(ECSCloud cloud, ECSTaskTemplate TaskTemplate)
Adds a template for the corresponding cloud instance.static TaskTemplateMap
get()
List<ECSTaskTemplate>
getTemplates(ECSCloud cloud)
Returns a read-only view of the templates available for the corresponding cloud instance.void
removeTemplate(ECSCloud cloud, ECSTaskTemplate TaskTemplate)
-
-
-
Method Detail
-
get
public static TaskTemplateMap get()
-
getTemplates
@Nonnull public List<ECSTaskTemplate> getTemplates(@Nonnull ECSCloud cloud)
Returns a read-only view of the templates available for the corresponding cloud instance.- Parameters:
cloud
- The ECS cloud instance for which templates are needed- Returns:
- a read-only view of the templates available for the corresponding cloud instance.
-
addTemplate
public void addTemplate(@Nonnull ECSCloud cloud, @Nonnull ECSTaskTemplate TaskTemplate)
Adds a template for the corresponding cloud instance.- Parameters:
cloud
- The cloud instance.TaskTemplate
- The pod template to add.
-
removeTemplate
public void removeTemplate(@Nonnull ECSCloud cloud, @Nonnull ECSTaskTemplate TaskTemplate)
-
-