com.aliyun.ros.cdk.slb.datasource.RosLoadBalancers Maven / Gradle / Ivy
package com.aliyun.ros.cdk.slb.datasource;
/**
* This class is a base encapsulation around the ROS resource type DATASOURCE::SLB::LoadBalancers
, which is used to query created Classic Load Balancer (CLB) instances.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-09-29T07:52:42.680Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.slb.$Module.class, fqn = "@alicloud/ros-cdk-slb.datasource.RosLoadBalancers")
public class RosLoadBalancers extends com.aliyun.ros.cdk.core.RosResource {
protected RosLoadBalancers(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected RosLoadBalancers(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
ROS_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.aliyun.ros.cdk.slb.datasource.RosLoadBalancers.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 RosLoadBalancers(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.slb.datasource.RosLoadBalancersProps 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 getAttrLoadBalancerIds() {
return software.amazon.jsii.Kernel.get(this, "attrLoadBalancerIds", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class));
}
/**
*/
public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrLoadBalancers() {
return software.amazon.jsii.Kernel.get(this, "attrLoadBalancers", 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 getAddress() {
return software.amazon.jsii.Kernel.get(this, "address", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setAddress(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "address", value);
}
/**
*/
public void setAddress(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "address", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getAddressIpVersion() {
return software.amazon.jsii.Kernel.get(this, "addressIpVersion", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setAddressIpVersion(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "addressIpVersion", value);
}
/**
*/
public void setAddressIpVersion(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "addressIpVersion", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getAddressType() {
return software.amazon.jsii.Kernel.get(this, "addressType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setAddressType(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "addressType", value);
}
/**
*/
public void setAddressType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "addressType", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getInternetChargeType() {
return software.amazon.jsii.Kernel.get(this, "internetChargeType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setInternetChargeType(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "internetChargeType", value);
}
/**
*/
public void setInternetChargeType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "internetChargeType", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getLoadBalancerId() {
return software.amazon.jsii.Kernel.get(this, "loadBalancerId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setLoadBalancerId(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "loadBalancerId", value);
}
/**
*/
public void setLoadBalancerId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "loadBalancerId", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getLoadBalancerName() {
return software.amazon.jsii.Kernel.get(this, "loadBalancerName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setLoadBalancerName(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "loadBalancerName", value);
}
/**
*/
public void setLoadBalancerName(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "loadBalancerName", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getMasterZoneId() {
return software.amazon.jsii.Kernel.get(this, "masterZoneId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setMasterZoneId(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "masterZoneId", value);
}
/**
*/
public void setMasterZoneId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "masterZoneId", 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 getPaymentType() {
return software.amazon.jsii.Kernel.get(this, "paymentType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setPaymentType(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "paymentType", value);
}
/**
*/
public void setPaymentType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "paymentType", 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 getSlaveZoneId() {
return software.amazon.jsii.Kernel.get(this, "slaveZoneId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setSlaveZoneId(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "slaveZoneId", value);
}
/**
*/
public void setSlaveZoneId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "slaveZoneId", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getStatus() {
return software.amazon.jsii.Kernel.get(this, "status", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setStatus(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "status", value);
}
/**
*/
public void setStatus(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "status", 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);
}
/**
* A fluent builder for {@link com.aliyun.ros.cdk.slb.datasource.RosLoadBalancers}.
*/
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.slb.datasource.RosLoadBalancersProps.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.slb.datasource.RosLoadBalancersProps.Builder();
}
/**
* @return {@code this}
* @param address This parameter is required.
*/
public Builder address(final java.lang.String address) {
this.props.address(address);
return this;
}
/**
* @return {@code this}
* @param address This parameter is required.
*/
public Builder address(final com.aliyun.ros.cdk.core.IResolvable address) {
this.props.address(address);
return this;
}
/**
* @return {@code this}
* @param addressIpVersion This parameter is required.
*/
public Builder addressIpVersion(final java.lang.String addressIpVersion) {
this.props.addressIpVersion(addressIpVersion);
return this;
}
/**
* @return {@code this}
* @param addressIpVersion This parameter is required.
*/
public Builder addressIpVersion(final com.aliyun.ros.cdk.core.IResolvable addressIpVersion) {
this.props.addressIpVersion(addressIpVersion);
return this;
}
/**
* @return {@code this}
* @param addressType This parameter is required.
*/
public Builder addressType(final java.lang.String addressType) {
this.props.addressType(addressType);
return this;
}
/**
* @return {@code this}
* @param addressType This parameter is required.
*/
public Builder addressType(final com.aliyun.ros.cdk.core.IResolvable addressType) {
this.props.addressType(addressType);
return this;
}
/**
* @return {@code this}
* @param internetChargeType This parameter is required.
*/
public Builder internetChargeType(final java.lang.String internetChargeType) {
this.props.internetChargeType(internetChargeType);
return this;
}
/**
* @return {@code this}
* @param internetChargeType This parameter is required.
*/
public Builder internetChargeType(final com.aliyun.ros.cdk.core.IResolvable internetChargeType) {
this.props.internetChargeType(internetChargeType);
return this;
}
/**
* @return {@code this}
* @param loadBalancerId This parameter is required.
*/
public Builder loadBalancerId(final java.lang.String loadBalancerId) {
this.props.loadBalancerId(loadBalancerId);
return this;
}
/**
* @return {@code this}
* @param loadBalancerId This parameter is required.
*/
public Builder loadBalancerId(final com.aliyun.ros.cdk.core.IResolvable loadBalancerId) {
this.props.loadBalancerId(loadBalancerId);
return this;
}
/**
* @return {@code this}
* @param loadBalancerName This parameter is required.
*/
public Builder loadBalancerName(final java.lang.String loadBalancerName) {
this.props.loadBalancerName(loadBalancerName);
return this;
}
/**
* @return {@code this}
* @param loadBalancerName This parameter is required.
*/
public Builder loadBalancerName(final com.aliyun.ros.cdk.core.IResolvable loadBalancerName) {
this.props.loadBalancerName(loadBalancerName);
return this;
}
/**
* @return {@code this}
* @param masterZoneId This parameter is required.
*/
public Builder masterZoneId(final java.lang.String masterZoneId) {
this.props.masterZoneId(masterZoneId);
return this;
}
/**
* @return {@code this}
* @param masterZoneId This parameter is required.
*/
public Builder masterZoneId(final com.aliyun.ros.cdk.core.IResolvable masterZoneId) {
this.props.masterZoneId(masterZoneId);
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 paymentType This parameter is required.
*/
public Builder paymentType(final java.lang.String paymentType) {
this.props.paymentType(paymentType);
return this;
}
/**
* @return {@code this}
* @param paymentType This parameter is required.
*/
public Builder paymentType(final com.aliyun.ros.cdk.core.IResolvable paymentType) {
this.props.paymentType(paymentType);
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 slaveZoneId This parameter is required.
*/
public Builder slaveZoneId(final java.lang.String slaveZoneId) {
this.props.slaveZoneId(slaveZoneId);
return this;
}
/**
* @return {@code this}
* @param slaveZoneId This parameter is required.
*/
public Builder slaveZoneId(final com.aliyun.ros.cdk.core.IResolvable slaveZoneId) {
this.props.slaveZoneId(slaveZoneId);
return this;
}
/**
* @return {@code this}
* @param status This parameter is required.
*/
public Builder status(final java.lang.String status) {
this.props.status(status);
return this;
}
/**
* @return {@code this}
* @param status This parameter is required.
*/
public Builder status(final com.aliyun.ros.cdk.core.IResolvable status) {
this.props.status(status);
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 a newly built instance of {@link com.aliyun.ros.cdk.slb.datasource.RosLoadBalancers}.
*/
@Override
public com.aliyun.ros.cdk.slb.datasource.RosLoadBalancers build() {
return new com.aliyun.ros.cdk.slb.datasource.RosLoadBalancers(
this.scope,
this.id,
this.props.build(),
this.enableResourcePropertyConstraint
);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy