com.tencentcloudapi.as.v20180419.models.ModifyNotificationConfigurationRequest 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 ModifyNotificationConfigurationRequest extends AbstractModel{
/**
* ID of the notification to be modified.
*/
@SerializedName("AutoScalingNotificationId")
@Expose
private String AutoScalingNotificationId;
/**
* 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;
/**
* Get ID of the notification to be modified.
* @return AutoScalingNotificationId ID of the notification to be modified.
*/
public String getAutoScalingNotificationId() {
return this.AutoScalingNotificationId;
}
/**
* Set ID of the notification to be modified.
* @param AutoScalingNotificationId ID of the notification to be modified.
*/
public void setAutoScalingNotificationId(String AutoScalingNotificationId) {
this.AutoScalingNotificationId = AutoScalingNotificationId;
}
/**
* 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;
}
public ModifyNotificationConfigurationRequest() {
}
/**
* 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 ModifyNotificationConfigurationRequest(ModifyNotificationConfigurationRequest source) {
if (source.AutoScalingNotificationId != null) {
this.AutoScalingNotificationId = new String(source.AutoScalingNotificationId);
}
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]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "AutoScalingNotificationId", this.AutoScalingNotificationId);
this.setParamArraySimple(map, prefix + "NotificationTypes.", this.NotificationTypes);
this.setParamArraySimple(map, prefix + "NotificationUserGroupIds.", this.NotificationUserGroupIds);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy