![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.vpc.v20170312.models.SetVpnGatewaysRenewFlagRequest 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.vpc.v20170312.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 SetVpnGatewaysRenewFlagRequest extends AbstractModel {
/**
* VPN gateway IDs
*/
@SerializedName("VpnGatewayIds")
@Expose
private String [] VpnGatewayIds;
/**
* Status of auto-renewal
Values: `0` (Follow original), `1` (Enable auto-renewal), `2` (Disable auto-renewal)
*/
@SerializedName("AutoRenewFlag")
@Expose
private Long AutoRenewFlag;
/**
* VPNGW type: `IPSEC`, `SSL`
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* Get VPN gateway IDs
* @return VpnGatewayIds VPN gateway IDs
*/
public String [] getVpnGatewayIds() {
return this.VpnGatewayIds;
}
/**
* Set VPN gateway IDs
* @param VpnGatewayIds VPN gateway IDs
*/
public void setVpnGatewayIds(String [] VpnGatewayIds) {
this.VpnGatewayIds = VpnGatewayIds;
}
/**
* Get Status of auto-renewal
Values: `0` (Follow original), `1` (Enable auto-renewal), `2` (Disable auto-renewal)
* @return AutoRenewFlag Status of auto-renewal
Values: `0` (Follow original), `1` (Enable auto-renewal), `2` (Disable auto-renewal)
*/
public Long getAutoRenewFlag() {
return this.AutoRenewFlag;
}
/**
* Set Status of auto-renewal
Values: `0` (Follow original), `1` (Enable auto-renewal), `2` (Disable auto-renewal)
* @param AutoRenewFlag Status of auto-renewal
Values: `0` (Follow original), `1` (Enable auto-renewal), `2` (Disable auto-renewal)
*/
public void setAutoRenewFlag(Long AutoRenewFlag) {
this.AutoRenewFlag = AutoRenewFlag;
}
/**
* Get VPNGW type: `IPSEC`, `SSL`
* @return Type VPNGW type: `IPSEC`, `SSL`
*/
public String getType() {
return this.Type;
}
/**
* Set VPNGW type: `IPSEC`, `SSL`
* @param Type VPNGW type: `IPSEC`, `SSL`
*/
public void setType(String Type) {
this.Type = Type;
}
public SetVpnGatewaysRenewFlagRequest() {
}
/**
* 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 SetVpnGatewaysRenewFlagRequest(SetVpnGatewaysRenewFlagRequest source) {
if (source.VpnGatewayIds != null) {
this.VpnGatewayIds = new String[source.VpnGatewayIds.length];
for (int i = 0; i < source.VpnGatewayIds.length; i++) {
this.VpnGatewayIds[i] = new String(source.VpnGatewayIds[i]);
}
}
if (source.AutoRenewFlag != null) {
this.AutoRenewFlag = new Long(source.AutoRenewFlag);
}
if (source.Type != null) {
this.Type = new String(source.Type);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArraySimple(map, prefix + "VpnGatewayIds.", this.VpnGatewayIds);
this.setParamSimple(map, prefix + "AutoRenewFlag", this.AutoRenewFlag);
this.setParamSimple(map, prefix + "Type", this.Type);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy