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

com.aliyun.ros.cdk.cloudfw.RosAddressBook Maven / Gradle / Ivy

Go to download

Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com

There is a newer version: 1.4.0
Show newest version
package com.aliyun.ros.cdk.cloudfw;

/**
 * This class is a base encapsulation around the ROS resource type ALIYUN::CLOUDFW::AddressBook, which is used to create an address book that is used for access control.
 * 

* Address books include IP address books, Elastic Compute Service (ECS) tag-based address books, port address books, and domain address books. */ @javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:05.410Z") @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.cloudfw.$Module.class, fqn = "@alicloud/ros-cdk-cloudfw.RosAddressBook") public class RosAddressBook extends com.aliyun.ros.cdk.core.RosResource { protected RosAddressBook(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected RosAddressBook(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } static { ROS_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.aliyun.ros.cdk.cloudfw.RosAddressBook.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 RosAddressBook(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.cloudfw.RosAddressBookProps 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 getAttrGroupUuid() { return software.amazon.jsii.Kernel.get(this, "attrGroupUuid", 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 getDescription() { return software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setDescription(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "description", java.util.Objects.requireNonNull(value, "description is required")); } /** */ public void setDescription(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "description", java.util.Objects.requireNonNull(value, "description 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 getGroupName() { return software.amazon.jsii.Kernel.get(this, "groupName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setGroupName(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "groupName", java.util.Objects.requireNonNull(value, "groupName is required")); } /** */ public void setGroupName(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "groupName", java.util.Objects.requireNonNull(value, "groupName is required")); } /** */ public @org.jetbrains.annotations.NotNull java.lang.Object getGroupType() { return software.amazon.jsii.Kernel.get(this, "groupType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setGroupType(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "groupType", java.util.Objects.requireNonNull(value, "groupType is required")); } /** */ public void setGroupType(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "groupType", java.util.Objects.requireNonNull(value, "groupType is required")); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getAddressList() { return software.amazon.jsii.Kernel.get(this, "addressList", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setAddressList(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "addressList", value); } /** */ public void setAddressList(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "addressList", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getAutoAddTagEcs() { return software.amazon.jsii.Kernel.get(this, "autoAddTagEcs", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setAutoAddTagEcs(final @org.jetbrains.annotations.Nullable java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "autoAddTagEcs", value); } /** */ public void setAutoAddTagEcs(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "autoAddTagEcs", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getRegionId() { return software.amazon.jsii.Kernel.get(this, "regionId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setRegionId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "regionId", value); } /** */ public void setRegionId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "regionId", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getTagList() { return software.amazon.jsii.Kernel.get(this, "tagList", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setTagList(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "tagList", value); } /** */ public void setTagList(final @org.jetbrains.annotations.Nullable java.util.List value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { for (int __idx_ac66f0 = 0; __idx_ac66f0 < value.size(); __idx_ac66f0++) { final java.lang.Object __val_ac66f0 = value.get(__idx_ac66f0); if ( !(__val_ac66f0 instanceof com.aliyun.ros.cdk.core.IResolvable) && !(__val_ac66f0 instanceof com.aliyun.ros.cdk.cloudfw.RosAddressBook.TagListProperty) && !(__val_ac66f0.getClass().equals(software.amazon.jsii.JsiiObject.class)) ) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value").append(".get(").append(__idx_ac66f0).append(")") .append(" to be one of: com.aliyun.ros.cdk.core.IResolvable, com.aliyun.ros.cdk.cloudfw.RosAddressBook.TagListProperty; received ") .append(__val_ac66f0.getClass()).toString()); } } } software.amazon.jsii.Kernel.set(this, "tagList", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getTagRelation() { return software.amazon.jsii.Kernel.get(this, "tagRelation", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setTagRelation(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "tagRelation", value); } /** */ public void setTagRelation(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "tagRelation", value); } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.cloudfw.$Module.class, fqn = "@alicloud/ros-cdk-cloudfw.RosAddressBook.TagListProperty") @software.amazon.jsii.Jsii.Proxy(TagListProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface TagListProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getTagKey() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getTagValue() { return null; } /** * @return a {@link Builder} of {@link TagListProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link TagListProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object tagKey; java.lang.Object tagValue; /** * Sets the value of {@link TagListProperty#getTagKey} * @param tagKey the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder tagKey(java.lang.String tagKey) { this.tagKey = tagKey; return this; } /** * Sets the value of {@link TagListProperty#getTagKey} * @param tagKey the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder tagKey(com.aliyun.ros.cdk.core.IResolvable tagKey) { this.tagKey = tagKey; return this; } /** * Sets the value of {@link TagListProperty#getTagValue} * @param tagValue the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder tagValue(java.lang.String tagValue) { this.tagValue = tagValue; return this; } /** * Sets the value of {@link TagListProperty#getTagValue} * @param tagValue the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder tagValue(com.aliyun.ros.cdk.core.IResolvable tagValue) { this.tagValue = tagValue; return this; } /** * Builds the configured instance. * @return a new instance of {@link TagListProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public TagListProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link TagListProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TagListProperty { private final java.lang.Object tagKey; private final java.lang.Object tagValue; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.tagKey = software.amazon.jsii.Kernel.get(this, "tagKey", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.tagValue = software.amazon.jsii.Kernel.get(this, "tagValue", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.tagKey = builder.tagKey; this.tagValue = builder.tagValue; } @Override public final java.lang.Object getTagKey() { return this.tagKey; } @Override public final java.lang.Object getTagValue() { return this.tagValue; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getTagKey() != null) { data.set("tagKey", om.valueToTree(this.getTagKey())); } if (this.getTagValue() != null) { data.set("tagValue", om.valueToTree(this.getTagValue())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-cloudfw.RosAddressBook.TagListProperty")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TagListProperty.Jsii$Proxy that = (TagListProperty.Jsii$Proxy) o; if (this.tagKey != null ? !this.tagKey.equals(that.tagKey) : that.tagKey != null) return false; return this.tagValue != null ? this.tagValue.equals(that.tagValue) : that.tagValue == null; } @Override public final int hashCode() { int result = this.tagKey != null ? this.tagKey.hashCode() : 0; result = 31 * result + (this.tagValue != null ? this.tagValue.hashCode() : 0); return result; } } } /** * A fluent builder for {@link com.aliyun.ros.cdk.cloudfw.RosAddressBook}. */ 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.cloudfw.RosAddressBookProps.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.cloudfw.RosAddressBookProps.Builder(); } /** * @return {@code this} * @param description This parameter is required. */ public Builder description(final java.lang.String description) { this.props.description(description); return this; } /** * @return {@code this} * @param description This parameter is required. */ public Builder description(final com.aliyun.ros.cdk.core.IResolvable description) { this.props.description(description); return this; } /** * @return {@code this} * @param groupName This parameter is required. */ public Builder groupName(final java.lang.String groupName) { this.props.groupName(groupName); return this; } /** * @return {@code this} * @param groupName This parameter is required. */ public Builder groupName(final com.aliyun.ros.cdk.core.IResolvable groupName) { this.props.groupName(groupName); return this; } /** * @return {@code this} * @param groupType This parameter is required. */ public Builder groupType(final java.lang.String groupType) { this.props.groupType(groupType); return this; } /** * @return {@code this} * @param groupType This parameter is required. */ public Builder groupType(final com.aliyun.ros.cdk.core.IResolvable groupType) { this.props.groupType(groupType); return this; } /** * @return {@code this} * @param addressList This parameter is required. */ public Builder addressList(final java.lang.String addressList) { this.props.addressList(addressList); return this; } /** * @return {@code this} * @param addressList This parameter is required. */ public Builder addressList(final com.aliyun.ros.cdk.core.IResolvable addressList) { this.props.addressList(addressList); return this; } /** * @return {@code this} * @param autoAddTagEcs This parameter is required. */ public Builder autoAddTagEcs(final java.lang.Boolean autoAddTagEcs) { this.props.autoAddTagEcs(autoAddTagEcs); return this; } /** * @return {@code this} * @param autoAddTagEcs This parameter is required. */ public Builder autoAddTagEcs(final com.aliyun.ros.cdk.core.IResolvable autoAddTagEcs) { this.props.autoAddTagEcs(autoAddTagEcs); return this; } /** * @return {@code this} * @param regionId This parameter is required. */ public Builder regionId(final java.lang.String regionId) { this.props.regionId(regionId); return this; } /** * @return {@code this} * @param regionId This parameter is required. */ public Builder regionId(final com.aliyun.ros.cdk.core.IResolvable regionId) { this.props.regionId(regionId); return this; } /** * @return {@code this} * @param tagList This parameter is required. */ public Builder tagList(final com.aliyun.ros.cdk.core.IResolvable tagList) { this.props.tagList(tagList); return this; } /** * @return {@code this} * @param tagList This parameter is required. */ public Builder tagList(final java.util.List tagList) { this.props.tagList(tagList); return this; } /** * @return {@code this} * @param tagRelation This parameter is required. */ public Builder tagRelation(final java.lang.String tagRelation) { this.props.tagRelation(tagRelation); return this; } /** * @return {@code this} * @param tagRelation This parameter is required. */ public Builder tagRelation(final com.aliyun.ros.cdk.core.IResolvable tagRelation) { this.props.tagRelation(tagRelation); return this; } /** * @return a newly built instance of {@link com.aliyun.ros.cdk.cloudfw.RosAddressBook}. */ @Override public com.aliyun.ros.cdk.cloudfw.RosAddressBook build() { return new com.aliyun.ros.cdk.cloudfw.RosAddressBook( this.scope, this.id, this.props.build(), this.enableResourcePropertyConstraint ); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy