| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- /*
- * 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/metering/model/SyncDataRequest.h>
- using AlibabaCloud::Metering::Model::SyncDataRequest;
- SyncDataRequest::SyncDataRequest() :
- RoaServiceRequest("metering", "2020-09-21")
- {
- setResourcePath("/api/dataSync");
- setMethod(HttpRequest::Method::Post);
- }
- SyncDataRequest::~SyncDataRequest()
- {}
- std::string SyncDataRequest::getInstanceId()const
- {
- return instanceId_;
- }
- void SyncDataRequest::setInstanceId(const std::string& instanceId)
- {
- instanceId_ = instanceId;
- setParameter("InstanceId", instanceId);
- }
- std::string SyncDataRequest::getData()const
- {
- return data_;
- }
- void SyncDataRequest::setData(const std::string& data)
- {
- data_ = data;
- setParameter("Data", data);
- }
- std::string SyncDataRequest::getDataType()const
- {
- return dataType_;
- }
- void SyncDataRequest::setDataType(const std::string& dataType)
- {
- dataType_ = dataType;
- setParameter("DataType", dataType);
- }
- std::string SyncDataRequest::getEndTime()const
- {
- return endTime_;
- }
- void SyncDataRequest::setEndTime(const std::string& endTime)
- {
- endTime_ = endTime;
- setParameter("EndTime", endTime);
- }
- std::string SyncDataRequest::getStartTime()const
- {
- return startTime_;
- }
- void SyncDataRequest::setStartTime(const std::string& startTime)
- {
- startTime_ = startTime;
- setParameter("StartTime", startTime);
- }
- std::string SyncDataRequest::getCommodityCode()const
- {
- return commodityCode_;
- }
- void SyncDataRequest::setCommodityCode(const std::string& commodityCode)
- {
- commodityCode_ = commodityCode;
- setParameter("CommodityCode", commodityCode);
- }
- std::string SyncDataRequest::getRegion()const
- {
- return region_;
- }
- void SyncDataRequest::setRegion(const std::string& region)
- {
- region_ = region;
- setParameter("Region", region);
- }
- std::string SyncDataRequest::getUserId()const
- {
- return userId_;
- }
- void SyncDataRequest::setUserId(const std::string& userId)
- {
- userId_ = userId;
- setParameter("UserId", userId);
- }
|