ConfigMap Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.ConfigMap

Implements

public final class ConfigMap
implements JsonSerializable<ConfigMap>

The container config map.

Constructor Summary

Constructor Description
ConfigMap()

Creates an instance of ConfigMap class.

Method Summary

Modifier and Type Method and Description
static ConfigMap fromJson(JsonReader jsonReader)

Reads an instance of ConfigMap from the JsonReader.

Map<String,String> keyValuePairs()

Get the keyValuePairs property: The key value pairs dictionary in the config map.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConfigMap withKeyValuePairs(Map<String,String> keyValuePairs)

Set the keyValuePairs property: The key value pairs dictionary in the config map.

Methods inherited from java.lang.Object

Constructor Details

ConfigMap

public ConfigMap()

Creates an instance of ConfigMap class.

Method Details

fromJson

public static ConfigMap fromJson(JsonReader jsonReader)

Reads an instance of ConfigMap from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConfigMap if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ConfigMap.

keyValuePairs

public Map<String,String> keyValuePairs()

Get the keyValuePairs property: The key value pairs dictionary in the config map.

Returns:

the keyValuePairs value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKeyValuePairs

public ConfigMap withKeyValuePairs(Map<String,String> keyValuePairs)

Set the keyValuePairs property: The key value pairs dictionary in the config map.

Parameters:

keyValuePairs - the keyValuePairs value to set.

Returns:

the ConfigMap object itself.

Applies to