All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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

    • Constructor Detail

      • AutoscalingPolicy

        public AutoscalingPolicy()
    • Method Detail

      • 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
      • 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