/* * 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 using AlibabaCloud::Cbn::Model::EnableCenVbrHealthCheckRequest; EnableCenVbrHealthCheckRequest::EnableCenVbrHealthCheckRequest() : RpcServiceRequest("cbn", "2017-09-12", "EnableCenVbrHealthCheck") { setMethod(HttpRequest::Method::Post); } EnableCenVbrHealthCheckRequest::~EnableCenVbrHealthCheckRequest() {} long EnableCenVbrHealthCheckRequest::getResourceOwnerId() const { return resourceOwnerId_; } void EnableCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } std::string EnableCenVbrHealthCheckRequest::getCenId() const { return cenId_; } void EnableCenVbrHealthCheckRequest::setCenId(const std::string &cenId) { cenId_ = cenId; setParameter(std::string("CenId"), cenId); } std::string EnableCenVbrHealthCheckRequest::getHealthCheckTargetIp() const { return healthCheckTargetIp_; } void EnableCenVbrHealthCheckRequest::setHealthCheckTargetIp(const std::string &healthCheckTargetIp) { healthCheckTargetIp_ = healthCheckTargetIp; setParameter(std::string("HealthCheckTargetIp"), healthCheckTargetIp); } std::string EnableCenVbrHealthCheckRequest::getDescription() const { return description_; } void EnableCenVbrHealthCheckRequest::setDescription(const std::string &description) { description_ = description; setParameter(std::string("Description"), description); } int EnableCenVbrHealthCheckRequest::getHealthyThreshold() const { return healthyThreshold_; } void EnableCenVbrHealthCheckRequest::setHealthyThreshold(int healthyThreshold) { healthyThreshold_ = healthyThreshold; setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); } long EnableCenVbrHealthCheckRequest::getVbrInstanceOwnerId() const { return vbrInstanceOwnerId_; } void EnableCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId) { vbrInstanceOwnerId_ = vbrInstanceOwnerId; setParameter(std::string("VbrInstanceOwnerId"), std::to_string(vbrInstanceOwnerId)); } bool EnableCenVbrHealthCheckRequest::getHealthCheckOnly() const { return healthCheckOnly_; } void EnableCenVbrHealthCheckRequest::setHealthCheckOnly(bool healthCheckOnly) { healthCheckOnly_ = healthCheckOnly; setParameter(std::string("HealthCheckOnly"), healthCheckOnly ? "true" : "false"); } std::string EnableCenVbrHealthCheckRequest::getVbrInstanceRegionId() const { return vbrInstanceRegionId_; } void EnableCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string &vbrInstanceRegionId) { vbrInstanceRegionId_ = vbrInstanceRegionId; setParameter(std::string("VbrInstanceRegionId"), vbrInstanceRegionId); } std::string EnableCenVbrHealthCheckRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } void EnableCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } std::string EnableCenVbrHealthCheckRequest::getOwnerAccount() const { return ownerAccount_; } void EnableCenVbrHealthCheckRequest::setOwnerAccount(const std::string &ownerAccount) { ownerAccount_ = ownerAccount; setParameter(std::string("OwnerAccount"), ownerAccount); } long EnableCenVbrHealthCheckRequest::getOwnerId() const { return ownerId_; } void EnableCenVbrHealthCheckRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; setParameter(std::string("OwnerId"), std::to_string(ownerId)); } std::string EnableCenVbrHealthCheckRequest::getVersion() const { return version_; } void EnableCenVbrHealthCheckRequest::setVersion(const std::string &version) { version_ = version; setParameter(std::string("Version"), version); } std::string EnableCenVbrHealthCheckRequest::getHealthCheckSourceIp() const { return healthCheckSourceIp_; } void EnableCenVbrHealthCheckRequest::setHealthCheckSourceIp(const std::string &healthCheckSourceIp) { healthCheckSourceIp_ = healthCheckSourceIp; setParameter(std::string("HealthCheckSourceIp"), healthCheckSourceIp); } int EnableCenVbrHealthCheckRequest::getHealthCheckInterval() const { return healthCheckInterval_; } void EnableCenVbrHealthCheckRequest::setHealthCheckInterval(int healthCheckInterval) { healthCheckInterval_ = healthCheckInterval; setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); } std::string EnableCenVbrHealthCheckRequest::getVbrInstanceId() const { return vbrInstanceId_; } void EnableCenVbrHealthCheckRequest::setVbrInstanceId(const std::string &vbrInstanceId) { vbrInstanceId_ = vbrInstanceId; setParameter(std::string("VbrInstanceId"), vbrInstanceId); }