|
|
@@ -82,48 +82,130 @@ void DescribeSnapshotsRequest::setSnapshotLinkId(const std::string& snapshotLink
|
|
|
setParameter("SnapshotLinkId", snapshotLinkId);
|
|
|
}
|
|
|
|
|
|
-std::string DescribeSnapshotsRequest::getSnapshotName()const
|
|
|
+std::string DescribeSnapshotsRequest::getResourceGroupId()const
|
|
|
{
|
|
|
- return snapshotName_;
|
|
|
+ return resourceGroupId_;
|
|
|
}
|
|
|
|
|
|
-void DescribeSnapshotsRequest::setSnapshotName(const std::string& snapshotName)
|
|
|
+void DescribeSnapshotsRequest::setResourceGroupId(const std::string& resourceGroupId)
|
|
|
{
|
|
|
- snapshotName_ = snapshotName;
|
|
|
- setParameter("SnapshotName", snapshotName);
|
|
|
+ resourceGroupId_ = resourceGroupId;
|
|
|
+ setParameter("ResourceGroupId", resourceGroupId);
|
|
|
}
|
|
|
|
|
|
-int DescribeSnapshotsRequest::getPageNumber()const
|
|
|
+std::string DescribeSnapshotsRequest::getFilter1Key()const
|
|
|
{
|
|
|
- return pageNumber_;
|
|
|
+ return filter1Key_;
|
|
|
}
|
|
|
|
|
|
-void DescribeSnapshotsRequest::setPageNumber(int pageNumber)
|
|
|
+void DescribeSnapshotsRequest::setFilter1Key(const std::string& filter1Key)
|
|
|
{
|
|
|
- pageNumber_ = pageNumber;
|
|
|
- setParameter("PageNumber", std::to_string(pageNumber));
|
|
|
+ filter1Key_ = filter1Key;
|
|
|
+ setParameter("Filter1Key", filter1Key);
|
|
|
}
|
|
|
|
|
|
-std::string DescribeSnapshotsRequest::getResourceGroupId()const
|
|
|
+std::vector<DescribeSnapshotsRequest::Tag> DescribeSnapshotsRequest::getTag()const
|
|
|
{
|
|
|
- return resourceGroupId_;
|
|
|
+ return tag_;
|
|
|
}
|
|
|
|
|
|
-void DescribeSnapshotsRequest::setResourceGroupId(const std::string& resourceGroupId)
|
|
|
+void DescribeSnapshotsRequest::setTag(const std::vector<Tag>& tag)
|
|
|
{
|
|
|
- resourceGroupId_ = resourceGroupId;
|
|
|
- setParameter("ResourceGroupId", resourceGroupId);
|
|
|
+ tag_ = tag;
|
|
|
+ for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
|
|
+ auto tagObj = tag.at(dep1);
|
|
|
+ std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
|
|
+ setParameter(tagObjStr + ".Value", tagObj.value);
|
|
|
+ setParameter(tagObjStr + ".Key", tagObj.key);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-std::string DescribeSnapshotsRequest::getFilter1Key()const
|
|
|
+bool DescribeSnapshotsRequest::getDryRun()const
|
|
|
{
|
|
|
- return filter1Key_;
|
|
|
+ return dryRun_;
|
|
|
}
|
|
|
|
|
|
-void DescribeSnapshotsRequest::setFilter1Key(const std::string& filter1Key)
|
|
|
+void DescribeSnapshotsRequest::setDryRun(bool dryRun)
|
|
|
{
|
|
|
- filter1Key_ = filter1Key;
|
|
|
- setParameter("Filter1Key", filter1Key);
|
|
|
+ dryRun_ = dryRun;
|
|
|
+ setParameter("DryRun", dryRun ? "true" : "false");
|
|
|
+}
|
|
|
+
|
|
|
+std::string DescribeSnapshotsRequest::getFilter1Value()const
|
|
|
+{
|
|
|
+ return filter1Value_;
|
|
|
+}
|
|
|
+
|
|
|
+void DescribeSnapshotsRequest::setFilter1Value(const std::string& filter1Value)
|
|
|
+{
|
|
|
+ filter1Value_ = filter1Value;
|
|
|
+ setParameter("Filter1Value", filter1Value);
|
|
|
+}
|
|
|
+
|
|
|
+long DescribeSnapshotsRequest::getOwnerId()const
|
|
|
+{
|
|
|
+ return ownerId_;
|
|
|
+}
|
|
|
+
|
|
|
+void DescribeSnapshotsRequest::setOwnerId(long ownerId)
|
|
|
+{
|
|
|
+ ownerId_ = ownerId;
|
|
|
+ setParameter("OwnerId", std::to_string(ownerId));
|
|
|
+}
|
|
|
+
|
|
|
+std::string DescribeSnapshotsRequest::getInstanceId()const
|
|
|
+{
|
|
|
+ return instanceId_;
|
|
|
+}
|
|
|
+
|
|
|
+void DescribeSnapshotsRequest::setInstanceId(const std::string& instanceId)
|
|
|
+{
|
|
|
+ instanceId_ = instanceId;
|
|
|
+ setParameter("InstanceId", instanceId);
|
|
|
+}
|
|
|
+
|
|
|
+int DescribeSnapshotsRequest::getMaxResults()const
|
|
|
+{
|
|
|
+ return maxResults_;
|
|
|
+}
|
|
|
+
|
|
|
+void DescribeSnapshotsRequest::setMaxResults(int maxResults)
|
|
|
+{
|
|
|
+ maxResults_ = maxResults;
|
|
|
+ setParameter("MaxResults", std::to_string(maxResults));
|
|
|
+}
|
|
|
+
|
|
|
+std::string DescribeSnapshotsRequest::getStatus()const
|
|
|
+{
|
|
|
+ return status_;
|
|
|
+}
|
|
|
+
|
|
|
+void DescribeSnapshotsRequest::setStatus(const std::string& status)
|
|
|
+{
|
|
|
+ status_ = status;
|
|
|
+ setParameter("Status", status);
|
|
|
+}
|
|
|
+
|
|
|
+std::string DescribeSnapshotsRequest::getSnapshotName()const
|
|
|
+{
|
|
|
+ return snapshotName_;
|
|
|
+}
|
|
|
+
|
|
|
+void DescribeSnapshotsRequest::setSnapshotName(const std::string& snapshotName)
|
|
|
+{
|
|
|
+ snapshotName_ = snapshotName;
|
|
|
+ setParameter("SnapshotName", snapshotName);
|
|
|
+}
|
|
|
+
|
|
|
+int DescribeSnapshotsRequest::getPageNumber()const
|
|
|
+{
|
|
|
+ return pageNumber_;
|
|
|
+}
|
|
|
+
|
|
|
+void DescribeSnapshotsRequest::setPageNumber(int pageNumber)
|
|
|
+{
|
|
|
+ pageNumber_ = pageNumber;
|
|
|
+ setParameter("PageNumber", std::to_string(pageNumber));
|
|
|
}
|
|
|
|
|
|
std::string DescribeSnapshotsRequest::getRegionId()const
|
|
|
@@ -137,6 +219,17 @@ void DescribeSnapshotsRequest::setRegionId(const std::string& regionId)
|
|
|
setParameter("RegionId", regionId);
|
|
|
}
|
|
|
|
|
|
+std::string DescribeSnapshotsRequest::getNextToken()const
|
|
|
+{
|
|
|
+ return nextToken_;
|
|
|
+}
|
|
|
+
|
|
|
+void DescribeSnapshotsRequest::setNextToken(const std::string& nextToken)
|
|
|
+{
|
|
|
+ nextToken_ = nextToken;
|
|
|
+ setParameter("NextToken", nextToken);
|
|
|
+}
|
|
|
+
|
|
|
int DescribeSnapshotsRequest::getPageSize()const
|
|
|
{
|
|
|
return pageSize_;
|
|
|
@@ -159,33 +252,6 @@ void DescribeSnapshotsRequest::setDiskId(const std::string& diskId)
|
|
|
setParameter("DiskId", diskId);
|
|
|
}
|
|
|
|
|
|
-std::vector<DescribeSnapshotsRequest::Tag> DescribeSnapshotsRequest::getTag()const
|
|
|
-{
|
|
|
- return tag_;
|
|
|
-}
|
|
|
-
|
|
|
-void DescribeSnapshotsRequest::setTag(const std::vector<Tag>& tag)
|
|
|
-{
|
|
|
- tag_ = tag;
|
|
|
- for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
|
|
- auto tagObj = tag.at(dep1);
|
|
|
- std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
|
|
- setParameter(tagObjStr + ".Value", tagObj.value);
|
|
|
- setParameter(tagObjStr + ".Key", tagObj.key);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-bool DescribeSnapshotsRequest::getDryRun()const
|
|
|
-{
|
|
|
- return dryRun_;
|
|
|
-}
|
|
|
-
|
|
|
-void DescribeSnapshotsRequest::setDryRun(bool dryRun)
|
|
|
-{
|
|
|
- dryRun_ = dryRun;
|
|
|
- setParameter("DryRun", dryRun ? "true" : "false");
|
|
|
-}
|
|
|
-
|
|
|
std::string DescribeSnapshotsRequest::getResourceOwnerAccount()const
|
|
|
{
|
|
|
return resourceOwnerAccount_;
|
|
|
@@ -219,17 +285,6 @@ void DescribeSnapshotsRequest::setSourceDiskType(const std::string& sourceDiskTy
|
|
|
setParameter("SourceDiskType", sourceDiskType);
|
|
|
}
|
|
|
|
|
|
-std::string DescribeSnapshotsRequest::getFilter1Value()const
|
|
|
-{
|
|
|
- return filter1Value_;
|
|
|
-}
|
|
|
-
|
|
|
-void DescribeSnapshotsRequest::setFilter1Value(const std::string& filter1Value)
|
|
|
-{
|
|
|
- filter1Value_ = filter1Value;
|
|
|
- setParameter("Filter1Value", filter1Value);
|
|
|
-}
|
|
|
-
|
|
|
std::string DescribeSnapshotsRequest::getFilter2Key()const
|
|
|
{
|
|
|
return filter2Key_;
|
|
|
@@ -241,28 +296,6 @@ void DescribeSnapshotsRequest::setFilter2Key(const std::string& filter2Key)
|
|
|
setParameter("Filter2Key", filter2Key);
|
|
|
}
|
|
|
|
|
|
-long DescribeSnapshotsRequest::getOwnerId()const
|
|
|
-{
|
|
|
- return ownerId_;
|
|
|
-}
|
|
|
-
|
|
|
-void DescribeSnapshotsRequest::setOwnerId(long ownerId)
|
|
|
-{
|
|
|
- ownerId_ = ownerId;
|
|
|
- setParameter("OwnerId", std::to_string(ownerId));
|
|
|
-}
|
|
|
-
|
|
|
-std::string DescribeSnapshotsRequest::getInstanceId()const
|
|
|
-{
|
|
|
- return instanceId_;
|
|
|
-}
|
|
|
-
|
|
|
-void DescribeSnapshotsRequest::setInstanceId(const std::string& instanceId)
|
|
|
-{
|
|
|
- instanceId_ = instanceId;
|
|
|
- setParameter("InstanceId", instanceId);
|
|
|
-}
|
|
|
-
|
|
|
bool DescribeSnapshotsRequest::getEncrypted()const
|
|
|
{
|
|
|
return encrypted_;
|
|
|
@@ -307,14 +340,3 @@ void DescribeSnapshotsRequest::setCategory(const std::string& category)
|
|
|
setParameter("Category", category);
|
|
|
}
|
|
|
|
|
|
-std::string DescribeSnapshotsRequest::getStatus()const
|
|
|
-{
|
|
|
- return status_;
|
|
|
-}
|
|
|
-
|
|
|
-void DescribeSnapshotsRequest::setStatus(const std::string& status)
|
|
|
-{
|
|
|
- status_ = status;
|
|
|
- setParameter("Status", status);
|
|
|
-}
|
|
|
-
|