public class KeyPair extends AbstractModel
header, skipSign| 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 密钥对关联的实例 ID 列表。 | 
| String | getCreatedTime()Get 创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getKeyId()Get 密钥对 ID ,是密钥对的唯一标识。 | 
| String | getKeyName()Get 密钥对名称。 | 
| String | getPrivateKey()Get 密钥对私钥。
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getPublicKey()Get 密钥对的纯文本公钥。 | 
| Tag[] | getTags()Get 密钥对绑定的标签列表。 | 
| void | setAssociatedInstanceIds(String[] AssociatedInstanceIds)Set 密钥对关联的实例 ID 列表。 | 
| void | setCreatedTime(String CreatedTime)Set 创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setKeyId(String KeyId)Set 密钥对 ID ,是密钥对的唯一标识。 | 
| void | setKeyName(String KeyName)Set 密钥对名称。 | 
| void | setPrivateKey(String PrivateKey)Set 密钥对私钥。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setPublicKey(String PublicKey)Set 密钥对的纯文本公钥。 | 
| void | setTags(Tag[] Tags)Set 密钥对绑定的标签列表。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic KeyPair()
public KeyPair(KeyPair source)
public String getKeyId()
public void setKeyId(String KeyId)
KeyId - 密钥对 ID ,是密钥对的唯一标识。public String getKeyName()
public void setKeyName(String KeyName)
KeyName - 密钥对名称。public String getPublicKey()
public void setPublicKey(String PublicKey)
PublicKey - 密钥对的纯文本公钥。public String[] getAssociatedInstanceIds()
public void setAssociatedInstanceIds(String[] AssociatedInstanceIds)
AssociatedInstanceIds - 密钥对关联的实例 ID 列表。public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime - 创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ
注意:此字段可能返回 null,表示取不到有效值。public String getPrivateKey()
public void setPrivateKey(String PrivateKey)
PrivateKey - 密钥对私钥。
注意:此字段可能返回 null,表示取不到有效值。public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags - 密钥对绑定的标签列表。Copyright © 2025. All rights reserved.