KvProps
Properties for defining a Kv.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-kv
Initializer
import com.aliyun.ros.cdk.esa.KvProps;
KvProps.builder()
.key(java.lang.String)
.key(IResolvable)
.namespace(java.lang.String)
.namespace(IResolvable)
.value(java.lang.String)
.value(IResolvable)
// .expiration(java.lang.Number)
// .expiration(IResolvable)
// .expirationTtl(java.lang.Number)
// .expirationTtl(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
key | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property key: The key name. |
namespace | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property namespace: The name specified when calling [CreatevNamespace] https:\/\/help.aliyun.com\/document_detail\/2850317.html. |
value | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property value: The content of the key. |
expiration | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property expiration: The content of the key, which can be up to 2 MB (2 Ã 1000 Ã 1000). |
expirationTtl | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property expirationTtl: The time when the key-value pair expires, which cannot be earlier than the current time. |
keyRequired
public java.lang.Object getKey();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property key: The key name.
The name can be up to 512 characters in length and cannot contain spaces or backslashes ().
namespaceRequired
public java.lang.Object getNamespace();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property namespace: The name specified when calling [CreatevNamespace] https:\/\/help.aliyun.com\/document_detail\/2850317.html.
valueRequired
public java.lang.Object getValue();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property value: The content of the key.
If the content has more than 256 characters in length, the system displays the first 100 and the last 100 characters, and omits the middle part.
expirationOptional
public java.lang.Object getExpiration();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property expiration: The content of the key, which can be up to 2 MB (2 Ã 1000 Ã 1000).
If the content is larger than 2 MB, call [PutKvWithHighCapacity] https://www.alibabacloud.com/help/en/doc-detail/2850486.html.
expirationTtlOptional
public java.lang.Object getExpirationTtl();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property expirationTtl: The time when the key-value pair expires, which cannot be earlier than the current time.
The value is a timestamp in seconds. If you specify both Expiration and ExpirationTtl, only ExpirationTtl takes effect.