public class CreateKeyPairRequest extends AbstractModel
| Constructor and Description | 
|---|
| CreateKeyPairRequest() | 
| CreateKeyPairRequest(CreateKeyPairRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getKeyName()Get Name of the key pair, which can contain numbers, letters, and underscores, with a maximum length of 25 characters. | 
| Long | getProjectId()Get The ID of the project to which the new key pair belongs. | 
| TagSpecification[] | getTagSpecification()Get Tag description list. | 
| void | setKeyName(String KeyName)Set Name of the key pair, which can contain numbers, letters, and underscores, with a maximum length of 25 characters. | 
| void | setProjectId(Long ProjectId)Set The ID of the project to which the new key pair belongs. | 
| void | setTagSpecification(TagSpecification[] TagSpecification)Set Tag description list. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic CreateKeyPairRequest()
public CreateKeyPairRequest(CreateKeyPairRequest source)
public String getKeyName()
public void setKeyName(String KeyName)
KeyName - Name of the key pair, which can contain numbers, letters, and underscores, with a maximum length of 25 characters.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId - The ID of the project to which the new key pair belongs.
You can query the project IDs in two ways:
public TagSpecification[] getTagSpecification()
public void setTagSpecification(TagSpecification[] TagSpecification)
TagSpecification - Tag description list. This parameter is used to bind a tag to a key pair.Copyright © 2022. All rights reserved.