
com.tencentcloudapi.pts.v20210728.models.LoadSpec 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.pts.v20210728.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class LoadSpec extends AbstractModel{
/**
* 并发施压模式的配置
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Concurrency")
@Expose
private Concurrency Concurrency;
/**
* RPS施压模式的配置
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("RequestsPerSecond")
@Expose
private RequestsPerSecond RequestsPerSecond;
/**
* 脚本内置压力模式
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ScriptOrigin")
@Expose
private ScriptOrigin ScriptOrigin;
/**
* Get 并发施压模式的配置
注意:此字段可能返回 null,表示取不到有效值。
* @return Concurrency 并发施压模式的配置
注意:此字段可能返回 null,表示取不到有效值。
*/
public Concurrency getConcurrency() {
return this.Concurrency;
}
/**
* Set 并发施压模式的配置
注意:此字段可能返回 null,表示取不到有效值。
* @param Concurrency 并发施压模式的配置
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setConcurrency(Concurrency Concurrency) {
this.Concurrency = Concurrency;
}
/**
* Get RPS施压模式的配置
注意:此字段可能返回 null,表示取不到有效值。
* @return RequestsPerSecond RPS施压模式的配置
注意:此字段可能返回 null,表示取不到有效值。
*/
public RequestsPerSecond getRequestsPerSecond() {
return this.RequestsPerSecond;
}
/**
* Set RPS施压模式的配置
注意:此字段可能返回 null,表示取不到有效值。
* @param RequestsPerSecond RPS施压模式的配置
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setRequestsPerSecond(RequestsPerSecond RequestsPerSecond) {
this.RequestsPerSecond = RequestsPerSecond;
}
/**
* Get 脚本内置压力模式
注意:此字段可能返回 null,表示取不到有效值。
* @return ScriptOrigin 脚本内置压力模式
注意:此字段可能返回 null,表示取不到有效值。
*/
public ScriptOrigin getScriptOrigin() {
return this.ScriptOrigin;
}
/**
* Set 脚本内置压力模式
注意:此字段可能返回 null,表示取不到有效值。
* @param ScriptOrigin 脚本内置压力模式
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setScriptOrigin(ScriptOrigin ScriptOrigin) {
this.ScriptOrigin = ScriptOrigin;
}
public LoadSpec() {
}
/**
* 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 LoadSpec(LoadSpec source) {
if (source.Concurrency != null) {
this.Concurrency = new Concurrency(source.Concurrency);
}
if (source.RequestsPerSecond != null) {
this.RequestsPerSecond = new RequestsPerSecond(source.RequestsPerSecond);
}
if (source.ScriptOrigin != null) {
this.ScriptOrigin = new ScriptOrigin(source.ScriptOrigin);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamObj(map, prefix + "Concurrency.", this.Concurrency);
this.setParamObj(map, prefix + "RequestsPerSecond.", this.RequestsPerSecond);
this.setParamObj(map, prefix + "ScriptOrigin.", this.ScriptOrigin);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy