target.apidocs.com.google.api.services.compute.model.Metadata.Items.html Maven / Gradle / Ivy
Metadata.Items (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute.model
Class Metadata.Items
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.Metadata.Items
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
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
Items()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Metadata.Items
clone()
String
getKey()
Key for the metadata entry.
String
getValue()
Value for the metadata entry.
Metadata.Items
set(String fieldName,
Object value)
Metadata.Items
setKey(String key)
Key for the metadata entry.
Metadata.Items
setValue(String value)
Value for the metadata entry.
-
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
-
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 GenericJson
-
clone
public Metadata.Items clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy