public static final class CreateConfigMapRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateConfigMapRequest |
build() |
CreateConfigMapRequest.Builder |
description(String description)
The key-value pairs of the ConfigMap in the JSON format.
|
CreateConfigMapRequest.Builder |
name(String name)
The name of the ConfigMap.
|
CreateConfigMapRequest.Builder |
namespaceId(String namespaceId)
The ID of the namespace to which the ConfigMap instance belongs.
|
public CreateConfigMapRequest.Builder description(String description)
The key-value pairs of the ConfigMap in the JSON format. Format:
{"Data":"{"k1":"v1", "k2":"v2"}"}
k specifies a key and v specifies a value. For more information, see Manage a Kubernetes ConfigMap.
example:test-desc
public CreateConfigMapRequest.Builder name(String name)
The name of the ConfigMap. The name can contain digits, letters, and underscores (_). The name must start with a letter.
This parameter is required.
example:name
public CreateConfigMapRequest.Builder namespaceId(String namespaceId)
The ID of the namespace to which the ConfigMap instance belongs.
This parameter is required.
example:cn-hangzhou
public CreateConfigMapRequest build()
Copyright © 2026. All rights reserved.