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

com.pulumi.alicloud.arms.outputs.SyntheticTaskMonitorConfWebsite Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.alicloud.arms.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SyntheticTaskMonitorConfWebsite {
    /**
     * @return Whether to support automatic scrolling screen, loading page.
     * - 0 (default): No
     *   1: Yes.
     * 
     */
    private @Nullable Integer automaticScrolling;
    /**
     * @return Custom header.
     * - 0 (default): Off
     * - 1: Modify the first package
     * - 2: Modify all packages.
     * 
     */
    private @Nullable Integer customHeader;
    /**
     * @return Custom header, in JSON Map format.
     * 
     */
    private @Nullable Map customHeaderContent;
    /**
     * @return Whether to disable caching.
     * - 0: not disabled
     * - 1 (default): Disabled.
     * 
     */
    private @Nullable Integer disableCache;
    /**
     * @return The Accept-Encoding field is used to determine whether to Accept compressed files. 0-do not disable, 1-disable, the default is 0.
     * 
     */
    private @Nullable Integer disableCompression;
    /**
     * @return When a domain name (such as www.aliyun.com) is resolved, if the resolved IP address or CNAME is not in the DNS hijacking white list, the user will fail to access or return a target IP address that is not Aliyun. If the IP or CNAME in the resolution result is in the DNS white list, it will be determined that DNS hijacking has not occurred.  Fill in the format: Domain name: matching rules. Match rules support IP, IP wildcard, subnet mask, and CNAME. Multiple match rules can be filled in. Multiple match rules are separated by vertical bars (|). For example, www.aliyun.com:203.0.3.55 | 203.3.44.67 indicates that all other IP addresses under the www.aliyun.com domain except 203.0.3.55 and 203.3.44.67 are hijacked.
     * 
     */
    private @Nullable String dnsHijackWhitelist;
    /**
     * @return If an element configured in the element blacklist appears during page loading, the element is not requested to be loaded.
     * 
     */
    private @Nullable String elementBlacklist;
    /**
     * @return Whether to filter invalid IP parameters. 0: filter, 1: do not filter. The default value is 0.
     * 
     */
    private @Nullable Integer filterInvalidIp;
    /**
     * @return Identify elements: Set the total number of elements on the Browse page.
     * 
     */
    private @Nullable Integer flowHijackJumpTimes;
    /**
     * @return Hijacking ID: Set the matching key information. Enter the hijacking keyword or key element, with an asterisk (*) allowed.
     * 
     */
    private @Nullable String flowHijackLogo;
    /**
     * @return Whether to ignore certificate errors during certificate verification in SSL Handshake and continue browsing. 0-do not ignore, 1-ignore. The default value is 1.
     * 
     */
    private @Nullable Integer ignoreCertificateError;
    /**
     * @return Monitoring timeout, in ms. Not required, 20000 by default.
     * 
     */
    private @Nullable Integer monitorTimeout;
    /**
     * @return Monitoring the page appears to be tampered with elements other than the domain settings that belong to the page. Common manifestations are pop-up advertisements, floating advertisements, jumps, etc.  Fill in the format: Domain name: Element. You can fill multiple elements separated by a vertical bar (|). For example, www.aliyun.com:|/cc/bb/a.gif |/vv/bb/cc.jpg indicates that all the other elements of the www.aliyun.com domain name except the basic document,/cc/bb/a.gif, and/vv/bb/cc.jpg are tampered.
     * 
     */
    private @Nullable String pageTamper;
    /**
     * @return When redirection occurs, whether to continue browsing, 0-No, 1-Yes, the default is 1.
     * 
     */
    private @Nullable Integer redirection;
    /**
     * @return The slow element threshold, in ms, is 5000 by default and can be selected from 1 to 300000ms.
     * 
     */
    private @Nullable Integer slowElementThreshold;
    /**
     * @return The target URL.
     * 
     */
    private String targetUrl;
    /**
     * @return The verification string is an arbitrary string in the source code of the monitoring page. If the source code returned by the client contains any of the blacklisted strings, 650 error is returned. Multiple strings are separated by a vertical bar (|).
     * 
     */
    private @Nullable String verifyStringBlacklist;
    /**
     * @return The verification string is an arbitrary string in the source code of the monitoring page. The source code returned by the client must contain all the strings in the whitelist. Otherwise, 650 error is returned. Multiple strings are separated by a vertical bar (|).
     * 
     */
    private @Nullable String verifyStringWhitelist;
    /**
     * @return The maximum waiting time, in ms, is 5000 by default and can be selected from 5000 ms to 300000ms.
     * 
     */
    private @Nullable Integer waitCompletionTime;

    private SyntheticTaskMonitorConfWebsite() {}
    /**
     * @return Whether to support automatic scrolling screen, loading page.
     * - 0 (default): No
     *   1: Yes.
     * 
     */
    public Optional automaticScrolling() {
        return Optional.ofNullable(this.automaticScrolling);
    }
    /**
     * @return Custom header.
     * - 0 (default): Off
     * - 1: Modify the first package
     * - 2: Modify all packages.
     * 
     */
    public Optional customHeader() {
        return Optional.ofNullable(this.customHeader);
    }
    /**
     * @return Custom header, in JSON Map format.
     * 
     */
    public Map customHeaderContent() {
        return this.customHeaderContent == null ? Map.of() : this.customHeaderContent;
    }
    /**
     * @return Whether to disable caching.
     * - 0: not disabled
     * - 1 (default): Disabled.
     * 
     */
    public Optional disableCache() {
        return Optional.ofNullable(this.disableCache);
    }
    /**
     * @return The Accept-Encoding field is used to determine whether to Accept compressed files. 0-do not disable, 1-disable, the default is 0.
     * 
     */
    public Optional disableCompression() {
        return Optional.ofNullable(this.disableCompression);
    }
    /**
     * @return When a domain name (such as www.aliyun.com) is resolved, if the resolved IP address or CNAME is not in the DNS hijacking white list, the user will fail to access or return a target IP address that is not Aliyun. If the IP or CNAME in the resolution result is in the DNS white list, it will be determined that DNS hijacking has not occurred.  Fill in the format: Domain name: matching rules. Match rules support IP, IP wildcard, subnet mask, and CNAME. Multiple match rules can be filled in. Multiple match rules are separated by vertical bars (|). For example, www.aliyun.com:203.0.3.55 | 203.3.44.67 indicates that all other IP addresses under the www.aliyun.com domain except 203.0.3.55 and 203.3.44.67 are hijacked.
     * 
     */
    public Optional dnsHijackWhitelist() {
        return Optional.ofNullable(this.dnsHijackWhitelist);
    }
    /**
     * @return If an element configured in the element blacklist appears during page loading, the element is not requested to be loaded.
     * 
     */
    public Optional elementBlacklist() {
        return Optional.ofNullable(this.elementBlacklist);
    }
    /**
     * @return Whether to filter invalid IP parameters. 0: filter, 1: do not filter. The default value is 0.
     * 
     */
    public Optional filterInvalidIp() {
        return Optional.ofNullable(this.filterInvalidIp);
    }
    /**
     * @return Identify elements: Set the total number of elements on the Browse page.
     * 
     */
    public Optional flowHijackJumpTimes() {
        return Optional.ofNullable(this.flowHijackJumpTimes);
    }
    /**
     * @return Hijacking ID: Set the matching key information. Enter the hijacking keyword or key element, with an asterisk (*) allowed.
     * 
     */
    public Optional flowHijackLogo() {
        return Optional.ofNullable(this.flowHijackLogo);
    }
    /**
     * @return Whether to ignore certificate errors during certificate verification in SSL Handshake and continue browsing. 0-do not ignore, 1-ignore. The default value is 1.
     * 
     */
    public Optional ignoreCertificateError() {
        return Optional.ofNullable(this.ignoreCertificateError);
    }
    /**
     * @return Monitoring timeout, in ms. Not required, 20000 by default.
     * 
     */
    public Optional monitorTimeout() {
        return Optional.ofNullable(this.monitorTimeout);
    }
    /**
     * @return Monitoring the page appears to be tampered with elements other than the domain settings that belong to the page. Common manifestations are pop-up advertisements, floating advertisements, jumps, etc.  Fill in the format: Domain name: Element. You can fill multiple elements separated by a vertical bar (|). For example, www.aliyun.com:|/cc/bb/a.gif |/vv/bb/cc.jpg indicates that all the other elements of the www.aliyun.com domain name except the basic document,/cc/bb/a.gif, and/vv/bb/cc.jpg are tampered.
     * 
     */
    public Optional pageTamper() {
        return Optional.ofNullable(this.pageTamper);
    }
    /**
     * @return When redirection occurs, whether to continue browsing, 0-No, 1-Yes, the default is 1.
     * 
     */
    public Optional redirection() {
        return Optional.ofNullable(this.redirection);
    }
    /**
     * @return The slow element threshold, in ms, is 5000 by default and can be selected from 1 to 300000ms.
     * 
     */
    public Optional slowElementThreshold() {
        return Optional.ofNullable(this.slowElementThreshold);
    }
    /**
     * @return The target URL.
     * 
     */
    public String targetUrl() {
        return this.targetUrl;
    }
    /**
     * @return The verification string is an arbitrary string in the source code of the monitoring page. If the source code returned by the client contains any of the blacklisted strings, 650 error is returned. Multiple strings are separated by a vertical bar (|).
     * 
     */
    public Optional verifyStringBlacklist() {
        return Optional.ofNullable(this.verifyStringBlacklist);
    }
    /**
     * @return The verification string is an arbitrary string in the source code of the monitoring page. The source code returned by the client must contain all the strings in the whitelist. Otherwise, 650 error is returned. Multiple strings are separated by a vertical bar (|).
     * 
     */
    public Optional verifyStringWhitelist() {
        return Optional.ofNullable(this.verifyStringWhitelist);
    }
    /**
     * @return The maximum waiting time, in ms, is 5000 by default and can be selected from 5000 ms to 300000ms.
     * 
     */
    public Optional waitCompletionTime() {
        return Optional.ofNullable(this.waitCompletionTime);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(SyntheticTaskMonitorConfWebsite defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer automaticScrolling;
        private @Nullable Integer customHeader;
        private @Nullable Map customHeaderContent;
        private @Nullable Integer disableCache;
        private @Nullable Integer disableCompression;
        private @Nullable String dnsHijackWhitelist;
        private @Nullable String elementBlacklist;
        private @Nullable Integer filterInvalidIp;
        private @Nullable Integer flowHijackJumpTimes;
        private @Nullable String flowHijackLogo;
        private @Nullable Integer ignoreCertificateError;
        private @Nullable Integer monitorTimeout;
        private @Nullable String pageTamper;
        private @Nullable Integer redirection;
        private @Nullable Integer slowElementThreshold;
        private String targetUrl;
        private @Nullable String verifyStringBlacklist;
        private @Nullable String verifyStringWhitelist;
        private @Nullable Integer waitCompletionTime;
        public Builder() {}
        public Builder(SyntheticTaskMonitorConfWebsite defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.automaticScrolling = defaults.automaticScrolling;
    	      this.customHeader = defaults.customHeader;
    	      this.customHeaderContent = defaults.customHeaderContent;
    	      this.disableCache = defaults.disableCache;
    	      this.disableCompression = defaults.disableCompression;
    	      this.dnsHijackWhitelist = defaults.dnsHijackWhitelist;
    	      this.elementBlacklist = defaults.elementBlacklist;
    	      this.filterInvalidIp = defaults.filterInvalidIp;
    	      this.flowHijackJumpTimes = defaults.flowHijackJumpTimes;
    	      this.flowHijackLogo = defaults.flowHijackLogo;
    	      this.ignoreCertificateError = defaults.ignoreCertificateError;
    	      this.monitorTimeout = defaults.monitorTimeout;
    	      this.pageTamper = defaults.pageTamper;
    	      this.redirection = defaults.redirection;
    	      this.slowElementThreshold = defaults.slowElementThreshold;
    	      this.targetUrl = defaults.targetUrl;
    	      this.verifyStringBlacklist = defaults.verifyStringBlacklist;
    	      this.verifyStringWhitelist = defaults.verifyStringWhitelist;
    	      this.waitCompletionTime = defaults.waitCompletionTime;
        }

        @CustomType.Setter
        public Builder automaticScrolling(@Nullable Integer automaticScrolling) {

            this.automaticScrolling = automaticScrolling;
            return this;
        }
        @CustomType.Setter
        public Builder customHeader(@Nullable Integer customHeader) {

            this.customHeader = customHeader;
            return this;
        }
        @CustomType.Setter
        public Builder customHeaderContent(@Nullable Map customHeaderContent) {

            this.customHeaderContent = customHeaderContent;
            return this;
        }
        @CustomType.Setter
        public Builder disableCache(@Nullable Integer disableCache) {

            this.disableCache = disableCache;
            return this;
        }
        @CustomType.Setter
        public Builder disableCompression(@Nullable Integer disableCompression) {

            this.disableCompression = disableCompression;
            return this;
        }
        @CustomType.Setter
        public Builder dnsHijackWhitelist(@Nullable String dnsHijackWhitelist) {

            this.dnsHijackWhitelist = dnsHijackWhitelist;
            return this;
        }
        @CustomType.Setter
        public Builder elementBlacklist(@Nullable String elementBlacklist) {

            this.elementBlacklist = elementBlacklist;
            return this;
        }
        @CustomType.Setter
        public Builder filterInvalidIp(@Nullable Integer filterInvalidIp) {

            this.filterInvalidIp = filterInvalidIp;
            return this;
        }
        @CustomType.Setter
        public Builder flowHijackJumpTimes(@Nullable Integer flowHijackJumpTimes) {

            this.flowHijackJumpTimes = flowHijackJumpTimes;
            return this;
        }
        @CustomType.Setter
        public Builder flowHijackLogo(@Nullable String flowHijackLogo) {

            this.flowHijackLogo = flowHijackLogo;
            return this;
        }
        @CustomType.Setter
        public Builder ignoreCertificateError(@Nullable Integer ignoreCertificateError) {

            this.ignoreCertificateError = ignoreCertificateError;
            return this;
        }
        @CustomType.Setter
        public Builder monitorTimeout(@Nullable Integer monitorTimeout) {

            this.monitorTimeout = monitorTimeout;
            return this;
        }
        @CustomType.Setter
        public Builder pageTamper(@Nullable String pageTamper) {

            this.pageTamper = pageTamper;
            return this;
        }
        @CustomType.Setter
        public Builder redirection(@Nullable Integer redirection) {

            this.redirection = redirection;
            return this;
        }
        @CustomType.Setter
        public Builder slowElementThreshold(@Nullable Integer slowElementThreshold) {

            this.slowElementThreshold = slowElementThreshold;
            return this;
        }
        @CustomType.Setter
        public Builder targetUrl(String targetUrl) {
            if (targetUrl == null) {
              throw new MissingRequiredPropertyException("SyntheticTaskMonitorConfWebsite", "targetUrl");
            }
            this.targetUrl = targetUrl;
            return this;
        }
        @CustomType.Setter
        public Builder verifyStringBlacklist(@Nullable String verifyStringBlacklist) {

            this.verifyStringBlacklist = verifyStringBlacklist;
            return this;
        }
        @CustomType.Setter
        public Builder verifyStringWhitelist(@Nullable String verifyStringWhitelist) {

            this.verifyStringWhitelist = verifyStringWhitelist;
            return this;
        }
        @CustomType.Setter
        public Builder waitCompletionTime(@Nullable Integer waitCompletionTime) {

            this.waitCompletionTime = waitCompletionTime;
            return this;
        }
        public SyntheticTaskMonitorConfWebsite build() {
            final var _resultValue = new SyntheticTaskMonitorConfWebsite();
            _resultValue.automaticScrolling = automaticScrolling;
            _resultValue.customHeader = customHeader;
            _resultValue.customHeaderContent = customHeaderContent;
            _resultValue.disableCache = disableCache;
            _resultValue.disableCompression = disableCompression;
            _resultValue.dnsHijackWhitelist = dnsHijackWhitelist;
            _resultValue.elementBlacklist = elementBlacklist;
            _resultValue.filterInvalidIp = filterInvalidIp;
            _resultValue.flowHijackJumpTimes = flowHijackJumpTimes;
            _resultValue.flowHijackLogo = flowHijackLogo;
            _resultValue.ignoreCertificateError = ignoreCertificateError;
            _resultValue.monitorTimeout = monitorTimeout;
            _resultValue.pageTamper = pageTamper;
            _resultValue.redirection = redirection;
            _resultValue.slowElementThreshold = slowElementThreshold;
            _resultValue.targetUrl = targetUrl;
            _resultValue.verifyStringBlacklist = verifyStringBlacklist;
            _resultValue.verifyStringWhitelist = verifyStringWhitelist;
            _resultValue.waitCompletionTime = waitCompletionTime;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy