Class CreateKeyResponse
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.kms.v20190118.models.CreateKeyResponse
-
public class CreateKeyResponse extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description CreateKeyResponse()CreateKeyResponse(CreateKeyResponse 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlias()Get 作为密钥更容易辨识,更容易被人看懂的别名LonggetCreateTime()Get 密钥创建时间,unix时间戳StringgetDescription()Get CMK的描述 注意:此字段可能返回 null,表示取不到有效值。StringgetHsmClusterId()Get HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效) 注意:此字段可能返回 null,表示取不到有效值。StringgetKeyId()Get CMK的全局唯一标识符StringgetKeyState()Get CMK的状态StringgetKeyUsage()Get CMK的用途StringgetRequestId()Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。LonggetTagCode()Get 标签操作的返回码.StringgetTagMsg()Get 标签操作的返回信息 注意:此字段可能返回 null,表示取不到有效值。voidsetAlias(String Alias)Set 作为密钥更容易辨识,更容易被人看懂的别名voidsetCreateTime(Long CreateTime)Set 密钥创建时间,unix时间戳voidsetDescription(String Description)Set CMK的描述 注意:此字段可能返回 null,表示取不到有效值。voidsetHsmClusterId(String HsmClusterId)Set HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效) 注意:此字段可能返回 null,表示取不到有效值。voidsetKeyId(String KeyId)Set CMK的全局唯一标识符voidsetKeyState(String KeyState)Set CMK的状态voidsetKeyUsage(String KeyUsage)Set CMK的用途voidsetRequestId(String RequestId)Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。voidsetTagCode(Long TagCode)Set 标签操作的返回码.voidsetTagMsg(String TagMsg)Set 标签操作的返回信息 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CreateKeyResponse
public CreateKeyResponse()
-
CreateKeyResponse
public CreateKeyResponse(CreateKeyResponse 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.
-
-
Method Detail
-
getKeyId
public String getKeyId()
Get CMK的全局唯一标识符- Returns:
- KeyId CMK的全局唯一标识符
-
setKeyId
public void setKeyId(String KeyId)
Set CMK的全局唯一标识符- Parameters:
KeyId- CMK的全局唯一标识符
-
getAlias
public String getAlias()
Get 作为密钥更容易辨识,更容易被人看懂的别名- Returns:
- Alias 作为密钥更容易辨识,更容易被人看懂的别名
-
setAlias
public void setAlias(String Alias)
Set 作为密钥更容易辨识,更容易被人看懂的别名- Parameters:
Alias- 作为密钥更容易辨识,更容易被人看懂的别名
-
getCreateTime
public Long getCreateTime()
Get 密钥创建时间,unix时间戳- Returns:
- CreateTime 密钥创建时间,unix时间戳
-
setCreateTime
public void setCreateTime(Long CreateTime)
Set 密钥创建时间,unix时间戳- Parameters:
CreateTime- 密钥创建时间,unix时间戳
-
getDescription
public String getDescription()
Get CMK的描述 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Description CMK的描述 注意:此字段可能返回 null,表示取不到有效值。
-
setDescription
public void setDescription(String Description)
Set CMK的描述 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Description- CMK的描述 注意:此字段可能返回 null,表示取不到有效值。
-
getKeyState
public String getKeyState()
Get CMK的状态- Returns:
- KeyState CMK的状态
-
setKeyState
public void setKeyState(String KeyState)
Set CMK的状态- Parameters:
KeyState- CMK的状态
-
getKeyUsage
public String getKeyUsage()
Get CMK的用途- Returns:
- KeyUsage CMK的用途
-
setKeyUsage
public void setKeyUsage(String KeyUsage)
Set CMK的用途- Parameters:
KeyUsage- CMK的用途
-
getTagCode
public Long getTagCode()
Get 标签操作的返回码. 0: 成功;1: 内部错误;2: 业务处理错误 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- TagCode 标签操作的返回码. 0: 成功;1: 内部错误;2: 业务处理错误 注意:此字段可能返回 null,表示取不到有效值。
-
setTagCode
public void setTagCode(Long TagCode)
Set 标签操作的返回码. 0: 成功;1: 内部错误;2: 业务处理错误 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
TagCode- 标签操作的返回码. 0: 成功;1: 内部错误;2: 业务处理错误 注意:此字段可能返回 null,表示取不到有效值。
-
getTagMsg
public String getTagMsg()
Get 标签操作的返回信息 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- TagMsg 标签操作的返回信息 注意:此字段可能返回 null,表示取不到有效值。
-
setTagMsg
public void setTagMsg(String TagMsg)
Set 标签操作的返回信息 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
TagMsg- 标签操作的返回信息 注意:此字段可能返回 null,表示取不到有效值。
-
getHsmClusterId
public String getHsmClusterId()
Get HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效) 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- HsmClusterId HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效) 注意:此字段可能返回 null,表示取不到有效值。
-
setHsmClusterId
public void setHsmClusterId(String HsmClusterId)
Set HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效) 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
HsmClusterId- HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效) 注意:此字段可能返回 null,表示取不到有效值。
-
getRequestId
public String getRequestId()
Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。- Returns:
- RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
-
setRequestId
public void setRequestId(String RequestId)
Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。- Parameters:
RequestId- 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
-
-