public class KeyPair extends AbstractModel
| Constructor and Description | 
|---|
| KeyPair() | 
| KeyPair(KeyPair 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[] | getAssociatedInstanceIds()Get List of IDs of the instances associated with the key. | 
| String | getCreatedTime()Get Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. | 
| String | getDescription()Get Key pair description. | 
| String | getKeyId()Get Key pair ID, which is the unique identifier of a key pair. | 
| String | getKeyName()Get Key pair name. | 
| String | getPrivateKey()Get Private key (in plaintext) of a key pair. | 
| Long | getProjectId()Get Project ID of the key pair. | 
| String | getPublicKey()Get Public key (in plain text) of key pair. | 
| void | setAssociatedInstanceIds(String[] AssociatedInstanceIds)Set List of IDs of the instances associated with the key. | 
| void | setCreatedTime(String CreatedTime)Set Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. | 
| void | setDescription(String Description)Set Key pair description. | 
| void | setKeyId(String KeyId)Set Key pair ID, which is the unique identifier of a key pair. | 
| void | setKeyName(String KeyName)Set Key pair name. | 
| void | setPrivateKey(String PrivateKey)Set Private key (in plaintext) of a key pair. | 
| void | setProjectId(Long ProjectId)Set Project ID of the key pair. | 
| void | setPublicKey(String PublicKey)Set Public key (in plain text) of key pair. | 
| 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 KeyPair()
public KeyPair(KeyPair source)
public String getKeyId()
public void setKeyId(String KeyId)
KeyId - Key pair ID, which is the unique identifier of a key pair.
Note: this field may return null, indicating that no valid values can be obtained.public String getKeyName()
public void setKeyName(String KeyName)
KeyName - Key pair name.
Note: this field may return null, indicating that no valid values can be obtained.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId - Project ID of the key pair.
Note: this field may return null, indicating that no valid values can be obtained.public String getDescription()
public void setDescription(String Description)
Description - Key pair description.
Note: this field may return null, indicating that no valid values can be obtained.public String getPublicKey()
public void setPublicKey(String PublicKey)
PublicKey - Public key (in plain text) of key pair.
Note: this field may return null, indicating that no valid values can be obtained.public String getPrivateKey()
public void setPrivateKey(String PrivateKey)
PrivateKey - Private key (in plaintext) of a key pair. Tencent Cloud do not store private keys. Therefore, keep them secure.
Note: this field may return null, indicating that no valid values can be obtained.public String[] getAssociatedInstanceIds()
public void setAssociatedInstanceIds(String[] AssociatedInstanceIds)
AssociatedInstanceIds - List of IDs of the instances associated with the key.
Note: this field may return null, indicating that no valid values can be obtained.public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.