Skip to content

InstanceProps

Properties for defining a Instance.

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

Initializer

import com.aliyun.ros.cdk.hologram.InstanceProps;
InstanceProps.builder()
    .endpoints(IResolvable)
    .endpoints(java.util.List<IResolvable)
    .endpoints(EndpointsProperty>)
    .instanceName(java.lang.String)
    .instanceName(IResolvable)
    .instanceType(java.lang.String)
    .instanceType(IResolvable)
    .paymentType(java.lang.String)
    .paymentType(IResolvable)
    .zoneId(java.lang.String)
    .zoneId(IResolvable)
//  .autoPay(java.lang.Boolean)
//  .autoPay(IResolvable)
//  .coldStorageSize(java.lang.Number)
//  .coldStorageSize(IResolvable)
//  .cpu(java.lang.Number)
//  .cpu(IResolvable)
//  .duration(java.lang.Number)
//  .duration(IResolvable)
//  .gatewayCount(java.lang.Number)
//  .gatewayCount(IResolvable)
//  .initialDatabases(java.lang.String)
//  .initialDatabases(IResolvable)
//  .leaderInstanceId(java.lang.String)
//  .leaderInstanceId(IResolvable)
//  .pricingCycle(java.lang.String)
//  .pricingCycle(IResolvable)
//  .productCode(java.lang.String)
//  .productCode(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .scaleType(java.lang.String)
//  .scaleType(IResolvable)
//  .storageSize(java.lang.Number)
//  .storageSize(IResolvable)
//  .tags(java.util.List<TagsProperty>)
    .build();

Properties

Name Type Description
endpoints com.aliyun.ros.cdk.core.IResolvable OR java.util.ListEndpointsProperty> Property endpoints: List of domain names.
instanceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceName: The name of the resource.
instanceType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceType: The instance type.
paymentType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property paymentType: The payment type of the resource.
zoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property zoneId: The zone Id.
autoPay java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property autoPay: Whether to pay automatically.
coldStorageSize java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property coldStorageSize: Instance low-frequency storage space.
cpu java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property cpu: Instance specifications.
duration java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property duration: The buying cycle.
gatewayCount java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property gatewayCount: Number of gateway nodes.
initialDatabases java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property initialDatabases: Initialize the database and split multiple database names ",".
leaderInstanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property leaderInstanceId: The id of leader instance.
pricingCycle java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property pricingCycle: Billing cycle.
productCode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property productCode: product code.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group.
scaleType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property scaleType: Change matching type.
storageSize java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property storageSize: The standard storage space of the instance.
tags java.util.List<TagsProperty> Property tags: Tags of instance.

endpointsRequired

public java.lang.Object getEndpoints();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListEndpointsProperty>

Property endpoints: List of domain names.


instanceNameRequired

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

Property instanceName: The name of the resource.


instanceTypeRequired

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

Property instanceType: The instance type.

Value:

  • Standard: Universal.
  • Follower: Read-only slave instance.
  • Warehouse: calculation group type.
  • Shared: Shared.

paymentTypeRequired

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

Property paymentType: The payment type of the resource.


zoneIdRequired

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

Property zoneId: The zone Id.


autoPayOptional

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

Property autoPay: Whether to pay automatically.

The default value is true. Value:

  • true: automatic payment
  • false: only generate orders, not pay

The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.


coldStorageSizeOptional

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

Property coldStorageSize: Instance low-frequency storage space.

Unit: GB.

Pay-As-You-Go (PostPaid) instances ignore this parameter.


cpuOptional

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

Property cpu: Instance specifications.

Value:

  • 8 cores 32 GB (number of compute nodes: 1)
  • 16 cores 64 GB (number of compute nodes: 1)
  • 32 core 128 GB (number of compute nodes: 2)
  • 64 core 256 GB (number of compute nodes: 4)
  • 96 core 384 GB (number of computing nodes: 6)
  • 128 core 512 GB (number of compute nodes: 8)
  • Wait
  • just fill in the audit number.
  • Please submit a work order application for purchasing 1024 or above specifications.
  • Shared instance types do not need to specify specifications. The specification of -8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.

durationOptional

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

Property duration: The buying cycle.

Buy for 2 months.

If the Payment type is PostPaid, you do not need to specify it.


gatewayCountOptional

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

Property gatewayCount: Number of gateway nodes.


initialDatabasesOptional

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

Property initialDatabases: Initialize the database and split multiple database names ",".


leaderInstanceIdOptional

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

Property leaderInstanceId: The id of leader instance.


pricingCycleOptional

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

Property pricingCycle: Billing cycle.

Value:

  • Month: monthly billing
  • Hour: hourly billing
  • PrePaid only supports Month
  • PostPaid only supports Hour
  • The Shared type is automatically set to Hour without specifying it.

productCodeOptional

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

Property productCode: product code.


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.


scaleTypeOptional

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

Property scaleType: Change matching type.

Value:

  • UPGRADE: UPGRADE
  • DOWNGRADE: Downgrading
  • The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification.
  • The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.

storageSizeOptional

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

Property storageSize: The standard storage space of the instance.

Unit: GB.

Pay-As-You-Go instances (PostPaid) ignore this parameter.


tagsOptional

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

Property tags: Tags of instance.