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 `ID` list of instances associated with a key.
|
String |
getCreatedTime()
Get Creation time, which follows the `ISO8601` standard and uses `UTC` time in the format of `YYYY-MM-DDThh:mm:ssZ`.
|
String |
getDescription()
Get Key pair description.
|
String |
getKeyId()
Get Key pair `ID`, the unique identifier of a key pair.
|
String |
getKeyName()
Get Key pair name.
|
String |
getPrivateKey()
Get Content of private key in a key pair.
|
Long |
getProjectId()
Get `ID` of the project to which a key pair belongs.
|
String |
getPublicKey()
Get Content of public key in a key pair.
|
Tag[] |
getTags()
Get The list of tags bound to the key.
|
void |
setAssociatedInstanceIds(String[] AssociatedInstanceIds)
Set `ID` list of instances associated with a key.
|
void |
setCreatedTime(String CreatedTime)
Set Creation time, which follows the `ISO8601` standard and uses `UTC` time in the format of `YYYY-MM-DDThh:mm:ssZ`.
|
void |
setDescription(String Description)
Set Key pair description.
|
void |
setKeyId(String KeyId)
Set Key pair `ID`, the unique identifier of a key pair.
|
void |
setKeyName(String KeyName)
Set Key pair name.
|
void |
setPrivateKey(String PrivateKey)
Set Content of private key in a key pair.
|
void |
setProjectId(Long ProjectId)
Set `ID` of the project to which a key pair belongs.
|
void |
setPublicKey(String PublicKey)
Set Content of public key in a key pair.
|
void |
setTags(Tag[] Tags)
Set The list of tags bound to the key.
|
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 KeyPair()
public KeyPair(KeyPair source)
public String getKeyId()
public void setKeyId(String KeyId)
KeyId
- Key pair `ID`, the unique identifier of a key pair.public String getKeyName()
public void setKeyName(String KeyName)
KeyName
- Key pair name.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- `ID` of the project to which a key pair belongs.public String getDescription()
public void setDescription(String Description)
Description
- Key pair description.public String getPublicKey()
public void setPublicKey(String PublicKey)
PublicKey
- Content of public key in a key pair.public String getPrivateKey()
public void setPrivateKey(String PrivateKey)
PrivateKey
- Content of private key in a key pair. Tencent Cloud do not keep private keys. Please keep it properly.public String[] getAssociatedInstanceIds()
public void setAssociatedInstanceIds(String[] AssociatedInstanceIds)
AssociatedInstanceIds
- `ID` list of instances associated with a key.public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime
- Creation time, which follows the `ISO8601` standard and uses `UTC` time in the format of `YYYY-MM-DDThh:mm:ssZ`.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- The list of tags bound to the key.
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2023. All rights reserved.