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

target.apidocs.com.google.api.services.dataproc.model.ExecutionConfig.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241025-2.0.0
Show newest version






ExecutionConfig (Cloud Dataproc API v1-rev20240605-2.0.0)












com.google.api.services.dataproc.model

Class ExecutionConfig

    • Constructor Detail

      • ExecutionConfig

        public ExecutionConfig()
    • Method Detail

      • getIdleTtl

        public String getIdleTtl()
        Optional. Applies to sessions only. The duration to keep the session alive while it's idling. Exceeding this threshold causes the session to terminate. This field cannot be set on a batch workload. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 1 hour if not set. If both ttl and idle_ttl are specified for an interactive session, the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.
        Returns:
        value or null for none
      • setIdleTtl

        public ExecutionConfig setIdleTtl(String idleTtl)
        Optional. Applies to sessions only. The duration to keep the session alive while it's idling. Exceeding this threshold causes the session to terminate. This field cannot be set on a batch workload. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 1 hour if not set. If both ttl and idle_ttl are specified for an interactive session, the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.
        Parameters:
        idleTtl - idleTtl or null for none
      • getKmsKey

        public String getKmsKey()
        Optional. The Cloud KMS key to use for encryption.
        Returns:
        value or null for none
      • setKmsKey

        public ExecutionConfig setKmsKey(String kmsKey)
        Optional. The Cloud KMS key to use for encryption.
        Parameters:
        kmsKey - kmsKey or null for none
      • getNetworkTags

        public List<String> getNetworkTags()
        Optional. Tags used for network traffic control.
        Returns:
        value or null for none
      • setNetworkTags

        public ExecutionConfig setNetworkTags(List<String> networkTags)
        Optional. Tags used for network traffic control.
        Parameters:
        networkTags - networkTags or null for none
      • getNetworkUri

        public String getNetworkUri()
        Optional. Network URI to connect workload to.
        Returns:
        value or null for none
      • setNetworkUri

        public ExecutionConfig setNetworkUri(String networkUri)
        Optional. Network URI to connect workload to.
        Parameters:
        networkUri - networkUri or null for none
      • getServiceAccount

        public String getServiceAccount()
        Optional. Service account that used to execute workload.
        Returns:
        value or null for none
      • setServiceAccount

        public ExecutionConfig setServiceAccount(String serviceAccount)
        Optional. Service account that used to execute workload.
        Parameters:
        serviceAccount - serviceAccount or null for none
      • getStagingBucket

        public String getStagingBucket()
        Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets. This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.
        Returns:
        value or null for none
      • setStagingBucket

        public ExecutionConfig setStagingBucket(String stagingBucket)
        Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets. This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.
        Parameters:
        stagingBucket - stagingBucket or null for none
      • getSubnetworkUri

        public String getSubnetworkUri()
        Optional. Subnetwork URI to connect workload to.
        Returns:
        value or null for none
      • setSubnetworkUri

        public ExecutionConfig setSubnetworkUri(String subnetworkUri)
        Optional. Subnetwork URI to connect workload to.
        Parameters:
        subnetworkUri - subnetworkUri or null for none
      • getTtl

        public String getTtl()
        Optional. The duration after which the workload will be terminated, specified as the JSON representation for Duration (https://protobuf.dev/programming-guides/proto3/#json). When the workload exceeds this duration, it will be unconditionally terminated without waiting for ongoing work to finish. If ttl is not specified for a batch workload, the workload will be allowed to run until it exits naturally (or run forever without exiting). If ttl is not specified for an interactive session, it defaults to 24 hours. If ttl is not specified for a batch that uses 2.1+ runtime version, it defaults to 4 hours. Minimum value is 10 minutes; maximum value is 14 days. If both ttl and idle_ttl are specified (for an interactive session), the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.
        Returns:
        value or null for none
      • setTtl

        public ExecutionConfig setTtl(String ttl)
        Optional. The duration after which the workload will be terminated, specified as the JSON representation for Duration (https://protobuf.dev/programming-guides/proto3/#json). When the workload exceeds this duration, it will be unconditionally terminated without waiting for ongoing work to finish. If ttl is not specified for a batch workload, the workload will be allowed to run until it exits naturally (or run forever without exiting). If ttl is not specified for an interactive session, it defaults to 24 hours. If ttl is not specified for a batch that uses 2.1+ runtime version, it defaults to 4 hours. Minimum value is 10 minutes; maximum value is 14 days. If both ttl and idle_ttl are specified (for an interactive session), the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.
        Parameters:
        ttl - ttl or null for none
      • clone

        public ExecutionConfig 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