aboutsummaryrefslogtreecommitdiffstats
path: root/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/deploymenthandler/DeploymentsListResponse.java
blob: 5b3b456eb5a23abd1ed222f24c49e781ab39e2b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package org.onap.ccsdk.dashboard.model.deploymenthandler;

import java.util.Collection;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Object providing a list of deployments
 * 
 */
public class DeploymentsListResponse {

	/** Unique identifier for the request */
	private final String requestId;
	
	/** Stream object containing links to all deployments known to the orchestrator. */
	private final Collection<DeploymentLink> deployments;
	
	@JsonCreator
	public DeploymentsListResponse (@JsonProperty("requestId") String requestId, 
			@JsonProperty("deployments") Collection<DeploymentLink> deployments) {
		this.requestId = requestId;
		this.deployments = deployments;
	}
	
	public String getRequestId() {
		return this.requestId;
	}
	
	public Collection<DeploymentLink> getDeployments() {
		return this.deployments;
	}
}