TemplatesProps
Properties for defining a Templates.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-oos-templates
Initializer
import com.aliyun.ros.cdk.oos.datasource.TemplatesProps;
TemplatesProps.builder()
// .category(java.lang.String)
// .category(IResolvable)
// .createdBy(java.lang.String)
// .createdBy(IResolvable)
// .createdDateAfter(java.lang.String)
// .createdDateAfter(IResolvable)
// .createdDateBefore(java.lang.String)
// .createdDateBefore(IResolvable)
// .hasTrigger(java.lang.Boolean)
// .hasTrigger(IResolvable)
// .isExample(java.lang.Boolean)
// .isExample(IResolvable)
// .isFavorite(java.lang.Boolean)
// .isFavorite(IResolvable)
// .refreshOptions(java.lang.String)
// .refreshOptions(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .shareType(java.lang.String)
// .shareType(IResolvable)
// .sortField(java.lang.String)
// .sortField(IResolvable)
// .sortOrder(java.lang.String)
// .sortOrder(IResolvable)
// .tags(java.util.Map<java.lang.String, java.lang.Object>)
// .templateFormat(java.lang.String)
// .templateFormat(IResolvable)
// .templateName(java.lang.String)
// .templateName(IResolvable)
// .templateType(java.lang.String)
// .templateType(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
category | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property category: The type of the template. |
createdBy | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property createdBy: The creator of the template. |
createdDateAfter | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property createdDateAfter: Specifies to query the template that is created at or later than the specified time.The value must be in the YYYY-MM-DDThh:mm:ssZ format. |
createdDateBefore | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property createdDateBefore: Specifies to query the template that is created at or before the specified time.The value must be in the YYYY-MM-DDThh:mm::ssZ format. |
hasTrigger | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property hasTrigger: Specifies whether to query the template that is configured with a trigger. |
isExample | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property isExample: Specifies whether the template is an example template. |
isFavorite | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property isFavorite: Specifies whether the template is added to favorites. |
refreshOptions | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
resourceGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property resourceGroupId: The ID of the resource group. |
shareType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property shareType: The share type of the template. |
sortField | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property sortField: The field that is used to sort the templates to be queried. |
sortOrder | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property sortOrder: The order in which you want to sort the results. |
tags | java.util.Map | Property tags: The tag keys and values. |
templateFormat | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property templateFormat: The format of the template. |
templateName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property templateName: The name of the template. |
templateType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property templateType: The type of the template. |
categoryOptional
public java.lang.Object getCategory();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property category: The type of the template.
Valid values include TimerTrigger, EventTrigger, AlarmTrigger, and Other.
createdByOptional
public java.lang.Object getCreatedBy();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property createdBy: The creator of the template.
createdDateAfterOptional
public java.lang.Object getCreatedDateAfter();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property createdDateAfter: Specifies to query the template that is created at or later than the specified time.The value must be in the YYYY-MM-DDThh:mm:ssZ format.
createdDateBeforeOptional
public java.lang.Object getCreatedDateBefore();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property createdDateBefore: Specifies to query the template that is created at or before the specified time.The value must be in the YYYY-MM-DDThh:mm::ssZ format.
hasTriggerOptional
public java.lang.Object getHasTrigger();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property hasTrigger: Specifies whether to query the template that is configured with a trigger.
isExampleOptional
public java.lang.Object getIsExample();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property isExample: Specifies whether the template is an example template.
isFavoriteOptional
public java.lang.Object getIsFavorite();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property isFavorite: Specifies whether the template is added to favorites.
refreshOptionsOptional
public java.lang.Object getRefreshOptions();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
resourceGroupIdOptional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of the resource group.
shareTypeOptional
public java.lang.Object getShareType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property shareType: The share type of the template.
Valid values: Public Private
sortFieldOptional
public java.lang.Object getSortField();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sortField: The field that is used to sort the templates to be queried.
Valid values: TotalExecutionCount (default): The system sorts the returned templates based on the total number of times that the templates are used. Popularity: The system sorts the returned templates based on the popularity of the templates. TemplateName: The system sorts the returned templates based on the names of the templates. CreatedDate: The system sorts the returned templates based on the points in time when the templates are created. UpdatedDate: The system sorts the returned templates based on the points in time when the templates are updated.
sortOrderOptional
public java.lang.Object getSortOrder();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sortOrder: The order in which you want to sort the results.
Valid values: Ascending: ascending order. Descending: descending order. This is the default value.
tagsOptional
public java.util.Map<java.lang.String, java.lang.Object> getTags();
- Type: java.util.Map
Property tags: The tag keys and values.
The number of key-value pairs ranges from 1 to 20. Example: {"k1":"k2","k2":"v2"}
templateFormatOptional
public java.lang.Object getTemplateFormat();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property templateFormat: The format of the template.
Valid values: JSON YAML
templateNameOptional
public java.lang.Object getTemplateName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property templateName: The name of the template.
templateTypeOptional
public java.lang.Object getTemplateType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property templateType: The type of the template.
Valid values: Automation: the template for automated tasks. State: the template for configuration inventories. Package: the template for software packages.