com.tencentcloudapi.cdb.v20170320.models.RoGroupAttr Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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.cdb.v20170320.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class RoGroupAttr extends AbstractModel{
/**
* RO group name.
*/
@SerializedName("RoGroupName")
@Expose
private String RoGroupName;
/**
* Maximum delay threshold for RO instances in seconds. Minimum value: 1. Please note that this value will take effect only if an instance removal policy is enabled in the RO group.
*/
@SerializedName("RoMaxDelayTime")
@Expose
private Long RoMaxDelayTime;
/**
* Whether to enable instance removal. Valid values: 1 (enabled), 0 (not enabled). Please note that if instance removal is enabled, the delay threshold parameter (`RoMaxDelayTime`) must be set.
*/
@SerializedName("RoOfflineDelay")
@Expose
private Long RoOfflineDelay;
/**
* Minimum number of instances to be retained, which can be set to any value less than or equal to the number of RO instances in the RO group. Please note that if this value is set to be greater than the number of RO instances, no removal will be performed, and if it is set to 0, all instances with an excessive delay will be removed.
*/
@SerializedName("MinRoInGroup")
@Expose
private Long MinRoInGroup;
/**
* Weighting mode. Supported values include `system` (automatically assigned by the system) and `custom` (defined by user). Please note that if the `custom` mode is selected, the RO instance weight configuration parameter (RoWeightValues) must be set.
*/
@SerializedName("WeightMode")
@Expose
private String WeightMode;
/**
* Get RO group name.
* @return RoGroupName RO group name.
*/
public String getRoGroupName() {
return this.RoGroupName;
}
/**
* Set RO group name.
* @param RoGroupName RO group name.
*/
public void setRoGroupName(String RoGroupName) {
this.RoGroupName = RoGroupName;
}
/**
* Get Maximum delay threshold for RO instances in seconds. Minimum value: 1. Please note that this value will take effect only if an instance removal policy is enabled in the RO group.
* @return RoMaxDelayTime Maximum delay threshold for RO instances in seconds. Minimum value: 1. Please note that this value will take effect only if an instance removal policy is enabled in the RO group.
*/
public Long getRoMaxDelayTime() {
return this.RoMaxDelayTime;
}
/**
* Set Maximum delay threshold for RO instances in seconds. Minimum value: 1. Please note that this value will take effect only if an instance removal policy is enabled in the RO group.
* @param RoMaxDelayTime Maximum delay threshold for RO instances in seconds. Minimum value: 1. Please note that this value will take effect only if an instance removal policy is enabled in the RO group.
*/
public void setRoMaxDelayTime(Long RoMaxDelayTime) {
this.RoMaxDelayTime = RoMaxDelayTime;
}
/**
* Get Whether to enable instance removal. Valid values: 1 (enabled), 0 (not enabled). Please note that if instance removal is enabled, the delay threshold parameter (`RoMaxDelayTime`) must be set.
* @return RoOfflineDelay Whether to enable instance removal. Valid values: 1 (enabled), 0 (not enabled). Please note that if instance removal is enabled, the delay threshold parameter (`RoMaxDelayTime`) must be set.
*/
public Long getRoOfflineDelay() {
return this.RoOfflineDelay;
}
/**
* Set Whether to enable instance removal. Valid values: 1 (enabled), 0 (not enabled). Please note that if instance removal is enabled, the delay threshold parameter (`RoMaxDelayTime`) must be set.
* @param RoOfflineDelay Whether to enable instance removal. Valid values: 1 (enabled), 0 (not enabled). Please note that if instance removal is enabled, the delay threshold parameter (`RoMaxDelayTime`) must be set.
*/
public void setRoOfflineDelay(Long RoOfflineDelay) {
this.RoOfflineDelay = RoOfflineDelay;
}
/**
* Get Minimum number of instances to be retained, which can be set to any value less than or equal to the number of RO instances in the RO group. Please note that if this value is set to be greater than the number of RO instances, no removal will be performed, and if it is set to 0, all instances with an excessive delay will be removed.
* @return MinRoInGroup Minimum number of instances to be retained, which can be set to any value less than or equal to the number of RO instances in the RO group. Please note that if this value is set to be greater than the number of RO instances, no removal will be performed, and if it is set to 0, all instances with an excessive delay will be removed.
*/
public Long getMinRoInGroup() {
return this.MinRoInGroup;
}
/**
* Set Minimum number of instances to be retained, which can be set to any value less than or equal to the number of RO instances in the RO group. Please note that if this value is set to be greater than the number of RO instances, no removal will be performed, and if it is set to 0, all instances with an excessive delay will be removed.
* @param MinRoInGroup Minimum number of instances to be retained, which can be set to any value less than or equal to the number of RO instances in the RO group. Please note that if this value is set to be greater than the number of RO instances, no removal will be performed, and if it is set to 0, all instances with an excessive delay will be removed.
*/
public void setMinRoInGroup(Long MinRoInGroup) {
this.MinRoInGroup = MinRoInGroup;
}
/**
* Get Weighting mode. Supported values include `system` (automatically assigned by the system) and `custom` (defined by user). Please note that if the `custom` mode is selected, the RO instance weight configuration parameter (RoWeightValues) must be set.
* @return WeightMode Weighting mode. Supported values include `system` (automatically assigned by the system) and `custom` (defined by user). Please note that if the `custom` mode is selected, the RO instance weight configuration parameter (RoWeightValues) must be set.
*/
public String getWeightMode() {
return this.WeightMode;
}
/**
* Set Weighting mode. Supported values include `system` (automatically assigned by the system) and `custom` (defined by user). Please note that if the `custom` mode is selected, the RO instance weight configuration parameter (RoWeightValues) must be set.
* @param WeightMode Weighting mode. Supported values include `system` (automatically assigned by the system) and `custom` (defined by user). Please note that if the `custom` mode is selected, the RO instance weight configuration parameter (RoWeightValues) must be set.
*/
public void setWeightMode(String WeightMode) {
this.WeightMode = WeightMode;
}
public RoGroupAttr() {
}
/**
* 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 RoGroupAttr(RoGroupAttr source) {
if (source.RoGroupName != null) {
this.RoGroupName = new String(source.RoGroupName);
}
if (source.RoMaxDelayTime != null) {
this.RoMaxDelayTime = new Long(source.RoMaxDelayTime);
}
if (source.RoOfflineDelay != null) {
this.RoOfflineDelay = new Long(source.RoOfflineDelay);
}
if (source.MinRoInGroup != null) {
this.MinRoInGroup = new Long(source.MinRoInGroup);
}
if (source.WeightMode != null) {
this.WeightMode = new String(source.WeightMode);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "RoGroupName", this.RoGroupName);
this.setParamSimple(map, prefix + "RoMaxDelayTime", this.RoMaxDelayTime);
this.setParamSimple(map, prefix + "RoOfflineDelay", this.RoOfflineDelay);
this.setParamSimple(map, prefix + "MinRoInGroup", this.MinRoInGroup);
this.setParamSimple(map, prefix + "WeightMode", this.WeightMode);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy