Class GetDeploymentsResponse
java.lang.Object
com.developer.nefarious.zjoule.plugin.login.api.GetDeploymentsResponse
Represents the response from an API call that retrieves a list of deployments.
The GetDeploymentsResponse
class contains the total count of deployments
and a list of Deployment
objects returned by the API.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Retrieves the total count of deployments.Retrieves the list of deployments.void
setCount
(int count) Sets the total count of deployments.void
setResources
(List<Deployment> deployments) Sets the list of deployments.
-
Constructor Details
-
GetDeploymentsResponse
public GetDeploymentsResponse()
-
-
Method Details
-
getCount
public int getCount()Retrieves the total count of deployments.- Returns:
- the total count of deployments as an
int
.
-
setCount
public void setCount(int count) Sets the total count of deployments.- Parameters:
count
- the total count of deployments as anint
.
-
getDeployments
Retrieves the list of deployments.- Returns:
- a
List
ofDeployment
objects.
-
setResources
Sets the list of deployments.- Parameters:
deployments
- aList
ofDeployment
objects.
-