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

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

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






Metadata.Items (Compute Engine API v1-rev20250107-2.0.0)












com.google.api.services.compute.model

Class Metadata.Items

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


    public static final class Metadata.Items
    extends com.google.api.client.json.GenericJson
    Metadata
    • Constructor Detail

      • Items

        public Items()
    • Method Detail

      • getKey

        public String getKey()
        Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
        Returns:
        value or null for none
      • setKey

        public Metadata.Items setKey(String key)
        Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
        Parameters:
        key - key or null for none
      • getValue

        public String getValue()
        Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
        Returns:
        value or null for none
      • setValue

        public Metadata.Items setValue(String value)
        Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
        Parameters:
        value - value or null for none
      • set

        public Metadata.Items set(String fieldName,
                                  Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

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

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy