| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- /*
- * 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.
- */
- #include <alibabacloud/slb/model/SetRuleRequest.h>
- using AlibabaCloud::Slb::Model::SetRuleRequest;
- SetRuleRequest::SetRuleRequest() :
- RpcServiceRequest("slb", "2014-05-15", "SetRule")
- {}
- SetRuleRequest::~SetRuleRequest()
- {}
- std::string SetRuleRequest::getAccess_key_id()const
- {
- return access_key_id_;
- }
- void SetRuleRequest::setAccess_key_id(const std::string& access_key_id)
- {
- access_key_id_ = access_key_id;
- setCoreParameter("Access_key_id", access_key_id);
- }
- long SetRuleRequest::getResourceOwnerId()const
- {
- return resourceOwnerId_;
- }
- void SetRuleRequest::setResourceOwnerId(long resourceOwnerId)
- {
- resourceOwnerId_ = resourceOwnerId;
- setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
- }
- int SetRuleRequest::getHealthCheckTimeout()const
- {
- return healthCheckTimeout_;
- }
- void SetRuleRequest::setHealthCheckTimeout(int healthCheckTimeout)
- {
- healthCheckTimeout_ = healthCheckTimeout;
- setCoreParameter("HealthCheckTimeout", std::to_string(healthCheckTimeout));
- }
- std::string SetRuleRequest::getHealthCheckURI()const
- {
- return healthCheckURI_;
- }
- void SetRuleRequest::setHealthCheckURI(const std::string& healthCheckURI)
- {
- healthCheckURI_ = healthCheckURI;
- setCoreParameter("HealthCheckURI", healthCheckURI);
- }
- std::string SetRuleRequest::getRuleName()const
- {
- return ruleName_;
- }
- void SetRuleRequest::setRuleName(const std::string& ruleName)
- {
- ruleName_ = ruleName;
- setCoreParameter("RuleName", ruleName);
- }
- int SetRuleRequest::getUnhealthyThreshold()const
- {
- return unhealthyThreshold_;
- }
- void SetRuleRequest::setUnhealthyThreshold(int unhealthyThreshold)
- {
- unhealthyThreshold_ = unhealthyThreshold;
- setCoreParameter("UnhealthyThreshold", std::to_string(unhealthyThreshold));
- }
- int SetRuleRequest::getHealthyThreshold()const
- {
- return healthyThreshold_;
- }
- void SetRuleRequest::setHealthyThreshold(int healthyThreshold)
- {
- healthyThreshold_ = healthyThreshold;
- setCoreParameter("HealthyThreshold", std::to_string(healthyThreshold));
- }
- std::string SetRuleRequest::getScheduler()const
- {
- return scheduler_;
- }
- void SetRuleRequest::setScheduler(const std::string& scheduler)
- {
- scheduler_ = scheduler;
- setCoreParameter("Scheduler", scheduler);
- }
- std::string SetRuleRequest::getHealthCheck()const
- {
- return healthCheck_;
- }
- void SetRuleRequest::setHealthCheck(const std::string& healthCheck)
- {
- healthCheck_ = healthCheck;
- setCoreParameter("HealthCheck", healthCheck);
- }
- std::string SetRuleRequest::getRegionId()const
- {
- return regionId_;
- }
- void SetRuleRequest::setRegionId(const std::string& regionId)
- {
- regionId_ = regionId;
- setCoreParameter("RegionId", regionId);
- }
- std::string SetRuleRequest::getListenerSync()const
- {
- return listenerSync_;
- }
- void SetRuleRequest::setListenerSync(const std::string& listenerSync)
- {
- listenerSync_ = listenerSync;
- setCoreParameter("ListenerSync", listenerSync);
- }
- int SetRuleRequest::getCookieTimeout()const
- {
- return cookieTimeout_;
- }
- void SetRuleRequest::setCookieTimeout(int cookieTimeout)
- {
- cookieTimeout_ = cookieTimeout;
- setCoreParameter("CookieTimeout", std::to_string(cookieTimeout));
- }
- std::string SetRuleRequest::getStickySessionType()const
- {
- return stickySessionType_;
- }
- void SetRuleRequest::setStickySessionType(const std::string& stickySessionType)
- {
- stickySessionType_ = stickySessionType;
- setCoreParameter("StickySessionType", stickySessionType);
- }
- std::string SetRuleRequest::getVServerGroupId()const
- {
- return vServerGroupId_;
- }
- void SetRuleRequest::setVServerGroupId(const std::string& vServerGroupId)
- {
- vServerGroupId_ = vServerGroupId;
- setCoreParameter("VServerGroupId", vServerGroupId);
- }
- std::string SetRuleRequest::getCookie()const
- {
- return cookie_;
- }
- void SetRuleRequest::setCookie(const std::string& cookie)
- {
- cookie_ = cookie;
- setCoreParameter("Cookie", cookie);
- }
- std::string SetRuleRequest::getResourceOwnerAccount()const
- {
- return resourceOwnerAccount_;
- }
- void SetRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
- {
- resourceOwnerAccount_ = resourceOwnerAccount;
- setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
- }
- std::string SetRuleRequest::getStickySession()const
- {
- return stickySession_;
- }
- void SetRuleRequest::setStickySession(const std::string& stickySession)
- {
- stickySession_ = stickySession;
- setCoreParameter("StickySession", stickySession);
- }
- std::string SetRuleRequest::getHealthCheckDomain()const
- {
- return healthCheckDomain_;
- }
- void SetRuleRequest::setHealthCheckDomain(const std::string& healthCheckDomain)
- {
- healthCheckDomain_ = healthCheckDomain;
- setCoreParameter("HealthCheckDomain", healthCheckDomain);
- }
- std::string SetRuleRequest::getOwnerAccount()const
- {
- return ownerAccount_;
- }
- void SetRuleRequest::setOwnerAccount(const std::string& ownerAccount)
- {
- ownerAccount_ = ownerAccount;
- setCoreParameter("OwnerAccount", ownerAccount);
- }
- long SetRuleRequest::getOwnerId()const
- {
- return ownerId_;
- }
- void SetRuleRequest::setOwnerId(long ownerId)
- {
- ownerId_ = ownerId;
- setCoreParameter("OwnerId", std::to_string(ownerId));
- }
- std::string SetRuleRequest::getTags()const
- {
- return tags_;
- }
- void SetRuleRequest::setTags(const std::string& tags)
- {
- tags_ = tags;
- setCoreParameter("Tags", tags);
- }
- int SetRuleRequest::getHealthCheckInterval()const
- {
- return healthCheckInterval_;
- }
- void SetRuleRequest::setHealthCheckInterval(int healthCheckInterval)
- {
- healthCheckInterval_ = healthCheckInterval;
- setCoreParameter("HealthCheckInterval", std::to_string(healthCheckInterval));
- }
- std::string SetRuleRequest::getRuleId()const
- {
- return ruleId_;
- }
- void SetRuleRequest::setRuleId(const std::string& ruleId)
- {
- ruleId_ = ruleId;
- setCoreParameter("RuleId", ruleId);
- }
- int SetRuleRequest::getHealthCheckConnectPort()const
- {
- return healthCheckConnectPort_;
- }
- void SetRuleRequest::setHealthCheckConnectPort(int healthCheckConnectPort)
- {
- healthCheckConnectPort_ = healthCheckConnectPort;
- setCoreParameter("HealthCheckConnectPort", std::to_string(healthCheckConnectPort));
- }
- std::string SetRuleRequest::getHealthCheckHttpCode()const
- {
- return healthCheckHttpCode_;
- }
- void SetRuleRequest::setHealthCheckHttpCode(const std::string& healthCheckHttpCode)
- {
- healthCheckHttpCode_ = healthCheckHttpCode;
- setCoreParameter("HealthCheckHttpCode", healthCheckHttpCode);
- }
|