/* * 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::Ess::Model::DescribeLifecycleHooksRequest; DescribeLifecycleHooksRequest::DescribeLifecycleHooksRequest() : RpcServiceRequest("ess", "2014-08-28", "DescribeLifecycleHooks") {} DescribeLifecycleHooksRequest::~DescribeLifecycleHooksRequest() {} std::string DescribeLifecycleHooksRequest::getScalingGroupId()const { return scalingGroupId_; } void DescribeLifecycleHooksRequest::setScalingGroupId(const std::string& scalingGroupId) { scalingGroupId_ = scalingGroupId; setCoreParameter("ScalingGroupId", scalingGroupId); } int DescribeLifecycleHooksRequest::getPageNumber()const { return pageNumber_; } void DescribeLifecycleHooksRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setCoreParameter("PageNumber", std::to_string(pageNumber)); } std::string DescribeLifecycleHooksRequest::getAccessKeyId()const { return accessKeyId_; } void DescribeLifecycleHooksRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; setCoreParameter("AccessKeyId", accessKeyId); } std::string DescribeLifecycleHooksRequest::getLifecycleHookName()const { return lifecycleHookName_; } void DescribeLifecycleHooksRequest::setLifecycleHookName(const std::string& lifecycleHookName) { lifecycleHookName_ = lifecycleHookName; setCoreParameter("LifecycleHookName", lifecycleHookName); } int DescribeLifecycleHooksRequest::getPageSize()const { return pageSize_; } void DescribeLifecycleHooksRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setCoreParameter("PageSize", std::to_string(pageSize)); } std::string DescribeLifecycleHooksRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; } void DescribeLifecycleHooksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); } std::vector DescribeLifecycleHooksRequest::getLifecycleHookId()const { return lifecycleHookId_; } void DescribeLifecycleHooksRequest::setLifecycleHookId(const std::vector& lifecycleHookId) { lifecycleHookId_ = lifecycleHookId; for(int i = 0; i!= lifecycleHookId.size(); i++) setCoreParameter("LifecycleHookId."+ std::to_string(i), lifecycleHookId.at(i)); } std::string DescribeLifecycleHooksRequest::getOwnerAccount()const { return ownerAccount_; } void DescribeLifecycleHooksRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; setCoreParameter("OwnerAccount", ownerAccount); } long DescribeLifecycleHooksRequest::getOwnerId()const { return ownerId_; } void DescribeLifecycleHooksRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; setCoreParameter("OwnerId", std::to_string(ownerId)); }