public class ImportKeyPairRequest extends AbstractModel
Constructor and Description |
---|
ImportKeyPairRequest() |
ImportKeyPairRequest(ImportKeyPairRequest 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 Key pair name, which can contain numbers, letters, and underscores, with a maximum length of 25 characters.
|
Long |
getProjectId()
Get The project ID to which the key pair belongs after it is created.
|
String |
getPublicKey()
Get Content of the public key in the key pair in the `OpenSSH RSA` format.
|
TagSpecification[] |
getTagSpecification()
Get Tag description list.
|
void |
setKeyName(String KeyName)
Set Key pair name, which can contain numbers, letters, and underscores, with a maximum length of 25 characters.
|
void |
setProjectId(Long ProjectId)
Set The project ID to which the key pair belongs after it is created.
|
void |
setPublicKey(String PublicKey)
Set Content of the public key in the key pair in the `OpenSSH RSA` format.
|
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, toJsonString
public ImportKeyPairRequest()
public ImportKeyPairRequest(ImportKeyPairRequest source)
public String getKeyName()
public void setKeyName(String KeyName)
KeyName
- Key pair name, which can contain numbers, letters, and underscores, with a maximum length of 25 characters.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- The project ID to which the key pair belongs after it is created. public String getPublicKey()
public void setPublicKey(String PublicKey)
PublicKey
- Content of the public key in the key pair in the `OpenSSH RSA` format.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 © 2023. All rights reserved.