public class ScaleRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScaleRequest.ScaleRequestItem
As
ScaleRequest can contain multiple requests for multiple app, this
class represents one of those. |
| Constructor and Description |
|---|
ScaleRequest() |
ScaleRequest(List<ScaleRequest.ScaleRequestItem> scale) |
| Modifier and Type | Method and Description |
|---|---|
List<ScaleRequest.ScaleRequestItem> |
getScale() |
static ScaleRequest |
of(String name,
Integer count)
Create a
ScaleRequest having one app with its count. |
static ScaleRequest |
of(String name,
Integer count,
Map<String,String> properties)
Create a
ScaleRequest having one app with its count and properties. |
void |
setScale(List<ScaleRequest.ScaleRequestItem> scale) |
String |
toString() |
public ScaleRequest()
public ScaleRequest(List<ScaleRequest.ScaleRequestItem> scale)
public List<ScaleRequest.ScaleRequestItem> getScale()
public void setScale(List<ScaleRequest.ScaleRequestItem> scale)
public static ScaleRequest of(String name, Integer count)
ScaleRequest having one app with its count.name - the app namecount - the app countpublic static ScaleRequest of(String name, Integer count, Map<String,String> properties)
ScaleRequest having one app with its count and properties.name - the app namecount - the app countproperties - the app propertiesCopyright © 2021 Pivotal Software, Inc.. All rights reserved.