|
@@ -19,7 +19,7 @@
|
|
|
using AlibabaCloud::Actiontrail::Model::LookupEventsRequest;
|
|
using AlibabaCloud::Actiontrail::Model::LookupEventsRequest;
|
|
|
|
|
|
|
|
LookupEventsRequest::LookupEventsRequest() :
|
|
LookupEventsRequest::LookupEventsRequest() :
|
|
|
- RpcServiceRequest("actiontrail", "2017-12-04", "LookupEvents")
|
|
|
|
|
|
|
+ RpcServiceRequest("actiontrail", "2020-07-06", "LookupEvents")
|
|
|
{
|
|
{
|
|
|
setMethod(HttpRequest::Method::Post);
|
|
setMethod(HttpRequest::Method::Post);
|
|
|
}
|
|
}
|
|
@@ -27,15 +27,15 @@ LookupEventsRequest::LookupEventsRequest() :
|
|
|
LookupEventsRequest::~LookupEventsRequest()
|
|
LookupEventsRequest::~LookupEventsRequest()
|
|
|
{}
|
|
{}
|
|
|
|
|
|
|
|
-std::string LookupEventsRequest::getRequest()const
|
|
|
|
|
|
|
+std::string LookupEventsRequest::getEndTime()const
|
|
|
{
|
|
{
|
|
|
- return request_;
|
|
|
|
|
|
|
+ return endTime_;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void LookupEventsRequest::setRequest(const std::string& request)
|
|
|
|
|
|
|
+void LookupEventsRequest::setEndTime(const std::string& endTime)
|
|
|
{
|
|
{
|
|
|
- request_ = request;
|
|
|
|
|
- setParameter("Request", request);
|
|
|
|
|
|
|
+ endTime_ = endTime;
|
|
|
|
|
+ setParameter("EndTime", endTime);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
std::string LookupEventsRequest::getStartTime()const
|
|
std::string LookupEventsRequest::getStartTime()const
|
|
@@ -49,28 +49,6 @@ void LookupEventsRequest::setStartTime(const std::string& startTime)
|
|
|
setParameter("StartTime", startTime);
|
|
setParameter("StartTime", startTime);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-std::string LookupEventsRequest::getEventName()const
|
|
|
|
|
-{
|
|
|
|
|
- return eventName_;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void LookupEventsRequest::setEventName(const std::string& eventName)
|
|
|
|
|
-{
|
|
|
|
|
- eventName_ = eventName;
|
|
|
|
|
- setParameter("EventName", eventName);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-std::string LookupEventsRequest::getAccessKeyId()const
|
|
|
|
|
-{
|
|
|
|
|
- return accessKeyId_;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void LookupEventsRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
|
|
|
-{
|
|
|
|
|
- accessKeyId_ = accessKeyId;
|
|
|
|
|
- setParameter("AccessKeyId", accessKeyId);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
std::string LookupEventsRequest::getNextToken()const
|
|
std::string LookupEventsRequest::getNextToken()const
|
|
|
{
|
|
{
|
|
|
return nextToken_;
|
|
return nextToken_;
|
|
@@ -82,70 +60,20 @@ void LookupEventsRequest::setNextToken(const std::string& nextToken)
|
|
|
setParameter("NextToken", nextToken);
|
|
setParameter("NextToken", nextToken);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-std::string LookupEventsRequest::getServiceName()const
|
|
|
|
|
-{
|
|
|
|
|
- return serviceName_;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void LookupEventsRequest::setServiceName(const std::string& serviceName)
|
|
|
|
|
-{
|
|
|
|
|
- serviceName_ = serviceName;
|
|
|
|
|
- setParameter("ServiceName", serviceName);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-std::string LookupEventsRequest::getEvent()const
|
|
|
|
|
-{
|
|
|
|
|
- return event_;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void LookupEventsRequest::setEvent(const std::string& event)
|
|
|
|
|
-{
|
|
|
|
|
- event_ = event;
|
|
|
|
|
- setParameter("Event", event);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-std::string LookupEventsRequest::getEventAccessKeyId()const
|
|
|
|
|
-{
|
|
|
|
|
- return eventAccessKeyId_;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void LookupEventsRequest::setEventAccessKeyId(const std::string& eventAccessKeyId)
|
|
|
|
|
|
|
+std::vector<LookupEventsRequest::LookupAttribute> LookupEventsRequest::getLookupAttribute()const
|
|
|
{
|
|
{
|
|
|
- eventAccessKeyId_ = eventAccessKeyId;
|
|
|
|
|
- setParameter("EventAccessKeyId", eventAccessKeyId);
|
|
|
|
|
|
|
+ return lookupAttribute_;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-std::string LookupEventsRequest::getEndTime()const
|
|
|
|
|
-{
|
|
|
|
|
- return endTime_;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void LookupEventsRequest::setEndTime(const std::string& endTime)
|
|
|
|
|
-{
|
|
|
|
|
- endTime_ = endTime;
|
|
|
|
|
- setParameter("EndTime", endTime);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-std::string LookupEventsRequest::getEventRW()const
|
|
|
|
|
-{
|
|
|
|
|
- return eventRW_;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void LookupEventsRequest::setEventRW(const std::string& eventRW)
|
|
|
|
|
-{
|
|
|
|
|
- eventRW_ = eventRW;
|
|
|
|
|
- setParameter("EventRW", eventRW);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-std::string LookupEventsRequest::getResourceType()const
|
|
|
|
|
-{
|
|
|
|
|
- return resourceType_;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void LookupEventsRequest::setResourceType(const std::string& resourceType)
|
|
|
|
|
|
|
+void LookupEventsRequest::setLookupAttribute(const std::vector<LookupAttribute>& lookupAttribute)
|
|
|
{
|
|
{
|
|
|
- resourceType_ = resourceType;
|
|
|
|
|
- setParameter("ResourceType", resourceType);
|
|
|
|
|
|
|
+ lookupAttribute_ = lookupAttribute;
|
|
|
|
|
+ for(int dep1 = 0; dep1!= lookupAttribute.size(); dep1++) {
|
|
|
|
|
+ auto lookupAttributeObj = lookupAttribute.at(dep1);
|
|
|
|
|
+ std::string lookupAttributeObjStr = "LookupAttribute." + std::to_string(dep1 + 1);
|
|
|
|
|
+ setParameter(lookupAttributeObjStr + ".Value", lookupAttributeObj.value);
|
|
|
|
|
+ setParameter(lookupAttributeObjStr + ".Key", lookupAttributeObj.key);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
std::string LookupEventsRequest::getMaxResults()const
|
|
std::string LookupEventsRequest::getMaxResults()const
|
|
@@ -159,36 +87,14 @@ void LookupEventsRequest::setMaxResults(const std::string& maxResults)
|
|
|
setParameter("MaxResults", maxResults);
|
|
setParameter("MaxResults", maxResults);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-std::string LookupEventsRequest::getEventType()const
|
|
|
|
|
-{
|
|
|
|
|
- return eventType_;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void LookupEventsRequest::setEventType(const std::string& eventType)
|
|
|
|
|
-{
|
|
|
|
|
- eventType_ = eventType;
|
|
|
|
|
- setParameter("EventType", eventType);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-std::string LookupEventsRequest::getResourceName()const
|
|
|
|
|
-{
|
|
|
|
|
- return resourceName_;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void LookupEventsRequest::setResourceName(const std::string& resourceName)
|
|
|
|
|
-{
|
|
|
|
|
- resourceName_ = resourceName;
|
|
|
|
|
- setParameter("ResourceName", resourceName);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-std::string LookupEventsRequest::getUser()const
|
|
|
|
|
|
|
+std::string LookupEventsRequest::getDirection()const
|
|
|
{
|
|
{
|
|
|
- return user_;
|
|
|
|
|
|
|
+ return direction_;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void LookupEventsRequest::setUser(const std::string& user)
|
|
|
|
|
|
|
+void LookupEventsRequest::setDirection(const std::string& direction)
|
|
|
{
|
|
{
|
|
|
- user_ = user;
|
|
|
|
|
- setParameter("User", user);
|
|
|
|
|
|
|
+ direction_ = direction;
|
|
|
|
|
+ setParameter("Direction", direction);
|
|
|
}
|
|
}
|
|
|
|
|
|