public class CreateProductSecretRequest extends AbstractModel
Constructor and Description |
---|
CreateProductSecretRequest() |
CreateProductSecretRequest(CreateProductSecretRequest 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 |
getDescription()
Get Description, which is used to describe the purpose in detail and can contain up to 2,048 bytes.
|
String[] |
getDomains()
Get Domain name of the account in the form of IP.
|
Boolean |
getEnableRotation()
Get Specifies whether to enable rotation
True - enable
False - do not enable
If this parameter is not specified, `False` will be used by default.
|
String |
getInstanceID()
Get Tencent Cloud service instance ID.
|
String |
getKmsKeyId()
Get Specifies the KMS CMK that encrypts the credential.
|
ProductPrivilegeUnit[] |
getPrivilegesList()
Get List of permissions that need to be granted when the credential is bound to a Tencent Cloud service.
|
String |
getProductName()
Get Name of the Tencent Cloud service bound to the credential, such as `Mysql`.
|
String |
getRotationBeginTime()
Get User-Defined rotation start time in the format of 2006-01-02 15:04:05.
|
Long |
getRotationFrequency()
Get Rotation frequency in days.
|
String |
getSecretName()
Get Credential name, which must be unique in the same region.
|
Tag[] |
getTags()
Get List of tags.
|
String |
getUserNamePrefix()
Get Prefix of the user account name, which is specified by you and can contain up to 8 characters.
|
void |
setDescription(String Description)
Set Description, which is used to describe the purpose in detail and can contain up to 2,048 bytes.
|
void |
setDomains(String[] Domains)
Set Domain name of the account in the form of IP.
|
void |
setEnableRotation(Boolean EnableRotation)
Set Specifies whether to enable rotation
True - enable
False - do not enable
If this parameter is not specified, `False` will be used by default.
|
void |
setInstanceID(String InstanceID)
Set Tencent Cloud service instance ID.
|
void |
setKmsKeyId(String KmsKeyId)
Set Specifies the KMS CMK that encrypts the credential.
|
void |
setPrivilegesList(ProductPrivilegeUnit[] PrivilegesList)
Set List of permissions that need to be granted when the credential is bound to a Tencent Cloud service.
|
void |
setProductName(String ProductName)
Set Name of the Tencent Cloud service bound to the credential, such as `Mysql`.
|
void |
setRotationBeginTime(String RotationBeginTime)
Set User-Defined rotation start time in the format of 2006-01-02 15:04:05.
|
void |
setRotationFrequency(Long RotationFrequency)
Set Rotation frequency in days.
|
void |
setSecretName(String SecretName)
Set Credential name, which must be unique in the same region.
|
void |
setTags(Tag[] Tags)
Set List of tags.
|
void |
setUserNamePrefix(String UserNamePrefix)
Set Prefix of the user account name, which is specified by you and can contain up to 8 characters.
|
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 CreateProductSecretRequest()
public CreateProductSecretRequest(CreateProductSecretRequest source)
public String getSecretName()
public void setSecretName(String SecretName)
SecretName
- Credential name, which must be unique in the same region. It can contain 128 bytes of letters, digits, hyphens, and underscores and must begin with a letter or digit.public String getUserNamePrefix()
public void setUserNamePrefix(String UserNamePrefix)
UserNamePrefix
- Prefix of the user account name, which is specified by you and can contain up to 8 characters.
Supported character sets include:
Digits: [0, 9].
Lowercase letters: [a, z].
Uppercase letters: [A, Z].
Special symbols: underscore.
The prefix must begin with a letter.public String getProductName()
public void setProductName(String ProductName)
ProductName
- Name of the Tencent Cloud service bound to the credential, such as `Mysql`. The `DescribeSupportedProducts` API can be used to get the names of the supported Tencent Cloud services.public String getInstanceID()
public void setInstanceID(String InstanceID)
InstanceID
- Tencent Cloud service instance ID.public String[] getDomains()
public void setDomains(String[] Domains)
Domains
- Domain name of the account in the form of IP. You can enter `%`.public ProductPrivilegeUnit[] getPrivilegesList()
public void setPrivilegesList(ProductPrivilegeUnit[] PrivilegesList)
PrivilegesList
- List of permissions that need to be granted when the credential is bound to a Tencent Cloud service.public String getDescription()
public void setDescription(String Description)
Description
- Description, which is used to describe the purpose in detail and can contain up to 2,048 bytes.public String getKmsKeyId()
public void setKmsKeyId(String KmsKeyId)
KmsKeyId
- Specifies the KMS CMK that encrypts the credential.
If this parameter is left empty, the CMK created by Secrets Manager by default will be used for encryption.
You can also specify a custom KMS CMK created in the same region for encryption.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- List of tags.public String getRotationBeginTime()
public void setRotationBeginTime(String RotationBeginTime)
RotationBeginTime
- User-Defined rotation start time in the format of 2006-01-02 15:04:05.
When `EnableRotation` is `True`, this parameter is required.public Boolean getEnableRotation()
public void setEnableRotation(Boolean EnableRotation)
EnableRotation
- Specifies whether to enable rotation
True - enable
False - do not enable
If this parameter is not specified, `False` will be used by default.public Long getRotationFrequency()
public void setRotationFrequency(Long RotationFrequency)
RotationFrequency
- Rotation frequency in days. Default value: 1 day.Copyright © 2023. All rights reserved.