public static class Autoscaler.Builder extends Object
Modifier and Type | Method and Description |
---|---|
Autoscaler.Builder |
addAllStatusDetails(List<AutoscalerStatusDetails> statusDetails)
[Output Only] Human-readable details about the current state of the autoscaler.
|
Autoscaler.Builder |
addStatusDetails(AutoscalerStatusDetails statusDetails)
[Output Only] Human-readable details about the current state of the autoscaler.
|
Autoscaler |
build() |
Autoscaler.Builder |
clone() |
AutoscalingPolicy |
getAutoscalingPolicy()
The configuration parameters for the autoscaling algorithm.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
String |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getName()
Name of the resource.
|
String |
getRegion()
[Output Only] URL of the region where the instance group resides (for autoscalers living in
regional scope).
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getStatus()
[Output Only] The status of the autoscaler configuration.
|
List<AutoscalerStatusDetails> |
getStatusDetailsList()
[Output Only] Human-readable details about the current state of the autoscaler.
|
String |
getTarget()
URL of the managed instance group that this autoscaler will scale.
|
String |
getZone()
[Output Only] URL of the zone where the instance group resides (for autoscalers living in
zonal scope).
|
Autoscaler.Builder |
mergeFrom(Autoscaler other) |
Autoscaler.Builder |
setAutoscalingPolicy(AutoscalingPolicy autoscalingPolicy)
The configuration parameters for the autoscaling algorithm.
|
Autoscaler.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Autoscaler.Builder |
setDescription(String description)
An optional description of this resource.
|
Autoscaler.Builder |
setId(String id)
[Output Only] The unique identifier for the resource.
|
Autoscaler.Builder |
setKind(String kind)
[Output Only] Type of the resource.
|
Autoscaler.Builder |
setName(String name)
Name of the resource.
|
Autoscaler.Builder |
setRegion(String region)
[Output Only] URL of the region where the instance group resides (for autoscalers living in
regional scope).
|
Autoscaler.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
Autoscaler.Builder |
setStatus(String status)
[Output Only] The status of the autoscaler configuration.
|
Autoscaler.Builder |
setTarget(String target)
URL of the managed instance group that this autoscaler will scale.
|
Autoscaler.Builder |
setZone(String zone)
[Output Only] URL of the zone where the instance group resides (for autoscalers living in
zonal scope).
|
public Autoscaler.Builder mergeFrom(Autoscaler other)
public AutoscalingPolicy getAutoscalingPolicy()
If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
public Autoscaler.Builder setAutoscalingPolicy(AutoscalingPolicy autoscalingPolicy)
If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
public String getCreationTimestamp()
public Autoscaler.Builder setCreationTimestamp(String creationTimestamp)
public String getDescription()
public Autoscaler.Builder setDescription(String description)
public String getId()
public Autoscaler.Builder setId(String id)
public String getKind()
public Autoscaler.Builder setKind(String kind)
public String getName()
public Autoscaler.Builder setName(String name)
public String getRegion()
public Autoscaler.Builder setRegion(String region)
public String getSelfLink()
public Autoscaler.Builder setSelfLink(String selfLink)
public String getStatus()
public Autoscaler.Builder setStatus(String status)
public List<AutoscalerStatusDetails> getStatusDetailsList()
public Autoscaler.Builder addAllStatusDetails(List<AutoscalerStatusDetails> statusDetails)
public Autoscaler.Builder addStatusDetails(AutoscalerStatusDetails statusDetails)
public String getTarget()
public Autoscaler.Builder setTarget(String target)
public String getZone()
public Autoscaler.Builder setZone(String zone)
public Autoscaler build()
public Autoscaler.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.