com.aliyun.ros.cdk.bastionhost.RosHost Maven / Gradle / Ivy
package com.aliyun.ros.cdk.bastionhost;
/**
* This class is a base encapsulation around the ROS resource type ALIYUN::BastionHost::Host
, which is used to create a host for O&M in a bastion host.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:04.890Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.bastionhost.$Module.class, fqn = "@alicloud/ros-cdk-bastionhost.RosHost")
public class RosHost extends com.aliyun.ros.cdk.core.RosResource {
protected RosHost(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected RosHost(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
ROS_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.aliyun.ros.cdk.bastionhost.RosHost.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 RosHost(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.bastionhost.RosHostProps 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 getAttrHostId() {
return software.amazon.jsii.Kernel.get(this, "attrHostId", 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.Object getActiveAddressType() {
return software.amazon.jsii.Kernel.get(this, "activeAddressType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setActiveAddressType(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "activeAddressType", java.util.Objects.requireNonNull(value, "activeAddressType is required"));
}
/**
*/
public void setActiveAddressType(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "activeAddressType", java.util.Objects.requireNonNull(value, "activeAddressType is required"));
}
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.NotNull java.lang.Object getHostName() {
return software.amazon.jsii.Kernel.get(this, "hostName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setHostName(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "hostName", java.util.Objects.requireNonNull(value, "hostName is required"));
}
/**
*/
public void setHostName(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "hostName", java.util.Objects.requireNonNull(value, "hostName is required"));
}
/**
*/
public @org.jetbrains.annotations.NotNull java.lang.Object getInstanceId() {
return software.amazon.jsii.Kernel.get(this, "instanceId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setInstanceId(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "instanceId", java.util.Objects.requireNonNull(value, "instanceId is required"));
}
/**
*/
public void setInstanceId(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "instanceId", java.util.Objects.requireNonNull(value, "instanceId is required"));
}
/**
*/
public @org.jetbrains.annotations.NotNull java.lang.Object getOsType() {
return software.amazon.jsii.Kernel.get(this, "osType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setOsType(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "osType", java.util.Objects.requireNonNull(value, "osType is required"));
}
/**
*/
public void setOsType(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "osType", java.util.Objects.requireNonNull(value, "osType is required"));
}
/**
*/
public @org.jetbrains.annotations.NotNull java.lang.Object getSource() {
return software.amazon.jsii.Kernel.get(this, "source", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setSource(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "source", java.util.Objects.requireNonNull(value, "source is required"));
}
/**
*/
public void setSource(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "source", java.util.Objects.requireNonNull(value, "source is required"));
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getComment() {
return software.amazon.jsii.Kernel.get(this, "comment", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setComment(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "comment", value);
}
/**
*/
public void setComment(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "comment", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getHostPrivateAddress() {
return software.amazon.jsii.Kernel.get(this, "hostPrivateAddress", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setHostPrivateAddress(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "hostPrivateAddress", value);
}
/**
*/
public void setHostPrivateAddress(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "hostPrivateAddress", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getHostPublicAddress() {
return software.amazon.jsii.Kernel.get(this, "hostPublicAddress", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setHostPublicAddress(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "hostPublicAddress", value);
}
/**
*/
public void setHostPublicAddress(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "hostPublicAddress", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getInstanceRegionId() {
return software.amazon.jsii.Kernel.get(this, "instanceRegionId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setInstanceRegionId(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "instanceRegionId", value);
}
/**
*/
public void setInstanceRegionId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "instanceRegionId", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getSourceInstanceId() {
return software.amazon.jsii.Kernel.get(this, "sourceInstanceId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setSourceInstanceId(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "sourceInstanceId", value);
}
/**
*/
public void setSourceInstanceId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "sourceInstanceId", value);
}
/**
* A fluent builder for {@link com.aliyun.ros.cdk.bastionhost.RosHost}.
*/
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.bastionhost.RosHostProps.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.bastionhost.RosHostProps.Builder();
}
/**
* @return {@code this}
* @param activeAddressType This parameter is required.
*/
public Builder activeAddressType(final java.lang.String activeAddressType) {
this.props.activeAddressType(activeAddressType);
return this;
}
/**
* @return {@code this}
* @param activeAddressType This parameter is required.
*/
public Builder activeAddressType(final com.aliyun.ros.cdk.core.IResolvable activeAddressType) {
this.props.activeAddressType(activeAddressType);
return this;
}
/**
* @return {@code this}
* @param hostName This parameter is required.
*/
public Builder hostName(final java.lang.String hostName) {
this.props.hostName(hostName);
return this;
}
/**
* @return {@code this}
* @param hostName This parameter is required.
*/
public Builder hostName(final com.aliyun.ros.cdk.core.IResolvable hostName) {
this.props.hostName(hostName);
return this;
}
/**
* @return {@code this}
* @param instanceId This parameter is required.
*/
public Builder instanceId(final java.lang.String instanceId) {
this.props.instanceId(instanceId);
return this;
}
/**
* @return {@code this}
* @param instanceId This parameter is required.
*/
public Builder instanceId(final com.aliyun.ros.cdk.core.IResolvable instanceId) {
this.props.instanceId(instanceId);
return this;
}
/**
* @return {@code this}
* @param osType This parameter is required.
*/
public Builder osType(final java.lang.String osType) {
this.props.osType(osType);
return this;
}
/**
* @return {@code this}
* @param osType This parameter is required.
*/
public Builder osType(final com.aliyun.ros.cdk.core.IResolvable osType) {
this.props.osType(osType);
return this;
}
/**
* @return {@code this}
* @param source This parameter is required.
*/
public Builder source(final java.lang.String source) {
this.props.source(source);
return this;
}
/**
* @return {@code this}
* @param source This parameter is required.
*/
public Builder source(final com.aliyun.ros.cdk.core.IResolvable source) {
this.props.source(source);
return this;
}
/**
* @return {@code this}
* @param comment This parameter is required.
*/
public Builder comment(final java.lang.String comment) {
this.props.comment(comment);
return this;
}
/**
* @return {@code this}
* @param comment This parameter is required.
*/
public Builder comment(final com.aliyun.ros.cdk.core.IResolvable comment) {
this.props.comment(comment);
return this;
}
/**
* @return {@code this}
* @param hostPrivateAddress This parameter is required.
*/
public Builder hostPrivateAddress(final java.lang.String hostPrivateAddress) {
this.props.hostPrivateAddress(hostPrivateAddress);
return this;
}
/**
* @return {@code this}
* @param hostPrivateAddress This parameter is required.
*/
public Builder hostPrivateAddress(final com.aliyun.ros.cdk.core.IResolvable hostPrivateAddress) {
this.props.hostPrivateAddress(hostPrivateAddress);
return this;
}
/**
* @return {@code this}
* @param hostPublicAddress This parameter is required.
*/
public Builder hostPublicAddress(final java.lang.String hostPublicAddress) {
this.props.hostPublicAddress(hostPublicAddress);
return this;
}
/**
* @return {@code this}
* @param hostPublicAddress This parameter is required.
*/
public Builder hostPublicAddress(final com.aliyun.ros.cdk.core.IResolvable hostPublicAddress) {
this.props.hostPublicAddress(hostPublicAddress);
return this;
}
/**
* @return {@code this}
* @param instanceRegionId This parameter is required.
*/
public Builder instanceRegionId(final java.lang.String instanceRegionId) {
this.props.instanceRegionId(instanceRegionId);
return this;
}
/**
* @return {@code this}
* @param instanceRegionId This parameter is required.
*/
public Builder instanceRegionId(final com.aliyun.ros.cdk.core.IResolvable instanceRegionId) {
this.props.instanceRegionId(instanceRegionId);
return this;
}
/**
* @return {@code this}
* @param sourceInstanceId This parameter is required.
*/
public Builder sourceInstanceId(final java.lang.String sourceInstanceId) {
this.props.sourceInstanceId(sourceInstanceId);
return this;
}
/**
* @return {@code this}
* @param sourceInstanceId This parameter is required.
*/
public Builder sourceInstanceId(final com.aliyun.ros.cdk.core.IResolvable sourceInstanceId) {
this.props.sourceInstanceId(sourceInstanceId);
return this;
}
/**
* @return a newly built instance of {@link com.aliyun.ros.cdk.bastionhost.RosHost}.
*/
@Override
public com.aliyun.ros.cdk.bastionhost.RosHost build() {
return new com.aliyun.ros.cdk.bastionhost.RosHost(
this.scope,
this.id,
this.props.build(),
this.enableResourcePropertyConstraint
);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy