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

com.aliyun.ros.cdk.cloudfw.ControlPolicy 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 encapsulates and extends the ROS resource type ALIYUN::CLOUDFW::ControlPolicy, which is used to add an access control policy.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:05.370Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.cloudfw.$Module.class, fqn = "@alicloud/ros-cdk-cloudfw.ControlPolicy")
public class ControlPolicy extends com.aliyun.ros.cdk.core.Resource {

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

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

    /**
     * Param scope - scope in which this resource is defined Param id    - scoped id of the resource Param props - resource properties.
     * 

* @param scope This parameter is required. * @param id This parameter is required. * @param props This parameter is required. * @param enableResourcePropertyConstraint */ public ControlPolicy(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.ControlPolicyProps props, final @org.jetbrains.annotations.Nullable 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"), enableResourcePropertyConstraint }); } /** * Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties. *

* @param scope This parameter is required. * @param id This parameter is required. * @param props This parameter is required. */ public ControlPolicy(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.ControlPolicyProps props) { 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") }); } /** * Attribute AclUuid: Security access control ID that uniquely identifies the policy. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrAclUuid() { return software.amazon.jsii.Kernel.get(this, "attrAclUuid", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } protected @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)); } protected 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")); } protected @org.jetbrains.annotations.NotNull java.lang.String getId() { return software.amazon.jsii.Kernel.get(this, "id", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } protected void setId(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "id", java.util.Objects.requireNonNull(value, "id is required")); } protected @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.cloudfw.ControlPolicyProps getProps() { return software.amazon.jsii.Kernel.get(this, "props", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.cloudfw.ControlPolicyProps.class)); } protected void setProps(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.cloudfw.ControlPolicyProps value) { software.amazon.jsii.Kernel.set(this, "props", java.util.Objects.requireNonNull(value, "props is required")); } protected @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct getScope() { return software.amazon.jsii.Kernel.get(this, "scope", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.Construct.class)); } protected void setScope(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct value) { software.amazon.jsii.Kernel.set(this, "scope", java.util.Objects.requireNonNull(value, "scope is required")); } /** * A fluent builder for {@link com.aliyun.ros.cdk.cloudfw.ControlPolicy}. */ public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope This parameter is required. * @param id This parameter is required. * @param enableResourcePropertyConstraint */ 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); } /** * @return a new instance of {@link Builder}. * @param scope This parameter is required. * @param id This parameter is required. */ public static Builder create(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id) { return new Builder(scope, id, null); } 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.ControlPolicyProps.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.ControlPolicyProps.Builder(); } /** * Property aclAction: Traffic access control policy set by the cloud of a firewall. *

* accept: Release * drop: rejected * log: Observation *

* @return {@code this} * @param aclAction Property aclAction: Traffic access control policy set by the cloud of a firewall. This parameter is required. */ public Builder aclAction(final java.lang.String aclAction) { this.props.aclAction(aclAction); return this; } /** * Property aclAction: Traffic access control policy set by the cloud of a firewall. *

* accept: Release * drop: rejected * log: Observation *

* @return {@code this} * @param aclAction Property aclAction: Traffic access control policy set by the cloud of a firewall. This parameter is required. */ public Builder aclAction(final com.aliyun.ros.cdk.core.IResolvable aclAction) { this.props.aclAction(aclAction); return this; } /** * Property description: Security access control policy description information. *

* @return {@code this} * @param description Property description: Security access control policy description information. This parameter is required. */ public Builder description(final java.lang.String description) { this.props.description(description); return this; } /** * Property description: Security access control policy description information. *

* @return {@code this} * @param description Property description: Security access control policy description information. This parameter is required. */ public Builder description(final com.aliyun.ros.cdk.core.IResolvable description) { this.props.description(description); return this; } /** * Property destination: Security Access Control destination address policy. *

* When DestinationType is net, Destination purpose CIDR. For example: 1.2.3.4/24 * When DestinationType as a group, Destination for the purpose of the address book name. For example: db_group * When DestinationType for the domain, Destination for the purpose of a domain name. For example:. * Aliyuncs.com * When DestinationType as location, Destination area for the purpose (see below position encoding specific regions). For example: [ "BJ11", "ZB"] *

* @return {@code this} * @param destination Property destination: Security Access Control destination address policy. This parameter is required. */ public Builder destination(final java.lang.String destination) { this.props.destination(destination); return this; } /** * Property destination: Security Access Control destination address policy. *

* When DestinationType is net, Destination purpose CIDR. For example: 1.2.3.4/24 * When DestinationType as a group, Destination for the purpose of the address book name. For example: db_group * When DestinationType for the domain, Destination for the purpose of a domain name. For example:. * Aliyuncs.com * When DestinationType as location, Destination area for the purpose (see below position encoding specific regions). For example: [ "BJ11", "ZB"] *

* @return {@code this} * @param destination Property destination: Security Access Control destination address policy. This parameter is required. */ public Builder destination(final com.aliyun.ros.cdk.core.IResolvable destination) { this.props.destination(destination); return this; } /** * Property destinationType: Security Access Control destination address type of policy. *

* net: Destination network segment (CIDR) * group: destination address book * domain: The purpose domain * location: The purpose area *

* @return {@code this} * @param destinationType Property destinationType: Security Access Control destination address type of policy. This parameter is required. */ public Builder destinationType(final java.lang.String destinationType) { this.props.destinationType(destinationType); return this; } /** * Property destinationType: Security Access Control destination address type of policy. *

* net: Destination network segment (CIDR) * group: destination address book * domain: The purpose domain * location: The purpose area *

* @return {@code this} * @param destinationType Property destinationType: Security Access Control destination address type of policy. This parameter is required. */ public Builder destinationType(final com.aliyun.ros.cdk.core.IResolvable destinationType) { this.props.destinationType(destinationType); return this; } /** * Property direction: Security access control traffic direction policies. *

* in: internal and external traffic access control * out: within the flow of external access control *

* @return {@code this} * @param direction Property direction: Security access control traffic direction policies. This parameter is required. */ public Builder direction(final java.lang.String direction) { this.props.direction(direction); return this; } /** * Property direction: Security access control traffic direction policies. *

* in: internal and external traffic access control * out: within the flow of external access control *

* @return {@code this} * @param direction Property direction: Security access control traffic direction policies. This parameter is required. */ public Builder direction(final com.aliyun.ros.cdk.core.IResolvable direction) { this.props.direction(direction); return this; } /** * Property newOrder: Security access control priority policy in force. *

* Priority number increments sequentially from 1, lower the priority number, the higher the priority. * Description -1 indicates the lowest priority. *

* @return {@code this} * @param newOrder Property newOrder: Security access control priority policy in force. This parameter is required. */ public Builder newOrder(final java.lang.Number newOrder) { this.props.newOrder(newOrder); return this; } /** * Property newOrder: Security access control priority policy in force. *

* Priority number increments sequentially from 1, lower the priority number, the higher the priority. * Description -1 indicates the lowest priority. *

* @return {@code this} * @param newOrder Property newOrder: Security access control priority policy in force. This parameter is required. */ public Builder newOrder(final com.aliyun.ros.cdk.core.IResolvable newOrder) { this.props.newOrder(newOrder); return this; } /** * Property proto: The type of security protocol for traffic access in the security access control policy. *

* Can be set to ANY when you are not sure of the specific protocol type. * Allowed values: ANY, TCP, UDP, ICMP *

* @return {@code this} * @param proto Property proto: The type of security protocol for traffic access in the security access control policy. This parameter is required. */ public Builder proto(final java.lang.String proto) { this.props.proto(proto); return this; } /** * Property proto: The type of security protocol for traffic access in the security access control policy. *

* Can be set to ANY when you are not sure of the specific protocol type. * Allowed values: ANY, TCP, UDP, ICMP *

* @return {@code this} * @param proto Property proto: The type of security protocol for traffic access in the security access control policy. This parameter is required. */ public Builder proto(final com.aliyun.ros.cdk.core.IResolvable proto) { this.props.proto(proto); return this; } /** * Property source: Security access control source address policy. *

* When SourceType for the net, Source is the source CIDR. For example: 1.2.3.0/24 * When SourceType as a group, Source name for the source address book. For example: db_group * When SourceType as location, Source source region (specific region position encoder see below). For example, [ "BJ11", "ZB"] *

* @return {@code this} * @param source Property source: Security access control source address policy. This parameter is required. */ public Builder source(final java.lang.String source) { this.props.source(source); return this; } /** * Property source: Security access control source address policy. *

* When SourceType for the net, Source is the source CIDR. For example: 1.2.3.0/24 * When SourceType as a group, Source name for the source address book. For example: db_group * When SourceType as location, Source source region (specific region position encoder see below). For example, [ "BJ11", "ZB"] *

* @return {@code this} * @param source Property source: Security access control source address policy. This parameter is required. */ public Builder source(final com.aliyun.ros.cdk.core.IResolvable source) { this.props.source(source); return this; } /** * Property sourceType: Security access control source address type of policy. *

* net: Source segment (CIDR) * group: source address book * location: the source area *

* @return {@code this} * @param sourceType Property sourceType: Security access control source address type of policy. This parameter is required. */ public Builder sourceType(final java.lang.String sourceType) { this.props.sourceType(sourceType); return this; } /** * Property sourceType: Security access control source address type of policy. *

* net: Source segment (CIDR) * group: source address book * location: the source area *

* @return {@code this} * @param sourceType Property sourceType: Security access control source address type of policy. This parameter is required. */ public Builder sourceType(final com.aliyun.ros.cdk.core.IResolvable sourceType) { this.props.sourceType(sourceType); return this; } /** * Property applicationName: Application types supported by the security policy. *

* The following types of applications are supported: ANY, HTTP, HTTPS, MySQL, SMTP, SMTPS, RDP, VNC, SSH, Redis, MQTT, MongoDB, Memcache, SSL * NOTE ANY indicates that the policy is applied to all types of applications. * Either ApplicationNameList or ApplicationName must be passed, not both. *

* @return {@code this} * @param applicationName Property applicationName: Application types supported by the security policy. This parameter is required. */ public Builder applicationName(final java.lang.String applicationName) { this.props.applicationName(applicationName); return this; } /** * Property applicationName: Application types supported by the security policy. *

* The following types of applications are supported: ANY, HTTP, HTTPS, MySQL, SMTP, SMTPS, RDP, VNC, SSH, Redis, MQTT, MongoDB, Memcache, SSL * NOTE ANY indicates that the policy is applied to all types of applications. * Either ApplicationNameList or ApplicationName must be passed, not both. *

* @return {@code this} * @param applicationName Property applicationName: Application types supported by the security policy. This parameter is required. */ public Builder applicationName(final com.aliyun.ros.cdk.core.IResolvable applicationName) { this.props.applicationName(applicationName); return this; } /** * Property applicationNameList: List of application types supported by the access control policy. *

* @return {@code this} * @param applicationNameList Property applicationNameList: List of application types supported by the access control policy. This parameter is required. */ public Builder applicationNameList(final com.aliyun.ros.cdk.core.IResolvable applicationNameList) { this.props.applicationNameList(applicationNameList); return this; } /** * Property applicationNameList: List of application types supported by the access control policy. *

* @return {@code this} * @param applicationNameList Property applicationNameList: List of application types supported by the access control policy. This parameter is required. */ public Builder applicationNameList(final java.util.List applicationNameList) { this.props.applicationNameList(applicationNameList); return this; } /** * Property destPort: Security access control policy access traffic destination port. *

* Note When DestPortType to port, set the item. *

* @return {@code this} * @param destPort Property destPort: Security access control policy access traffic destination port. This parameter is required. */ public Builder destPort(final java.lang.String destPort) { this.props.destPort(destPort); return this; } /** * Property destPort: Security access control policy access traffic destination port. *

* Note When DestPortType to port, set the item. *

* @return {@code this} * @param destPort Property destPort: Security access control policy access traffic destination port. This parameter is required. */ public Builder destPort(final com.aliyun.ros.cdk.core.IResolvable destPort) { this.props.destPort(destPort); return this; } /** * Property destPortGroup: Security access control policy access traffic destination port address book name. *

* Description DestPortType is group, set the item. *

* @return {@code this} * @param destPortGroup Property destPortGroup: Security access control policy access traffic destination port address book name. This parameter is required. */ public Builder destPortGroup(final java.lang.String destPortGroup) { this.props.destPortGroup(destPortGroup); return this; } /** * Property destPortGroup: Security access control policy access traffic destination port address book name. *

* Description DestPortType is group, set the item. *

* @return {@code this} * @param destPortGroup Property destPortGroup: Security access control policy access traffic destination port address book name. This parameter is required. */ public Builder destPortGroup(final com.aliyun.ros.cdk.core.IResolvable destPortGroup) { this.props.destPortGroup(destPortGroup); return this; } /** * Property destPortType: Security access control policy access destination port traffic type. *

* port: Port * group: port address book *

* @return {@code this} * @param destPortType Property destPortType: Security access control policy access destination port traffic type. This parameter is required. */ public Builder destPortType(final java.lang.String destPortType) { this.props.destPortType(destPortType); return this; } /** * Property destPortType: Security access control policy access destination port traffic type. *

* port: Port * group: port address book *

* @return {@code this} * @param destPortType Property destPortType: Security access control policy access destination port traffic type. This parameter is required. */ public Builder destPortType(final com.aliyun.ros.cdk.core.IResolvable destPortType) { this.props.destPortType(destPortType); return this; } /** * Property domainResolveType: The domain name resolution method of the access control policy. *

* Value: *

*

    *
  • FQDN: Based on FQDN
  • *
  • DNS: Based on DNS dynamic resolution
  • *
  • FQDN_AND_DNS: Based on FQDN and DNS dynamic resolution
  • *
*

* @return {@code this} * @param domainResolveType Property domainResolveType: The domain name resolution method of the access control policy. This parameter is required. */ public Builder domainResolveType(final java.lang.String domainResolveType) { this.props.domainResolveType(domainResolveType); return this; } /** * Property domainResolveType: The domain name resolution method of the access control policy. *

* Value: *

*

    *
  • FQDN: Based on FQDN
  • *
  • DNS: Based on DNS dynamic resolution
  • *
  • FQDN_AND_DNS: Based on FQDN and DNS dynamic resolution
  • *
*

* @return {@code this} * @param domainResolveType Property domainResolveType: The domain name resolution method of the access control policy. This parameter is required. */ public Builder domainResolveType(final com.aliyun.ros.cdk.core.IResolvable domainResolveType) { this.props.domainResolveType(domainResolveType); return this; } /** * Property endTime: The end time of the policy validity period for an access control policy. *

* It is represented in a second-level timestamp format. It must be the whole hour or half hour, and at least half an hour greater than the start time. * Notes: When RepeatType is Permanent, EndTime is empty. When RepeatType is None, Daily, Weekly, Monthly, EndTime must havea value, and you need to set the end time. *

* @return {@code this} * @param endTime Property endTime: The end time of the policy validity period for an access control policy. This parameter is required. */ public Builder endTime(final java.lang.Number endTime) { this.props.endTime(endTime); return this; } /** * Property endTime: The end time of the policy validity period for an access control policy. *

* It is represented in a second-level timestamp format. It must be the whole hour or half hour, and at least half an hour greater than the start time. * Notes: When RepeatType is Permanent, EndTime is empty. When RepeatType is None, Daily, Weekly, Monthly, EndTime must havea value, and you need to set the end time. *

* @return {@code this} * @param endTime Property endTime: The end time of the policy validity period for an access control policy. This parameter is required. */ public Builder endTime(final com.aliyun.ros.cdk.core.IResolvable endTime) { this.props.endTime(endTime); return this; } /** * Property ipVersion: IP version. *

* Valid values: *

*

    *
  • 4: IPv4
  • *
  • 6: IPv6
  • *
*

* @return {@code this} * @param ipVersion Property ipVersion: IP version. This parameter is required. */ public Builder ipVersion(final java.lang.String ipVersion) { this.props.ipVersion(ipVersion); return this; } /** * Property ipVersion: IP version. *

* Valid values: *

*

    *
  • 4: IPv4
  • *
  • 6: IPv6
  • *
*

* @return {@code this} * @param ipVersion Property ipVersion: IP version. This parameter is required. */ public Builder ipVersion(final com.aliyun.ros.cdk.core.IResolvable ipVersion) { this.props.ipVersion(ipVersion); return this; } /** * Property regionId: Region ID. *

* Default to cn-hangzhou. *

* @return {@code this} * @param regionId Property regionId: Region ID. This parameter is required. */ public Builder regionId(final java.lang.String regionId) { this.props.regionId(regionId); return this; } /** * Property regionId: Region ID. *

* Default to cn-hangzhou. *

* @return {@code this} * @param regionId Property regionId: Region ID. This parameter is required. */ public Builder regionId(final com.aliyun.ros.cdk.core.IResolvable regionId) { this.props.regionId(regionId); return this; } /** * Property release: The enabled state of the access control policy. *

* This policy is enabled by default when it is created. Valid values: *

*

    *
  • true: Access control policy is enabled
  • *
  • false: Access control policy is not enabled
  • *
*

* @return {@code this} * @param release Property release: The enabled state of the access control policy. This parameter is required. */ public Builder release(final java.lang.Boolean release) { this.props.release(release); return this; } /** * Property release: The enabled state of the access control policy. *

* This policy is enabled by default when it is created. Valid values: *

*

    *
  • true: Access control policy is enabled
  • *
  • false: Access control policy is not enabled
  • *
*

* @return {@code this} * @param release Property release: The enabled state of the access control policy. This parameter is required. */ public Builder release(final com.aliyun.ros.cdk.core.IResolvable release) { this.props.release(release); return this; } /** * Property repeatDays: A collection of repeated dates of policy validity for an access control policy. *

* When RepeatType is Permanent, None, and Daily, RepeatDays is an empty set. For example: [] * When RepeatType is Weekly, RepeatDays cannot be empty. Example: [0, 6] * Notes: When RepeatType is set to Weekly, RepeatDays is not allowed. * When RepeatType is Monthly, RepeatDays cannot be empty. Examples: [1, 31] * Notes: When RepeatType is set to Monthly, RepeatDays is not allowed to repeat. *

* @return {@code this} * @param repeatDays Property repeatDays: A collection of repeated dates of policy validity for an access control policy. This parameter is required. */ public Builder repeatDays(final com.aliyun.ros.cdk.core.IResolvable repeatDays) { this.props.repeatDays(repeatDays); return this; } /** * Property repeatDays: A collection of repeated dates of policy validity for an access control policy. *

* When RepeatType is Permanent, None, and Daily, RepeatDays is an empty set. For example: [] * When RepeatType is Weekly, RepeatDays cannot be empty. Example: [0, 6] * Notes: When RepeatType is set to Weekly, RepeatDays is not allowed. * When RepeatType is Monthly, RepeatDays cannot be empty. Examples: [1, 31] * Notes: When RepeatType is set to Monthly, RepeatDays is not allowed to repeat. *

* @return {@code this} * @param repeatDays Property repeatDays: A collection of repeated dates of policy validity for an access control policy. This parameter is required. */ public Builder repeatDays(final java.util.List repeatDays) { this.props.repeatDays(repeatDays); return this; } /** * Property repeatEndTime: The repeated end time of the policy validity period for an access control policy. *

* For example: 08:00, must be the hour or half time, and less than the repeat start time at least half an hour. * Notes: When RepeatType is Permanent and None, RepeatEndTime is empty. When RepeatType is Daily, Weekly, or Monthly, RepeatEndTime musthave a value, and you need to set the repeat end time. *

* @return {@code this} * @param repeatEndTime Property repeatEndTime: The repeated end time of the policy validity period for an access control policy. This parameter is required. */ public Builder repeatEndTime(final java.lang.String repeatEndTime) { this.props.repeatEndTime(repeatEndTime); return this; } /** * Property repeatEndTime: The repeated end time of the policy validity period for an access control policy. *

* For example: 08:00, must be the hour or half time, and less than the repeat start time at least half an hour. * Notes: When RepeatType is Permanent and None, RepeatEndTime is empty. When RepeatType is Daily, Weekly, or Monthly, RepeatEndTime musthave a value, and you need to set the repeat end time. *

* @return {@code this} * @param repeatEndTime Property repeatEndTime: The repeated end time of the policy validity period for an access control policy. This parameter is required. */ public Builder repeatEndTime(final com.aliyun.ros.cdk.core.IResolvable repeatEndTime) { this.props.repeatEndTime(repeatEndTime); return this; } /** * Property repeatStartTime: The repeated start time of the policy validity period for an access control policy. *

* For example: 08:00, must be the hour or half time, and less than the repeat end time at least half an hour. * Notes: When RepeatType is Permanent and None, RepeatStartTime is empty. When RepeatType is Daily, Weekly, or Monthly, RepeatStartTime must have a value, and you need to set the repeat start time. *

* @return {@code this} * @param repeatStartTime Property repeatStartTime: The repeated start time of the policy validity period for an access control policy. This parameter is required. */ public Builder repeatStartTime(final java.lang.String repeatStartTime) { this.props.repeatStartTime(repeatStartTime); return this; } /** * Property repeatStartTime: The repeated start time of the policy validity period for an access control policy. *

* For example: 08:00, must be the hour or half time, and less than the repeat end time at least half an hour. * Notes: When RepeatType is Permanent and None, RepeatStartTime is empty. When RepeatType is Daily, Weekly, or Monthly, RepeatStartTime must have a value, and you need to set the repeat start time. *

* @return {@code this} * @param repeatStartTime Property repeatStartTime: The repeated start time of the policy validity period for an access control policy. This parameter is required. */ public Builder repeatStartTime(final com.aliyun.ros.cdk.core.IResolvable repeatStartTime) { this.props.repeatStartTime(repeatStartTime); return this; } /** * Property repeatType: The repetition type of the policy validity period for an access control policy. *

* Valid values: *

*

    *
  • Permanent (default)
  • *
  • None
  • *
  • Daily
  • *
  • Weekly
  • *
  • Monthly.
  • *
*

* @return {@code this} * @param repeatType Property repeatType: The repetition type of the policy validity period for an access control policy. This parameter is required. */ public Builder repeatType(final java.lang.String repeatType) { this.props.repeatType(repeatType); return this; } /** * Property repeatType: The repetition type of the policy validity period for an access control policy. *

* Valid values: *

*

    *
  • Permanent (default)
  • *
  • None
  • *
  • Daily
  • *
  • Weekly
  • *
  • Monthly.
  • *
*

* @return {@code this} * @param repeatType Property repeatType: The repetition type of the policy validity period for an access control policy. This parameter is required. */ public Builder repeatType(final com.aliyun.ros.cdk.core.IResolvable repeatType) { this.props.repeatType(repeatType); return this; } /** * Property startTime: The start time of the policy validity period for an access control policy. *

* It is represented in a second-level timestamp format. It must be the whole hour or half hour, and at least half an hour less than the end time. * Notes: When RepeatType is Permanent, StartTime is empty. When RepeatType is None, Daily, Weekly, Monthly, StartTime must have a value, and you need to set the start time. *

* @return {@code this} * @param startTime Property startTime: The start time of the policy validity period for an access control policy. This parameter is required. */ public Builder startTime(final java.lang.Number startTime) { this.props.startTime(startTime); return this; } /** * Property startTime: The start time of the policy validity period for an access control policy. *

* It is represented in a second-level timestamp format. It must be the whole hour or half hour, and at least half an hour less than the end time. * Notes: When RepeatType is Permanent, StartTime is empty. When RepeatType is None, Daily, Weekly, Monthly, StartTime must have a value, and you need to set the start time. *

* @return {@code this} * @param startTime Property startTime: The start time of the policy validity period for an access control policy. This parameter is required. */ public Builder startTime(final com.aliyun.ros.cdk.core.IResolvable startTime) { this.props.startTime(startTime); return this; } /** * @return a newly built instance of {@link com.aliyun.ros.cdk.cloudfw.ControlPolicy}. */ @Override public com.aliyun.ros.cdk.cloudfw.ControlPolicy build() { return new com.aliyun.ros.cdk.cloudfw.ControlPolicy( this.scope, this.id, this.props.build(), this.enableResourcePropertyConstraint ); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy