Class DeploymentDashboard
- java.lang.Object
-
- jetbrains.buildServer.serverSide.deploymentDashboards.entities.DeploymentDashboard
-
public class DeploymentDashboard extends Object
-
-
Constructor Summary
Constructors Constructor Description DeploymentDashboard(String id, String name, HashMap<String,DeploymentInstance> instances, String projectId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrUpdateInstance(DeploymentInstance instance)
Add a new instance `instance` to this dashboard, or update existing one if present.boolean
equals(Object obj)
String
getId()
Returns ID (unique in context of project it is associated with) of this dashboard.DeploymentInstance
getInstance(String instanceId)
Returns `Instance` found by `instanceId` if present, otherwise returns null.Map<String,DeploymentInstance>
getInstances()
Returns map of instance IDs and instances associated with this dashboard.String
getName()
Returns name of this dashboard.String
getProjectExtId()
int
hashCode()
void
removeInstance(String instanceId)
Remove instance found by `instanceId` if present.void
removeInstance(DeploymentInstance instance)
Remove instance `instance` if present.void
setName(String newName)
Updates name of this dashboard.
-
-
-
Method Detail
-
getId
@NotNull public String getId()
Returns ID (unique in context of project it is associated with) of this dashboard.
-
getName
@NotNull public String getName()
Returns name of this dashboard.
-
setName
public void setName(@NotNull String newName)
Updates name of this dashboard.
-
getInstance
@Nullable public DeploymentInstance getInstance(String instanceId)
Returns `Instance` found by `instanceId` if present, otherwise returns null.
-
getInstances
public Map<String,DeploymentInstance> getInstances()
Returns map of instance IDs and instances associated with this dashboard.
-
addOrUpdateInstance
public void addOrUpdateInstance(DeploymentInstance instance)
Add a new instance `instance` to this dashboard, or update existing one if present.
-
removeInstance
public void removeInstance(DeploymentInstance instance)
Remove instance `instance` if present.
-
removeInstance
public void removeInstance(String instanceId)
Remove instance found by `instanceId` if present.
-
getProjectExtId
@NotNull public String getProjectExtId()
-
-