Skip to content

InstanceProps

Properties for defining a Instance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ots-instance

Initializer

import com.aliyun.ros.cdk.ots.InstanceProps;
InstanceProps.builder()
    .instanceName(java.lang.String)
    .instanceName(IResolvable)
//  .clusterType(java.lang.String)
//  .clusterType(IResolvable)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .network(java.lang.String)
//  .network(IResolvable)
//  .tags(java.util.List<TagsProperty>)
    .build();

Properties

Name Type Description
instanceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceName: The name of the instance.
clusterType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property clusterType: Cluster type, the default is SSD.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: Instance description.
network java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property network: Instance network type, default is NORMAL.
tags java.util.List<TagsProperty> Property tags: Tags to attach to instance.

instanceNameRequired

public java.lang.Object getInstanceName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceName: The name of the instance.


clusterTypeOptional

public java.lang.Object getClusterType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property clusterType: Cluster type, the default is SSD.

This parameter specifies the specification of the ots instance. When the value is SSD, the ots instance is a high-performance instance. When the value is Hybid, the ots instance is a capacity instance


descriptionOptional

public java.lang.Object getDescription();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property description: Instance description.


networkOptional

public java.lang.Object getNetwork();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property network: Instance network type, default is NORMAL.


tagsOptional

public java.util.List<TagsProperty> getTags();

Property tags: Tags to attach to instance.

Max support 5 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.