| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- /*
- * 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/workorder/model/ListTicketsRequest.h>
- using AlibabaCloud::Workorder::Model::ListTicketsRequest;
- ListTicketsRequest::ListTicketsRequest() :
- RpcServiceRequest("workorder", "2021-06-10", "ListTickets")
- {
- setMethod(HttpRequest::Method::Post);
- }
- ListTicketsRequest::~ListTicketsRequest()
- {}
- std::vector<std::string> ListTicketsRequest::getStatusList()const
- {
- return statusList_;
- }
- void ListTicketsRequest::setStatusList(const std::vector<std::string>& statusList)
- {
- statusList_ = statusList;
- for(int dep1 = 0; dep1!= statusList.size(); dep1++) {
- setBodyParameter("StatusList."+ std::to_string(dep1), statusList.at(dep1));
- }
- }
- long ListTicketsRequest::getStartDate()const
- {
- return startDate_;
- }
- void ListTicketsRequest::setStartDate(long startDate)
- {
- startDate_ = startDate;
- setBodyParameter("StartDate", std::to_string(startDate));
- }
- int ListTicketsRequest::getPageNumber()const
- {
- return pageNumber_;
- }
- void ListTicketsRequest::setPageNumber(int pageNumber)
- {
- pageNumber_ = pageNumber;
- setParameter("PageNumber", std::to_string(pageNumber));
- }
- long ListTicketsRequest::getEndDate()const
- {
- return endDate_;
- }
- void ListTicketsRequest::setEndDate(long endDate)
- {
- endDate_ = endDate;
- setBodyParameter("EndDate", std::to_string(endDate));
- }
- int ListTicketsRequest::getPageSize()const
- {
- return pageSize_;
- }
- void ListTicketsRequest::setPageSize(int pageSize)
- {
- pageSize_ = pageSize;
- setParameter("PageSize", std::to_string(pageSize));
- }
- std::string ListTicketsRequest::getKeyword()const
- {
- return keyword_;
- }
- void ListTicketsRequest::setKeyword(const std::string& keyword)
- {
- keyword_ = keyword;
- setBodyParameter("Keyword", keyword);
- }
- std::string ListTicketsRequest::getTicketId()const
- {
- return ticketId_;
- }
- void ListTicketsRequest::setTicketId(const std::string& ticketId)
- {
- ticketId_ = ticketId;
- setBodyParameter("TicketId", ticketId);
- }
|