Support Service name.

This commit is contained in:
sdk-team
2022-01-07 08:06:12 +00:00
parent ec6303fa64
commit bc474a30c7
15 changed files with 316 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2022-01-07 Version: 1.36.1016
- Support Service name.
2022-01-07 Version: 1.36.1015 2022-01-07 Version: 1.36.1015
- Supported minReadyInstanceRatio parameter for deploy. - Supported minReadyInstanceRatio parameter for deploy.

View File

@@ -1 +1 @@
1.36.1015 1.36.1016

View File

@@ -149,6 +149,8 @@ set(alb_public_header_model
include/alibabacloud/alb/model/UpdateListenerAttributeResult.h include/alibabacloud/alb/model/UpdateListenerAttributeResult.h
include/alibabacloud/alb/model/UpdateListenerLogConfigRequest.h include/alibabacloud/alb/model/UpdateListenerLogConfigRequest.h
include/alibabacloud/alb/model/UpdateListenerLogConfigResult.h include/alibabacloud/alb/model/UpdateListenerLogConfigResult.h
include/alibabacloud/alb/model/UpdateLoadBalancerAddressTypeConfigRequest.h
include/alibabacloud/alb/model/UpdateLoadBalancerAddressTypeConfigResult.h
include/alibabacloud/alb/model/UpdateLoadBalancerAttributeRequest.h include/alibabacloud/alb/model/UpdateLoadBalancerAttributeRequest.h
include/alibabacloud/alb/model/UpdateLoadBalancerAttributeResult.h include/alibabacloud/alb/model/UpdateLoadBalancerAttributeResult.h
include/alibabacloud/alb/model/UpdateLoadBalancerEditionRequest.h include/alibabacloud/alb/model/UpdateLoadBalancerEditionRequest.h
@@ -296,6 +298,8 @@ set(alb_src
src/model/UpdateListenerAttributeResult.cc src/model/UpdateListenerAttributeResult.cc
src/model/UpdateListenerLogConfigRequest.cc src/model/UpdateListenerLogConfigRequest.cc
src/model/UpdateListenerLogConfigResult.cc src/model/UpdateListenerLogConfigResult.cc
src/model/UpdateLoadBalancerAddressTypeConfigRequest.cc
src/model/UpdateLoadBalancerAddressTypeConfigResult.cc
src/model/UpdateLoadBalancerAttributeRequest.cc src/model/UpdateLoadBalancerAttributeRequest.cc
src/model/UpdateLoadBalancerAttributeResult.cc src/model/UpdateLoadBalancerAttributeResult.cc
src/model/UpdateLoadBalancerEditionRequest.cc src/model/UpdateLoadBalancerEditionRequest.cc

View File

@@ -150,6 +150,8 @@
#include "model/UpdateListenerAttributeResult.h" #include "model/UpdateListenerAttributeResult.h"
#include "model/UpdateListenerLogConfigRequest.h" #include "model/UpdateListenerLogConfigRequest.h"
#include "model/UpdateListenerLogConfigResult.h" #include "model/UpdateListenerLogConfigResult.h"
#include "model/UpdateLoadBalancerAddressTypeConfigRequest.h"
#include "model/UpdateLoadBalancerAddressTypeConfigResult.h"
#include "model/UpdateLoadBalancerAttributeRequest.h" #include "model/UpdateLoadBalancerAttributeRequest.h"
#include "model/UpdateLoadBalancerAttributeResult.h" #include "model/UpdateLoadBalancerAttributeResult.h"
#include "model/UpdateLoadBalancerEditionRequest.h" #include "model/UpdateLoadBalancerEditionRequest.h"
@@ -367,6 +369,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateListenerLogConfigResult> UpdateListenerLogConfigOutcome; typedef Outcome<Error, Model::UpdateListenerLogConfigResult> UpdateListenerLogConfigOutcome;
typedef std::future<UpdateListenerLogConfigOutcome> UpdateListenerLogConfigOutcomeCallable; typedef std::future<UpdateListenerLogConfigOutcome> UpdateListenerLogConfigOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::UpdateListenerLogConfigRequest&, const UpdateListenerLogConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateListenerLogConfigAsyncHandler; typedef std::function<void(const AlbClient*, const Model::UpdateListenerLogConfigRequest&, const UpdateListenerLogConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateListenerLogConfigAsyncHandler;
typedef Outcome<Error, Model::UpdateLoadBalancerAddressTypeConfigResult> UpdateLoadBalancerAddressTypeConfigOutcome;
typedef std::future<UpdateLoadBalancerAddressTypeConfigOutcome> UpdateLoadBalancerAddressTypeConfigOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::UpdateLoadBalancerAddressTypeConfigRequest&, const UpdateLoadBalancerAddressTypeConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLoadBalancerAddressTypeConfigAsyncHandler;
typedef Outcome<Error, Model::UpdateLoadBalancerAttributeResult> UpdateLoadBalancerAttributeOutcome; typedef Outcome<Error, Model::UpdateLoadBalancerAttributeResult> UpdateLoadBalancerAttributeOutcome;
typedef std::future<UpdateLoadBalancerAttributeOutcome> UpdateLoadBalancerAttributeOutcomeCallable; typedef std::future<UpdateLoadBalancerAttributeOutcome> UpdateLoadBalancerAttributeOutcomeCallable;
typedef std::function<void(const AlbClient*, const Model::UpdateLoadBalancerAttributeRequest&, const UpdateLoadBalancerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLoadBalancerAttributeAsyncHandler; typedef std::function<void(const AlbClient*, const Model::UpdateLoadBalancerAttributeRequest&, const UpdateLoadBalancerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLoadBalancerAttributeAsyncHandler;
@@ -588,6 +593,9 @@ namespace AlibabaCloud
UpdateListenerLogConfigOutcome updateListenerLogConfig(const Model::UpdateListenerLogConfigRequest &request)const; UpdateListenerLogConfigOutcome updateListenerLogConfig(const Model::UpdateListenerLogConfigRequest &request)const;
void updateListenerLogConfigAsync(const Model::UpdateListenerLogConfigRequest& request, const UpdateListenerLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void updateListenerLogConfigAsync(const Model::UpdateListenerLogConfigRequest& request, const UpdateListenerLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateListenerLogConfigOutcomeCallable updateListenerLogConfigCallable(const Model::UpdateListenerLogConfigRequest& request) const; UpdateListenerLogConfigOutcomeCallable updateListenerLogConfigCallable(const Model::UpdateListenerLogConfigRequest& request) const;
UpdateLoadBalancerAddressTypeConfigOutcome updateLoadBalancerAddressTypeConfig(const Model::UpdateLoadBalancerAddressTypeConfigRequest &request)const;
void updateLoadBalancerAddressTypeConfigAsync(const Model::UpdateLoadBalancerAddressTypeConfigRequest& request, const UpdateLoadBalancerAddressTypeConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLoadBalancerAddressTypeConfigOutcomeCallable updateLoadBalancerAddressTypeConfigCallable(const Model::UpdateLoadBalancerAddressTypeConfigRequest& request) const;
UpdateLoadBalancerAttributeOutcome updateLoadBalancerAttribute(const Model::UpdateLoadBalancerAttributeRequest &request)const; UpdateLoadBalancerAttributeOutcome updateLoadBalancerAttribute(const Model::UpdateLoadBalancerAttributeRequest &request)const;
void updateLoadBalancerAttributeAsync(const Model::UpdateLoadBalancerAttributeRequest& request, const UpdateLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const; void updateLoadBalancerAttributeAsync(const Model::UpdateLoadBalancerAttributeRequest& request, const UpdateLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLoadBalancerAttributeOutcomeCallable updateLoadBalancerAttributeCallable(const Model::UpdateLoadBalancerAttributeRequest& request) const; UpdateLoadBalancerAttributeOutcomeCallable updateLoadBalancerAttributeCallable(const Model::UpdateLoadBalancerAttributeRequest& request) const;

View File

@@ -68,6 +68,8 @@ public:
void setProtocol(const std::string &protocol); void setProtocol(const std::string &protocol);
bool getUpstreamKeepaliveEnabled() const; bool getUpstreamKeepaliveEnabled() const;
void setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled); void setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled);
std::string getServiceName() const;
void setServiceName(const std::string &serviceName);
StickySessionConfig getStickySessionConfig() const; StickySessionConfig getStickySessionConfig() const;
void setStickySessionConfig(const StickySessionConfig &stickySessionConfig); void setStickySessionConfig(const StickySessionConfig &stickySessionConfig);
bool getDryRun() const; bool getDryRun() const;
@@ -87,6 +89,7 @@ private:
std::string resourceGroupId_; std::string resourceGroupId_;
std::string protocol_; std::string protocol_;
bool upstreamKeepaliveEnabled_; bool upstreamKeepaliveEnabled_;
std::string serviceName_;
StickySessionConfig stickySessionConfig_; StickySessionConfig stickySessionConfig_;
bool dryRun_; bool dryRun_;
bool ipv6Enabled_; bool ipv6Enabled_;

View File

@@ -76,6 +76,7 @@ namespace AlibabaCloud
bool ipv6Enabled; bool ipv6Enabled;
bool configManagedEnabled; bool configManagedEnabled;
std::string vpcId; std::string vpcId;
std::string serviceName;
std::string serviceManagedMode; std::string serviceManagedMode;
HealthCheckConfig healthCheckConfig; HealthCheckConfig healthCheckConfig;
std::string protocol; std::string protocol;

View File

@@ -0,0 +1,59 @@
/*
* 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_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGREQUEST_H_
#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGREQUEST_H_
#include <alibabacloud/alb/AlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Alb {
namespace Model {
class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerAddressTypeConfigRequest : public RpcServiceRequest {
public:
struct ZoneMappings {
std::string vSwitchId;
std::string zoneId;
std::string allocationId;
};
UpdateLoadBalancerAddressTypeConfigRequest();
~UpdateLoadBalancerAddressTypeConfigRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getAddressType() const;
void setAddressType(const std::string &addressType);
std::string getDryRun() const;
void setDryRun(const std::string &dryRun);
std::vector<ZoneMappings> getZoneMappings() const;
void setZoneMappings(const std::vector<ZoneMappings> &zoneMappings);
std::string getLoadBalancerId() const;
void setLoadBalancerId(const std::string &loadBalancerId);
private:
std::string clientToken_;
std::string addressType_;
std::string dryRun_;
std::vector<ZoneMappings> zoneMappings_;
std::string loadBalancerId_;
};
} // namespace Model
} // namespace Alb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* 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_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGRESULT_H_
#define ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alb/AlbExport.h>
namespace AlibabaCloud
{
namespace Alb
{
namespace Model
{
class ALIBABACLOUD_ALB_EXPORT UpdateLoadBalancerAddressTypeConfigResult : public ServiceResult
{
public:
UpdateLoadBalancerAddressTypeConfigResult();
explicit UpdateLoadBalancerAddressTypeConfigResult(const std::string &payload);
~UpdateLoadBalancerAddressTypeConfigResult();
std::string getJobId()const;
protected:
void parse(const std::string &payload);
private:
std::string jobId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGRESULT_H_

View File

@@ -66,6 +66,8 @@ public:
void setServerGroupId(const std::string &serverGroupId); void setServerGroupId(const std::string &serverGroupId);
bool getUpstreamKeepaliveEnabled() const; bool getUpstreamKeepaliveEnabled() const;
void setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled); void setUpstreamKeepaliveEnabled(bool upstreamKeepaliveEnabled);
std::string getServiceName() const;
void setServiceName(const std::string &serviceName);
StickySessionConfig getStickySessionConfig() const; StickySessionConfig getStickySessionConfig() const;
void setStickySessionConfig(const StickySessionConfig &stickySessionConfig); void setStickySessionConfig(const StickySessionConfig &stickySessionConfig);
bool getDryRun() const; bool getDryRun() const;
@@ -78,6 +80,7 @@ private:
std::string scheduler_; std::string scheduler_;
std::string serverGroupId_; std::string serverGroupId_;
bool upstreamKeepaliveEnabled_; bool upstreamKeepaliveEnabled_;
std::string serviceName_;
StickySessionConfig stickySessionConfig_; StickySessionConfig stickySessionConfig_;
bool dryRun_; bool dryRun_;
}; };

View File

@@ -2355,6 +2355,42 @@ AlbClient::UpdateListenerLogConfigOutcomeCallable AlbClient::updateListenerLogCo
return task->get_future(); return task->get_future();
} }
AlbClient::UpdateLoadBalancerAddressTypeConfigOutcome AlbClient::updateLoadBalancerAddressTypeConfig(const UpdateLoadBalancerAddressTypeConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateLoadBalancerAddressTypeConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateLoadBalancerAddressTypeConfigOutcome(UpdateLoadBalancerAddressTypeConfigResult(outcome.result()));
else
return UpdateLoadBalancerAddressTypeConfigOutcome(outcome.error());
}
void AlbClient::updateLoadBalancerAddressTypeConfigAsync(const UpdateLoadBalancerAddressTypeConfigRequest& request, const UpdateLoadBalancerAddressTypeConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateLoadBalancerAddressTypeConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
AlbClient::UpdateLoadBalancerAddressTypeConfigOutcomeCallable AlbClient::updateLoadBalancerAddressTypeConfigCallable(const UpdateLoadBalancerAddressTypeConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateLoadBalancerAddressTypeConfigOutcome()>>(
[this, request]()
{
return this->updateLoadBalancerAddressTypeConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlbClient::UpdateLoadBalancerAttributeOutcome AlbClient::updateLoadBalancerAttribute(const UpdateLoadBalancerAttributeRequest &request) const AlbClient::UpdateLoadBalancerAttributeOutcome AlbClient::updateLoadBalancerAttribute(const UpdateLoadBalancerAttributeRequest &request) const
{ {
auto endpointOutcome = endpointProvider_->getEndpoint(); auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -105,6 +105,15 @@ void CreateServerGroupRequest::setUpstreamKeepaliveEnabled(bool upstreamKeepaliv
setParameter(std::string("UpstreamKeepaliveEnabled"), upstreamKeepaliveEnabled ? "true" : "false"); setParameter(std::string("UpstreamKeepaliveEnabled"), upstreamKeepaliveEnabled ? "true" : "false");
} }
std::string CreateServerGroupRequest::getServiceName() const {
return serviceName_;
}
void CreateServerGroupRequest::setServiceName(const std::string &serviceName) {
serviceName_ = serviceName;
setParameter(std::string("ServiceName"), serviceName);
}
CreateServerGroupRequest::StickySessionConfig CreateServerGroupRequest::getStickySessionConfig() const { CreateServerGroupRequest::StickySessionConfig CreateServerGroupRequest::getStickySessionConfig() const {
return stickySessionConfig_; return stickySessionConfig_;
} }

View File

@@ -71,6 +71,8 @@ void ListServerGroupsResult::parse(const std::string &payload)
serverGroupsObject.ipv6Enabled = valueServerGroupsServerGroup["Ipv6Enabled"].asString() == "true"; serverGroupsObject.ipv6Enabled = valueServerGroupsServerGroup["Ipv6Enabled"].asString() == "true";
if(!valueServerGroupsServerGroup["ServerCount"].isNull()) if(!valueServerGroupsServerGroup["ServerCount"].isNull())
serverGroupsObject.serverCount = std::stoi(valueServerGroupsServerGroup["ServerCount"].asString()); serverGroupsObject.serverCount = std::stoi(valueServerGroupsServerGroup["ServerCount"].asString());
if(!valueServerGroupsServerGroup["ServiceName"].isNull())
serverGroupsObject.serviceName = valueServerGroupsServerGroup["ServiceName"].asString();
auto allTagsNode = valueServerGroupsServerGroup["Tags"]["Tag"]; auto allTagsNode = valueServerGroupsServerGroup["Tags"]["Tag"];
for (auto valueServerGroupsServerGroupTagsTag : allTagsNode) for (auto valueServerGroupsServerGroupTagsTag : allTagsNode)
{ {

View File

@@ -0,0 +1,76 @@
/*
* 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/alb/model/UpdateLoadBalancerAddressTypeConfigRequest.h>
using AlibabaCloud::Alb::Model::UpdateLoadBalancerAddressTypeConfigRequest;
UpdateLoadBalancerAddressTypeConfigRequest::UpdateLoadBalancerAddressTypeConfigRequest()
: RpcServiceRequest("alb", "2020-06-16", "UpdateLoadBalancerAddressTypeConfig") {
setMethod(HttpRequest::Method::Post);
}
UpdateLoadBalancerAddressTypeConfigRequest::~UpdateLoadBalancerAddressTypeConfigRequest() {}
std::string UpdateLoadBalancerAddressTypeConfigRequest::getClientToken() const {
return clientToken_;
}
void UpdateLoadBalancerAddressTypeConfigRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string UpdateLoadBalancerAddressTypeConfigRequest::getAddressType() const {
return addressType_;
}
void UpdateLoadBalancerAddressTypeConfigRequest::setAddressType(const std::string &addressType) {
addressType_ = addressType;
setParameter(std::string("AddressType"), addressType);
}
std::string UpdateLoadBalancerAddressTypeConfigRequest::getDryRun() const {
return dryRun_;
}
void UpdateLoadBalancerAddressTypeConfigRequest::setDryRun(const std::string &dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun);
}
std::vector<UpdateLoadBalancerAddressTypeConfigRequest::ZoneMappings> UpdateLoadBalancerAddressTypeConfigRequest::getZoneMappings() const {
return zoneMappings_;
}
void UpdateLoadBalancerAddressTypeConfigRequest::setZoneMappings(const std::vector<UpdateLoadBalancerAddressTypeConfigRequest::ZoneMappings> &zoneMappings) {
zoneMappings_ = zoneMappings;
for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) {
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".VSwitchId", zoneMappings[dep1].vSwitchId);
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".ZoneId", zoneMappings[dep1].zoneId);
setParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".AllocationId", zoneMappings[dep1].allocationId);
}
}
std::string UpdateLoadBalancerAddressTypeConfigRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void UpdateLoadBalancerAddressTypeConfigRequest::setLoadBalancerId(const std::string &loadBalancerId) {
loadBalancerId_ = loadBalancerId;
setParameter(std::string("LoadBalancerId"), loadBalancerId);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/alb/model/UpdateLoadBalancerAddressTypeConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alb;
using namespace AlibabaCloud::Alb::Model;
UpdateLoadBalancerAddressTypeConfigResult::UpdateLoadBalancerAddressTypeConfigResult() :
ServiceResult()
{}
UpdateLoadBalancerAddressTypeConfigResult::UpdateLoadBalancerAddressTypeConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateLoadBalancerAddressTypeConfigResult::~UpdateLoadBalancerAddressTypeConfigResult()
{}
void UpdateLoadBalancerAddressTypeConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["JobId"].isNull())
jobId_ = value["JobId"].asString();
}
std::string UpdateLoadBalancerAddressTypeConfigResult::getJobId()const
{
return jobId_;
}

View File

@@ -96,6 +96,15 @@ void UpdateServerGroupAttributeRequest::setUpstreamKeepaliveEnabled(bool upstrea
setParameter(std::string("UpstreamKeepaliveEnabled"), upstreamKeepaliveEnabled ? "true" : "false"); setParameter(std::string("UpstreamKeepaliveEnabled"), upstreamKeepaliveEnabled ? "true" : "false");
} }
std::string UpdateServerGroupAttributeRequest::getServiceName() const {
return serviceName_;
}
void UpdateServerGroupAttributeRequest::setServiceName(const std::string &serviceName) {
serviceName_ = serviceName;
setParameter(std::string("ServiceName"), serviceName);
}
UpdateServerGroupAttributeRequest::StickySessionConfig UpdateServerGroupAttributeRequest::getStickySessionConfig() const { UpdateServerGroupAttributeRequest::StickySessionConfig UpdateServerGroupAttributeRequest::getStickySessionConfig() const {
return stickySessionConfig_; return stickySessionConfig_;
} }