
com.tencentcloudapi.ssm.v20190923.models.DescribeSecretResponse Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.ssm.v20190923.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeSecretResponse extends AbstractModel{
/**
* 凭据名称。
*/
@SerializedName("SecretName")
@Expose
private String SecretName;
/**
* 凭据描述信息。
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* 用于加密的KMS CMK ID。
*/
@SerializedName("KmsKeyId")
@Expose
private String KmsKeyId;
/**
* 创建者UIN。
*/
@SerializedName("CreateUin")
@Expose
private Long CreateUin;
/**
* 凭据状态:Enabled、Disabled、PendingDelete, Creating, Failed。
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* 删除日期,uinx 时间戳,非计划删除状态的凭据为0。
*/
@SerializedName("DeleteTime")
@Expose
private Long DeleteTime;
/**
* 创建日期。
*/
@SerializedName("CreateTime")
@Expose
private Long CreateTime;
/**
* 0 -- 用户自定义凭据类型;1 -- 数据库凭据类型;2 -- SSH密钥对凭据类型。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("SecretType")
@Expose
private Long SecretType;
/**
* 云产品名称。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ProductName")
@Expose
private String ProductName;
/**
* 云产品实例ID。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ResourceID")
@Expose
private String ResourceID;
/**
* 是否开启轮转:True -- 开启轮转;False -- 禁止轮转。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("RotationStatus")
@Expose
private Boolean RotationStatus;
/**
* 轮转周期,默认以天为单位。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("RotationFrequency")
@Expose
private Long RotationFrequency;
/**
* 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对凭据的名称。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ResourceName")
@Expose
private String ResourceName;
/**
* 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所属的项目ID。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ProjectID")
@Expose
private Long ProjectID;
/**
* 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所关联的CVM实例ID。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("AssociatedInstanceIDs")
@Expose
private String [] AssociatedInstanceIDs;
/**
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
@SerializedName("RequestId")
@Expose
private String RequestId;
/**
* Get 凭据名称。
* @return SecretName 凭据名称。
*/
public String getSecretName() {
return this.SecretName;
}
/**
* Set 凭据名称。
* @param SecretName 凭据名称。
*/
public void setSecretName(String SecretName) {
this.SecretName = SecretName;
}
/**
* Get 凭据描述信息。
* @return Description 凭据描述信息。
*/
public String getDescription() {
return this.Description;
}
/**
* Set 凭据描述信息。
* @param Description 凭据描述信息。
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get 用于加密的KMS CMK ID。
* @return KmsKeyId 用于加密的KMS CMK ID。
*/
public String getKmsKeyId() {
return this.KmsKeyId;
}
/**
* Set 用于加密的KMS CMK ID。
* @param KmsKeyId 用于加密的KMS CMK ID。
*/
public void setKmsKeyId(String KmsKeyId) {
this.KmsKeyId = KmsKeyId;
}
/**
* Get 创建者UIN。
* @return CreateUin 创建者UIN。
*/
public Long getCreateUin() {
return this.CreateUin;
}
/**
* Set 创建者UIN。
* @param CreateUin 创建者UIN。
*/
public void setCreateUin(Long CreateUin) {
this.CreateUin = CreateUin;
}
/**
* Get 凭据状态:Enabled、Disabled、PendingDelete, Creating, Failed。
* @return Status 凭据状态:Enabled、Disabled、PendingDelete, Creating, Failed。
*/
public String getStatus() {
return this.Status;
}
/**
* Set 凭据状态:Enabled、Disabled、PendingDelete, Creating, Failed。
* @param Status 凭据状态:Enabled、Disabled、PendingDelete, Creating, Failed。
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get 删除日期,uinx 时间戳,非计划删除状态的凭据为0。
* @return DeleteTime 删除日期,uinx 时间戳,非计划删除状态的凭据为0。
*/
public Long getDeleteTime() {
return this.DeleteTime;
}
/**
* Set 删除日期,uinx 时间戳,非计划删除状态的凭据为0。
* @param DeleteTime 删除日期,uinx 时间戳,非计划删除状态的凭据为0。
*/
public void setDeleteTime(Long DeleteTime) {
this.DeleteTime = DeleteTime;
}
/**
* Get 创建日期。
* @return CreateTime 创建日期。
*/
public Long getCreateTime() {
return this.CreateTime;
}
/**
* Set 创建日期。
* @param CreateTime 创建日期。
*/
public void setCreateTime(Long CreateTime) {
this.CreateTime = CreateTime;
}
/**
* Get 0 -- 用户自定义凭据类型;1 -- 数据库凭据类型;2 -- SSH密钥对凭据类型。
注意:此字段可能返回 null,表示取不到有效值。
* @return SecretType 0 -- 用户自定义凭据类型;1 -- 数据库凭据类型;2 -- SSH密钥对凭据类型。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getSecretType() {
return this.SecretType;
}
/**
* Set 0 -- 用户自定义凭据类型;1 -- 数据库凭据类型;2 -- SSH密钥对凭据类型。
注意:此字段可能返回 null,表示取不到有效值。
* @param SecretType 0 -- 用户自定义凭据类型;1 -- 数据库凭据类型;2 -- SSH密钥对凭据类型。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setSecretType(Long SecretType) {
this.SecretType = SecretType;
}
/**
* Get 云产品名称。
注意:此字段可能返回 null,表示取不到有效值。
* @return ProductName 云产品名称。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getProductName() {
return this.ProductName;
}
/**
* Set 云产品名称。
注意:此字段可能返回 null,表示取不到有效值。
* @param ProductName 云产品名称。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setProductName(String ProductName) {
this.ProductName = ProductName;
}
/**
* Get 云产品实例ID。
注意:此字段可能返回 null,表示取不到有效值。
* @return ResourceID 云产品实例ID。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getResourceID() {
return this.ResourceID;
}
/**
* Set 云产品实例ID。
注意:此字段可能返回 null,表示取不到有效值。
* @param ResourceID 云产品实例ID。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setResourceID(String ResourceID) {
this.ResourceID = ResourceID;
}
/**
* Get 是否开启轮转:True -- 开启轮转;False -- 禁止轮转。
注意:此字段可能返回 null,表示取不到有效值。
* @return RotationStatus 是否开启轮转:True -- 开启轮转;False -- 禁止轮转。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Boolean getRotationStatus() {
return this.RotationStatus;
}
/**
* Set 是否开启轮转:True -- 开启轮转;False -- 禁止轮转。
注意:此字段可能返回 null,表示取不到有效值。
* @param RotationStatus 是否开启轮转:True -- 开启轮转;False -- 禁止轮转。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setRotationStatus(Boolean RotationStatus) {
this.RotationStatus = RotationStatus;
}
/**
* Get 轮转周期,默认以天为单位。
注意:此字段可能返回 null,表示取不到有效值。
* @return RotationFrequency 轮转周期,默认以天为单位。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getRotationFrequency() {
return this.RotationFrequency;
}
/**
* Set 轮转周期,默认以天为单位。
注意:此字段可能返回 null,表示取不到有效值。
* @param RotationFrequency 轮转周期,默认以天为单位。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setRotationFrequency(Long RotationFrequency) {
this.RotationFrequency = RotationFrequency;
}
/**
* Get 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对凭据的名称。
注意:此字段可能返回 null,表示取不到有效值。
* @return ResourceName 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对凭据的名称。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getResourceName() {
return this.ResourceName;
}
/**
* Set 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对凭据的名称。
注意:此字段可能返回 null,表示取不到有效值。
* @param ResourceName 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对凭据的名称。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setResourceName(String ResourceName) {
this.ResourceName = ResourceName;
}
/**
* Get 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所属的项目ID。
注意:此字段可能返回 null,表示取不到有效值。
* @return ProjectID 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所属的项目ID。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getProjectID() {
return this.ProjectID;
}
/**
* Set 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所属的项目ID。
注意:此字段可能返回 null,表示取不到有效值。
* @param ProjectID 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所属的项目ID。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setProjectID(Long ProjectID) {
this.ProjectID = ProjectID;
}
/**
* Get 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所关联的CVM实例ID。
注意:此字段可能返回 null,表示取不到有效值。
* @return AssociatedInstanceIDs 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所关联的CVM实例ID。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String [] getAssociatedInstanceIDs() {
return this.AssociatedInstanceIDs;
}
/**
* Set 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所关联的CVM实例ID。
注意:此字段可能返回 null,表示取不到有效值。
* @param AssociatedInstanceIDs 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所关联的CVM实例ID。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setAssociatedInstanceIDs(String [] AssociatedInstanceIDs) {
this.AssociatedInstanceIDs = AssociatedInstanceIDs;
}
/**
* Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @return RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public String getRequestId() {
return this.RequestId;
}
/**
* Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @param RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public void setRequestId(String RequestId) {
this.RequestId = RequestId;
}
public DescribeSecretResponse() {
}
/**
* 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.
*/
public DescribeSecretResponse(DescribeSecretResponse source) {
if (source.SecretName != null) {
this.SecretName = new String(source.SecretName);
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.KmsKeyId != null) {
this.KmsKeyId = new String(source.KmsKeyId);
}
if (source.CreateUin != null) {
this.CreateUin = new Long(source.CreateUin);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.DeleteTime != null) {
this.DeleteTime = new Long(source.DeleteTime);
}
if (source.CreateTime != null) {
this.CreateTime = new Long(source.CreateTime);
}
if (source.SecretType != null) {
this.SecretType = new Long(source.SecretType);
}
if (source.ProductName != null) {
this.ProductName = new String(source.ProductName);
}
if (source.ResourceID != null) {
this.ResourceID = new String(source.ResourceID);
}
if (source.RotationStatus != null) {
this.RotationStatus = new Boolean(source.RotationStatus);
}
if (source.RotationFrequency != null) {
this.RotationFrequency = new Long(source.RotationFrequency);
}
if (source.ResourceName != null) {
this.ResourceName = new String(source.ResourceName);
}
if (source.ProjectID != null) {
this.ProjectID = new Long(source.ProjectID);
}
if (source.AssociatedInstanceIDs != null) {
this.AssociatedInstanceIDs = new String[source.AssociatedInstanceIDs.length];
for (int i = 0; i < source.AssociatedInstanceIDs.length; i++) {
this.AssociatedInstanceIDs[i] = new String(source.AssociatedInstanceIDs[i]);
}
}
if (source.RequestId != null) {
this.RequestId = new String(source.RequestId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "SecretName", this.SecretName);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamSimple(map, prefix + "KmsKeyId", this.KmsKeyId);
this.setParamSimple(map, prefix + "CreateUin", this.CreateUin);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "DeleteTime", this.DeleteTime);
this.setParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.setParamSimple(map, prefix + "SecretType", this.SecretType);
this.setParamSimple(map, prefix + "ProductName", this.ProductName);
this.setParamSimple(map, prefix + "ResourceID", this.ResourceID);
this.setParamSimple(map, prefix + "RotationStatus", this.RotationStatus);
this.setParamSimple(map, prefix + "RotationFrequency", this.RotationFrequency);
this.setParamSimple(map, prefix + "ResourceName", this.ResourceName);
this.setParamSimple(map, prefix + "ProjectID", this.ProjectID);
this.setParamArraySimple(map, prefix + "AssociatedInstanceIDs.", this.AssociatedInstanceIDs);
this.setParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy