All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.ros.cdk.redis.datasource.RosInstances Maven / Gradle / Ivy

package com.aliyun.ros.cdk.redis.datasource;

/**
 * This class is a base encapsulation around the ROS resource type DATASOURCE::REDIS::Instances, which is used to query the information about ApsaraDB for Redis instances.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:11.295Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.redis.$Module.class, fqn = "@alicloud/ros-cdk-redis.datasource.RosInstances")
public class RosInstances extends com.aliyun.ros.cdk.core.RosResource {

    protected RosInstances(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected RosInstances(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    static {
        ROS_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.aliyun.ros.cdk.redis.datasource.RosInstances.class, "ROS_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
    }

    /**
     * @param scope 
  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. * @param props
  • resource properties.
This parameter is required. * @param enableResourcePropertyConstraint This parameter is required. */ public RosInstances(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.redis.datasource.RosInstancesProps props, final @org.jetbrains.annotations.NotNull java.lang.Boolean enableResourcePropertyConstraint) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required"), java.util.Objects.requireNonNull(enableResourcePropertyConstraint, "enableResourcePropertyConstraint is required") }); } @Override protected @org.jetbrains.annotations.NotNull java.util.Map renderProperties(final @org.jetbrains.annotations.NotNull java.util.Map props) { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "renderProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(props, "props is required") })); } /** * The resource type name for this resource class. */ public final static java.lang.String ROS_RESOURCE_TYPE_NAME; /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInstanceIds() { return software.amazon.jsii.Kernel.get(this, "attrInstanceIds", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInstances() { return software.amazon.jsii.Kernel.get(this, "attrInstances", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } @Override protected @org.jetbrains.annotations.NotNull java.util.Map getRosProperties() { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.get(this, "rosProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } public @org.jetbrains.annotations.NotNull java.lang.Boolean getEnableResourcePropertyConstraint() { return software.amazon.jsii.Kernel.get(this, "enableResourcePropertyConstraint", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); } public void setEnableResourcePropertyConstraint(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "enableResourcePropertyConstraint", java.util.Objects.requireNonNull(value, "enableResourcePropertyConstraint is required")); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getArchitectureType() { return software.amazon.jsii.Kernel.get(this, "architectureType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setArchitectureType(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "architectureType", value); } /** */ public void setArchitectureType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "architectureType", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getChargeType() { return software.amazon.jsii.Kernel.get(this, "chargeType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setChargeType(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "chargeType", value); } /** */ public void setChargeType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "chargeType", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getEditionType() { return software.amazon.jsii.Kernel.get(this, "editionType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setEditionType(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "editionType", value); } /** */ public void setEditionType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "editionType", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getEngineVersion() { return software.amazon.jsii.Kernel.get(this, "engineVersion", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setEngineVersion(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "engineVersion", value); } /** */ public void setEngineVersion(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "engineVersion", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getExpired() { return software.amazon.jsii.Kernel.get(this, "expired", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setExpired(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "expired", value); } /** */ public void setExpired(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "expired", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getGlobalInstance() { return software.amazon.jsii.Kernel.get(this, "globalInstance", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setGlobalInstance(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "globalInstance", value); } /** */ public void setGlobalInstance(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "globalInstance", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getInstanceClass() { return software.amazon.jsii.Kernel.get(this, "instanceClass", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInstanceClass(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "instanceClass", value); } /** */ public void setInstanceClass(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "instanceClass", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getInstanceIds() { return software.amazon.jsii.Kernel.get(this, "instanceIds", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInstanceIds(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "instanceIds", value); } /** */ public void setInstanceIds(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "instanceIds", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getInstanceStatus() { return software.amazon.jsii.Kernel.get(this, "instanceStatus", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInstanceStatus(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "instanceStatus", value); } /** */ public void setInstanceStatus(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "instanceStatus", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getInstanceType() { return software.amazon.jsii.Kernel.get(this, "instanceType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInstanceType(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "instanceType", value); } /** */ public void setInstanceType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "instanceType", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getNetworkType() { return software.amazon.jsii.Kernel.get(this, "networkType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setNetworkType(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "networkType", value); } /** */ public void setNetworkType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "networkType", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getPrivateIp() { return software.amazon.jsii.Kernel.get(this, "privateIp", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setPrivateIp(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "privateIp", value); } /** */ public void setPrivateIp(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "privateIp", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getRefreshOptions() { return software.amazon.jsii.Kernel.get(this, "refreshOptions", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setRefreshOptions(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "refreshOptions", value); } /** */ public void setRefreshOptions(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "refreshOptions", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getResourceGroupId() { return software.amazon.jsii.Kernel.get(this, "resourceGroupId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setResourceGroupId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "resourceGroupId", value); } /** */ public void setResourceGroupId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "resourceGroupId", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSearchKey() { return software.amazon.jsii.Kernel.get(this, "searchKey", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSearchKey(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "searchKey", value); } /** */ public void setSearchKey(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "searchKey", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getVpcId() { return software.amazon.jsii.Kernel.get(this, "vpcId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setVpcId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "vpcId", value); } /** */ public void setVpcId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "vpcId", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getVSwitchId() { return software.amazon.jsii.Kernel.get(this, "vSwitchId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setVSwitchId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "vSwitchId", value); } /** */ public void setVSwitchId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "vSwitchId", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getZoneId() { return software.amazon.jsii.Kernel.get(this, "zoneId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setZoneId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "zoneId", value); } /** */ public void setZoneId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "zoneId", value); } /** * A fluent builder for {@link com.aliyun.ros.cdk.redis.datasource.RosInstances}. */ public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope
  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. * @param enableResourcePropertyConstraint This parameter is required. */ public static Builder create(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) { return new Builder(scope, id, enableResourcePropertyConstraint); } private final com.aliyun.ros.cdk.core.Construct scope; private final java.lang.String id; private final java.lang.Boolean enableResourcePropertyConstraint; private final com.aliyun.ros.cdk.redis.datasource.RosInstancesProps.Builder props; private Builder(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) { this.scope = scope; this.id = id; this.enableResourcePropertyConstraint = enableResourcePropertyConstraint; this.props = new com.aliyun.ros.cdk.redis.datasource.RosInstancesProps.Builder(); } /** * @return {@code this} * @param architectureType This parameter is required. */ public Builder architectureType(final java.lang.String architectureType) { this.props.architectureType(architectureType); return this; } /** * @return {@code this} * @param architectureType This parameter is required. */ public Builder architectureType(final com.aliyun.ros.cdk.core.IResolvable architectureType) { this.props.architectureType(architectureType); return this; } /** * @return {@code this} * @param chargeType This parameter is required. */ public Builder chargeType(final java.lang.String chargeType) { this.props.chargeType(chargeType); return this; } /** * @return {@code this} * @param chargeType This parameter is required. */ public Builder chargeType(final com.aliyun.ros.cdk.core.IResolvable chargeType) { this.props.chargeType(chargeType); return this; } /** * @return {@code this} * @param editionType This parameter is required. */ public Builder editionType(final java.lang.String editionType) { this.props.editionType(editionType); return this; } /** * @return {@code this} * @param editionType This parameter is required. */ public Builder editionType(final com.aliyun.ros.cdk.core.IResolvable editionType) { this.props.editionType(editionType); return this; } /** * @return {@code this} * @param engineVersion This parameter is required. */ public Builder engineVersion(final java.lang.String engineVersion) { this.props.engineVersion(engineVersion); return this; } /** * @return {@code this} * @param engineVersion This parameter is required. */ public Builder engineVersion(final com.aliyun.ros.cdk.core.IResolvable engineVersion) { this.props.engineVersion(engineVersion); return this; } /** * @return {@code this} * @param expired This parameter is required. */ public Builder expired(final java.lang.String expired) { this.props.expired(expired); return this; } /** * @return {@code this} * @param expired This parameter is required. */ public Builder expired(final com.aliyun.ros.cdk.core.IResolvable expired) { this.props.expired(expired); return this; } /** * @return {@code this} * @param globalInstance This parameter is required. */ public Builder globalInstance(final java.lang.String globalInstance) { this.props.globalInstance(globalInstance); return this; } /** * @return {@code this} * @param globalInstance This parameter is required. */ public Builder globalInstance(final com.aliyun.ros.cdk.core.IResolvable globalInstance) { this.props.globalInstance(globalInstance); return this; } /** * @return {@code this} * @param instanceClass This parameter is required. */ public Builder instanceClass(final java.lang.String instanceClass) { this.props.instanceClass(instanceClass); return this; } /** * @return {@code this} * @param instanceClass This parameter is required. */ public Builder instanceClass(final com.aliyun.ros.cdk.core.IResolvable instanceClass) { this.props.instanceClass(instanceClass); return this; } /** * @return {@code this} * @param instanceIds This parameter is required. */ public Builder instanceIds(final java.lang.String instanceIds) { this.props.instanceIds(instanceIds); return this; } /** * @return {@code this} * @param instanceIds This parameter is required. */ public Builder instanceIds(final com.aliyun.ros.cdk.core.IResolvable instanceIds) { this.props.instanceIds(instanceIds); return this; } /** * @return {@code this} * @param instanceStatus This parameter is required. */ public Builder instanceStatus(final java.lang.String instanceStatus) { this.props.instanceStatus(instanceStatus); return this; } /** * @return {@code this} * @param instanceStatus This parameter is required. */ public Builder instanceStatus(final com.aliyun.ros.cdk.core.IResolvable instanceStatus) { this.props.instanceStatus(instanceStatus); return this; } /** * @return {@code this} * @param instanceType This parameter is required. */ public Builder instanceType(final java.lang.String instanceType) { this.props.instanceType(instanceType); return this; } /** * @return {@code this} * @param instanceType This parameter is required. */ public Builder instanceType(final com.aliyun.ros.cdk.core.IResolvable instanceType) { this.props.instanceType(instanceType); return this; } /** * @return {@code this} * @param networkType This parameter is required. */ public Builder networkType(final java.lang.String networkType) { this.props.networkType(networkType); return this; } /** * @return {@code this} * @param networkType This parameter is required. */ public Builder networkType(final com.aliyun.ros.cdk.core.IResolvable networkType) { this.props.networkType(networkType); return this; } /** * @return {@code this} * @param privateIp This parameter is required. */ public Builder privateIp(final java.lang.String privateIp) { this.props.privateIp(privateIp); return this; } /** * @return {@code this} * @param privateIp This parameter is required. */ public Builder privateIp(final com.aliyun.ros.cdk.core.IResolvable privateIp) { this.props.privateIp(privateIp); return this; } /** * @return {@code this} * @param refreshOptions This parameter is required. */ public Builder refreshOptions(final java.lang.String refreshOptions) { this.props.refreshOptions(refreshOptions); return this; } /** * @return {@code this} * @param refreshOptions This parameter is required. */ public Builder refreshOptions(final com.aliyun.ros.cdk.core.IResolvable refreshOptions) { this.props.refreshOptions(refreshOptions); return this; } /** * @return {@code this} * @param resourceGroupId This parameter is required. */ public Builder resourceGroupId(final java.lang.String resourceGroupId) { this.props.resourceGroupId(resourceGroupId); return this; } /** * @return {@code this} * @param resourceGroupId This parameter is required. */ public Builder resourceGroupId(final com.aliyun.ros.cdk.core.IResolvable resourceGroupId) { this.props.resourceGroupId(resourceGroupId); return this; } /** * @return {@code this} * @param searchKey This parameter is required. */ public Builder searchKey(final java.lang.String searchKey) { this.props.searchKey(searchKey); return this; } /** * @return {@code this} * @param searchKey This parameter is required. */ public Builder searchKey(final com.aliyun.ros.cdk.core.IResolvable searchKey) { this.props.searchKey(searchKey); return this; } /** * @return {@code this} * @param vpcId This parameter is required. */ public Builder vpcId(final java.lang.String vpcId) { this.props.vpcId(vpcId); return this; } /** * @return {@code this} * @param vpcId This parameter is required. */ public Builder vpcId(final com.aliyun.ros.cdk.core.IResolvable vpcId) { this.props.vpcId(vpcId); return this; } /** * @return {@code this} * @param vSwitchId This parameter is required. */ public Builder vSwitchId(final java.lang.String vSwitchId) { this.props.vSwitchId(vSwitchId); return this; } /** * @return {@code this} * @param vSwitchId This parameter is required. */ public Builder vSwitchId(final com.aliyun.ros.cdk.core.IResolvable vSwitchId) { this.props.vSwitchId(vSwitchId); return this; } /** * @return {@code this} * @param zoneId This parameter is required. */ public Builder zoneId(final java.lang.String zoneId) { this.props.zoneId(zoneId); return this; } /** * @return {@code this} * @param zoneId This parameter is required. */ public Builder zoneId(final com.aliyun.ros.cdk.core.IResolvable zoneId) { this.props.zoneId(zoneId); return this; } /** * @return a newly built instance of {@link com.aliyun.ros.cdk.redis.datasource.RosInstances}. */ @Override public com.aliyun.ros.cdk.redis.datasource.RosInstances build() { return new com.aliyun.ros.cdk.redis.datasource.RosInstances( this.scope, this.id, this.props.build(), this.enableResourcePropertyConstraint ); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy