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

target.apidocs.com.google.api.services.compute.model.SchedulingNodeAffinity.html Maven / Gradle / Ivy

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






SchedulingNodeAffinity (Compute Engine API v1-rev20240919-2.0.0)












com.google.api.services.compute.model

Class SchedulingNodeAffinity

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class SchedulingNodeAffinity
    extends com.google.api.client.json.GenericJson
    Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.

    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 Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • SchedulingNodeAffinity

        public SchedulingNodeAffinity()
    • Method Detail

      • getKey

        public String getKey()
        Corresponds to the label key of Node resource.
        Returns:
        value or null for none
      • setKey

        public SchedulingNodeAffinity setKey(String key)
        Corresponds to the label key of Node resource.
        Parameters:
        key - key or null for none
      • getOperator

        public String getOperator()
        Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
        Returns:
        value or null for none
      • setOperator

        public SchedulingNodeAffinity setOperator(String operator)
        Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
        Parameters:
        operator - operator or null for none
      • getValues

        public List<String> getValues()
        Corresponds to the label values of Node resource.
        Returns:
        value or null for none
      • setValues

        public SchedulingNodeAffinity setValues(List<String> values)
        Corresponds to the label values of Node resource.
        Parameters:
        values - values or null for none
      • clone

        public SchedulingNodeAffinity clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy