@Generated(value="by GAPIC") @BetaApi public final class FixedOrPercent extends Object implements ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
FixedOrPercent.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ApiMessage |
getApiMessageRequestBody() |
Integer |
getCalculated()
[Output Only] Absolute value of VM instances calculated based on the specific mode.
|
static FixedOrPercent |
getDefaultInstance() |
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
Integer |
getFixed()
Specifies a fixed number of VM instances.
|
Integer |
getPercent()
Specifies a percentage of instances between 0 to 100%, inclusive.
|
int |
hashCode() |
static FixedOrPercent.Builder |
newBuilder() |
static FixedOrPercent.Builder |
newBuilder(FixedOrPercent prototype) |
FixedOrPercent.Builder |
toBuilder() |
String |
toString() |
public Object getFieldValue(String fieldName)
getFieldValue
in interface ApiMessage
@Nullable public ApiMessage getApiMessageRequestBody()
getApiMessageRequestBody
in interface ApiMessage
@Nullable public List<String> getFieldMask()
getFieldMask
in interface ApiMessage
public Integer getCalculated()
- If the value is fixed, then the calculated value is equal to the fixed value. - If the value is a percent, then the calculated value is percent/100 * targetSize. For example, the calculated value of a 80% of a managed instance group with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, the number is rounded up.
public Integer getFixed()
public Integer getPercent()
public static FixedOrPercent.Builder newBuilder()
public static FixedOrPercent.Builder newBuilder(FixedOrPercent prototype)
public FixedOrPercent.Builder toBuilder()
public static FixedOrPercent getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.