public static interface AllocationPolicy.InstanceFlexibilityPolicyOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
containsInstanceSelections(String key)
public abstract boolean containsInstanceSelections(String key) Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getInstanceSelections() (deprecated)
public abstract Map<String,AllocationPolicy.InstanceSelection> getInstanceSelections()Use #getInstanceSelectionsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,InstanceSelection> |
|
getInstanceSelectionsCount()
public abstract int getInstanceSelectionsCount() Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
|
getInstanceSelectionsMap()
public abstract Map<String,AllocationPolicy.InstanceSelection> getInstanceSelectionsMap() Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Map<String,InstanceSelection> |
|
getInstanceSelectionsOrDefault(String key, AllocationPolicy.InstanceSelection defaultValue)
public abstract AllocationPolicy.InstanceSelection getInstanceSelectionsOrDefault(String key, AllocationPolicy.InstanceSelection defaultValue) Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
AllocationPolicy.InstanceSelection |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection |
|
getInstanceSelectionsOrThrow(String key)
public abstract AllocationPolicy.InstanceSelection getInstanceSelectionsOrThrow(String key) Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with RFC1035. Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code INVALID_ARGUMENT.
map<string, .google.cloud.batch.v1alpha.AllocationPolicy.InstanceSelection> instance_selections = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
AllocationPolicy.InstanceSelection |
|