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 instances associated with the key pair. | 
| String | getCreatedTime()Get Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. | 
| 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 of key pair. | 
| String | getPublicKey()Get Public key (in plain text) of key pair. | 
| void | setAssociatedInstanceIds(String[] AssociatedInstanceIds)Set List of IDs of instances associated with the key pair. | 
| void | setCreatedTime(String CreatedTime)Set Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. | 
| 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 of 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.public String getKeyName()
public void setKeyName(String KeyName)
KeyName - Key pair name.public String getPublicKey()
public void setPublicKey(String PublicKey)
PublicKey - Public key (in plain text) of key pair.public String[] getAssociatedInstanceIds()
public void setAssociatedInstanceIds(String[] AssociatedInstanceIds)
AssociatedInstanceIds - List of IDs of instances associated with the key pair.
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.public String getPrivateKey()
public void setPrivateKey(String PrivateKey)
PrivateKey - Private key of key pair.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.