Modifier and Type | Method and Description |
---|---|
Metadata.Builder |
add(String key,
String value)
Adds a key/value pair to the instance metadata.
|
Metadata |
build()
Creates a
Metadata object. |
Metadata.Builder |
setFingerprint(String fingerprint)
Sets the fingerprint for the metadata.
|
Metadata.Builder |
setValues(Map<String,String> values)
Sets the metadata for the instance as key/value pairs.
|
public Metadata.Builder setValues(Map<String,String> values)
[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. Values must be less than or equal to 32768 bytes.public Metadata.Builder add(String key, String value)
[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. Values must be less than or equal to 32768 bytes.public Metadata.Builder setFingerprint(String fingerprint)
public Metadata build()
Metadata
object.Copyright © 2019 Google LLC. All rights reserved.