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

com.tencentcloudapi.monitor.v20180724.models.DescribePolicyConditionListCondition Maven / Gradle / Ivy

There is a newer version: 3.0.1034
Show newest version
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.monitor.v20180724.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribePolicyConditionListCondition extends AbstractModel {

    /**
    * Policy view name.
    */
    @SerializedName("PolicyViewName")
    @Expose
    private String PolicyViewName;

    /**
    * Event alarm conditions.
Note: This field may return null, indicating that no valid value was found.
    */
    @SerializedName("EventMetrics")
    @Expose
    private DescribePolicyConditionListEventMetric [] EventMetrics;

    /**
    * Whether to support multiple regions.
    */
    @SerializedName("IsSupportMultiRegion")
    @Expose
    private Boolean IsSupportMultiRegion;

    /**
    * Metric alarm conditions.
Note: This field may return null, indicating that no valid value was found.
    */
    @SerializedName("Metrics")
    @Expose
    private DescribePolicyConditionListMetric [] Metrics;

    /**
    * Policy type name.
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * Sorting ID.
    */
    @SerializedName("SortId")
    @Expose
    private Long SortId;

    /**
    * Whether to support default policies.
    */
    @SerializedName("SupportDefault")
    @Expose
    private Boolean SupportDefault;

    /**
    * List of regions that support this policy type.
Note: This field may return null, indicating that no valid value was found.
    */
    @SerializedName("SupportRegions")
    @Expose
    private String [] SupportRegions;

    /**
    * Deprecated information
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("DeprecatingInfo")
    @Expose
    private DescribePolicyConditionListResponseDeprecatingInfo DeprecatingInfo;

    /**
     * Get Policy view name. 
     * @return PolicyViewName Policy view name.
     */
    public String getPolicyViewName() {
        return this.PolicyViewName;
    }

    /**
     * Set Policy view name.
     * @param PolicyViewName Policy view name.
     */
    public void setPolicyViewName(String PolicyViewName) {
        this.PolicyViewName = PolicyViewName;
    }

    /**
     * Get Event alarm conditions.
Note: This field may return null, indicating that no valid value was found. 
     * @return EventMetrics Event alarm conditions.
Note: This field may return null, indicating that no valid value was found.
     */
    public DescribePolicyConditionListEventMetric [] getEventMetrics() {
        return this.EventMetrics;
    }

    /**
     * Set Event alarm conditions.
Note: This field may return null, indicating that no valid value was found.
     * @param EventMetrics Event alarm conditions.
Note: This field may return null, indicating that no valid value was found.
     */
    public void setEventMetrics(DescribePolicyConditionListEventMetric [] EventMetrics) {
        this.EventMetrics = EventMetrics;
    }

    /**
     * Get Whether to support multiple regions. 
     * @return IsSupportMultiRegion Whether to support multiple regions.
     */
    public Boolean getIsSupportMultiRegion() {
        return this.IsSupportMultiRegion;
    }

    /**
     * Set Whether to support multiple regions.
     * @param IsSupportMultiRegion Whether to support multiple regions.
     */
    public void setIsSupportMultiRegion(Boolean IsSupportMultiRegion) {
        this.IsSupportMultiRegion = IsSupportMultiRegion;
    }

    /**
     * Get Metric alarm conditions.
Note: This field may return null, indicating that no valid value was found. 
     * @return Metrics Metric alarm conditions.
Note: This field may return null, indicating that no valid value was found.
     */
    public DescribePolicyConditionListMetric [] getMetrics() {
        return this.Metrics;
    }

    /**
     * Set Metric alarm conditions.
Note: This field may return null, indicating that no valid value was found.
     * @param Metrics Metric alarm conditions.
Note: This field may return null, indicating that no valid value was found.
     */
    public void setMetrics(DescribePolicyConditionListMetric [] Metrics) {
        this.Metrics = Metrics;
    }

    /**
     * Get Policy type name. 
     * @return Name Policy type name.
     */
    public String getName() {
        return this.Name;
    }

    /**
     * Set Policy type name.
     * @param Name Policy type name.
     */
    public void setName(String Name) {
        this.Name = Name;
    }

    /**
     * Get Sorting ID. 
     * @return SortId Sorting ID.
     */
    public Long getSortId() {
        return this.SortId;
    }

    /**
     * Set Sorting ID.
     * @param SortId Sorting ID.
     */
    public void setSortId(Long SortId) {
        this.SortId = SortId;
    }

    /**
     * Get Whether to support default policies. 
     * @return SupportDefault Whether to support default policies.
     */
    public Boolean getSupportDefault() {
        return this.SupportDefault;
    }

    /**
     * Set Whether to support default policies.
     * @param SupportDefault Whether to support default policies.
     */
    public void setSupportDefault(Boolean SupportDefault) {
        this.SupportDefault = SupportDefault;
    }

    /**
     * Get List of regions that support this policy type.
Note: This field may return null, indicating that no valid value was found. 
     * @return SupportRegions List of regions that support this policy type.
Note: This field may return null, indicating that no valid value was found.
     */
    public String [] getSupportRegions() {
        return this.SupportRegions;
    }

    /**
     * Set List of regions that support this policy type.
Note: This field may return null, indicating that no valid value was found.
     * @param SupportRegions List of regions that support this policy type.
Note: This field may return null, indicating that no valid value was found.
     */
    public void setSupportRegions(String [] SupportRegions) {
        this.SupportRegions = SupportRegions;
    }

    /**
     * Get Deprecated information
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return DeprecatingInfo Deprecated information
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public DescribePolicyConditionListResponseDeprecatingInfo getDeprecatingInfo() {
        return this.DeprecatingInfo;
    }

    /**
     * Set Deprecated information
Note: This field may return null, indicating that no valid values can be obtained.
     * @param DeprecatingInfo Deprecated information
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setDeprecatingInfo(DescribePolicyConditionListResponseDeprecatingInfo DeprecatingInfo) {
        this.DeprecatingInfo = DeprecatingInfo;
    }

    public DescribePolicyConditionListCondition() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public DescribePolicyConditionListCondition(DescribePolicyConditionListCondition source) {
        if (source.PolicyViewName != null) {
            this.PolicyViewName = new String(source.PolicyViewName);
        }
        if (source.EventMetrics != null) {
            this.EventMetrics = new DescribePolicyConditionListEventMetric[source.EventMetrics.length];
            for (int i = 0; i < source.EventMetrics.length; i++) {
                this.EventMetrics[i] = new DescribePolicyConditionListEventMetric(source.EventMetrics[i]);
            }
        }
        if (source.IsSupportMultiRegion != null) {
            this.IsSupportMultiRegion = new Boolean(source.IsSupportMultiRegion);
        }
        if (source.Metrics != null) {
            this.Metrics = new DescribePolicyConditionListMetric[source.Metrics.length];
            for (int i = 0; i < source.Metrics.length; i++) {
                this.Metrics[i] = new DescribePolicyConditionListMetric(source.Metrics[i]);
            }
        }
        if (source.Name != null) {
            this.Name = new String(source.Name);
        }
        if (source.SortId != null) {
            this.SortId = new Long(source.SortId);
        }
        if (source.SupportDefault != null) {
            this.SupportDefault = new Boolean(source.SupportDefault);
        }
        if (source.SupportRegions != null) {
            this.SupportRegions = new String[source.SupportRegions.length];
            for (int i = 0; i < source.SupportRegions.length; i++) {
                this.SupportRegions[i] = new String(source.SupportRegions[i]);
            }
        }
        if (source.DeprecatingInfo != null) {
            this.DeprecatingInfo = new DescribePolicyConditionListResponseDeprecatingInfo(source.DeprecatingInfo);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "PolicyViewName", this.PolicyViewName);
        this.setParamArrayObj(map, prefix + "EventMetrics.", this.EventMetrics);
        this.setParamSimple(map, prefix + "IsSupportMultiRegion", this.IsSupportMultiRegion);
        this.setParamArrayObj(map, prefix + "Metrics.", this.Metrics);
        this.setParamSimple(map, prefix + "Name", this.Name);
        this.setParamSimple(map, prefix + "SortId", this.SortId);
        this.setParamSimple(map, prefix + "SupportDefault", this.SupportDefault);
        this.setParamArraySimple(map, prefix + "SupportRegions.", this.SupportRegions);
        this.setParamObj(map, prefix + "DeprecatingInfo.", this.DeprecatingInfo);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy