Files
aliyun-openapi-cpp-sdk/mse/include/alibabacloud/mse/model/CreateCircuitBreakerRuleRequest.h
2023-07-13 02:46:17 +00:00

88 lines
3.0 KiB
C++

/*
* Copyright 2009-2017 Alibaba Cloud 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.
*/
#ifndef ALIBABACLOUD_MSE_MODEL_CREATECIRCUITBREAKERRULEREQUEST_H_
#define ALIBABACLOUD_MSE_MODEL_CREATECIRCUITBREAKERRULEREQUEST_H_
#include <alibabacloud/mse/MseExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Mse {
namespace Model {
class ALIBABACLOUD_MSE_EXPORT CreateCircuitBreakerRuleRequest : public RpcServiceRequest {
public:
CreateCircuitBreakerRuleRequest();
~CreateCircuitBreakerRuleRequest();
std::string getMseSessionId() const;
void setMseSessionId(const std::string &mseSessionId);
float getThreshold() const;
void setThreshold(float threshold);
int getRetryTimeoutMs() const;
void setRetryTimeoutMs(int retryTimeoutMs);
std::string getAppName() const;
void setAppName(const std::string &appName);
bool getEnable() const;
void setEnable(bool enable);
int getMinRequestAmount() const;
void setMinRequestAmount(int minRequestAmount);
std::string getResource() const;
void setResource(const std::string &resource);
int getMaxAllowedRtMs() const;
void setMaxAllowedRtMs(int maxAllowedRtMs);
int getHalfOpenBaseAmountPerStep() const;
void setHalfOpenBaseAmountPerStep(int halfOpenBaseAmountPerStep);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
int getStatIntervalMs() const;
void setStatIntervalMs(int statIntervalMs);
std::string getAppId() const;
void setAppId(const std::string &appId);
std::string get_Namespace() const;
void set_Namespace(const std::string &_namespace);
int getHalfOpenRecoveryStepNum() const;
void setHalfOpenRecoveryStepNum(int halfOpenRecoveryStepNum);
std::string getAcceptLanguage() const;
void setAcceptLanguage(const std::string &acceptLanguage);
int getStrategy() const;
void setStrategy(int strategy);
private:
std::string mseSessionId_;
float threshold_;
int retryTimeoutMs_;
std::string appName_;
bool enable_;
int minRequestAmount_;
std::string resource_;
int maxAllowedRtMs_;
int halfOpenBaseAmountPerStep_;
std::string regionId_;
int statIntervalMs_;
std::string appId_;
std::string _namespace_;
int halfOpenRecoveryStepNum_;
std::string acceptLanguage_;
int strategy_;
};
} // namespace Model
} // namespace Mse
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_MSE_MODEL_CREATECIRCUITBREAKERRULEREQUEST_H_