com.jdcloud.sdk.service.waf.model.SetSslConfigReq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of waf Show documentation
Show all versions of waf Show documentation
JDCLOUD Open API SDK for Java
The newest version!
/*
* Copyright 2018 JDCLOUD.COM
*
* 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.
*
*
*
*
*
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.waf.model;
import java.util.List;
import java.util.ArrayList;
import com.jdcloud.sdk.annotation.Required;
/**
* setSslConfigReq
*/
public class SetSslConfigReq implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 实例id,代表要设置的WAF实例
*/
private String wafInstanceId;
/**
* ssl协议,eg:["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3","TLSv1.3"]
* Required:true
*/
@Required
private List sslProtocols;
/**
* 加密套件等级,0表示默认为中级,1表示高级,2表示低级, 3表示自定义
* Required:true
*/
@Required
private Integer suiteLevel;
/**
* 自定义加密套件
*/
private List userSuiteLevel;
/**
* get 实例id,代表要设置的WAF实例
*
* @return
*/
public String getWafInstanceId() {
return wafInstanceId;
}
/**
* set 实例id,代表要设置的WAF实例
*
* @param wafInstanceId
*/
public void setWafInstanceId(String wafInstanceId) {
this.wafInstanceId = wafInstanceId;
}
/**
* get ssl协议,eg:["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3","TLSv1.3"]
*
* @return
*/
public List getSslProtocols() {
return sslProtocols;
}
/**
* set ssl协议,eg:["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3","TLSv1.3"]
*
* @param sslProtocols
*/
public void setSslProtocols(List sslProtocols) {
this.sslProtocols = sslProtocols;
}
/**
* get 加密套件等级,0表示默认为中级,1表示高级,2表示低级, 3表示自定义
*
* @return
*/
public Integer getSuiteLevel() {
return suiteLevel;
}
/**
* set 加密套件等级,0表示默认为中级,1表示高级,2表示低级, 3表示自定义
*
* @param suiteLevel
*/
public void setSuiteLevel(Integer suiteLevel) {
this.suiteLevel = suiteLevel;
}
/**
* get 自定义加密套件
*
* @return
*/
public List getUserSuiteLevel() {
return userSuiteLevel;
}
/**
* set 自定义加密套件
*
* @param userSuiteLevel
*/
public void setUserSuiteLevel(List userSuiteLevel) {
this.userSuiteLevel = userSuiteLevel;
}
/**
* set 实例id,代表要设置的WAF实例
*
* @param wafInstanceId
*/
public SetSslConfigReq wafInstanceId(String wafInstanceId) {
this.wafInstanceId = wafInstanceId;
return this;
}
/**
* set ssl协议,eg:["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3","TLSv1.3"]
*
* @param sslProtocols
*/
public SetSslConfigReq sslProtocols(List sslProtocols) {
this.sslProtocols = sslProtocols;
return this;
}
/**
* set 加密套件等级,0表示默认为中级,1表示高级,2表示低级, 3表示自定义
*
* @param suiteLevel
*/
public SetSslConfigReq suiteLevel(Integer suiteLevel) {
this.suiteLevel = suiteLevel;
return this;
}
/**
* set 自定义加密套件
*
* @param userSuiteLevel
*/
public SetSslConfigReq userSuiteLevel(List userSuiteLevel) {
this.userSuiteLevel = userSuiteLevel;
return this;
}
/**
* add item to ssl协议,eg:["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3","TLSv1.3"]
*
* @param sslProtocol
*/
public void addSslProtocol(String sslProtocol) {
if (this.sslProtocols == null) {
this.sslProtocols = new ArrayList<>();
}
this.sslProtocols.add(sslProtocol);
}
/**
* add item to 自定义加密套件
*
* @param userSuiteLevel
*/
public void addUserSuiteLevel(String userSuiteLevel) {
if (this.userSuiteLevel == null) {
this.userSuiteLevel = new ArrayList<>();
}
this.userSuiteLevel.add(userSuiteLevel);
}
}