101 lines
3.3 KiB
C++
101 lines
3.3 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/nas/model/CreateDataFlowSubTaskRequest.h>
|
|
|
|
using AlibabaCloud::NAS::Model::CreateDataFlowSubTaskRequest;
|
|
|
|
CreateDataFlowSubTaskRequest::CreateDataFlowSubTaskRequest()
|
|
: RpcServiceRequest("nas", "2017-06-26", "CreateDataFlowSubTask") {
|
|
setMethod(HttpRequest::Method::Post);
|
|
}
|
|
|
|
CreateDataFlowSubTaskRequest::~CreateDataFlowSubTaskRequest() {}
|
|
|
|
std::string CreateDataFlowSubTaskRequest::getClientToken() const {
|
|
return clientToken_;
|
|
}
|
|
|
|
void CreateDataFlowSubTaskRequest::setClientToken(const std::string &clientToken) {
|
|
clientToken_ = clientToken;
|
|
setParameter(std::string("ClientToken"), clientToken);
|
|
}
|
|
|
|
std::string CreateDataFlowSubTaskRequest::getDataFlowTaskId() const {
|
|
return dataFlowTaskId_;
|
|
}
|
|
|
|
void CreateDataFlowSubTaskRequest::setDataFlowTaskId(const std::string &dataFlowTaskId) {
|
|
dataFlowTaskId_ = dataFlowTaskId;
|
|
setParameter(std::string("DataFlowTaskId"), dataFlowTaskId);
|
|
}
|
|
|
|
std::string CreateDataFlowSubTaskRequest::getSrcFilePath() const {
|
|
return srcFilePath_;
|
|
}
|
|
|
|
void CreateDataFlowSubTaskRequest::setSrcFilePath(const std::string &srcFilePath) {
|
|
srcFilePath_ = srcFilePath;
|
|
setParameter(std::string("SrcFilePath"), srcFilePath);
|
|
}
|
|
|
|
std::string CreateDataFlowSubTaskRequest::getFileSystemId() const {
|
|
return fileSystemId_;
|
|
}
|
|
|
|
void CreateDataFlowSubTaskRequest::setFileSystemId(const std::string &fileSystemId) {
|
|
fileSystemId_ = fileSystemId;
|
|
setParameter(std::string("FileSystemId"), fileSystemId);
|
|
}
|
|
|
|
bool CreateDataFlowSubTaskRequest::getDryRun() const {
|
|
return dryRun_;
|
|
}
|
|
|
|
void CreateDataFlowSubTaskRequest::setDryRun(bool dryRun) {
|
|
dryRun_ = dryRun;
|
|
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
|
}
|
|
|
|
std::string CreateDataFlowSubTaskRequest::getDataFlowId() const {
|
|
return dataFlowId_;
|
|
}
|
|
|
|
void CreateDataFlowSubTaskRequest::setDataFlowId(const std::string &dataFlowId) {
|
|
dataFlowId_ = dataFlowId;
|
|
setParameter(std::string("DataFlowId"), dataFlowId);
|
|
}
|
|
|
|
std::string CreateDataFlowSubTaskRequest::getDstFilePath() const {
|
|
return dstFilePath_;
|
|
}
|
|
|
|
void CreateDataFlowSubTaskRequest::setDstFilePath(const std::string &dstFilePath) {
|
|
dstFilePath_ = dstFilePath;
|
|
setParameter(std::string("DstFilePath"), dstFilePath);
|
|
}
|
|
|
|
CreateDataFlowSubTaskRequest::Condition CreateDataFlowSubTaskRequest::getCondition() const {
|
|
return condition_;
|
|
}
|
|
|
|
void CreateDataFlowSubTaskRequest::setCondition(const CreateDataFlowSubTaskRequest::Condition &condition) {
|
|
condition_ = condition;
|
|
setParameter(std::string("Condition") + ".Size", std::to_string(condition.size));
|
|
setParameter(std::string("Condition") + ".ModifyTime", std::to_string(condition.modifyTime));
|
|
}
|
|
|