
target.apidocs.com.google.api.services.dataproc.model.AutoscalingPolicy.html Maven / Gradle / Ivy
AutoscalingPolicy (Cloud Dataproc API v1-rev20240605-2.0.0)
com.google.api.services.dataproc.model
Class AutoscalingPolicy
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.dataproc.model.AutoscalingPolicy
-
public final class AutoscalingPolicy
extends com.google.api.client.json.GenericJson
Describes an autoscaling policy for Dataproc cluster autoscaler.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Cloud Dataproc API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
AutoscalingPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AutoscalingPolicy
clone()
BasicAutoscalingAlgorithm
getBasicAlgorithm()
String
getId()
Required.
Map<String,String>
getLabels()
Optional.
String
getName()
Output only.
InstanceGroupAutoscalingPolicyConfig
getSecondaryWorkerConfig()
Optional.
InstanceGroupAutoscalingPolicyConfig
getWorkerConfig()
Required.
AutoscalingPolicy
set(String fieldName,
Object value)
AutoscalingPolicy
setBasicAlgorithm(BasicAutoscalingAlgorithm basicAlgorithm)
AutoscalingPolicy
setId(String id)
Required.
AutoscalingPolicy
setLabels(Map<String,String> labels)
Optional.
AutoscalingPolicy
setName(String name)
Output only.
AutoscalingPolicy
setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig secondaryWorkerConfig)
Optional.
AutoscalingPolicy
setWorkerConfig(InstanceGroupAutoscalingPolicyConfig workerConfig)
Required.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getBasicAlgorithm
public BasicAutoscalingAlgorithm getBasicAlgorithm()
- Returns:
- value or
null
for none
-
setBasicAlgorithm
public AutoscalingPolicy setBasicAlgorithm(BasicAutoscalingAlgorithm basicAlgorithm)
- Parameters:
basicAlgorithm
- basicAlgorithm or null
for none
-
getId
public String getId()
Required. The policy id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
(_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3
and 50 characters.
- Returns:
- value or
null
for none
-
setId
public AutoscalingPolicy setId(String id)
Required. The policy id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
(_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3
and 50 characters.
- Parameters:
id
- id or null
for none
-
getLabels
public Map<String,String> getLabels()
Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63
characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values
may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035
(https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an
autoscaling policy.
- Returns:
- value or
null
for none
-
setLabels
public AutoscalingPolicy setLabels(Map<String,String> labels)
Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63
characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values
may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035
(https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an
autoscaling policy.
- Parameters:
labels
- labels or null
for none
-
getName
public String getName()
Output only. The "resource name" of the autoscaling policy, as described in
https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies,
the resource name of the policy has the following format:
projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For
projects.locations.autoscalingPolicies, the resource name of the policy has the following
format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}
- Returns:
- value or
null
for none
-
setName
public AutoscalingPolicy setName(String name)
Output only. The "resource name" of the autoscaling policy, as described in
https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies,
the resource name of the policy has the following format:
projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For
projects.locations.autoscalingPolicies, the resource name of the policy has the following
format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}
- Parameters:
name
- name or null
for none
-
getSecondaryWorkerConfig
public InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig()
Optional. Describes how the autoscaler will operate for secondary workers.
- Returns:
- value or
null
for none
-
setSecondaryWorkerConfig
public AutoscalingPolicy setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig secondaryWorkerConfig)
Optional. Describes how the autoscaler will operate for secondary workers.
- Parameters:
secondaryWorkerConfig
- secondaryWorkerConfig or null
for none
-
getWorkerConfig
public InstanceGroupAutoscalingPolicyConfig getWorkerConfig()
Required. Describes how the autoscaler will operate for primary workers.
- Returns:
- value or
null
for none
-
setWorkerConfig
public AutoscalingPolicy setWorkerConfig(InstanceGroupAutoscalingPolicyConfig workerConfig)
Required. Describes how the autoscaler will operate for primary workers.
- Parameters:
workerConfig
- workerConfig or null
for none
-
set
public AutoscalingPolicy set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public AutoscalingPolicy clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy