Files
aliyun-openapi-cpp-sdk/mts/src/model/CreateSessionRequest.cc
2020-03-26 17:47:49 +08:00

118 lines
2.9 KiB
C++

/*
* 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/mts/model/CreateSessionRequest.h>
using AlibabaCloud::Mts::Model::CreateSessionRequest;
CreateSessionRequest::CreateSessionRequest() :
RpcServiceRequest("mts", "2014-06-18", "CreateSession")
{
setMethod(HttpRequest::Method::Post);
}
CreateSessionRequest::~CreateSessionRequest()
{}
std::string CreateSessionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateSessionRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string CreateSessionRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateSessionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int CreateSessionRequest::getSessionTime()const
{
return sessionTime_;
}
void CreateSessionRequest::setSessionTime(int sessionTime)
{
sessionTime_ = sessionTime;
setParameter("SessionTime", std::to_string(sessionTime));
}
std::string CreateSessionRequest::getEndUserId()const
{
return endUserId_;
}
void CreateSessionRequest::setEndUserId(const std::string& endUserId)
{
endUserId_ = endUserId;
setParameter("EndUserId", endUserId);
}
std::string CreateSessionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateSessionRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateSessionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateSessionRequest::getOwnerId()const
{
return ownerId_;
}
void CreateSessionRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string CreateSessionRequest::getMediaId()const
{
return mediaId_;
}
void CreateSessionRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setParameter("MediaId", mediaId);
}