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

com.tencentcloudapi.as.v20180419.models.CreateNotificationConfigurationRequest Maven / Gradle / Ivy

/*
 * 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.as.v20180419.models;

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

public class CreateNotificationConfigurationRequest extends AbstractModel{

    /**
    * Auto scaling group ID.
    */
    @SerializedName("AutoScalingGroupId")
    @Expose
    private String AutoScalingGroupId;

    /**
    * Notification type, i.e., the set of types of notifications to be subscribed to. Value range:
  • SCALE_OUT_SUCCESSFUL: scale-out succeeded
  • SCALE_OUT_FAILED: scale-out failed
  • SCALE_IN_SUCCESSFUL: scale-in succeeded
  • SCALE_IN_FAILED: scale-in failed
  • REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL: unhealthy instance replacement succeeded
  • REPLACE_UNHEALTHY_INSTANCE_FAILED: unhealthy instance replacement failed
  • */ @SerializedName("NotificationTypes") @Expose private String [] NotificationTypes; /** * Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. */ @SerializedName("NotificationUserGroupIds") @Expose private String [] NotificationUserGroupIds; /** * Notification receiver type. Valid values:
  • USER_GROUP:User group
  • CMQ_QUEUE:CMQ queue
  • CMQ_TOPIC:CMQ topic
  • TDMQ_CMQ_TOPIC:TDMQ CMQ topic
  • TDMQ_CMQ_QUEUE:TDMQ CMQ queue Default value: `USER_GROUP`. */ @SerializedName("TargetType") @Expose private String TargetType; /** * CMQ queue name. This parameter is required when `TargetType` is `CMQ_QUEUE` or `TDMQ_CMQ_QUEUE`. */ @SerializedName("QueueName") @Expose private String QueueName; /** * CMQ topic name. This parameter is required when `TargetType` is `CMQ_TOPIC` or `TDMQ_CMQ_TOPIC`. */ @SerializedName("TopicName") @Expose private String TopicName; /** * Get Auto scaling group ID. * @return AutoScalingGroupId Auto scaling group ID. */ public String getAutoScalingGroupId() { return this.AutoScalingGroupId; } /** * Set Auto scaling group ID. * @param AutoScalingGroupId Auto scaling group ID. */ public void setAutoScalingGroupId(String AutoScalingGroupId) { this.AutoScalingGroupId = AutoScalingGroupId; } /** * Get Notification type, i.e., the set of types of notifications to be subscribed to. Value range:
  • SCALE_OUT_SUCCESSFUL: scale-out succeeded
  • SCALE_OUT_FAILED: scale-out failed
  • SCALE_IN_SUCCESSFUL: scale-in succeeded
  • SCALE_IN_FAILED: scale-in failed
  • REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL: unhealthy instance replacement succeeded
  • REPLACE_UNHEALTHY_INSTANCE_FAILED: unhealthy instance replacement failed
  • * @return NotificationTypes Notification type, i.e., the set of types of notifications to be subscribed to. Value range:
  • SCALE_OUT_SUCCESSFUL: scale-out succeeded
  • SCALE_OUT_FAILED: scale-out failed
  • SCALE_IN_SUCCESSFUL: scale-in succeeded
  • SCALE_IN_FAILED: scale-in failed
  • REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL: unhealthy instance replacement succeeded
  • REPLACE_UNHEALTHY_INSTANCE_FAILED: unhealthy instance replacement failed
  • */ public String [] getNotificationTypes() { return this.NotificationTypes; } /** * Set Notification type, i.e., the set of types of notifications to be subscribed to. Value range:
  • SCALE_OUT_SUCCESSFUL: scale-out succeeded
  • SCALE_OUT_FAILED: scale-out failed
  • SCALE_IN_SUCCESSFUL: scale-in succeeded
  • SCALE_IN_FAILED: scale-in failed
  • REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL: unhealthy instance replacement succeeded
  • REPLACE_UNHEALTHY_INSTANCE_FAILED: unhealthy instance replacement failed
  • * @param NotificationTypes Notification type, i.e., the set of types of notifications to be subscribed to. Value range:
  • SCALE_OUT_SUCCESSFUL: scale-out succeeded
  • SCALE_OUT_FAILED: scale-out failed
  • SCALE_IN_SUCCESSFUL: scale-in succeeded
  • SCALE_IN_FAILED: scale-in failed
  • REPLACE_UNHEALTHY_INSTANCE_SUCCESSFUL: unhealthy instance replacement succeeded
  • REPLACE_UNHEALTHY_INSTANCE_FAILED: unhealthy instance replacement failed
  • */ public void setNotificationTypes(String [] NotificationTypes) { this.NotificationTypes = NotificationTypes; } /** * Get Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. * @return NotificationUserGroupIds Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. */ public String [] getNotificationUserGroupIds() { return this.NotificationUserGroupIds; } /** * Set Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. * @param NotificationUserGroupIds Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API. */ public void setNotificationUserGroupIds(String [] NotificationUserGroupIds) { this.NotificationUserGroupIds = NotificationUserGroupIds; } /** * Get Notification receiver type. Valid values:
  • USER_GROUP:User group
  • CMQ_QUEUE:CMQ queue
  • CMQ_TOPIC:CMQ topic
  • TDMQ_CMQ_TOPIC:TDMQ CMQ topic
  • TDMQ_CMQ_QUEUE:TDMQ CMQ queue Default value: `USER_GROUP`. * @return TargetType Notification receiver type. Valid values:
  • USER_GROUP:User group
  • CMQ_QUEUE:CMQ queue
  • CMQ_TOPIC:CMQ topic
  • TDMQ_CMQ_TOPIC:TDMQ CMQ topic
  • TDMQ_CMQ_QUEUE:TDMQ CMQ queue Default value: `USER_GROUP`. */ public String getTargetType() { return this.TargetType; } /** * Set Notification receiver type. Valid values:
  • USER_GROUP:User group
  • CMQ_QUEUE:CMQ queue
  • CMQ_TOPIC:CMQ topic
  • TDMQ_CMQ_TOPIC:TDMQ CMQ topic
  • TDMQ_CMQ_QUEUE:TDMQ CMQ queue Default value: `USER_GROUP`. * @param TargetType Notification receiver type. Valid values:
  • USER_GROUP:User group
  • CMQ_QUEUE:CMQ queue
  • CMQ_TOPIC:CMQ topic
  • TDMQ_CMQ_TOPIC:TDMQ CMQ topic
  • TDMQ_CMQ_QUEUE:TDMQ CMQ queue Default value: `USER_GROUP`. */ public void setTargetType(String TargetType) { this.TargetType = TargetType; } /** * Get CMQ queue name. This parameter is required when `TargetType` is `CMQ_QUEUE` or `TDMQ_CMQ_QUEUE`. * @return QueueName CMQ queue name. This parameter is required when `TargetType` is `CMQ_QUEUE` or `TDMQ_CMQ_QUEUE`. */ public String getQueueName() { return this.QueueName; } /** * Set CMQ queue name. This parameter is required when `TargetType` is `CMQ_QUEUE` or `TDMQ_CMQ_QUEUE`. * @param QueueName CMQ queue name. This parameter is required when `TargetType` is `CMQ_QUEUE` or `TDMQ_CMQ_QUEUE`. */ public void setQueueName(String QueueName) { this.QueueName = QueueName; } /** * Get CMQ topic name. This parameter is required when `TargetType` is `CMQ_TOPIC` or `TDMQ_CMQ_TOPIC`. * @return TopicName CMQ topic name. This parameter is required when `TargetType` is `CMQ_TOPIC` or `TDMQ_CMQ_TOPIC`. */ public String getTopicName() { return this.TopicName; } /** * Set CMQ topic name. This parameter is required when `TargetType` is `CMQ_TOPIC` or `TDMQ_CMQ_TOPIC`. * @param TopicName CMQ topic name. This parameter is required when `TargetType` is `CMQ_TOPIC` or `TDMQ_CMQ_TOPIC`. */ public void setTopicName(String TopicName) { this.TopicName = TopicName; } public CreateNotificationConfigurationRequest() { } /** * 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 CreateNotificationConfigurationRequest(CreateNotificationConfigurationRequest source) { if (source.AutoScalingGroupId != null) { this.AutoScalingGroupId = new String(source.AutoScalingGroupId); } if (source.NotificationTypes != null) { this.NotificationTypes = new String[source.NotificationTypes.length]; for (int i = 0; i < source.NotificationTypes.length; i++) { this.NotificationTypes[i] = new String(source.NotificationTypes[i]); } } if (source.NotificationUserGroupIds != null) { this.NotificationUserGroupIds = new String[source.NotificationUserGroupIds.length]; for (int i = 0; i < source.NotificationUserGroupIds.length; i++) { this.NotificationUserGroupIds[i] = new String(source.NotificationUserGroupIds[i]); } } if (source.TargetType != null) { this.TargetType = new String(source.TargetType); } if (source.QueueName != null) { this.QueueName = new String(source.QueueName); } if (source.TopicName != null) { this.TopicName = new String(source.TopicName); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "AutoScalingGroupId", this.AutoScalingGroupId); this.setParamArraySimple(map, prefix + "NotificationTypes.", this.NotificationTypes); this.setParamArraySimple(map, prefix + "NotificationUserGroupIds.", this.NotificationUserGroupIds); this.setParamSimple(map, prefix + "TargetType", this.TargetType); this.setParamSimple(map, prefix + "QueueName", this.QueueName); this.setParamSimple(map, prefix + "TopicName", this.TopicName); } }




  • © 2015 - 2025 Weber Informatics LLC | Privacy Policy