| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- /*
- * 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/vs/model/CreateDeviceRequest.h>
- using AlibabaCloud::Vs::Model::CreateDeviceRequest;
- CreateDeviceRequest::CreateDeviceRequest() :
- RpcServiceRequest("vs", "2018-12-12", "CreateDevice")
- {
- setMethod(HttpRequest::Method::Post);
- }
- CreateDeviceRequest::~CreateDeviceRequest()
- {}
- std::string CreateDeviceRequest::getGbId()const
- {
- return gbId_;
- }
- void CreateDeviceRequest::setGbId(const std::string& gbId)
- {
- gbId_ = gbId;
- setParameter("GbId", gbId);
- }
- std::string CreateDeviceRequest::getLatitude()const
- {
- return latitude_;
- }
- void CreateDeviceRequest::setLatitude(const std::string& latitude)
- {
- latitude_ = latitude;
- setParameter("Latitude", latitude);
- }
- std::string CreateDeviceRequest::getDescription()const
- {
- return description_;
- }
- void CreateDeviceRequest::setDescription(const std::string& description)
- {
- description_ = description;
- setParameter("Description", description);
- }
- std::string CreateDeviceRequest::getType()const
- {
- return type_;
- }
- void CreateDeviceRequest::setType(const std::string& type)
- {
- type_ = type;
- setParameter("Type", type);
- }
- bool CreateDeviceRequest::getAutoStart()const
- {
- return autoStart_;
- }
- void CreateDeviceRequest::setAutoStart(bool autoStart)
- {
- autoStart_ = autoStart;
- setParameter("AutoStart", autoStart ? "true" : "false");
- }
- std::string CreateDeviceRequest::getParentId()const
- {
- return parentId_;
- }
- void CreateDeviceRequest::setParentId(const std::string& parentId)
- {
- parentId_ = parentId;
- setParameter("ParentId", parentId);
- }
- std::string CreateDeviceRequest::getPassword()const
- {
- return password_;
- }
- void CreateDeviceRequest::setPassword(const std::string& password)
- {
- password_ = password;
- setParameter("Password", password);
- }
- std::string CreateDeviceRequest::getVendor()const
- {
- return vendor_;
- }
- void CreateDeviceRequest::setVendor(const std::string& vendor)
- {
- vendor_ = vendor;
- setParameter("Vendor", vendor);
- }
- std::string CreateDeviceRequest::getAlarmMethod()const
- {
- return alarmMethod_;
- }
- void CreateDeviceRequest::setAlarmMethod(const std::string& alarmMethod)
- {
- alarmMethod_ = alarmMethod;
- setParameter("AlarmMethod", alarmMethod);
- }
- std::string CreateDeviceRequest::getDirectoryId()const
- {
- return directoryId_;
- }
- void CreateDeviceRequest::setDirectoryId(const std::string& directoryId)
- {
- directoryId_ = directoryId;
- setParameter("DirectoryId", directoryId);
- }
- std::string CreateDeviceRequest::getShowLog()const
- {
- return showLog_;
- }
- void CreateDeviceRequest::setShowLog(const std::string& showLog)
- {
- showLog_ = showLog;
- setParameter("ShowLog", showLog);
- }
- std::string CreateDeviceRequest::getLongitude()const
- {
- return longitude_;
- }
- void CreateDeviceRequest::setLongitude(const std::string& longitude)
- {
- longitude_ = longitude;
- setParameter("Longitude", longitude);
- }
- std::string CreateDeviceRequest::getGroupId()const
- {
- return groupId_;
- }
- void CreateDeviceRequest::setGroupId(const std::string& groupId)
- {
- groupId_ = groupId;
- setParameter("GroupId", groupId);
- }
- std::string CreateDeviceRequest::getIp()const
- {
- return ip_;
- }
- void CreateDeviceRequest::setIp(const std::string& ip)
- {
- ip_ = ip;
- setParameter("Ip", ip);
- }
- long CreateDeviceRequest::getOwnerId()const
- {
- return ownerId_;
- }
- void CreateDeviceRequest::setOwnerId(long ownerId)
- {
- ownerId_ = ownerId;
- setParameter("OwnerId", std::to_string(ownerId));
- }
- std::string CreateDeviceRequest::getParams()const
- {
- return params_;
- }
- void CreateDeviceRequest::setParams(const std::string& params)
- {
- params_ = params;
- setParameter("Params", params);
- }
- std::string CreateDeviceRequest::getUrl()const
- {
- return url_;
- }
- void CreateDeviceRequest::setUrl(const std::string& url)
- {
- url_ = url;
- setParameter("Url", url);
- }
- long CreateDeviceRequest::getPort()const
- {
- return port_;
- }
- void CreateDeviceRequest::setPort(long port)
- {
- port_ = port;
- setParameter("Port", std::to_string(port));
- }
- std::string CreateDeviceRequest::getName()const
- {
- return name_;
- }
- void CreateDeviceRequest::setName(const std::string& name)
- {
- name_ = name;
- setParameter("Name", name);
- }
- long CreateDeviceRequest::getPosInterval()const
- {
- return posInterval_;
- }
- void CreateDeviceRequest::setPosInterval(long posInterval)
- {
- posInterval_ = posInterval;
- setParameter("PosInterval", std::to_string(posInterval));
- }
- std::string CreateDeviceRequest::getDsn()const
- {
- return dsn_;
- }
- void CreateDeviceRequest::setDsn(const std::string& dsn)
- {
- dsn_ = dsn;
- setParameter("Dsn", dsn);
- }
- std::string CreateDeviceRequest::getUsername()const
- {
- return username_;
- }
- void CreateDeviceRequest::setUsername(const std::string& username)
- {
- username_ = username;
- setParameter("Username", username);
- }
- bool CreateDeviceRequest::getAutoPos()const
- {
- return autoPos_;
- }
- void CreateDeviceRequest::setAutoPos(bool autoPos)
- {
- autoPos_ = autoPos;
- setParameter("AutoPos", autoPos ? "true" : "false");
- }
|