From 0fa981b5893655ea92ee1070cf6d0419a0259811 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 1 Feb 2024 08:24:44 +0000 Subject: [PATCH] Bugfix: change response code type to string for StartEventStreaming. --- VERSION | 2 +- eventbridge/CMakeLists.txt | 254 +++ .../eventbridge/EventbridgeClient.h | 390 ++++ .../eventbridge/EventbridgeExport.h | 32 + .../model/CreateApiDestinationRequest.h | 67 + .../model/CreateApiDestinationResult.h | 59 + .../model/CreateConnectionRequest.h | 128 ++ .../model/CreateConnectionResult.h | 59 + .../eventbridge/model/CreateEventBusRequest.h | 48 + .../eventbridge/model/CreateEventBusResult.h | 61 + .../model/CreateEventSourceRequest.h | 140 ++ .../model/CreateEventSourceResult.h | 61 + .../model/CreateEventStreamingRequest.h | 567 ++++++ .../model/CreateEventStreamingResult.h | 61 + .../eventbridge/model/CreateRuleRequest.h | 82 + .../eventbridge/model/CreateRuleResult.h | 61 + ...CreateServiceLinkedRoleForProductRequest.h | 42 + .../CreateServiceLinkedRoleForProductResult.h | 55 + .../model/DeleteApiDestinationRequest.h | 45 + .../model/DeleteApiDestinationResult.h | 53 + .../model/DeleteConnectionRequest.h | 42 + .../model/DeleteConnectionResult.h | 53 + .../eventbridge/model/DeleteEventBusRequest.h | 45 + .../eventbridge/model/DeleteEventBusResult.h | 57 + .../model/DeleteEventSourceRequest.h | 42 + .../model/DeleteEventSourceResult.h | 57 + .../model/DeleteEventStreamingRequest.h | 42 + .../model/DeleteEventStreamingResult.h | 57 + .../eventbridge/model/DeleteRuleRequest.h | 45 + .../eventbridge/model/DeleteRuleResult.h | 57 + .../eventbridge/model/DeleteTargetsRequest.h | 48 + .../eventbridge/model/DeleteTargetsResult.h | 68 + .../eventbridge/model/DisableRuleRequest.h | 45 + .../eventbridge/model/DisableRuleResult.h | 57 + .../eventbridge/model/EnableRuleRequest.h | 45 + .../eventbridge/model/EnableRuleResult.h | 57 + .../model/GetApiDestinationRequest.h | 45 + .../model/GetApiDestinationResult.h | 77 + .../eventbridge/model/GetConnectionRequest.h | 42 + .../eventbridge/model/GetConnectionResult.h | 155 ++ .../eventbridge/model/GetEventBusRequest.h | 42 + .../eventbridge/model/GetEventBusResult.h | 64 + .../model/GetEventStreamingRequest.h | 42 + .../model/GetEventStreamingResult.h | 485 +++++ .../eventbridge/model/GetRuleRequest.h | 45 + .../eventbridge/model/GetRuleResult.h | 91 + .../ListAliyunOfficialEventSourcesRequest.h | 51 + .../ListAliyunOfficialEventSourcesResult.h | 83 + .../model/ListApiDestinationsRequest.h | 57 + .../model/ListApiDestinationsResult.h | 85 + .../model/ListConnectionsRequest.h | 48 + .../eventbridge/model/ListConnectionsResult.h | 156 ++ .../eventbridge/model/ListEventBusesRequest.h | 51 + .../eventbridge/model/ListEventBusesResult.h | 70 + .../model/ListEventStreamingsRequest.h | 63 + .../model/ListEventStreamingsResult.h | 484 +++++ .../eventbridge/model/ListRulesRequest.h | 51 + .../eventbridge/model/ListRulesResult.h | 83 + .../eventbridge/model/ListTargetsRequest.h | 54 + .../eventbridge/model/ListTargetsResult.h | 82 + .../ListUserDefinedEventSourcesRequest.h | 54 + .../model/ListUserDefinedEventSourcesResult.h | 150 ++ .../model/PauseEventStreamingRequest.h | 42 + .../model/PauseEventStreamingResult.h | 57 + .../eventbridge/model/PutTargetsRequest.h | 70 + .../eventbridge/model/PutTargetsResult.h | 68 + .../eventbridge/model/QueryEventRequest.h | 48 + .../eventbridge/model/QueryEventResult.h | 57 + .../model/QueryEventTracesRequest.h | 45 + .../model/QueryEventTracesResult.h | 72 + .../model/QueryTracedEventByEventIdRequest.h | 48 + .../model/QueryTracedEventByEventIdResult.h | 71 + .../model/QueryTracedEventsRequest.h | 63 + .../model/QueryTracedEventsResult.h | 71 + .../model/StartEventStreamingRequest.h | 42 + .../model/StartEventStreamingResult.h | 57 + .../model/TestEventPatternRequest.h | 45 + .../model/TestEventPatternResult.h | 61 + .../model/UpdateApiDestinationRequest.h | 70 + .../model/UpdateApiDestinationResult.h | 55 + .../model/UpdateConnectionRequest.h | 128 ++ .../model/UpdateConnectionResult.h | 53 + .../eventbridge/model/UpdateEventBusRequest.h | 45 + .../eventbridge/model/UpdateEventBusResult.h | 57 + .../model/UpdateEventSourceRequest.h | 140 ++ .../model/UpdateEventSourceResult.h | 57 + .../model/UpdateEventStreamingRequest.h | 471 +++++ .../model/UpdateEventStreamingResult.h | 57 + .../eventbridge/model/UpdateRuleRequest.h | 57 + .../eventbridge/model/UpdateRuleResult.h | 57 + eventbridge/src/EventbridgeClient.cc | 1601 +++++++++++++++++ .../src/model/CreateApiDestinationRequest.cc | 80 + .../src/model/CreateApiDestinationResult.cc | 66 + .../src/model/CreateConnectionRequest.cc | 104 ++ .../src/model/CreateConnectionResult.cc | 66 + .../src/model/CreateEventBusRequest.cc | 54 + eventbridge/src/model/CreateEventBusResult.cc | 73 + .../src/model/CreateEventSourceRequest.cc | 188 ++ .../src/model/CreateEventSourceResult.cc | 73 + .../src/model/CreateEventStreamingRequest.cc | 347 ++++ .../src/model/CreateEventStreamingResult.cc | 73 + eventbridge/src/model/CreateRuleRequest.cc | 112 ++ eventbridge/src/model/CreateRuleResult.cc | 73 + ...reateServiceLinkedRoleForProductRequest.cc | 36 + ...CreateServiceLinkedRoleForProductResult.cc | 65 + .../src/model/DeleteApiDestinationRequest.cc | 45 + .../src/model/DeleteApiDestinationResult.cc | 58 + .../src/model/DeleteConnectionRequest.cc | 36 + .../src/model/DeleteConnectionResult.cc | 58 + .../src/model/DeleteEventBusRequest.cc | 45 + eventbridge/src/model/DeleteEventBusResult.cc | 72 + .../src/model/DeleteEventSourceRequest.cc | 36 + .../src/model/DeleteEventSourceResult.cc | 72 + .../src/model/DeleteEventStreamingRequest.cc | 36 + .../src/model/DeleteEventStreamingResult.cc | 72 + eventbridge/src/model/DeleteRuleRequest.cc | 45 + eventbridge/src/model/DeleteRuleResult.cc | 72 + eventbridge/src/model/DeleteTargetsRequest.cc | 56 + eventbridge/src/model/DeleteTargetsResult.cc | 85 + eventbridge/src/model/DisableRuleRequest.cc | 45 + eventbridge/src/model/DisableRuleResult.cc | 72 + eventbridge/src/model/EnableRuleRequest.cc | 45 + eventbridge/src/model/EnableRuleResult.cc | 72 + .../src/model/GetApiDestinationRequest.cc | 45 + .../src/model/GetApiDestinationResult.cc | 93 + eventbridge/src/model/GetConnectionRequest.cc | 36 + eventbridge/src/model/GetConnectionResult.cc | 191 ++ eventbridge/src/model/GetEventBusRequest.cc | 36 + eventbridge/src/model/GetEventBusResult.cc | 79 + .../src/model/GetEventStreamingRequest.cc | 36 + .../src/model/GetEventStreamingResult.cc | 499 +++++ eventbridge/src/model/GetRuleRequest.cc | 45 + eventbridge/src/model/GetRuleResult.cc | 122 ++ .../ListAliyunOfficialEventSourcesRequest.cc | 63 + .../ListAliyunOfficialEventSourcesResult.cc | 113 ++ .../src/model/ListApiDestinationsRequest.cc | 81 + .../src/model/ListApiDestinationsResult.cc | 107 ++ .../src/model/ListConnectionsRequest.cc | 54 + .../src/model/ListConnectionsResult.cc | 190 ++ .../src/model/ListEventBusesRequest.cc | 63 + eventbridge/src/model/ListEventBusesResult.cc | 89 + .../src/model/ListEventStreamingsRequest.cc | 99 + .../src/model/ListEventStreamingsResult.cc | 502 ++++++ eventbridge/src/model/ListRulesRequest.cc | 63 + eventbridge/src/model/ListRulesResult.cc | 113 ++ eventbridge/src/model/ListTargetsRequest.cc | 72 + eventbridge/src/model/ListTargetsResult.cc | 111 ++ .../ListUserDefinedEventSourcesRequest.cc | 72 + .../ListUserDefinedEventSourcesResult.cc | 205 +++ .../src/model/PauseEventStreamingRequest.cc | 36 + .../src/model/PauseEventStreamingResult.cc | 72 + eventbridge/src/model/PutTargetsRequest.cc | 76 + eventbridge/src/model/PutTargetsResult.cc | 85 + eventbridge/src/model/QueryEventRequest.cc | 54 + eventbridge/src/model/QueryEventResult.cc | 72 + .../src/model/QueryEventTracesRequest.cc | 45 + .../src/model/QueryEventTracesResult.cc | 100 + .../model/QueryTracedEventByEventIdRequest.cc | 54 + .../model/QueryTracedEventByEventIdResult.cc | 96 + .../src/model/QueryTracedEventsRequest.cc | 99 + .../src/model/QueryTracedEventsResult.cc | 91 + .../src/model/StartEventStreamingRequest.cc | 36 + .../src/model/StartEventStreamingResult.cc | 72 + .../src/model/TestEventPatternRequest.cc | 45 + .../src/model/TestEventPatternResult.cc | 73 + .../src/model/UpdateApiDestinationRequest.cc | 89 + .../src/model/UpdateApiDestinationResult.cc | 65 + .../src/model/UpdateConnectionRequest.cc | 104 ++ .../src/model/UpdateConnectionResult.cc | 58 + .../src/model/UpdateEventBusRequest.cc | 45 + eventbridge/src/model/UpdateEventBusResult.cc | 72 + .../src/model/UpdateEventSourceRequest.cc | 190 ++ .../src/model/UpdateEventSourceResult.cc | 72 + .../src/model/UpdateEventStreamingRequest.cc | 296 +++ .../src/model/UpdateEventStreamingResult.cc | 72 + eventbridge/src/model/UpdateRuleRequest.cc | 81 + eventbridge/src/model/UpdateRuleResult.cc | 72 + 177 files changed, 17491 insertions(+), 1 deletion(-) create mode 100644 eventbridge/CMakeLists.txt create mode 100644 eventbridge/include/alibabacloud/eventbridge/EventbridgeClient.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/EventbridgeExport.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateApiDestinationRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateApiDestinationResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateConnectionRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateConnectionResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateEventBusRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateEventBusResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateEventSourceRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateEventSourceResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateEventStreamingRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateEventStreamingResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateRuleRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateRuleResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateServiceLinkedRoleForProductRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/CreateServiceLinkedRoleForProductResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteApiDestinationRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteApiDestinationResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteConnectionRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteConnectionResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteEventBusRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteEventBusResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteEventSourceRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteEventSourceResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteEventStreamingRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteEventStreamingResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteRuleRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteRuleResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteTargetsRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DeleteTargetsResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DisableRuleRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/DisableRuleResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/EnableRuleRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/EnableRuleResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/GetApiDestinationRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/GetApiDestinationResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/GetConnectionRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/GetConnectionResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/GetEventBusRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/GetEventBusResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/GetEventStreamingRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/GetEventStreamingResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/GetRuleRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/GetRuleResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListAliyunOfficialEventSourcesRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListAliyunOfficialEventSourcesResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListApiDestinationsRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListApiDestinationsResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListConnectionsRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListConnectionsResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListEventBusesRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListEventBusesResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListEventStreamingsRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListEventStreamingsResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListRulesRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListRulesResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListTargetsRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListTargetsResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListUserDefinedEventSourcesRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/ListUserDefinedEventSourcesResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/PauseEventStreamingRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/PauseEventStreamingResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/PutTargetsRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/PutTargetsResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/QueryEventRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/QueryEventResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/QueryEventTracesRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/QueryEventTracesResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventByEventIdRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventByEventIdResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventsRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventsResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/StartEventStreamingRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/StartEventStreamingResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/TestEventPatternRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/TestEventPatternResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateApiDestinationRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateApiDestinationResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateConnectionRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateConnectionResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateEventBusRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateEventBusResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateEventSourceRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateEventSourceResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateEventStreamingRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateEventStreamingResult.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateRuleRequest.h create mode 100644 eventbridge/include/alibabacloud/eventbridge/model/UpdateRuleResult.h create mode 100644 eventbridge/src/EventbridgeClient.cc create mode 100644 eventbridge/src/model/CreateApiDestinationRequest.cc create mode 100644 eventbridge/src/model/CreateApiDestinationResult.cc create mode 100644 eventbridge/src/model/CreateConnectionRequest.cc create mode 100644 eventbridge/src/model/CreateConnectionResult.cc create mode 100644 eventbridge/src/model/CreateEventBusRequest.cc create mode 100644 eventbridge/src/model/CreateEventBusResult.cc create mode 100644 eventbridge/src/model/CreateEventSourceRequest.cc create mode 100644 eventbridge/src/model/CreateEventSourceResult.cc create mode 100644 eventbridge/src/model/CreateEventStreamingRequest.cc create mode 100644 eventbridge/src/model/CreateEventStreamingResult.cc create mode 100644 eventbridge/src/model/CreateRuleRequest.cc create mode 100644 eventbridge/src/model/CreateRuleResult.cc create mode 100644 eventbridge/src/model/CreateServiceLinkedRoleForProductRequest.cc create mode 100644 eventbridge/src/model/CreateServiceLinkedRoleForProductResult.cc create mode 100644 eventbridge/src/model/DeleteApiDestinationRequest.cc create mode 100644 eventbridge/src/model/DeleteApiDestinationResult.cc create mode 100644 eventbridge/src/model/DeleteConnectionRequest.cc create mode 100644 eventbridge/src/model/DeleteConnectionResult.cc create mode 100644 eventbridge/src/model/DeleteEventBusRequest.cc create mode 100644 eventbridge/src/model/DeleteEventBusResult.cc create mode 100644 eventbridge/src/model/DeleteEventSourceRequest.cc create mode 100644 eventbridge/src/model/DeleteEventSourceResult.cc create mode 100644 eventbridge/src/model/DeleteEventStreamingRequest.cc create mode 100644 eventbridge/src/model/DeleteEventStreamingResult.cc create mode 100644 eventbridge/src/model/DeleteRuleRequest.cc create mode 100644 eventbridge/src/model/DeleteRuleResult.cc create mode 100644 eventbridge/src/model/DeleteTargetsRequest.cc create mode 100644 eventbridge/src/model/DeleteTargetsResult.cc create mode 100644 eventbridge/src/model/DisableRuleRequest.cc create mode 100644 eventbridge/src/model/DisableRuleResult.cc create mode 100644 eventbridge/src/model/EnableRuleRequest.cc create mode 100644 eventbridge/src/model/EnableRuleResult.cc create mode 100644 eventbridge/src/model/GetApiDestinationRequest.cc create mode 100644 eventbridge/src/model/GetApiDestinationResult.cc create mode 100644 eventbridge/src/model/GetConnectionRequest.cc create mode 100644 eventbridge/src/model/GetConnectionResult.cc create mode 100644 eventbridge/src/model/GetEventBusRequest.cc create mode 100644 eventbridge/src/model/GetEventBusResult.cc create mode 100644 eventbridge/src/model/GetEventStreamingRequest.cc create mode 100644 eventbridge/src/model/GetEventStreamingResult.cc create mode 100644 eventbridge/src/model/GetRuleRequest.cc create mode 100644 eventbridge/src/model/GetRuleResult.cc create mode 100644 eventbridge/src/model/ListAliyunOfficialEventSourcesRequest.cc create mode 100644 eventbridge/src/model/ListAliyunOfficialEventSourcesResult.cc create mode 100644 eventbridge/src/model/ListApiDestinationsRequest.cc create mode 100644 eventbridge/src/model/ListApiDestinationsResult.cc create mode 100644 eventbridge/src/model/ListConnectionsRequest.cc create mode 100644 eventbridge/src/model/ListConnectionsResult.cc create mode 100644 eventbridge/src/model/ListEventBusesRequest.cc create mode 100644 eventbridge/src/model/ListEventBusesResult.cc create mode 100644 eventbridge/src/model/ListEventStreamingsRequest.cc create mode 100644 eventbridge/src/model/ListEventStreamingsResult.cc create mode 100644 eventbridge/src/model/ListRulesRequest.cc create mode 100644 eventbridge/src/model/ListRulesResult.cc create mode 100644 eventbridge/src/model/ListTargetsRequest.cc create mode 100644 eventbridge/src/model/ListTargetsResult.cc create mode 100644 eventbridge/src/model/ListUserDefinedEventSourcesRequest.cc create mode 100644 eventbridge/src/model/ListUserDefinedEventSourcesResult.cc create mode 100644 eventbridge/src/model/PauseEventStreamingRequest.cc create mode 100644 eventbridge/src/model/PauseEventStreamingResult.cc create mode 100644 eventbridge/src/model/PutTargetsRequest.cc create mode 100644 eventbridge/src/model/PutTargetsResult.cc create mode 100644 eventbridge/src/model/QueryEventRequest.cc create mode 100644 eventbridge/src/model/QueryEventResult.cc create mode 100644 eventbridge/src/model/QueryEventTracesRequest.cc create mode 100644 eventbridge/src/model/QueryEventTracesResult.cc create mode 100644 eventbridge/src/model/QueryTracedEventByEventIdRequest.cc create mode 100644 eventbridge/src/model/QueryTracedEventByEventIdResult.cc create mode 100644 eventbridge/src/model/QueryTracedEventsRequest.cc create mode 100644 eventbridge/src/model/QueryTracedEventsResult.cc create mode 100644 eventbridge/src/model/StartEventStreamingRequest.cc create mode 100644 eventbridge/src/model/StartEventStreamingResult.cc create mode 100644 eventbridge/src/model/TestEventPatternRequest.cc create mode 100644 eventbridge/src/model/TestEventPatternResult.cc create mode 100644 eventbridge/src/model/UpdateApiDestinationRequest.cc create mode 100644 eventbridge/src/model/UpdateApiDestinationResult.cc create mode 100644 eventbridge/src/model/UpdateConnectionRequest.cc create mode 100644 eventbridge/src/model/UpdateConnectionResult.cc create mode 100644 eventbridge/src/model/UpdateEventBusRequest.cc create mode 100644 eventbridge/src/model/UpdateEventBusResult.cc create mode 100644 eventbridge/src/model/UpdateEventSourceRequest.cc create mode 100644 eventbridge/src/model/UpdateEventSourceResult.cc create mode 100644 eventbridge/src/model/UpdateEventStreamingRequest.cc create mode 100644 eventbridge/src/model/UpdateEventStreamingResult.cc create mode 100644 eventbridge/src/model/UpdateRuleRequest.cc create mode 100644 eventbridge/src/model/UpdateRuleResult.cc diff --git a/VERSION b/VERSION index 73a1af7e8..3feea9196 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1859 \ No newline at end of file +1.36.1860 \ No newline at end of file diff --git a/eventbridge/CMakeLists.txt b/eventbridge/CMakeLists.txt new file mode 100644 index 000000000..c1f336ff7 --- /dev/null +++ b/eventbridge/CMakeLists.txt @@ -0,0 +1,254 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(eventbridge_public_header + include/alibabacloud/eventbridge/EventbridgeClient.h + include/alibabacloud/eventbridge/EventbridgeExport.h ) + +set(eventbridge_public_header_model + include/alibabacloud/eventbridge/model/CreateApiDestinationRequest.h + include/alibabacloud/eventbridge/model/CreateApiDestinationResult.h + include/alibabacloud/eventbridge/model/CreateConnectionRequest.h + include/alibabacloud/eventbridge/model/CreateConnectionResult.h + include/alibabacloud/eventbridge/model/CreateEventBusRequest.h + include/alibabacloud/eventbridge/model/CreateEventBusResult.h + include/alibabacloud/eventbridge/model/CreateEventSourceRequest.h + include/alibabacloud/eventbridge/model/CreateEventSourceResult.h + include/alibabacloud/eventbridge/model/CreateEventStreamingRequest.h + include/alibabacloud/eventbridge/model/CreateEventStreamingResult.h + include/alibabacloud/eventbridge/model/CreateRuleRequest.h + include/alibabacloud/eventbridge/model/CreateRuleResult.h + include/alibabacloud/eventbridge/model/CreateServiceLinkedRoleForProductRequest.h + include/alibabacloud/eventbridge/model/CreateServiceLinkedRoleForProductResult.h + include/alibabacloud/eventbridge/model/DeleteApiDestinationRequest.h + include/alibabacloud/eventbridge/model/DeleteApiDestinationResult.h + include/alibabacloud/eventbridge/model/DeleteConnectionRequest.h + include/alibabacloud/eventbridge/model/DeleteConnectionResult.h + include/alibabacloud/eventbridge/model/DeleteEventBusRequest.h + include/alibabacloud/eventbridge/model/DeleteEventBusResult.h + include/alibabacloud/eventbridge/model/DeleteEventSourceRequest.h + include/alibabacloud/eventbridge/model/DeleteEventSourceResult.h + include/alibabacloud/eventbridge/model/DeleteEventStreamingRequest.h + include/alibabacloud/eventbridge/model/DeleteEventStreamingResult.h + include/alibabacloud/eventbridge/model/DeleteRuleRequest.h + include/alibabacloud/eventbridge/model/DeleteRuleResult.h + include/alibabacloud/eventbridge/model/DeleteTargetsRequest.h + include/alibabacloud/eventbridge/model/DeleteTargetsResult.h + include/alibabacloud/eventbridge/model/DisableRuleRequest.h + include/alibabacloud/eventbridge/model/DisableRuleResult.h + include/alibabacloud/eventbridge/model/EnableRuleRequest.h + include/alibabacloud/eventbridge/model/EnableRuleResult.h + include/alibabacloud/eventbridge/model/GetApiDestinationRequest.h + include/alibabacloud/eventbridge/model/GetApiDestinationResult.h + include/alibabacloud/eventbridge/model/GetConnectionRequest.h + include/alibabacloud/eventbridge/model/GetConnectionResult.h + include/alibabacloud/eventbridge/model/GetEventBusRequest.h + include/alibabacloud/eventbridge/model/GetEventBusResult.h + include/alibabacloud/eventbridge/model/GetEventStreamingRequest.h + include/alibabacloud/eventbridge/model/GetEventStreamingResult.h + include/alibabacloud/eventbridge/model/GetRuleRequest.h + include/alibabacloud/eventbridge/model/GetRuleResult.h + include/alibabacloud/eventbridge/model/ListAliyunOfficialEventSourcesRequest.h + include/alibabacloud/eventbridge/model/ListAliyunOfficialEventSourcesResult.h + include/alibabacloud/eventbridge/model/ListApiDestinationsRequest.h + include/alibabacloud/eventbridge/model/ListApiDestinationsResult.h + include/alibabacloud/eventbridge/model/ListConnectionsRequest.h + include/alibabacloud/eventbridge/model/ListConnectionsResult.h + include/alibabacloud/eventbridge/model/ListEventBusesRequest.h + include/alibabacloud/eventbridge/model/ListEventBusesResult.h + include/alibabacloud/eventbridge/model/ListEventStreamingsRequest.h + include/alibabacloud/eventbridge/model/ListEventStreamingsResult.h + include/alibabacloud/eventbridge/model/ListRulesRequest.h + include/alibabacloud/eventbridge/model/ListRulesResult.h + include/alibabacloud/eventbridge/model/ListTargetsRequest.h + include/alibabacloud/eventbridge/model/ListTargetsResult.h + include/alibabacloud/eventbridge/model/ListUserDefinedEventSourcesRequest.h + include/alibabacloud/eventbridge/model/ListUserDefinedEventSourcesResult.h + include/alibabacloud/eventbridge/model/PauseEventStreamingRequest.h + include/alibabacloud/eventbridge/model/PauseEventStreamingResult.h + include/alibabacloud/eventbridge/model/PutTargetsRequest.h + include/alibabacloud/eventbridge/model/PutTargetsResult.h + include/alibabacloud/eventbridge/model/QueryEventRequest.h + include/alibabacloud/eventbridge/model/QueryEventResult.h + include/alibabacloud/eventbridge/model/QueryEventTracesRequest.h + include/alibabacloud/eventbridge/model/QueryEventTracesResult.h + include/alibabacloud/eventbridge/model/QueryTracedEventByEventIdRequest.h + include/alibabacloud/eventbridge/model/QueryTracedEventByEventIdResult.h + include/alibabacloud/eventbridge/model/QueryTracedEventsRequest.h + include/alibabacloud/eventbridge/model/QueryTracedEventsResult.h + include/alibabacloud/eventbridge/model/StartEventStreamingRequest.h + include/alibabacloud/eventbridge/model/StartEventStreamingResult.h + include/alibabacloud/eventbridge/model/TestEventPatternRequest.h + include/alibabacloud/eventbridge/model/TestEventPatternResult.h + include/alibabacloud/eventbridge/model/UpdateApiDestinationRequest.h + include/alibabacloud/eventbridge/model/UpdateApiDestinationResult.h + include/alibabacloud/eventbridge/model/UpdateConnectionRequest.h + include/alibabacloud/eventbridge/model/UpdateConnectionResult.h + include/alibabacloud/eventbridge/model/UpdateEventBusRequest.h + include/alibabacloud/eventbridge/model/UpdateEventBusResult.h + include/alibabacloud/eventbridge/model/UpdateEventSourceRequest.h + include/alibabacloud/eventbridge/model/UpdateEventSourceResult.h + include/alibabacloud/eventbridge/model/UpdateEventStreamingRequest.h + include/alibabacloud/eventbridge/model/UpdateEventStreamingResult.h + include/alibabacloud/eventbridge/model/UpdateRuleRequest.h + include/alibabacloud/eventbridge/model/UpdateRuleResult.h ) + +set(eventbridge_src + src/EventbridgeClient.cc + src/model/CreateApiDestinationRequest.cc + src/model/CreateApiDestinationResult.cc + src/model/CreateConnectionRequest.cc + src/model/CreateConnectionResult.cc + src/model/CreateEventBusRequest.cc + src/model/CreateEventBusResult.cc + src/model/CreateEventSourceRequest.cc + src/model/CreateEventSourceResult.cc + src/model/CreateEventStreamingRequest.cc + src/model/CreateEventStreamingResult.cc + src/model/CreateRuleRequest.cc + src/model/CreateRuleResult.cc + src/model/CreateServiceLinkedRoleForProductRequest.cc + src/model/CreateServiceLinkedRoleForProductResult.cc + src/model/DeleteApiDestinationRequest.cc + src/model/DeleteApiDestinationResult.cc + src/model/DeleteConnectionRequest.cc + src/model/DeleteConnectionResult.cc + src/model/DeleteEventBusRequest.cc + src/model/DeleteEventBusResult.cc + src/model/DeleteEventSourceRequest.cc + src/model/DeleteEventSourceResult.cc + src/model/DeleteEventStreamingRequest.cc + src/model/DeleteEventStreamingResult.cc + src/model/DeleteRuleRequest.cc + src/model/DeleteRuleResult.cc + src/model/DeleteTargetsRequest.cc + src/model/DeleteTargetsResult.cc + src/model/DisableRuleRequest.cc + src/model/DisableRuleResult.cc + src/model/EnableRuleRequest.cc + src/model/EnableRuleResult.cc + src/model/GetApiDestinationRequest.cc + src/model/GetApiDestinationResult.cc + src/model/GetConnectionRequest.cc + src/model/GetConnectionResult.cc + src/model/GetEventBusRequest.cc + src/model/GetEventBusResult.cc + src/model/GetEventStreamingRequest.cc + src/model/GetEventStreamingResult.cc + src/model/GetRuleRequest.cc + src/model/GetRuleResult.cc + src/model/ListAliyunOfficialEventSourcesRequest.cc + src/model/ListAliyunOfficialEventSourcesResult.cc + src/model/ListApiDestinationsRequest.cc + src/model/ListApiDestinationsResult.cc + src/model/ListConnectionsRequest.cc + src/model/ListConnectionsResult.cc + src/model/ListEventBusesRequest.cc + src/model/ListEventBusesResult.cc + src/model/ListEventStreamingsRequest.cc + src/model/ListEventStreamingsResult.cc + src/model/ListRulesRequest.cc + src/model/ListRulesResult.cc + src/model/ListTargetsRequest.cc + src/model/ListTargetsResult.cc + src/model/ListUserDefinedEventSourcesRequest.cc + src/model/ListUserDefinedEventSourcesResult.cc + src/model/PauseEventStreamingRequest.cc + src/model/PauseEventStreamingResult.cc + src/model/PutTargetsRequest.cc + src/model/PutTargetsResult.cc + src/model/QueryEventRequest.cc + src/model/QueryEventResult.cc + src/model/QueryEventTracesRequest.cc + src/model/QueryEventTracesResult.cc + src/model/QueryTracedEventByEventIdRequest.cc + src/model/QueryTracedEventByEventIdResult.cc + src/model/QueryTracedEventsRequest.cc + src/model/QueryTracedEventsResult.cc + src/model/StartEventStreamingRequest.cc + src/model/StartEventStreamingResult.cc + src/model/TestEventPatternRequest.cc + src/model/TestEventPatternResult.cc + src/model/UpdateApiDestinationRequest.cc + src/model/UpdateApiDestinationResult.cc + src/model/UpdateConnectionRequest.cc + src/model/UpdateConnectionResult.cc + src/model/UpdateEventBusRequest.cc + src/model/UpdateEventBusResult.cc + src/model/UpdateEventSourceRequest.cc + src/model/UpdateEventSourceResult.cc + src/model/UpdateEventStreamingRequest.cc + src/model/UpdateEventStreamingResult.cc + src/model/UpdateRuleRequest.cc + src/model/UpdateRuleResult.cc ) + +add_library(eventbridge ${LIB_TYPE} + ${eventbridge_public_header} + ${eventbridge_public_header_model} + ${eventbridge_src}) + +set_target_properties(eventbridge + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}eventbridge + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(eventbridge + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_EVENTBRIDGE_LIBRARY) +endif() + +target_include_directories(eventbridge + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(eventbridge + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(eventbridge + jsoncpp) + target_include_directories(eventbridge + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(eventbridge + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(eventbridge + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(eventbridge + PRIVATE /usr/include/jsoncpp) + target_link_libraries(eventbridge + jsoncpp) +endif() + +install(FILES ${eventbridge_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/eventbridge) +install(FILES ${eventbridge_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/eventbridge/model) +install(TARGETS eventbridge + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/EventbridgeClient.h b/eventbridge/include/alibabacloud/eventbridge/EventbridgeClient.h new file mode 100644 index 000000000..b964ff42d --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/EventbridgeClient.h @@ -0,0 +1,390 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_EVENTBRIDGECLIENT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_EVENTBRIDGECLIENT_H_ + +#include +#include +#include +#include +#include "EventbridgeExport.h" +#include "model/CreateApiDestinationRequest.h" +#include "model/CreateApiDestinationResult.h" +#include "model/CreateConnectionRequest.h" +#include "model/CreateConnectionResult.h" +#include "model/CreateEventBusRequest.h" +#include "model/CreateEventBusResult.h" +#include "model/CreateEventSourceRequest.h" +#include "model/CreateEventSourceResult.h" +#include "model/CreateEventStreamingRequest.h" +#include "model/CreateEventStreamingResult.h" +#include "model/CreateRuleRequest.h" +#include "model/CreateRuleResult.h" +#include "model/CreateServiceLinkedRoleForProductRequest.h" +#include "model/CreateServiceLinkedRoleForProductResult.h" +#include "model/DeleteApiDestinationRequest.h" +#include "model/DeleteApiDestinationResult.h" +#include "model/DeleteConnectionRequest.h" +#include "model/DeleteConnectionResult.h" +#include "model/DeleteEventBusRequest.h" +#include "model/DeleteEventBusResult.h" +#include "model/DeleteEventSourceRequest.h" +#include "model/DeleteEventSourceResult.h" +#include "model/DeleteEventStreamingRequest.h" +#include "model/DeleteEventStreamingResult.h" +#include "model/DeleteRuleRequest.h" +#include "model/DeleteRuleResult.h" +#include "model/DeleteTargetsRequest.h" +#include "model/DeleteTargetsResult.h" +#include "model/DisableRuleRequest.h" +#include "model/DisableRuleResult.h" +#include "model/EnableRuleRequest.h" +#include "model/EnableRuleResult.h" +#include "model/GetApiDestinationRequest.h" +#include "model/GetApiDestinationResult.h" +#include "model/GetConnectionRequest.h" +#include "model/GetConnectionResult.h" +#include "model/GetEventBusRequest.h" +#include "model/GetEventBusResult.h" +#include "model/GetEventStreamingRequest.h" +#include "model/GetEventStreamingResult.h" +#include "model/GetRuleRequest.h" +#include "model/GetRuleResult.h" +#include "model/ListAliyunOfficialEventSourcesRequest.h" +#include "model/ListAliyunOfficialEventSourcesResult.h" +#include "model/ListApiDestinationsRequest.h" +#include "model/ListApiDestinationsResult.h" +#include "model/ListConnectionsRequest.h" +#include "model/ListConnectionsResult.h" +#include "model/ListEventBusesRequest.h" +#include "model/ListEventBusesResult.h" +#include "model/ListEventStreamingsRequest.h" +#include "model/ListEventStreamingsResult.h" +#include "model/ListRulesRequest.h" +#include "model/ListRulesResult.h" +#include "model/ListTargetsRequest.h" +#include "model/ListTargetsResult.h" +#include "model/ListUserDefinedEventSourcesRequest.h" +#include "model/ListUserDefinedEventSourcesResult.h" +#include "model/PauseEventStreamingRequest.h" +#include "model/PauseEventStreamingResult.h" +#include "model/PutTargetsRequest.h" +#include "model/PutTargetsResult.h" +#include "model/QueryEventRequest.h" +#include "model/QueryEventResult.h" +#include "model/QueryEventTracesRequest.h" +#include "model/QueryEventTracesResult.h" +#include "model/QueryTracedEventByEventIdRequest.h" +#include "model/QueryTracedEventByEventIdResult.h" +#include "model/QueryTracedEventsRequest.h" +#include "model/QueryTracedEventsResult.h" +#include "model/StartEventStreamingRequest.h" +#include "model/StartEventStreamingResult.h" +#include "model/TestEventPatternRequest.h" +#include "model/TestEventPatternResult.h" +#include "model/UpdateApiDestinationRequest.h" +#include "model/UpdateApiDestinationResult.h" +#include "model/UpdateConnectionRequest.h" +#include "model/UpdateConnectionResult.h" +#include "model/UpdateEventBusRequest.h" +#include "model/UpdateEventBusResult.h" +#include "model/UpdateEventSourceRequest.h" +#include "model/UpdateEventSourceResult.h" +#include "model/UpdateEventStreamingRequest.h" +#include "model/UpdateEventStreamingResult.h" +#include "model/UpdateRuleRequest.h" +#include "model/UpdateRuleResult.h" + + +namespace AlibabaCloud +{ + namespace Eventbridge + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT EventbridgeClient : public RpcServiceClient + { + public: + typedef Outcome CreateApiDestinationOutcome; + typedef std::future CreateApiDestinationOutcomeCallable; + typedef std::function&)> CreateApiDestinationAsyncHandler; + typedef Outcome CreateConnectionOutcome; + typedef std::future CreateConnectionOutcomeCallable; + typedef std::function&)> CreateConnectionAsyncHandler; + typedef Outcome CreateEventBusOutcome; + typedef std::future CreateEventBusOutcomeCallable; + typedef std::function&)> CreateEventBusAsyncHandler; + typedef Outcome CreateEventSourceOutcome; + typedef std::future CreateEventSourceOutcomeCallable; + typedef std::function&)> CreateEventSourceAsyncHandler; + typedef Outcome CreateEventStreamingOutcome; + typedef std::future CreateEventStreamingOutcomeCallable; + typedef std::function&)> CreateEventStreamingAsyncHandler; + typedef Outcome CreateRuleOutcome; + typedef std::future CreateRuleOutcomeCallable; + typedef std::function&)> CreateRuleAsyncHandler; + typedef Outcome CreateServiceLinkedRoleForProductOutcome; + typedef std::future CreateServiceLinkedRoleForProductOutcomeCallable; + typedef std::function&)> CreateServiceLinkedRoleForProductAsyncHandler; + typedef Outcome DeleteApiDestinationOutcome; + typedef std::future DeleteApiDestinationOutcomeCallable; + typedef std::function&)> DeleteApiDestinationAsyncHandler; + typedef Outcome DeleteConnectionOutcome; + typedef std::future DeleteConnectionOutcomeCallable; + typedef std::function&)> DeleteConnectionAsyncHandler; + typedef Outcome DeleteEventBusOutcome; + typedef std::future DeleteEventBusOutcomeCallable; + typedef std::function&)> DeleteEventBusAsyncHandler; + typedef Outcome DeleteEventSourceOutcome; + typedef std::future DeleteEventSourceOutcomeCallable; + typedef std::function&)> DeleteEventSourceAsyncHandler; + typedef Outcome DeleteEventStreamingOutcome; + typedef std::future DeleteEventStreamingOutcomeCallable; + typedef std::function&)> DeleteEventStreamingAsyncHandler; + typedef Outcome DeleteRuleOutcome; + typedef std::future DeleteRuleOutcomeCallable; + typedef std::function&)> DeleteRuleAsyncHandler; + typedef Outcome DeleteTargetsOutcome; + typedef std::future DeleteTargetsOutcomeCallable; + typedef std::function&)> DeleteTargetsAsyncHandler; + typedef Outcome DisableRuleOutcome; + typedef std::future DisableRuleOutcomeCallable; + typedef std::function&)> DisableRuleAsyncHandler; + typedef Outcome EnableRuleOutcome; + typedef std::future EnableRuleOutcomeCallable; + typedef std::function&)> EnableRuleAsyncHandler; + typedef Outcome GetApiDestinationOutcome; + typedef std::future GetApiDestinationOutcomeCallable; + typedef std::function&)> GetApiDestinationAsyncHandler; + typedef Outcome GetConnectionOutcome; + typedef std::future GetConnectionOutcomeCallable; + typedef std::function&)> GetConnectionAsyncHandler; + typedef Outcome GetEventBusOutcome; + typedef std::future GetEventBusOutcomeCallable; + typedef std::function&)> GetEventBusAsyncHandler; + typedef Outcome GetEventStreamingOutcome; + typedef std::future GetEventStreamingOutcomeCallable; + typedef std::function&)> GetEventStreamingAsyncHandler; + typedef Outcome GetRuleOutcome; + typedef std::future GetRuleOutcomeCallable; + typedef std::function&)> GetRuleAsyncHandler; + typedef Outcome ListAliyunOfficialEventSourcesOutcome; + typedef std::future ListAliyunOfficialEventSourcesOutcomeCallable; + typedef std::function&)> ListAliyunOfficialEventSourcesAsyncHandler; + typedef Outcome ListApiDestinationsOutcome; + typedef std::future ListApiDestinationsOutcomeCallable; + typedef std::function&)> ListApiDestinationsAsyncHandler; + typedef Outcome ListConnectionsOutcome; + typedef std::future ListConnectionsOutcomeCallable; + typedef std::function&)> ListConnectionsAsyncHandler; + typedef Outcome ListEventBusesOutcome; + typedef std::future ListEventBusesOutcomeCallable; + typedef std::function&)> ListEventBusesAsyncHandler; + typedef Outcome ListEventStreamingsOutcome; + typedef std::future ListEventStreamingsOutcomeCallable; + typedef std::function&)> ListEventStreamingsAsyncHandler; + typedef Outcome ListRulesOutcome; + typedef std::future ListRulesOutcomeCallable; + typedef std::function&)> ListRulesAsyncHandler; + typedef Outcome ListTargetsOutcome; + typedef std::future ListTargetsOutcomeCallable; + typedef std::function&)> ListTargetsAsyncHandler; + typedef Outcome ListUserDefinedEventSourcesOutcome; + typedef std::future ListUserDefinedEventSourcesOutcomeCallable; + typedef std::function&)> ListUserDefinedEventSourcesAsyncHandler; + typedef Outcome PauseEventStreamingOutcome; + typedef std::future PauseEventStreamingOutcomeCallable; + typedef std::function&)> PauseEventStreamingAsyncHandler; + typedef Outcome PutTargetsOutcome; + typedef std::future PutTargetsOutcomeCallable; + typedef std::function&)> PutTargetsAsyncHandler; + typedef Outcome QueryEventOutcome; + typedef std::future QueryEventOutcomeCallable; + typedef std::function&)> QueryEventAsyncHandler; + typedef Outcome QueryEventTracesOutcome; + typedef std::future QueryEventTracesOutcomeCallable; + typedef std::function&)> QueryEventTracesAsyncHandler; + typedef Outcome QueryTracedEventByEventIdOutcome; + typedef std::future QueryTracedEventByEventIdOutcomeCallable; + typedef std::function&)> QueryTracedEventByEventIdAsyncHandler; + typedef Outcome QueryTracedEventsOutcome; + typedef std::future QueryTracedEventsOutcomeCallable; + typedef std::function&)> QueryTracedEventsAsyncHandler; + typedef Outcome StartEventStreamingOutcome; + typedef std::future StartEventStreamingOutcomeCallable; + typedef std::function&)> StartEventStreamingAsyncHandler; + typedef Outcome TestEventPatternOutcome; + typedef std::future TestEventPatternOutcomeCallable; + typedef std::function&)> TestEventPatternAsyncHandler; + typedef Outcome UpdateApiDestinationOutcome; + typedef std::future UpdateApiDestinationOutcomeCallable; + typedef std::function&)> UpdateApiDestinationAsyncHandler; + typedef Outcome UpdateConnectionOutcome; + typedef std::future UpdateConnectionOutcomeCallable; + typedef std::function&)> UpdateConnectionAsyncHandler; + typedef Outcome UpdateEventBusOutcome; + typedef std::future UpdateEventBusOutcomeCallable; + typedef std::function&)> UpdateEventBusAsyncHandler; + typedef Outcome UpdateEventSourceOutcome; + typedef std::future UpdateEventSourceOutcomeCallable; + typedef std::function&)> UpdateEventSourceAsyncHandler; + typedef Outcome UpdateEventStreamingOutcome; + typedef std::future UpdateEventStreamingOutcomeCallable; + typedef std::function&)> UpdateEventStreamingAsyncHandler; + typedef Outcome UpdateRuleOutcome; + typedef std::future UpdateRuleOutcomeCallable; + typedef std::function&)> UpdateRuleAsyncHandler; + + EventbridgeClient(const Credentials &credentials, const ClientConfiguration &configuration); + EventbridgeClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + EventbridgeClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~EventbridgeClient(); + CreateApiDestinationOutcome createApiDestination(const Model::CreateApiDestinationRequest &request)const; + void createApiDestinationAsync(const Model::CreateApiDestinationRequest& request, const CreateApiDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApiDestinationOutcomeCallable createApiDestinationCallable(const Model::CreateApiDestinationRequest& request) const; + CreateConnectionOutcome createConnection(const Model::CreateConnectionRequest &request)const; + void createConnectionAsync(const Model::CreateConnectionRequest& request, const CreateConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateConnectionOutcomeCallable createConnectionCallable(const Model::CreateConnectionRequest& request) const; + CreateEventBusOutcome createEventBus(const Model::CreateEventBusRequest &request)const; + void createEventBusAsync(const Model::CreateEventBusRequest& request, const CreateEventBusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEventBusOutcomeCallable createEventBusCallable(const Model::CreateEventBusRequest& request) const; + CreateEventSourceOutcome createEventSource(const Model::CreateEventSourceRequest &request)const; + void createEventSourceAsync(const Model::CreateEventSourceRequest& request, const CreateEventSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEventSourceOutcomeCallable createEventSourceCallable(const Model::CreateEventSourceRequest& request) const; + CreateEventStreamingOutcome createEventStreaming(const Model::CreateEventStreamingRequest &request)const; + void createEventStreamingAsync(const Model::CreateEventStreamingRequest& request, const CreateEventStreamingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEventStreamingOutcomeCallable createEventStreamingCallable(const Model::CreateEventStreamingRequest& request) const; + CreateRuleOutcome createRule(const Model::CreateRuleRequest &request)const; + void createRuleAsync(const Model::CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRuleOutcomeCallable createRuleCallable(const Model::CreateRuleRequest& request) const; + CreateServiceLinkedRoleForProductOutcome createServiceLinkedRoleForProduct(const Model::CreateServiceLinkedRoleForProductRequest &request)const; + void createServiceLinkedRoleForProductAsync(const Model::CreateServiceLinkedRoleForProductRequest& request, const CreateServiceLinkedRoleForProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceLinkedRoleForProductOutcomeCallable createServiceLinkedRoleForProductCallable(const Model::CreateServiceLinkedRoleForProductRequest& request) const; + DeleteApiDestinationOutcome deleteApiDestination(const Model::DeleteApiDestinationRequest &request)const; + void deleteApiDestinationAsync(const Model::DeleteApiDestinationRequest& request, const DeleteApiDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApiDestinationOutcomeCallable deleteApiDestinationCallable(const Model::DeleteApiDestinationRequest& request) const; + DeleteConnectionOutcome deleteConnection(const Model::DeleteConnectionRequest &request)const; + void deleteConnectionAsync(const Model::DeleteConnectionRequest& request, const DeleteConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteConnectionOutcomeCallable deleteConnectionCallable(const Model::DeleteConnectionRequest& request) const; + DeleteEventBusOutcome deleteEventBus(const Model::DeleteEventBusRequest &request)const; + void deleteEventBusAsync(const Model::DeleteEventBusRequest& request, const DeleteEventBusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEventBusOutcomeCallable deleteEventBusCallable(const Model::DeleteEventBusRequest& request) const; + DeleteEventSourceOutcome deleteEventSource(const Model::DeleteEventSourceRequest &request)const; + void deleteEventSourceAsync(const Model::DeleteEventSourceRequest& request, const DeleteEventSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEventSourceOutcomeCallable deleteEventSourceCallable(const Model::DeleteEventSourceRequest& request) const; + DeleteEventStreamingOutcome deleteEventStreaming(const Model::DeleteEventStreamingRequest &request)const; + void deleteEventStreamingAsync(const Model::DeleteEventStreamingRequest& request, const DeleteEventStreamingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEventStreamingOutcomeCallable deleteEventStreamingCallable(const Model::DeleteEventStreamingRequest& request) const; + DeleteRuleOutcome deleteRule(const Model::DeleteRuleRequest &request)const; + void deleteRuleAsync(const Model::DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRuleOutcomeCallable deleteRuleCallable(const Model::DeleteRuleRequest& request) const; + DeleteTargetsOutcome deleteTargets(const Model::DeleteTargetsRequest &request)const; + void deleteTargetsAsync(const Model::DeleteTargetsRequest& request, const DeleteTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTargetsOutcomeCallable deleteTargetsCallable(const Model::DeleteTargetsRequest& request) const; + DisableRuleOutcome disableRule(const Model::DisableRuleRequest &request)const; + void disableRuleAsync(const Model::DisableRuleRequest& request, const DisableRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableRuleOutcomeCallable disableRuleCallable(const Model::DisableRuleRequest& request) const; + EnableRuleOutcome enableRule(const Model::EnableRuleRequest &request)const; + void enableRuleAsync(const Model::EnableRuleRequest& request, const EnableRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableRuleOutcomeCallable enableRuleCallable(const Model::EnableRuleRequest& request) const; + GetApiDestinationOutcome getApiDestination(const Model::GetApiDestinationRequest &request)const; + void getApiDestinationAsync(const Model::GetApiDestinationRequest& request, const GetApiDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetApiDestinationOutcomeCallable getApiDestinationCallable(const Model::GetApiDestinationRequest& request) const; + GetConnectionOutcome getConnection(const Model::GetConnectionRequest &request)const; + void getConnectionAsync(const Model::GetConnectionRequest& request, const GetConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConnectionOutcomeCallable getConnectionCallable(const Model::GetConnectionRequest& request) const; + GetEventBusOutcome getEventBus(const Model::GetEventBusRequest &request)const; + void getEventBusAsync(const Model::GetEventBusRequest& request, const GetEventBusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEventBusOutcomeCallable getEventBusCallable(const Model::GetEventBusRequest& request) const; + GetEventStreamingOutcome getEventStreaming(const Model::GetEventStreamingRequest &request)const; + void getEventStreamingAsync(const Model::GetEventStreamingRequest& request, const GetEventStreamingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEventStreamingOutcomeCallable getEventStreamingCallable(const Model::GetEventStreamingRequest& request) const; + GetRuleOutcome getRule(const Model::GetRuleRequest &request)const; + void getRuleAsync(const Model::GetRuleRequest& request, const GetRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRuleOutcomeCallable getRuleCallable(const Model::GetRuleRequest& request) const; + ListAliyunOfficialEventSourcesOutcome listAliyunOfficialEventSources(const Model::ListAliyunOfficialEventSourcesRequest &request)const; + void listAliyunOfficialEventSourcesAsync(const Model::ListAliyunOfficialEventSourcesRequest& request, const ListAliyunOfficialEventSourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAliyunOfficialEventSourcesOutcomeCallable listAliyunOfficialEventSourcesCallable(const Model::ListAliyunOfficialEventSourcesRequest& request) const; + ListApiDestinationsOutcome listApiDestinations(const Model::ListApiDestinationsRequest &request)const; + void listApiDestinationsAsync(const Model::ListApiDestinationsRequest& request, const ListApiDestinationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApiDestinationsOutcomeCallable listApiDestinationsCallable(const Model::ListApiDestinationsRequest& request) const; + ListConnectionsOutcome listConnections(const Model::ListConnectionsRequest &request)const; + void listConnectionsAsync(const Model::ListConnectionsRequest& request, const ListConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConnectionsOutcomeCallable listConnectionsCallable(const Model::ListConnectionsRequest& request) const; + ListEventBusesOutcome listEventBuses(const Model::ListEventBusesRequest &request)const; + void listEventBusesAsync(const Model::ListEventBusesRequest& request, const ListEventBusesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEventBusesOutcomeCallable listEventBusesCallable(const Model::ListEventBusesRequest& request) const; + ListEventStreamingsOutcome listEventStreamings(const Model::ListEventStreamingsRequest &request)const; + void listEventStreamingsAsync(const Model::ListEventStreamingsRequest& request, const ListEventStreamingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListEventStreamingsOutcomeCallable listEventStreamingsCallable(const Model::ListEventStreamingsRequest& request) const; + ListRulesOutcome listRules(const Model::ListRulesRequest &request)const; + void listRulesAsync(const Model::ListRulesRequest& request, const ListRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRulesOutcomeCallable listRulesCallable(const Model::ListRulesRequest& request) const; + ListTargetsOutcome listTargets(const Model::ListTargetsRequest &request)const; + void listTargetsAsync(const Model::ListTargetsRequest& request, const ListTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTargetsOutcomeCallable listTargetsCallable(const Model::ListTargetsRequest& request) const; + ListUserDefinedEventSourcesOutcome listUserDefinedEventSources(const Model::ListUserDefinedEventSourcesRequest &request)const; + void listUserDefinedEventSourcesAsync(const Model::ListUserDefinedEventSourcesRequest& request, const ListUserDefinedEventSourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserDefinedEventSourcesOutcomeCallable listUserDefinedEventSourcesCallable(const Model::ListUserDefinedEventSourcesRequest& request) const; + PauseEventStreamingOutcome pauseEventStreaming(const Model::PauseEventStreamingRequest &request)const; + void pauseEventStreamingAsync(const Model::PauseEventStreamingRequest& request, const PauseEventStreamingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PauseEventStreamingOutcomeCallable pauseEventStreamingCallable(const Model::PauseEventStreamingRequest& request) const; + PutTargetsOutcome putTargets(const Model::PutTargetsRequest &request)const; + void putTargetsAsync(const Model::PutTargetsRequest& request, const PutTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutTargetsOutcomeCallable putTargetsCallable(const Model::PutTargetsRequest& request) const; + QueryEventOutcome queryEvent(const Model::QueryEventRequest &request)const; + void queryEventAsync(const Model::QueryEventRequest& request, const QueryEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryEventOutcomeCallable queryEventCallable(const Model::QueryEventRequest& request) const; + QueryEventTracesOutcome queryEventTraces(const Model::QueryEventTracesRequest &request)const; + void queryEventTracesAsync(const Model::QueryEventTracesRequest& request, const QueryEventTracesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryEventTracesOutcomeCallable queryEventTracesCallable(const Model::QueryEventTracesRequest& request) const; + QueryTracedEventByEventIdOutcome queryTracedEventByEventId(const Model::QueryTracedEventByEventIdRequest &request)const; + void queryTracedEventByEventIdAsync(const Model::QueryTracedEventByEventIdRequest& request, const QueryTracedEventByEventIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTracedEventByEventIdOutcomeCallable queryTracedEventByEventIdCallable(const Model::QueryTracedEventByEventIdRequest& request) const; + QueryTracedEventsOutcome queryTracedEvents(const Model::QueryTracedEventsRequest &request)const; + void queryTracedEventsAsync(const Model::QueryTracedEventsRequest& request, const QueryTracedEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryTracedEventsOutcomeCallable queryTracedEventsCallable(const Model::QueryTracedEventsRequest& request) const; + StartEventStreamingOutcome startEventStreaming(const Model::StartEventStreamingRequest &request)const; + void startEventStreamingAsync(const Model::StartEventStreamingRequest& request, const StartEventStreamingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartEventStreamingOutcomeCallable startEventStreamingCallable(const Model::StartEventStreamingRequest& request) const; + TestEventPatternOutcome testEventPattern(const Model::TestEventPatternRequest &request)const; + void testEventPatternAsync(const Model::TestEventPatternRequest& request, const TestEventPatternAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TestEventPatternOutcomeCallable testEventPatternCallable(const Model::TestEventPatternRequest& request) const; + UpdateApiDestinationOutcome updateApiDestination(const Model::UpdateApiDestinationRequest &request)const; + void updateApiDestinationAsync(const Model::UpdateApiDestinationRequest& request, const UpdateApiDestinationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateApiDestinationOutcomeCallable updateApiDestinationCallable(const Model::UpdateApiDestinationRequest& request) const; + UpdateConnectionOutcome updateConnection(const Model::UpdateConnectionRequest &request)const; + void updateConnectionAsync(const Model::UpdateConnectionRequest& request, const UpdateConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateConnectionOutcomeCallable updateConnectionCallable(const Model::UpdateConnectionRequest& request) const; + UpdateEventBusOutcome updateEventBus(const Model::UpdateEventBusRequest &request)const; + void updateEventBusAsync(const Model::UpdateEventBusRequest& request, const UpdateEventBusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateEventBusOutcomeCallable updateEventBusCallable(const Model::UpdateEventBusRequest& request) const; + UpdateEventSourceOutcome updateEventSource(const Model::UpdateEventSourceRequest &request)const; + void updateEventSourceAsync(const Model::UpdateEventSourceRequest& request, const UpdateEventSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateEventSourceOutcomeCallable updateEventSourceCallable(const Model::UpdateEventSourceRequest& request) const; + UpdateEventStreamingOutcome updateEventStreaming(const Model::UpdateEventStreamingRequest &request)const; + void updateEventStreamingAsync(const Model::UpdateEventStreamingRequest& request, const UpdateEventStreamingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateEventStreamingOutcomeCallable updateEventStreamingCallable(const Model::UpdateEventStreamingRequest& request) const; + UpdateRuleOutcome updateRule(const Model::UpdateRuleRequest &request)const; + void updateRuleAsync(const Model::UpdateRuleRequest& request, const UpdateRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRuleOutcomeCallable updateRuleCallable(const Model::UpdateRuleRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_EVENTBRIDGE_EVENTBRIDGECLIENT_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/EventbridgeExport.h b/eventbridge/include/alibabacloud/eventbridge/EventbridgeExport.h new file mode 100644 index 000000000..f303d656e --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/EventbridgeExport.h @@ -0,0 +1,32 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_EVENTBRIDGEEXPORT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_EVENTBRIDGEEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_EVENTBRIDGE_LIBRARY) +# define ALIBABACLOUD_EVENTBRIDGE_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_EVENTBRIDGE_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_EVENTBRIDGE_EXPORT +#endif + +#endif // !ALIBABACLOUD_EVENTBRIDGE_EVENTBRIDGEEXPORT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateApiDestinationRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateApiDestinationRequest.h new file mode 100644 index 000000000..d4361f51c --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateApiDestinationRequest.h @@ -0,0 +1,67 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEAPIDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEAPIDESTINATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateApiDestinationRequest : public RpcServiceRequest { +public: + struct HttpApiParameters { + std::string endpoint; + std::string method; + struct ApiParametersItem { + std::string in; + std::string name; + std::string description; + std::string defaultValue; + std::string type; + }; + ApiParametersItem apiParametersItem; + std::vector apiParameters; + }; + CreateApiDestinationRequest(); + ~CreateApiDestinationRequest(); + std::string getConnectionName() const; + void setConnectionName(const std::string &connectionName); + std::string getDescription() const; + void setDescription(const std::string &description); + HttpApiParameters getHttpApiParameters() const; + void setHttpApiParameters(const HttpApiParameters &httpApiParameters); + std::string getApiDestinationName() const; + void setApiDestinationName(const std::string &apiDestinationName); + long getInvocationRateLimitPerSecond() const; + void setInvocationRateLimitPerSecond(long invocationRateLimitPerSecond); + +private: + std::string connectionName_; + std::string description_; + HttpApiParameters httpApiParameters_; + std::string apiDestinationName_; + long invocationRateLimitPerSecond_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEAPIDESTINATIONREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateApiDestinationResult.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateApiDestinationResult.h new file mode 100644 index 000000000..d1a6da79d --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateApiDestinationResult.h @@ -0,0 +1,59 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEAPIDESTINATIONRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEAPIDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateApiDestinationResult : public ServiceResult + { + public: + struct Date + { + std::string apiDestinationName; + }; + + + CreateApiDestinationResult(); + explicit CreateApiDestinationResult(const std::string &payload); + ~CreateApiDestinationResult(); + std::string getMessage()const; + std::string getCode()const; + Date getDate()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + Date date_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEAPIDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateConnectionRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateConnectionRequest.h new file mode 100644 index 000000000..df2bb16d5 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateConnectionRequest.h @@ -0,0 +1,128 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATECONNECTIONREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATECONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateConnectionRequest : public RpcServiceRequest { +public: + struct NetworkParameters { + std::string vpcId; + std::string securityGroupId; + std::string networkType; + std::string vswitcheId; + }; + struct AuthParameters { + struct BasicAuthParameters { + std::string password; + std::string username; + }; + BasicAuthParameters basicAuthParameters; + struct ApiKeyAuthParameters { + std::string apiKeyName; + std::string apiKeyValue; + }; + ApiKeyAuthParameters apiKeyAuthParameters; + std::string authorizationType; + struct InvocationHttpParameters { + struct BodyParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + BodyParametersItem bodyParametersItem; + std::vector bodyParameters; + struct HeaderParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + HeaderParametersItem headerParametersItem; + std::vector headerParameters; + struct QueryStringParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + QueryStringParametersItem queryStringParametersItem; + std::vector queryStringParameters; + }; + InvocationHttpParameters invocationHttpParameters; + struct OAuthParameters { + struct ClientParameters { + std::string clientID; + std::string clientSecret; + }; + ClientParameters clientParameters; + std::string authorizationEndpoint; + std::string httpMethod; + struct OAuthHttpParameters { + struct BodyParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + BodyParametersItem bodyParametersItem; + std::vector bodyParameters; + struct HeaderParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + HeaderParametersItem headerParametersItem; + std::vector headerParameters; + struct QueryStringParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + QueryStringParametersItem queryStringParametersItem; + std::vector queryStringParameters; + }; + OAuthHttpParameters oAuthHttpParameters; + }; + OAuthParameters oAuthParameters; + }; + CreateConnectionRequest(); + ~CreateConnectionRequest(); + std::string getConnectionName() const; + void setConnectionName(const std::string &connectionName); + std::string getDescription() const; + void setDescription(const std::string &description); + NetworkParameters getNetworkParameters() const; + void setNetworkParameters(const NetworkParameters &networkParameters); + AuthParameters getAuthParameters() const; + void setAuthParameters(const AuthParameters &authParameters); + +private: + std::string connectionName_; + std::string description_; + NetworkParameters networkParameters_; + AuthParameters authParameters_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATECONNECTIONREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateConnectionResult.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateConnectionResult.h new file mode 100644 index 000000000..31b0ae868 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateConnectionResult.h @@ -0,0 +1,59 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATECONNECTIONRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATECONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateConnectionResult : public ServiceResult + { + public: + struct Data + { + std::string connectionName; + }; + + + CreateConnectionResult(); + explicit CreateConnectionResult(const std::string &payload); + ~CreateConnectionResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATECONNECTIONRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateEventBusRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventBusRequest.h new file mode 100644 index 000000000..24e705c80 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventBusRequest.h @@ -0,0 +1,48 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTBUSREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTBUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateEventBusRequest : public RpcServiceRequest { +public: + CreateEventBusRequest(); + ~CreateEventBusRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + +private: + std::string clientToken_; + std::string description_; + std::string eventBusName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTBUSREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateEventBusResult.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventBusResult.h new file mode 100644 index 000000000..2e5452718 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventBusResult.h @@ -0,0 +1,61 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTBUSRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTBUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateEventBusResult : public ServiceResult + { + public: + struct Data + { + std::string eventBusARN; + }; + + + CreateEventBusResult(); + explicit CreateEventBusResult(const std::string &payload); + ~CreateEventBusResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTBUSRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateEventSourceRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventSourceRequest.h new file mode 100644 index 000000000..848ac647d --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventSourceRequest.h @@ -0,0 +1,140 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSOURCEREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateEventSourceRequest : public RpcServiceRequest { +public: + struct SourceMNSParameters { + std::string queueName; + std::string regionId; + bool isBase64Decode; + }; + struct SourceRabbitMQParameters { + std::string queueName; + std::string virtualHostName; + std::string instanceId; + std::string regionId; + }; + struct SourceRocketMQParameters { + std::string instanceSecurityGroupId; + std::string offset; + std::string groupID; + std::string instanceUsername; + std::string authType; + std::string instancePassword; + std::string instanceNetwork; + std::string instanceVSwitchIds; + std::string instanceId; + std::string instanceVpcId; + std::string instanceEndpoint; + std::string regionId; + std::string topic; + std::string instanceType; + std::string tag; + long timestamp; + }; + struct SourceSLSParameters { + std::string roleName; + std::string project; + std::string logStore; + std::string consumePosition; + }; + struct SourceScheduledEventParameters { + std::string schedule; + std::string userData; + std::string timeZone; + }; + struct SourceKafkaParameters { + std::string instanceId; + std::string consumerGroup; + std::string regionId; + std::string vSwitchIds; + std::string vpcId; + std::string securityGroupId; + std::string topic; + std::string offsetReset; + int maximumTasks; + std::string network; + }; + struct SourceHttpEventParameters { + std::string string; + std::vector referer; + std::string string; + std::vector method; + std::string string; + std::vector ip; + std::string securityConfig; + std::string type; + }; + CreateEventSourceRequest(); + ~CreateEventSourceRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + SourceMNSParameters getSourceMNSParameters() const; + void setSourceMNSParameters(const SourceMNSParameters &sourceMNSParameters); + bool getLinkedExternalSource() const; + void setLinkedExternalSource(bool linkedExternalSource); + std::string getExternalSourceType() const; + void setExternalSourceType(const std::string &externalSourceType); + std::string getExternalSourceConfig() const; + void setExternalSourceConfig(const std::string &externalSourceConfig); + SourceRabbitMQParameters getSourceRabbitMQParameters() const; + void setSourceRabbitMQParameters(const SourceRabbitMQParameters &sourceRabbitMQParameters); + SourceRocketMQParameters getSourceRocketMQParameters() const; + void setSourceRocketMQParameters(const SourceRocketMQParameters &sourceRocketMQParameters); + SourceSLSParameters getSourceSLSParameters() const; + void setSourceSLSParameters(const SourceSLSParameters &sourceSLSParameters); + SourceScheduledEventParameters getSourceScheduledEventParameters() const; + void setSourceScheduledEventParameters(const SourceScheduledEventParameters &sourceScheduledEventParameters); + SourceKafkaParameters getSourceKafkaParameters() const; + void setSourceKafkaParameters(const SourceKafkaParameters &sourceKafkaParameters); + SourceHttpEventParameters getSourceHttpEventParameters() const; + void setSourceHttpEventParameters(const SourceHttpEventParameters &sourceHttpEventParameters); + std::string getEventSourceName() const; + void setEventSourceName(const std::string &eventSourceName); + +private: + std::string description_; + std::string eventBusName_; + SourceMNSParameters sourceMNSParameters_; + bool linkedExternalSource_; + std::string externalSourceType_; + std::string externalSourceConfig_; + SourceRabbitMQParameters sourceRabbitMQParameters_; + SourceRocketMQParameters sourceRocketMQParameters_; + SourceSLSParameters sourceSLSParameters_; + SourceScheduledEventParameters sourceScheduledEventParameters_; + SourceKafkaParameters sourceKafkaParameters_; + SourceHttpEventParameters sourceHttpEventParameters_; + std::string eventSourceName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSOURCEREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateEventSourceResult.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventSourceResult.h new file mode 100644 index 000000000..b34f3e169 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventSourceResult.h @@ -0,0 +1,61 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSOURCERESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateEventSourceResult : public ServiceResult + { + public: + struct Data + { + std::string eventSourceARN; + }; + + + CreateEventSourceResult(); + explicit CreateEventSourceResult(const std::string &payload); + ~CreateEventSourceResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSOURCERESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateEventStreamingRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventStreamingRequest.h new file mode 100644 index 000000000..10cb0a3b9 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventStreamingRequest.h @@ -0,0 +1,567 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSTREAMINGREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSTREAMINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateEventStreamingRequest : public RpcServiceRequest { +public: + struct Sink { + struct SinkRabbitMQParameters { + struct RoutingKey { + std::string _template; + std::string form; + std::string value; + }; + RoutingKey routingKey; + struct QueueName { + std::string _template; + std::string form; + std::string value; + }; + QueueName queueName; + struct VirtualHostName { + std::string _template; + std::string form; + std::string value; + }; + VirtualHostName virtualHostName; + struct InstanceId { + std::string _template; + std::string form; + std::string value; + }; + InstanceId instanceId; + struct TargetType { + std::string _template; + std::string form; + std::string value; + }; + TargetType targetType; + struct MessageId { + std::string _template; + std::string form; + std::string value; + }; + MessageId messageId; + struct Exchange { + std::string _template; + std::string form; + std::string value; + }; + Exchange exchange; + struct Body { + std::string _template; + std::string form; + std::string value; + }; + Body body; + struct Properties { + std::string _template; + std::string form; + std::string value; + }; + Properties properties; + }; + SinkRabbitMQParameters sinkRabbitMQParameters; + struct SinkMNSParameters { + struct QueueName { + std::string _template; + std::string form; + std::string value; + }; + QueueName queueName; + struct IsBase64Encode { + std::string _template; + std::string form; + std::string value; + }; + IsBase64Encode isBase64Encode; + struct Body { + std::string _template; + std::string form; + std::string value; + }; + Body body; + }; + SinkMNSParameters sinkMNSParameters; + struct SinkDataHubParameters { + struct RoleName { + std::string _template; + std::string form; + std::string value; + }; + RoleName roleName; + struct Project { + std::string _template; + std::string form; + std::string value; + }; + Project project; + struct Topic { + std::string _template; + std::string form; + std::string value; + }; + Topic topic; + struct TopicType { + std::string _template; + std::string form; + std::string value; + }; + TopicType topicType; + struct Body { + std::string _template; + std::string form; + std::string value; + }; + Body body; + struct TopicSchema { + std::string _template; + std::string form; + std::string value; + }; + TopicSchema topicSchema; + }; + SinkDataHubParameters sinkDataHubParameters; + struct SinkKafkaParameters { + struct InstanceId { + std::string _template; + std::string form; + std::string value; + }; + InstanceId instanceId; + struct Acks { + std::string _template; + std::string form; + std::string value; + }; + Acks acks; + struct Topic { + std::string _template; + std::string form; + std::string value; + }; + Topic topic; + struct SaslUser { + std::string _template; + std::string form; + std::string value; + }; + SaslUser saslUser; + struct Value { + std::string _template; + std::string form; + std::string value; + }; + Value value; + struct Key { + std::string _template; + std::string form; + std::string value; + }; + Key key; + }; + SinkKafkaParameters sinkKafkaParameters; + struct SinkFnfParameters { + struct Input { + std::string _template; + std::string form; + std::string value; + }; + Input input; + struct ExecutionName { + std::string _template; + std::string form; + std::string value; + }; + ExecutionName executionName; + struct RoleName { + std::string _template; + std::string form; + std::string value; + }; + RoleName roleName; + struct FlowName { + std::string _template; + std::string form; + std::string value; + }; + FlowName flowName; + }; + SinkFnfParameters sinkFnfParameters; + struct SinkFcParameters { + struct InvocationType { + std::string _template; + std::string form; + std::string value; + }; + InvocationType invocationType; + struct FunctionName { + std::string _template; + std::string form; + std::string value; + }; + FunctionName functionName; + struct Qualifier { + std::string _template; + std::string form; + std::string value; + }; + Qualifier qualifier; + struct ServiceName { + std::string _template; + std::string form; + std::string value; + }; + ServiceName serviceName; + struct Body { + std::string _template; + std::string form; + std::string value; + }; + Body body; + struct Concurrency { + std::string _template; + std::string form; + std::string value; + }; + Concurrency concurrency; + }; + SinkFcParameters sinkFcParameters; + struct SinkPrometheusParameters { + struct VSwitchId { + std::string _template; + std::string form; + std::string value; + }; + VSwitchId vSwitchId; + struct Password { + std::string _template; + std::string form; + std::string value; + }; + Password password; + struct Data { + std::string _template; + std::string form; + std::string value; + }; + Data data; + struct VpcId { + std::string _template; + std::string form; + std::string value; + }; + VpcId vpcId; + struct SecurityGroupId { + std::string _template; + std::string form; + std::string value; + }; + SecurityGroupId securityGroupId; + struct AuthorizationType { + std::string _template; + std::string form; + std::string value; + }; + AuthorizationType authorizationType; + struct NetworkType { + std::string _template; + std::string form; + std::string value; + }; + NetworkType networkType; + struct URL { + std::string _template; + std::string form; + std::string value; + }; + URL uRL; + struct Username { + std::string _template; + std::string form; + std::string value; + }; + Username username; + }; + SinkPrometheusParameters sinkPrometheusParameters; + struct SinkSLSParameters { + struct RoleName { + std::string _template; + std::string form; + std::string value; + }; + RoleName roleName; + struct Project { + std::string _template; + std::string form; + std::string value; + }; + Project project; + struct Topic { + std::string _template; + std::string form; + std::string value; + }; + Topic topic; + struct Body { + std::string _template; + std::string form; + std::string value; + }; + Body body; + struct LogStore { + std::string _template; + std::string form; + std::string value; + }; + LogStore logStore; + }; + SinkSLSParameters sinkSLSParameters; + struct SinkRocketMQParameters { + struct Keys { + std::string _template; + std::string form; + std::string value; + }; + Keys keys; + struct VSwitchIds { + std::string _template; + std::string form; + std::string value; + }; + VSwitchIds vSwitchIds; + struct SecurityGroupId { + std::string _template; + std::string form; + std::string value; + }; + SecurityGroupId securityGroupId; + struct InstanceUsername { + std::string _template; + std::string form; + std::string value; + }; + InstanceUsername instanceUsername; + struct Body { + std::string _template; + std::string form; + std::string value; + }; + Body body; + struct Tags { + std::string _template; + std::string form; + std::string value; + }; + Tags tags; + struct Network { + std::string _template; + std::string form; + std::string value; + }; + Network network; + struct InstancePassword { + std::string _template; + std::string form; + std::string value; + }; + InstancePassword instancePassword; + struct InstanceId { + std::string _template; + std::string form; + std::string value; + }; + InstanceId instanceId; + struct InstanceEndpoint { + std::string _template; + std::string form; + std::string value; + }; + InstanceEndpoint instanceEndpoint; + struct VpcId { + std::string _template; + std::string form; + std::string value; + }; + VpcId vpcId; + struct Topic { + std::string _template; + std::string form; + std::string value; + }; + Topic topic; + struct InstanceType { + std::string _template; + std::string form; + std::string value; + }; + InstanceType instanceType; + struct Properties { + std::string _template; + std::string form; + std::string value; + }; + Properties properties; + }; + SinkRocketMQParameters sinkRocketMQParameters; + }; + struct Transforms { + std::string arn; + }; + struct Source { + struct SourceMQTTParameters { + std::string instanceId; + std::string regionId; + std::string topic; + }; + SourceMQTTParameters sourceMQTTParameters; + struct SourceRocketMQParameters { + std::string filterSql; + std::string instanceSecurityGroupId; + std::string offset; + std::string vSwitchIds; + std::string groupID; + std::string securityGroupId; + std::string instanceUsername; + std::string filterType; + std::string network; + std::string authType; + std::string instancePassword; + std::string instanceVSwitchIds; + std::string instanceNetwork; + std::string instanceId; + std::string instanceEndpoint; + std::string instanceVpcId; + std::string regionId; + std::string vpcId; + std::string topic; + std::string instanceType; + std::string tag; + long timestamp; + }; + SourceRocketMQParameters sourceRocketMQParameters; + struct SourceSLSParameters { + std::string roleName; + std::string project; + std::string logStore; + std::string consumePosition; + }; + SourceSLSParameters sourceSLSParameters; + struct SourcePrometheusParameters { + std::string dataType; + std::string clusterId; + std::string labels; + }; + SourcePrometheusParameters sourcePrometheusParameters; + struct SourceDTSParameters { + std::string brokerUrl; + std::string password; + long initCheckPoint; + std::string topic; + std::string taskId; + std::string sid; + std::string username; + }; + SourceDTSParameters sourceDTSParameters; + struct SourceKafkaParameters { + std::string instanceId; + std::string consumerGroup; + std::string regionId; + std::string vSwitchIds; + std::string vpcId; + std::string securityGroupId; + std::string topic; + std::string offsetReset; + std::string network; + }; + SourceKafkaParameters sourceKafkaParameters; + struct SourceMNSParameters { + std::string queueName; + std::string regionId; + bool isBase64Decode; + }; + SourceMNSParameters sourceMNSParameters; + struct SourceRabbitMQParameters { + std::string queueName; + std::string virtualHostName; + std::string instanceId; + std::string regionId; + }; + SourceRabbitMQParameters sourceRabbitMQParameters; + }; + struct RunOptions { + struct BatchWindow { + int countBasedWindow; + int timeBasedWindow; + }; + BatchWindow batchWindow; + struct RetryStrategy { + std::string pushRetryStrategy; + long maximumRetryAttempts; + long maximumEventAgeInSeconds; + }; + RetryStrategy retryStrategy; + struct DeadLetterQueue { + std::string arn; + }; + DeadLetterQueue deadLetterQueue; + long maximumTasks; + std::string errorsTolerance; + }; + CreateEventStreamingRequest(); + ~CreateEventStreamingRequest(); + Sink getSink() const; + void setSink(const Sink &sink); + std::vector getTransforms() const; + void setTransforms(const std::vector &transforms); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getFilterPattern() const; + void setFilterPattern(const std::string &filterPattern); + Source getSource() const; + void setSource(const Source &source); + RunOptions getRunOptions() const; + void setRunOptions(const RunOptions &runOptions); + std::string getEventStreamingName() const; + void setEventStreamingName(const std::string &eventStreamingName); + std::string getTag() const; + void setTag(const std::string &tag); + +private: + Sink sink_; + std::vector transforms_; + std::string description_; + std::string filterPattern_; + Source source_; + RunOptions runOptions_; + std::string eventStreamingName_; + std::string tag_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSTREAMINGREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateEventStreamingResult.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventStreamingResult.h new file mode 100644 index 000000000..aeaf34b09 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateEventStreamingResult.h @@ -0,0 +1,61 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSTREAMINGRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSTREAMINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateEventStreamingResult : public ServiceResult + { + public: + struct Data + { + std::string eventStreamingARN; + }; + + + CreateEventStreamingResult(); + explicit CreateEventStreamingResult(const std::string &payload); + ~CreateEventStreamingResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATEEVENTSTREAMINGRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateRuleRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateRuleRequest.h new file mode 100644 index 000000000..f612f1192 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateRuleRequest.h @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATERULEREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATERULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateRuleRequest : public RpcServiceRequest { +public: + struct EventTargets { + std::string endpoint; + std::string pushRetryStrategy; + struct ParamListItem { + std::string _template; + std::string resourceKey; + std::string form; + std::string value; + }; + ParamListItem paramListItem; + std::vector paramList; + std::string id; + struct DeadLetterQueue { + std::string arn; + }; + DeadLetterQueue deadLetterQueue; + std::string type; + std::string errorsTolerance; + }; + CreateRuleRequest(); + ~CreateRuleRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + std::string getTargets() const; + void setTargets(const std::string &targets); + std::vector getEventTargets() const; + void setEventTargets(const std::vector &eventTargets); + std::string getFilterPattern() const; + void setFilterPattern(const std::string &filterPattern); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string clientToken_; + std::string description_; + std::string ruleName_; + std::string eventBusName_; + std::string targets_; + std::vector eventTargets_; + std::string filterPattern_; + std::string status_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATERULEREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateRuleResult.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateRuleResult.h new file mode 100644 index 000000000..2540b248b --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateRuleResult.h @@ -0,0 +1,61 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATERULERESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateRuleResult : public ServiceResult + { + public: + struct Data + { + std::string ruleARN; + }; + + + CreateRuleResult(); + explicit CreateRuleResult(const std::string &payload); + ~CreateRuleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATERULERESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateServiceLinkedRoleForProductRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateServiceLinkedRoleForProductRequest.h new file mode 100644 index 000000000..7bd18c5af --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateServiceLinkedRoleForProductRequest.h @@ -0,0 +1,42 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATESERVICELINKEDROLEFORPRODUCTREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATESERVICELINKEDROLEFORPRODUCTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateServiceLinkedRoleForProductRequest : public RpcServiceRequest { +public: + CreateServiceLinkedRoleForProductRequest(); + ~CreateServiceLinkedRoleForProductRequest(); + std::string getProductName() const; + void setProductName(const std::string &productName); + +private: + std::string productName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATESERVICELINKEDROLEFORPRODUCTREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/CreateServiceLinkedRoleForProductResult.h b/eventbridge/include/alibabacloud/eventbridge/model/CreateServiceLinkedRoleForProductResult.h new file mode 100644 index 000000000..ce2860006 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/CreateServiceLinkedRoleForProductResult.h @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATESERVICELINKEDROLEFORPRODUCTRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATESERVICELINKEDROLEFORPRODUCTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT CreateServiceLinkedRoleForProductResult : public ServiceResult + { + public: + + + CreateServiceLinkedRoleForProductResult(); + explicit CreateServiceLinkedRoleForProductResult(const std::string &payload); + ~CreateServiceLinkedRoleForProductResult(); + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_CREATESERVICELINKEDROLEFORPRODUCTRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteApiDestinationRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteApiDestinationRequest.h new file mode 100644 index 000000000..b2bb4ef65 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteApiDestinationRequest.h @@ -0,0 +1,45 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEAPIDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEAPIDESTINATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteApiDestinationRequest : public RpcServiceRequest { +public: + DeleteApiDestinationRequest(); + ~DeleteApiDestinationRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getApiDestinationName() const; + void setApiDestinationName(const std::string &apiDestinationName); + +private: + std::string clientToken_; + std::string apiDestinationName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEAPIDESTINATIONREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteApiDestinationResult.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteApiDestinationResult.h new file mode 100644 index 000000000..4d1e92f4d --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteApiDestinationResult.h @@ -0,0 +1,53 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEAPIDESTINATIONRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEAPIDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteApiDestinationResult : public ServiceResult + { + public: + + + DeleteApiDestinationResult(); + explicit DeleteApiDestinationResult(const std::string &payload); + ~DeleteApiDestinationResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEAPIDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteConnectionRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteConnectionRequest.h new file mode 100644 index 000000000..043f8e3f6 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteConnectionRequest.h @@ -0,0 +1,42 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETECONNECTIONREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETECONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteConnectionRequest : public RpcServiceRequest { +public: + DeleteConnectionRequest(); + ~DeleteConnectionRequest(); + std::string getConnectionName() const; + void setConnectionName(const std::string &connectionName); + +private: + std::string connectionName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETECONNECTIONREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteConnectionResult.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteConnectionResult.h new file mode 100644 index 000000000..85b56e16d --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteConnectionResult.h @@ -0,0 +1,53 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETECONNECTIONRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETECONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteConnectionResult : public ServiceResult + { + public: + + + DeleteConnectionResult(); + explicit DeleteConnectionResult(const std::string &payload); + ~DeleteConnectionResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETECONNECTIONRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventBusRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventBusRequest.h new file mode 100644 index 000000000..6b435e739 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventBusRequest.h @@ -0,0 +1,45 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTBUSREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTBUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteEventBusRequest : public RpcServiceRequest { +public: + DeleteEventBusRequest(); + ~DeleteEventBusRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + +private: + std::string clientToken_; + std::string eventBusName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTBUSREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventBusResult.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventBusResult.h new file mode 100644 index 000000000..c54439ed5 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventBusResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTBUSRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTBUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteEventBusResult : public ServiceResult + { + public: + + + DeleteEventBusResult(); + explicit DeleteEventBusResult(const std::string &payload); + ~DeleteEventBusResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTBUSRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventSourceRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventSourceRequest.h new file mode 100644 index 000000000..903b64951 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventSourceRequest.h @@ -0,0 +1,42 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSOURCEREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteEventSourceRequest : public RpcServiceRequest { +public: + DeleteEventSourceRequest(); + ~DeleteEventSourceRequest(); + std::string getEventSourceName() const; + void setEventSourceName(const std::string &eventSourceName); + +private: + std::string eventSourceName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSOURCEREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventSourceResult.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventSourceResult.h new file mode 100644 index 000000000..bbfe590e4 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventSourceResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSOURCERESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteEventSourceResult : public ServiceResult + { + public: + + + DeleteEventSourceResult(); + explicit DeleteEventSourceResult(const std::string &payload); + ~DeleteEventSourceResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSOURCERESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventStreamingRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventStreamingRequest.h new file mode 100644 index 000000000..d4f79f905 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventStreamingRequest.h @@ -0,0 +1,42 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSTREAMINGREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSTREAMINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteEventStreamingRequest : public RpcServiceRequest { +public: + DeleteEventStreamingRequest(); + ~DeleteEventStreamingRequest(); + std::string getEventStreamingName() const; + void setEventStreamingName(const std::string &eventStreamingName); + +private: + std::string eventStreamingName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSTREAMINGREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventStreamingResult.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventStreamingResult.h new file mode 100644 index 000000000..7e5fec1f8 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteEventStreamingResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSTREAMINGRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSTREAMINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteEventStreamingResult : public ServiceResult + { + public: + + + DeleteEventStreamingResult(); + explicit DeleteEventStreamingResult(const std::string &payload); + ~DeleteEventStreamingResult(); + std::string getMessage()const; + bool getData()const; + bool getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + bool code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETEEVENTSTREAMINGRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteRuleRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteRuleRequest.h new file mode 100644 index 000000000..8d1aad460 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteRuleRequest.h @@ -0,0 +1,45 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETERULEREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETERULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteRuleRequest : public RpcServiceRequest { +public: + DeleteRuleRequest(); + ~DeleteRuleRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + +private: + std::string ruleName_; + std::string eventBusName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETERULEREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteRuleResult.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteRuleResult.h new file mode 100644 index 000000000..b95671993 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteRuleResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETERULERESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteRuleResult : public ServiceResult + { + public: + + + DeleteRuleResult(); + explicit DeleteRuleResult(const std::string &payload); + ~DeleteRuleResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETERULERESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteTargetsRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteTargetsRequest.h new file mode 100644 index 000000000..0496a64b9 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteTargetsRequest.h @@ -0,0 +1,48 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETETARGETSREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETETARGETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteTargetsRequest : public RpcServiceRequest { +public: + DeleteTargetsRequest(); + ~DeleteTargetsRequest(); + std::vector getTargetIds() const; + void setTargetIds(const std::vector &targetIds); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + +private: + std::vector targetIds_; + std::string ruleName_; + std::string eventBusName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETETARGETSREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DeleteTargetsResult.h b/eventbridge/include/alibabacloud/eventbridge/model/DeleteTargetsResult.h new file mode 100644 index 000000000..e16ab780f --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DeleteTargetsResult.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETETARGETSRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETETARGETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT DeleteTargetsResult : public ServiceResult + { + public: + struct Data + { + struct ErrorEntriesItem + { + std::string entryId; + std::string errorCode; + std::string errorMessage; + }; + std::vector errorEntries; + int errorEntriesCount; + }; + + + DeleteTargetsResult(); + explicit DeleteTargetsResult(const std::string &payload); + ~DeleteTargetsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DELETETARGETSRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DisableRuleRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/DisableRuleRequest.h new file mode 100644 index 000000000..8c8abb329 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DisableRuleRequest.h @@ -0,0 +1,45 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DISABLERULEREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DISABLERULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT DisableRuleRequest : public RpcServiceRequest { +public: + DisableRuleRequest(); + ~DisableRuleRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + +private: + std::string ruleName_; + std::string eventBusName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DISABLERULEREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/DisableRuleResult.h b/eventbridge/include/alibabacloud/eventbridge/model/DisableRuleResult.h new file mode 100644 index 000000000..61a782cd1 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/DisableRuleResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_DISABLERULERESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_DISABLERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT DisableRuleResult : public ServiceResult + { + public: + + + DisableRuleResult(); + explicit DisableRuleResult(const std::string &payload); + ~DisableRuleResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_DISABLERULERESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/EnableRuleRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/EnableRuleRequest.h new file mode 100644 index 000000000..200ee6dfa --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/EnableRuleRequest.h @@ -0,0 +1,45 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_ENABLERULEREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_ENABLERULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT EnableRuleRequest : public RpcServiceRequest { +public: + EnableRuleRequest(); + ~EnableRuleRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + +private: + std::string ruleName_; + std::string eventBusName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_ENABLERULEREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/EnableRuleResult.h b/eventbridge/include/alibabacloud/eventbridge/model/EnableRuleResult.h new file mode 100644 index 000000000..f1be290d1 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/EnableRuleResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_ENABLERULERESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_ENABLERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT EnableRuleResult : public ServiceResult + { + public: + + + EnableRuleResult(); + explicit EnableRuleResult(const std::string &payload); + ~EnableRuleResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_ENABLERULERESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/GetApiDestinationRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/GetApiDestinationRequest.h new file mode 100644 index 000000000..91fa5ea13 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/GetApiDestinationRequest.h @@ -0,0 +1,45 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_GETAPIDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_GETAPIDESTINATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT GetApiDestinationRequest : public RpcServiceRequest { +public: + GetApiDestinationRequest(); + ~GetApiDestinationRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getApiDestinationName() const; + void setApiDestinationName(const std::string &apiDestinationName); + +private: + std::string clientToken_; + std::string apiDestinationName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_GETAPIDESTINATIONREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/GetApiDestinationResult.h b/eventbridge/include/alibabacloud/eventbridge/model/GetApiDestinationResult.h new file mode 100644 index 000000000..291191bfc --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/GetApiDestinationResult.h @@ -0,0 +1,77 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_GETAPIDESTINATIONRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_GETAPIDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT GetApiDestinationResult : public ServiceResult + { + public: + struct Data + { + struct HttpApiParameters + { + struct ApiParametersItem + { + std::string type; + std::string description; + std::string in; + std::string name; + }; + std::string endpoint; + std::vector apiParameters; + std::string method; + }; + std::string connectionName; + long gmtCreate; + std::string description; + HttpApiParameters httpApiParameters; + std::string apiDestinationName; + long invocationRateLimitPerSecond; + }; + + + GetApiDestinationResult(); + explicit GetApiDestinationResult(const std::string &payload); + ~GetApiDestinationResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_GETAPIDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/GetConnectionRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/GetConnectionRequest.h new file mode 100644 index 000000000..f630f1acb --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/GetConnectionRequest.h @@ -0,0 +1,42 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_GETCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_GETCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT GetConnectionRequest : public RpcServiceRequest { +public: + GetConnectionRequest(); + ~GetConnectionRequest(); + std::string getConnectionName() const; + void setConnectionName(const std::string &connectionName); + +private: + std::string connectionName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_GETCONNECTIONREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/GetConnectionResult.h b/eventbridge/include/alibabacloud/eventbridge/model/GetConnectionResult.h new file mode 100644 index 000000000..b584fe1ca --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/GetConnectionResult.h @@ -0,0 +1,155 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_GETCONNECTIONRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_GETCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT GetConnectionResult : public ServiceResult + { + public: + struct Data + { + struct ConnectionsItem + { + struct NetworkParameters + { + std::string vpcId; + std::string networkType; + std::string securityGroupId; + std::string vswitcheId; + }; + struct AuthParameters + { + struct ApiKeyAuthParameters + { + std::string apiKeyValue; + std::string apiKeyName; + }; + struct BasicAuthParameters + { + std::string username; + std::string password; + }; + struct InvocationHttpParameters + { + struct BodyParametersItem + { + std::string isValueSecret; + std::string value; + std::string key; + }; + struct HeaderParametersItem + { + std::string isValueSecret; + std::string value; + std::string key; + }; + struct QueryStringParametersItem + { + std::string isValueSecret; + std::string value; + std::string key; + }; + std::vector headerParameters; + std::vector queryStringParameters; + std::vector bodyParameters; + }; + struct OAuthParameters + { + struct ClientParameters + { + std::string clientSecret; + std::string clientID; + }; + struct OAuthHttpParameters + { + struct BodyParametersItem4 + { + std::string isValueSecret; + std::string value; + std::string key; + }; + struct HeaderParametersItem5 + { + std::string isValueSecret; + std::string value; + std::string key; + }; + struct QueryStringParametersItem6 + { + std::string isValueSecret; + std::string value; + std::string key; + }; + std::vector headerParameters2; + std::vector bodyParameters1; + std::vector queryStringParameters3; + }; + ClientParameters clientParameters; + OAuthHttpParameters oAuthHttpParameters; + std::string authorizationEndpoint; + std::string httpMethod; + }; + InvocationHttpParameters invocationHttpParameters; + BasicAuthParameters basicAuthParameters; + ApiKeyAuthParameters apiKeyAuthParameters; + OAuthParameters oAuthParameters; + std::string authorizationType; + }; + std::string connectionName; + AuthParameters authParameters; + long gmtCreate; + std::string description; + NetworkParameters networkParameters; + long id; + }; + std::vector connections; + }; + + + GetConnectionResult(); + explicit GetConnectionResult(const std::string &payload); + ~GetConnectionResult(); + int getHttpCode()const; + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + int httpCode_; + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_GETCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/GetEventBusRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/GetEventBusRequest.h new file mode 100644 index 000000000..6dc0fb0af --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/GetEventBusRequest.h @@ -0,0 +1,42 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTBUSREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTBUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT GetEventBusRequest : public RpcServiceRequest { +public: + GetEventBusRequest(); + ~GetEventBusRequest(); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + +private: + std::string eventBusName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTBUSREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/GetEventBusResult.h b/eventbridge/include/alibabacloud/eventbridge/model/GetEventBusResult.h new file mode 100644 index 000000000..c93d295b8 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/GetEventBusResult.h @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTBUSRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTBUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT GetEventBusResult : public ServiceResult + { + public: + struct Data + { + std::string eventBusName; + std::string description; + long createTimestamp; + std::string eventBusARN; + }; + + + GetEventBusResult(); + explicit GetEventBusResult(const std::string &payload); + ~GetEventBusResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTBUSRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/GetEventStreamingRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/GetEventStreamingRequest.h new file mode 100644 index 000000000..8ae028556 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/GetEventStreamingRequest.h @@ -0,0 +1,42 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTSTREAMINGREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTSTREAMINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT GetEventStreamingRequest : public RpcServiceRequest { +public: + GetEventStreamingRequest(); + ~GetEventStreamingRequest(); + std::string getEventStreamingName() const; + void setEventStreamingName(const std::string &eventStreamingName); + +private: + std::string eventStreamingName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTSTREAMINGREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/GetEventStreamingResult.h b/eventbridge/include/alibabacloud/eventbridge/model/GetEventStreamingResult.h new file mode 100644 index 000000000..2a5c0c4a3 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/GetEventStreamingResult.h @@ -0,0 +1,485 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTSTREAMINGRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTSTREAMINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT GetEventStreamingResult : public ServiceResult + { + public: + struct Data + { + struct Source + { + struct SourceMNSParameters + { + bool isBase64Decode; + std::string regionId; + std::string queueName; + }; + struct SourceRabbitMQParameters + { + std::string virtualHostName; + std::string instanceId; + std::string regionId; + std::string queueName; + }; + struct SourceRocketMQParameters + { + std::string instanceId; + long timestamp; + std::string offset; + std::string groupID; + std::string instancePassword; + std::string instanceNetwork; + std::string instanceUsername; + std::string instanceEndpoint; + std::string instanceVpcId; + std::string instanceVSwitchIds; + std::string instanceSecurityGroupId; + std::string regionId; + std::string tag; + std::string authType; + std::string topic; + std::string instanceType; + }; + struct SourceKafkaParameters + { + std::string offsetReset; + std::string vpcId; + std::string instanceId; + std::string vSwitchIds; + std::string network; + std::string securityGroupId; + std::string regionId; + std::string topic; + std::string consumerGroup; + }; + struct SourceMQTTParameters + { + std::string instanceId; + std::string regionId; + std::string topic; + }; + struct SourceDTSParameters + { + std::string taskId; + std::string username; + std::string initCheckPoint; + std::string topic; + std::string brokerUrl; + std::string sid; + std::string password; + }; + struct SourceSLSParameters + { + std::string project; + std::string roleName; + std::string logStore; + std::string consumePosition; + std::string consumerGroup; + }; + struct SourcePrometheusParameters + { + std::string clusterId; + std::string dataType; + std::string labels; + }; + SourceSLSParameters sourceSLSParameters; + SourceMQTTParameters sourceMQTTParameters; + SourceRabbitMQParameters sourceRabbitMQParameters; + SourceMNSParameters sourceMNSParameters; + SourceKafkaParameters sourceKafkaParameters; + SourceDTSParameters sourceDTSParameters; + SourcePrometheusParameters sourcePrometheusParameters; + SourceRocketMQParameters sourceRocketMQParameters; + }; + struct Sink + { + struct SinkMNSParameters + { + struct QueueName + { + std::string _template; + std::string form; + std::string value; + }; + struct Body + { + std::string _template; + std::string form; + std::string value; + }; + struct IsBase64Encode + { + std::string _template; + std::string form; + std::string value; + }; + IsBase64Encode isBase64Encode; + QueueName queueName; + Body body; + }; + struct SinkRabbitMQParameters + { + struct InstanceId + { + std::string _template; + std::string form; + std::string value; + }; + struct VirtualHostName + { + std::string _template; + std::string form; + std::string value; + }; + struct TargetType + { + std::string _template; + std::string form; + std::string value; + }; + struct Exchange + { + std::string _template; + std::string form; + std::string value; + }; + struct RoutingKey + { + std::string _template; + std::string form; + std::string value; + }; + struct QueueName1 + { + std::string _template; + std::string form; + std::string value; + }; + struct Body2 + { + std::string _template; + std::string form; + std::string value; + }; + struct MessageId + { + std::string _template; + std::string form; + std::string value; + }; + struct Properties + { + std::string _template; + std::string form; + std::string value; + }; + Exchange exchange; + RoutingKey routingKey; + QueueName1 queueName1; + VirtualHostName virtualHostName; + InstanceId instanceId; + Body2 body2; + TargetType targetType; + Properties properties; + MessageId messageId; + }; + struct SinkFcParameters + { + struct ServiceName + { + std::string _template; + std::string form; + std::string value; + }; + struct FunctionName + { + std::string _template; + std::string form; + std::string value; + }; + struct Concurrency + { + std::string _template; + std::string form; + std::string value; + }; + struct Qualifier + { + std::string _template; + std::string form; + std::string value; + }; + struct InvocationType + { + std::string _template; + std::string form; + std::string value; + }; + struct Body3 + { + std::string _template; + std::string form; + std::string value; + }; + FunctionName functionName; + ServiceName serviceName; + Concurrency concurrency; + Body3 body3; + InvocationType invocationType; + Qualifier qualifier; + }; + struct SinkKafkaParameters + { + struct InstanceId4 + { + std::string _template; + std::string form; + std::string value; + }; + struct Topic + { + std::string _template; + std::string form; + std::string value; + }; + struct Acks + { + std::string _template; + std::string form; + std::string value; + }; + struct Key + { + std::string _template; + std::string form; + std::string value; + }; + struct Value + { + std::string _template; + std::string form; + std::string value; + }; + struct SaslUser + { + std::string _template; + std::string form; + std::string value; + }; + Acks acks; + SaslUser saslUser; + Value value; + InstanceId4 instanceId4; + Topic topic; + Key key; + }; + struct SinkRocketMQParameters + { + struct InstanceId5 + { + std::string _template; + std::string form; + std::string value; + }; + struct Topic6 + { + std::string _template; + std::string form; + std::string value; + }; + struct Body7 + { + std::string _template; + std::string form; + std::string value; + }; + struct Properties8 + { + std::string _template; + std::string form; + std::string value; + }; + struct Keys + { + std::string _template; + std::string form; + std::string value; + }; + struct Tags + { + std::string _template; + std::string form; + std::string value; + }; + Topic6 topic6; + Body7 body7; + Keys keys; + Properties8 properties8; + InstanceId5 instanceId5; + Tags tags; + }; + struct SinkSLSParameters + { + struct Project + { + std::string _template; + std::string form; + std::string value; + }; + struct LogStore + { + std::string _template; + std::string form; + std::string value; + }; + struct Topic9 + { + std::string _template; + std::string form; + std::string value; + }; + struct Body10 + { + std::string _template; + std::string form; + std::string value; + }; + struct RoleName + { + std::string _template; + std::string form; + std::string value; + }; + Project project; + RoleName roleName; + LogStore logStore; + Body10 body10; + Topic9 topic9; + }; + struct SinkFnfParameters + { + struct FlowName + { + std::string _template; + std::string form; + std::string value; + }; + struct ExecutionName + { + std::string _template; + std::string form; + std::string value; + }; + struct Input + { + std::string _template; + std::string form; + std::string value; + }; + struct RoleName11 + { + std::string _template; + std::string form; + std::string value; + }; + ExecutionName executionName; + Input input; + FlowName flowName; + RoleName11 roleName11; + }; + SinkMNSParameters sinkMNSParameters; + SinkFnfParameters sinkFnfParameters; + SinkRocketMQParameters sinkRocketMQParameters; + SinkSLSParameters sinkSLSParameters; + SinkRabbitMQParameters sinkRabbitMQParameters; + SinkFcParameters sinkFcParameters; + SinkKafkaParameters sinkKafkaParameters; + }; + struct RunOptions + { + struct RetryStrategy + { + std::string pushRetryStrategy; + float maximumRetryAttempts; + float maximumEventAgeInSeconds; + }; + struct DeadLetterQueue + { + std::string arn; + }; + struct BatchWindow + { + int countBasedWindow; + int timeBasedWindow; + }; + std::string errorsTolerance; + DeadLetterQueue deadLetterQueue; + BatchWindow batchWindow; + int maximumTasks; + RetryStrategy retryStrategy; + }; + struct TransformsItem + { + std::string arn; + }; + std::string status; + std::string filterPattern; + std::string description; + Sink sink; + std::vector transforms; + std::string tag; + std::string eventStreamingName; + Source source; + RunOptions runOptions; + }; + + + GetEventStreamingResult(); + explicit GetEventStreamingResult(const std::string &payload); + ~GetEventStreamingResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_GETEVENTSTREAMINGRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/GetRuleRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/GetRuleRequest.h new file mode 100644 index 000000000..5cfbb61f0 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/GetRuleRequest.h @@ -0,0 +1,45 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_GETRULEREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_GETRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT GetRuleRequest : public RpcServiceRequest { +public: + GetRuleRequest(); + ~GetRuleRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + +private: + std::string ruleName_; + std::string eventBusName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_GETRULEREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/GetRuleResult.h b/eventbridge/include/alibabacloud/eventbridge/model/GetRuleResult.h new file mode 100644 index 000000000..ca521e1ef --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/GetRuleResult.h @@ -0,0 +1,91 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_GETRULERESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_GETRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT GetRuleResult : public ServiceResult + { + public: + struct Data + { + struct TargetsItem + { + struct DeadLetterQueue + { + std::string arn; + }; + struct ParamListItem + { + std::string _template; + std::string form; + std::string value; + std::string resourceKey; + }; + std::string errorsTolerance; + DeadLetterQueue deadLetterQueue; + std::string pushRetryStrategy; + std::string type; + std::string endpoint; + std::string id; + std::string detailMap; + std::string pushSelector; + std::vector paramList; + }; + std::string status; + std::string eventBusName; + std::string filterPattern; + std::string description; + long createdTimestamp; + std::string ruleARN; + std::vector targets; + std::string ruleName; + }; + + + GetRuleResult(); + explicit GetRuleResult(const std::string &payload); + ~GetRuleResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_GETRULERESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListAliyunOfficialEventSourcesRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/ListAliyunOfficialEventSourcesRequest.h new file mode 100644 index 000000000..940bec2fe --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListAliyunOfficialEventSourcesRequest.h @@ -0,0 +1,51 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTALIYUNOFFICIALEVENTSOURCESREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTALIYUNOFFICIALEVENTSOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListAliyunOfficialEventSourcesRequest : public RpcServiceRequest { +public: + ListAliyunOfficialEventSourcesRequest(); + ~ListAliyunOfficialEventSourcesRequest(); + std::string getType() const; + void setType(const std::string &type); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getLimit() const; + void setLimit(int limit); + std::string getNamePrefix() const; + void setNamePrefix(const std::string &namePrefix); + +private: + std::string type_; + std::string nextToken_; + int limit_; + std::string namePrefix_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTALIYUNOFFICIALEVENTSOURCESREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListAliyunOfficialEventSourcesResult.h b/eventbridge/include/alibabacloud/eventbridge/model/ListAliyunOfficialEventSourcesResult.h new file mode 100644 index 000000000..ce9960046 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListAliyunOfficialEventSourcesResult.h @@ -0,0 +1,83 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTALIYUNOFFICIALEVENTSOURCESRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTALIYUNOFFICIALEVENTSOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListAliyunOfficialEventSourcesResult : public ServiceResult + { + public: + struct Data + { + struct EventSourceListItem + { + struct EventTypesItem + { + std::string groupName; + std::string description; + std::string eventSourceName; + std::string shortName; + std::string name; + }; + std::string status; + std::string eventBusName; + std::string type; + std::string description; + float ctime; + std::string fullName; + std::vector eventTypes; + std::string arn; + std::string name; + }; + std::string nextToken; + std::vector eventSourceList; + float total; + }; + + + ListAliyunOfficialEventSourcesResult(); + explicit ListAliyunOfficialEventSourcesResult(const std::string &payload); + ~ListAliyunOfficialEventSourcesResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTALIYUNOFFICIALEVENTSOURCESRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListApiDestinationsRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/ListApiDestinationsRequest.h new file mode 100644 index 000000000..49fb8d6f8 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListApiDestinationsRequest.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTAPIDESTINATIONSREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTAPIDESTINATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListApiDestinationsRequest : public RpcServiceRequest { +public: + ListApiDestinationsRequest(); + ~ListApiDestinationsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getConnectionName() const; + void setConnectionName(const std::string &connectionName); + long getMaxResults() const; + void setMaxResults(long maxResults); + std::string getApiDestinationNamePrefix() const; + void setApiDestinationNamePrefix(const std::string &apiDestinationNamePrefix); + +private: + std::string clientToken_; + std::string description_; + std::string nextToken_; + std::string connectionName_; + long maxResults_; + std::string apiDestinationNamePrefix_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTAPIDESTINATIONSREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListApiDestinationsResult.h b/eventbridge/include/alibabacloud/eventbridge/model/ListApiDestinationsResult.h new file mode 100644 index 000000000..df4b7f3e1 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListApiDestinationsResult.h @@ -0,0 +1,85 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTAPIDESTINATIONSRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTAPIDESTINATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListApiDestinationsResult : public ServiceResult + { + public: + struct Data + { + struct ApiDestinationsItem + { + struct HttpApiParameters + { + struct ApiParametersItem + { + std::string defaultValue; + std::string type; + std::string description; + std::string in; + std::string name; + }; + std::string endpoint; + std::vector apiParameters; + std::string method; + }; + std::string connectionName; + long gmtCreate; + std::string description; + HttpApiParameters httpApiParameters; + std::string apiDestinationName; + long invocationRateLimitPerSecond; + }; + std::string nextToken; + std::vector apiDestinations; + float total; + float maxResults; + }; + + + ListApiDestinationsResult(); + explicit ListApiDestinationsResult(const std::string &payload); + ~ListApiDestinationsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTAPIDESTINATIONSRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListConnectionsRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/ListConnectionsRequest.h new file mode 100644 index 000000000..42e0a6adb --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListConnectionsRequest.h @@ -0,0 +1,48 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTCONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTCONNECTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListConnectionsRequest : public RpcServiceRequest { +public: + ListConnectionsRequest(); + ~ListConnectionsRequest(); + std::string getConnectionNamePrefix() const; + void setConnectionNamePrefix(const std::string &connectionNamePrefix); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + std::string connectionNamePrefix_; + std::string nextToken_; + long maxResults_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTCONNECTIONSREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListConnectionsResult.h b/eventbridge/include/alibabacloud/eventbridge/model/ListConnectionsResult.h new file mode 100644 index 000000000..9b59677cb --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListConnectionsResult.h @@ -0,0 +1,156 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTCONNECTIONSRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTCONNECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListConnectionsResult : public ServiceResult + { + public: + struct Data + { + struct ConnectionsItem + { + struct NetworkParameters + { + std::string vpcId; + std::string networkType; + std::string securityGroupId; + std::string vswitcheId; + }; + struct AuthParameters + { + struct ApiKeyAuthParameters + { + std::string apiKeyValue; + std::string apiKeyName; + }; + struct BasicAuthParameters + { + std::string username; + std::string password; + }; + struct InvocationHttpParameters + { + struct BodyParametersItem + { + std::string isValueSecret; + std::string value; + std::string key; + }; + struct HeaderParametersItem + { + std::string isValueSecret; + std::string value; + std::string key; + }; + struct QueryStringParametersItem + { + std::string isValueSecret; + std::string value; + std::string key; + }; + std::vector headerParameters; + std::vector queryStringParameters; + std::vector bodyParameters; + }; + struct OAuthParameters + { + struct ClientParameters + { + std::string clientSecret; + std::string clientID; + }; + struct OAuthHttpParameters + { + struct BodyParametersItem4 + { + std::string isValueSecret; + std::string value; + std::string key; + }; + struct HeaderParametersItem5 + { + std::string isValueSecret; + std::string value; + std::string key; + }; + struct QueryStringParametersItem6 + { + std::string isValueSecret; + std::string value; + std::string key; + }; + std::vector headerParameters2; + std::vector bodyParameters1; + std::vector queryStringParameters3; + }; + ClientParameters clientParameters; + OAuthHttpParameters oAuthHttpParameters; + std::string authorizationEndpoint; + std::string httpMethod; + }; + InvocationHttpParameters invocationHttpParameters; + BasicAuthParameters basicAuthParameters; + ApiKeyAuthParameters apiKeyAuthParameters; + OAuthParameters oAuthParameters; + std::string authorizationType; + }; + std::string connectionName; + AuthParameters authParameters; + long gmtCreate; + std::string description; + NetworkParameters networkParameters; + long id; + }; + std::vector connections; + std::string nextToken; + float total; + float maxResults; + }; + + + ListConnectionsResult(); + explicit ListConnectionsResult(const std::string &payload); + ~ListConnectionsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTCONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListEventBusesRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/ListEventBusesRequest.h new file mode 100644 index 000000000..14faf9c7a --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListEventBusesRequest.h @@ -0,0 +1,51 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTBUSESREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTBUSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListEventBusesRequest : public RpcServiceRequest { +public: + ListEventBusesRequest(); + ~ListEventBusesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getLimit() const; + void setLimit(int limit); + std::string getNamePrefix() const; + void setNamePrefix(const std::string &namePrefix); + std::string getEventBusType() const; + void setEventBusType(const std::string &eventBusType); + +private: + std::string nextToken_; + int limit_; + std::string namePrefix_; + std::string eventBusType_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTBUSESREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListEventBusesResult.h b/eventbridge/include/alibabacloud/eventbridge/model/ListEventBusesResult.h new file mode 100644 index 000000000..58e82c1f3 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListEventBusesResult.h @@ -0,0 +1,70 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTBUSESRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTBUSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListEventBusesResult : public ServiceResult + { + public: + struct Data + { + struct EventBusesItem + { + std::string eventBusName; + std::string description; + long createTimestamp; + std::string eventBusARN; + }; + std::vector eventBuses; + std::string nextToken; + int total; + }; + + + ListEventBusesResult(); + explicit ListEventBusesResult(const std::string &payload); + ~ListEventBusesResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTBUSESRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListEventStreamingsRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/ListEventStreamingsRequest.h new file mode 100644 index 000000000..9df95e4d0 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListEventStreamingsRequest.h @@ -0,0 +1,63 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTSTREAMINGSREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTSTREAMINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListEventStreamingsRequest : public RpcServiceRequest { +public: + ListEventStreamingsRequest(); + ~ListEventStreamingsRequest(); + std::string getSourceArn() const; + void setSourceArn(const std::string &sourceArn); + std::string getSinkType() const; + void setSinkType(const std::string &sinkType); + std::string getSinkArn() const; + void setSinkArn(const std::string &sinkArn); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getLimit() const; + void setLimit(int limit); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getNamePrefix() const; + void setNamePrefix(const std::string &namePrefix); + std::string getTag() const; + void setTag(const std::string &tag); + +private: + std::string sourceArn_; + std::string sinkType_; + std::string sinkArn_; + std::string nextToken_; + int limit_; + std::string sourceType_; + std::string namePrefix_; + std::string tag_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTSTREAMINGSREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListEventStreamingsResult.h b/eventbridge/include/alibabacloud/eventbridge/model/ListEventStreamingsResult.h new file mode 100644 index 000000000..a5716939d --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListEventStreamingsResult.h @@ -0,0 +1,484 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTSTREAMINGSRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTSTREAMINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListEventStreamingsResult : public ServiceResult + { + public: + struct Data + { + struct EventStreamingsItem + { + struct Source + { + struct SourceMNSParameters + { + bool isBase64Decode; + std::string regionId; + std::string queueName; + }; + struct SourceRabbitMQParameters + { + std::string virtualHostName; + std::string instanceId; + std::string regionId; + std::string queueName; + }; + struct SourceRocketMQParameters + { + std::string instanceId; + long timestamp; + std::string offset; + std::string groupID; + std::string instancePassword; + std::string instanceNetwork; + std::string instanceUsername; + std::string instanceEndpoint; + std::string instanceVpcId; + std::string instanceVSwitchIds; + std::string instanceSecurityGroupId; + std::string regionId; + std::string tag; + std::string authType; + std::string topic; + std::string instanceType; + }; + struct SourceKafkaParameters + { + std::string offsetReset; + std::string vpcId; + std::string instanceId; + std::string vSwitchIds; + std::string network; + std::string securityGroupId; + std::string regionId; + std::string topic; + std::string consumerGroup; + }; + struct SourceMQTTParameters + { + std::string instanceId; + std::string regionId; + std::string topic; + }; + struct SourceDTSParameters + { + std::string taskId; + std::string username; + std::string initCheckPoint; + std::string topic; + std::string brokerUrl; + std::string sid; + std::string password; + }; + struct SourceSLSParameters + { + std::string project; + std::string roleName; + std::string logStore; + std::string consumePosition; + std::string consumerGroup; + }; + SourceSLSParameters sourceSLSParameters; + SourceMQTTParameters sourceMQTTParameters; + SourceRabbitMQParameters sourceRabbitMQParameters; + SourceMNSParameters sourceMNSParameters; + SourceKafkaParameters sourceKafkaParameters; + SourceDTSParameters sourceDTSParameters; + SourceRocketMQParameters sourceRocketMQParameters; + }; + struct Sink + { + struct SinkMNSParameters + { + struct QueueName + { + std::string _template; + std::string form; + std::string value; + }; + struct Body + { + std::string _template; + std::string form; + std::string value; + }; + struct IsBase64Encode + { + std::string _template; + std::string form; + std::string value; + }; + IsBase64Encode isBase64Encode; + QueueName queueName; + Body body; + }; + struct SinkFcParameters + { + struct ServiceName + { + std::string _template; + std::string form; + std::string value; + }; + struct FunctionName + { + std::string _template; + std::string form; + std::string value; + }; + struct Concurrency + { + std::string _template; + std::string form; + std::string value; + }; + struct Qualifier + { + std::string _template; + std::string form; + std::string value; + }; + struct InvocationType + { + std::string _template; + std::string form; + std::string value; + }; + struct Body1 + { + std::string _template; + std::string form; + std::string value; + }; + FunctionName functionName; + ServiceName serviceName; + Concurrency concurrency; + InvocationType invocationType; + Body1 body1; + Qualifier qualifier; + }; + struct SinkRabbitMQParameters + { + struct InstanceId + { + std::string _template; + std::string form; + std::string value; + }; + struct VirtualHostName + { + std::string _template; + std::string form; + std::string value; + }; + struct TargetType + { + std::string _template; + std::string form; + std::string value; + }; + struct Exchange + { + std::string _template; + std::string form; + std::string value; + }; + struct RoutingKey + { + std::string _template; + std::string form; + std::string value; + }; + struct QueueName2 + { + std::string _template; + std::string form; + std::string value; + }; + struct Body3 + { + std::string _template; + std::string form; + std::string value; + }; + struct MessageId + { + std::string _template; + std::string form; + std::string value; + }; + struct Properties + { + std::string _template; + std::string form; + std::string value; + }; + Exchange exchange; + RoutingKey routingKey; + QueueName2 queueName2; + VirtualHostName virtualHostName; + InstanceId instanceId; + Body3 body3; + TargetType targetType; + Properties properties; + MessageId messageId; + }; + struct SinkKafkaParameters + { + struct InstanceId4 + { + std::string _template; + std::string form; + std::string value; + }; + struct Topic + { + std::string _template; + std::string form; + std::string value; + }; + struct Acks + { + std::string _template; + std::string form; + std::string value; + }; + struct Key + { + std::string _template; + std::string form; + std::string value; + }; + struct Value + { + std::string _template; + std::string form; + std::string value; + }; + struct SaslUser + { + std::string _template; + std::string form; + std::string value; + }; + Acks acks; + SaslUser saslUser; + Value value; + InstanceId4 instanceId4; + Topic topic; + Key key; + }; + struct SinkRocketMQParameters + { + struct InstanceId5 + { + std::string _template; + std::string form; + std::string value; + }; + struct Topic6 + { + std::string _template; + std::string form; + std::string value; + }; + struct Body7 + { + std::string _template; + std::string form; + std::string value; + }; + struct Properties8 + { + std::string _template; + std::string form; + std::string value; + }; + struct Keys + { + std::string _template; + std::string form; + std::string value; + }; + struct Tags + { + std::string _template; + std::string form; + std::string value; + }; + Topic6 topic6; + Body7 body7; + Keys keys; + Properties8 properties8; + InstanceId5 instanceId5; + Tags tags; + }; + struct SinkSLSParameters + { + struct Project + { + std::string _template; + std::string form; + std::string value; + }; + struct LogStore + { + std::string _template; + std::string form; + std::string value; + }; + struct Topic9 + { + std::string _template; + std::string form; + std::string value; + }; + struct Body10 + { + std::string _template; + std::string form; + std::string value; + }; + struct RoleName + { + std::string _template; + std::string form; + std::string value; + }; + Project project; + RoleName roleName; + LogStore logStore; + Body10 body10; + Topic9 topic9; + }; + struct SinkFnfParameters + { + struct FlowName + { + std::string _template; + std::string form; + std::string value; + }; + struct ExecutionName + { + std::string _template; + std::string form; + std::string value; + }; + struct Input + { + std::string _template; + std::string form; + std::string value; + }; + struct RoleName11 + { + std::string _template; + std::string form; + std::string value; + }; + ExecutionName executionName; + Input input; + FlowName flowName; + RoleName11 roleName11; + }; + SinkMNSParameters sinkMNSParameters; + SinkFnfParameters sinkFnfParameters; + SinkRocketMQParameters sinkRocketMQParameters; + SinkSLSParameters sinkSLSParameters; + SinkRabbitMQParameters sinkRabbitMQParameters; + SinkFcParameters sinkFcParameters; + SinkKafkaParameters sinkKafkaParameters; + }; + struct RunOptions + { + struct RetryStrategy + { + std::string pushRetryStrategy; + float maximumRetryAttempts; + float maximumEventAgeInSeconds; + }; + struct DeadLetterQueue + { + std::string arn; + }; + struct BatchWindow + { + int countBasedWindow; + int timeBasedWindow; + }; + std::string errorsTolerance; + DeadLetterQueue deadLetterQueue; + BatchWindow batchWindow; + int maximumTasks; + RetryStrategy retryStrategy; + }; + struct TransformsItem + { + std::string arn; + }; + std::string status; + std::string filterPattern; + std::string description; + Sink sink; + std::vector transforms; + std::string tag; + std::string eventStreamingName; + Source source; + RunOptions runOptions; + }; + std::vector eventStreamings; + std::string nextToken; + int total; + }; + + + ListEventStreamingsResult(); + explicit ListEventStreamingsResult(const std::string &payload); + ~ListEventStreamingsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTEVENTSTREAMINGSRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListRulesRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/ListRulesRequest.h new file mode 100644 index 000000000..1d9063c50 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListRulesRequest.h @@ -0,0 +1,51 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTRULESREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListRulesRequest : public RpcServiceRequest { +public: + ListRulesRequest(); + ~ListRulesRequest(); + std::string getRuleNamePrefix() const; + void setRuleNamePrefix(const std::string &ruleNamePrefix); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getLimit() const; + void setLimit(int limit); + +private: + std::string ruleNamePrefix_; + std::string eventBusName_; + std::string nextToken_; + int limit_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTRULESREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListRulesResult.h b/eventbridge/include/alibabacloud/eventbridge/model/ListRulesResult.h new file mode 100644 index 000000000..496957881 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListRulesResult.h @@ -0,0 +1,83 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTRULESRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListRulesResult : public ServiceResult + { + public: + struct Data + { + struct RulesItem + { + struct TargetsItem + { + std::string errorsTolerance; + std::string type; + std::string endpoint; + std::string id; + std::string pushSelector; + }; + std::string status; + std::string eventBusName; + std::string filterPattern; + std::string description; + long createdTimestamp; + std::string ruleARN; + std::vector targets; + std::string detailMap; + std::string ruleName; + }; + std::string nextToken; + int total; + std::vector rules; + }; + + + ListRulesResult(); + explicit ListRulesResult(const std::string &payload); + ~ListRulesResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTRULESRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListTargetsRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/ListTargetsRequest.h new file mode 100644 index 000000000..1e19c518c --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListTargetsRequest.h @@ -0,0 +1,54 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTTARGETSREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTTARGETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListTargetsRequest : public RpcServiceRequest { +public: + ListTargetsRequest(); + ~ListTargetsRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getLimit() const; + void setLimit(int limit); + std::string getArn() const; + void setArn(const std::string &arn); + +private: + std::string ruleName_; + std::string eventBusName_; + std::string nextToken_; + int limit_; + std::string arn_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTTARGETSREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListTargetsResult.h b/eventbridge/include/alibabacloud/eventbridge/model/ListTargetsResult.h new file mode 100644 index 000000000..1996f40a0 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListTargetsResult.h @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTTARGETSRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTTARGETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListTargetsResult : public ServiceResult + { + public: + struct Data + { + struct TargetsItem + { + struct ParamListItem + { + std::string _template; + std::string form; + std::string value; + std::string resourceKey; + }; + std::string errorsTolerance; + std::string eventBusName; + std::string type; + std::string endpoint; + std::string id; + std::string detailMap; + std::string pushSelector; + std::vector paramList; + std::string ruleName; + }; + std::string nextToken; + int total; + std::vector targets; + }; + + + ListTargetsResult(); + explicit ListTargetsResult(const std::string &payload); + ~ListTargetsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTTARGETSRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListUserDefinedEventSourcesRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/ListUserDefinedEventSourcesRequest.h new file mode 100644 index 000000000..bbeea221c --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListUserDefinedEventSourcesRequest.h @@ -0,0 +1,54 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTUSERDEFINEDEVENTSOURCESREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTUSERDEFINEDEVENTSOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListUserDefinedEventSourcesRequest : public RpcServiceRequest { +public: + ListUserDefinedEventSourcesRequest(); + ~ListUserDefinedEventSourcesRequest(); + std::string getType() const; + void setType(const std::string &type); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getLimit() const; + void setLimit(int limit); + std::string getNamePrefix() const; + void setNamePrefix(const std::string &namePrefix); + +private: + std::string type_; + std::string eventBusName_; + std::string nextToken_; + int limit_; + std::string namePrefix_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTUSERDEFINEDEVENTSOURCESREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/ListUserDefinedEventSourcesResult.h b/eventbridge/include/alibabacloud/eventbridge/model/ListUserDefinedEventSourcesResult.h new file mode 100644 index 000000000..528449f83 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/ListUserDefinedEventSourcesResult.h @@ -0,0 +1,150 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTUSERDEFINEDEVENTSOURCESRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTUSERDEFINEDEVENTSOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT ListUserDefinedEventSourcesResult : public ServiceResult + { + public: + struct Data + { + struct EventSourceListItem + { + struct SourceMNSParameters + { + bool isBase64Decode; + std::string regionId; + std::string queueName; + }; + struct SourceRocketMQParameters + { + std::string instanceId; + float timestamp; + std::string offset; + std::string groupId; + std::string instanceNetwork; + std::string instancePassword; + std::string instanceUsername; + std::string instanceEndpoint; + std::string instanceVpcId; + std::string instanceVSwitchIds; + std::string instanceSecurityGroupId; + std::string regionId; + std::string tag; + std::string authType; + std::string topic; + std::string instanceType; + }; + struct SourceRabbitMQParameters + { + std::string virtualHostName; + std::string instanceId; + std::string regionId; + std::string queueName; + }; + struct SourceSLSParameters + { + std::string project; + std::string roleName; + std::string logStore; + std::string consumePosition; + }; + struct SourceHttpEventParameters + { + std::string type; + std::string securityConfig; + std::vector ip; + std::vector referer; + std::vector publicWebHookUrl; + std::vector method; + std::vector vpcWebHookUrl; + }; + struct SourceKafkaParameters + { + std::string offsetReset; + std::string vpcId; + std::string instanceId; + int maximumTasks; + std::string vSwitchIds; + std::string network; + std::string securityGroupId; + std::string regionId; + std::string topic; + std::string consumerGroup; + }; + struct SourceScheduledEventParameters + { + std::string timeZone; + std::string userData; + std::string schedule; + }; + std::string status; + std::string eventBusName; + std::string description; + SourceRabbitMQParameters sourceRabbitMQParameters; + SourceMNSParameters sourceMNSParameters; + std::string externalSourceType; + std::string externalSourceConfig; + SourceHttpEventParameters sourceHttpEventParameters; + std::string name; + SourceSLSParameters sourceSLSParameters; + std::string type; + float ctime; + SourceKafkaParameters sourceKafkaParameters; + SourceScheduledEventParameters sourceScheduledEventParameters; + SourceRocketMQParameters sourceRocketMQParameters; + std::string arn; + }; + std::string nextToken; + std::vector eventSourceList; + float total; + }; + + + ListUserDefinedEventSourcesResult(); + explicit ListUserDefinedEventSourcesResult(const std::string &payload); + ~ListUserDefinedEventSourcesResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_LISTUSERDEFINEDEVENTSOURCESRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/PauseEventStreamingRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/PauseEventStreamingRequest.h new file mode 100644 index 000000000..282e7c555 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/PauseEventStreamingRequest.h @@ -0,0 +1,42 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_PAUSEEVENTSTREAMINGREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_PAUSEEVENTSTREAMINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT PauseEventStreamingRequest : public RpcServiceRequest { +public: + PauseEventStreamingRequest(); + ~PauseEventStreamingRequest(); + std::string getEventStreamingName() const; + void setEventStreamingName(const std::string &eventStreamingName); + +private: + std::string eventStreamingName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_PAUSEEVENTSTREAMINGREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/PauseEventStreamingResult.h b/eventbridge/include/alibabacloud/eventbridge/model/PauseEventStreamingResult.h new file mode 100644 index 000000000..8f9c6a771 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/PauseEventStreamingResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_PAUSEEVENTSTREAMINGRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_PAUSEEVENTSTREAMINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT PauseEventStreamingResult : public ServiceResult + { + public: + + + PauseEventStreamingResult(); + explicit PauseEventStreamingResult(const std::string &payload); + ~PauseEventStreamingResult(); + std::string getMessage()const; + bool getData()const; + bool getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + bool code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_PAUSEEVENTSTREAMINGRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/PutTargetsRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/PutTargetsRequest.h new file mode 100644 index 000000000..ef12c6bbd --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/PutTargetsRequest.h @@ -0,0 +1,70 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_PUTTARGETSREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_PUTTARGETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT PutTargetsRequest : public RpcServiceRequest { +public: + struct Targets { + std::string endpoint; + std::string pushRetryStrategy; + struct ParamListItem { + std::string _template; + std::string resourceKey; + std::string form; + std::string value; + }; + ParamListItem paramListItem; + std::vector paramList; + std::string id; + struct DeadLetterQueue { + std::string arn; + }; + DeadLetterQueue deadLetterQueue; + std::string type; + std::string errorsTolerance; + }; + PutTargetsRequest(); + ~PutTargetsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + std::vector getTargets() const; + void setTargets(const std::vector &targets); + +private: + std::string clientToken_; + std::string ruleName_; + std::string eventBusName_; + std::vector targets_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_PUTTARGETSREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/PutTargetsResult.h b/eventbridge/include/alibabacloud/eventbridge/model/PutTargetsResult.h new file mode 100644 index 000000000..beaaa49e9 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/PutTargetsResult.h @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_PUTTARGETSRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_PUTTARGETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT PutTargetsResult : public ServiceResult + { + public: + struct Data + { + struct ErrorEntriesItem + { + std::string entryId; + std::string errorCode; + std::string errorMessage; + }; + std::vector errorEntries; + int errorEntriesCount; + }; + + + PutTargetsResult(); + explicit PutTargetsResult(const std::string &payload); + ~PutTargetsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_PUTTARGETSRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/QueryEventRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/QueryEventRequest.h new file mode 100644 index 000000000..a2148a314 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/QueryEventRequest.h @@ -0,0 +1,48 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT QueryEventRequest : public RpcServiceRequest { +public: + QueryEventRequest(); + ~QueryEventRequest(); + std::string getEventId() const; + void setEventId(const std::string &eventId); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + std::string getEventSource() const; + void setEventSource(const std::string &eventSource); + +private: + std::string eventId_; + std::string eventBusName_; + std::string eventSource_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/QueryEventResult.h b/eventbridge/include/alibabacloud/eventbridge/model/QueryEventResult.h new file mode 100644 index 000000000..f42a9221d --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/QueryEventResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT QueryEventResult : public ServiceResult + { + public: + + + QueryEventResult(); + explicit QueryEventResult(const std::string &payload); + ~QueryEventResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/QueryEventTracesRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/QueryEventTracesRequest.h new file mode 100644 index 000000000..ba5258dae --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/QueryEventTracesRequest.h @@ -0,0 +1,45 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTTRACESREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTTRACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT QueryEventTracesRequest : public RpcServiceRequest { +public: + QueryEventTracesRequest(); + ~QueryEventTracesRequest(); + std::string getEventId() const; + void setEventId(const std::string &eventId); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + +private: + std::string eventId_; + std::string eventBusName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTTRACESREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/QueryEventTracesResult.h b/eventbridge/include/alibabacloud/eventbridge/model/QueryEventTracesResult.h new file mode 100644 index 000000000..913a4379d --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/QueryEventTracesResult.h @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTTRACESRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTTRACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT QueryEventTracesResult : public ServiceResult + { + public: + struct DataItem + { + long actionTime; + std::string eventBusName; + std::string action; + std::string notifyLatency; + std::string eventSource; + std::string notifyStatus; + std::string endpoint; + long notifyTime; + std::string eventId; + long receivedTime; + std::string ruleMatchingTime; + std::string ruleName; + }; + + + QueryEventTracesResult(); + explicit QueryEventTracesResult(const std::string &payload); + ~QueryEventTracesResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYEVENTTRACESRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventByEventIdRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventByEventIdRequest.h new file mode 100644 index 000000000..40db4bea5 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventByEventIdRequest.h @@ -0,0 +1,48 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTBYEVENTIDREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTBYEVENTIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT QueryTracedEventByEventIdRequest : public RpcServiceRequest { +public: + QueryTracedEventByEventIdRequest(); + ~QueryTracedEventByEventIdRequest(); + std::string getEventId() const; + void setEventId(const std::string &eventId); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + std::string getEventSource() const; + void setEventSource(const std::string &eventSource); + +private: + std::string eventId_; + std::string eventBusName_; + std::string eventSource_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTBYEVENTIDREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventByEventIdResult.h b/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventByEventIdResult.h new file mode 100644 index 000000000..73fe95b74 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventByEventIdResult.h @@ -0,0 +1,71 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTBYEVENTIDRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTBYEVENTIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT QueryTracedEventByEventIdResult : public ServiceResult + { + public: + struct DataItem + { + struct EventsItem + { + std::string eventBusName; + std::string eventSource; + std::string eventType; + std::string eventId; + long eventReceivedTime; + }; + std::string nextToken; + std::vector events; + int total; + }; + + + QueryTracedEventByEventIdResult(); + explicit QueryTracedEventByEventIdResult(const std::string &payload); + ~QueryTracedEventByEventIdResult(); + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTBYEVENTIDRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventsRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventsRequest.h new file mode 100644 index 000000000..bc916a7cd --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventsRequest.h @@ -0,0 +1,63 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTSREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT QueryTracedEventsRequest : public RpcServiceRequest { +public: + QueryTracedEventsRequest(); + ~QueryTracedEventsRequest(); + std::string getMatchedRule() const; + void setMatchedRule(const std::string &matchedRule); + long getStartTime() const; + void setStartTime(long startTime); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + std::string getEventSource() const; + void setEventSource(const std::string &eventSource); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getLimit() const; + void setLimit(int limit); + long getEndTime() const; + void setEndTime(long endTime); + std::string getEventType() const; + void setEventType(const std::string &eventType); + +private: + std::string matchedRule_; + long startTime_; + std::string eventBusName_; + std::string eventSource_; + std::string nextToken_; + int limit_; + long endTime_; + std::string eventType_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTSREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventsResult.h b/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventsResult.h new file mode 100644 index 000000000..78d0e939f --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/QueryTracedEventsResult.h @@ -0,0 +1,71 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTSRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT QueryTracedEventsResult : public ServiceResult + { + public: + struct Data + { + struct EventsItem + { + std::string eventBusName; + std::string eventSource; + std::string eventType; + std::string eventId; + long eventReceivedTime; + }; + std::string nextToken; + std::vector events; + int total; + }; + + + QueryTracedEventsResult(); + explicit QueryTracedEventsResult(const std::string &payload); + ~QueryTracedEventsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_QUERYTRACEDEVENTSRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/StartEventStreamingRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/StartEventStreamingRequest.h new file mode 100644 index 000000000..63992ec91 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/StartEventStreamingRequest.h @@ -0,0 +1,42 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_STARTEVENTSTREAMINGREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_STARTEVENTSTREAMINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT StartEventStreamingRequest : public RpcServiceRequest { +public: + StartEventStreamingRequest(); + ~StartEventStreamingRequest(); + std::string getEventStreamingName() const; + void setEventStreamingName(const std::string &eventStreamingName); + +private: + std::string eventStreamingName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_STARTEVENTSTREAMINGREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/StartEventStreamingResult.h b/eventbridge/include/alibabacloud/eventbridge/model/StartEventStreamingResult.h new file mode 100644 index 000000000..7dc20d4c2 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/StartEventStreamingResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_STARTEVENTSTREAMINGRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_STARTEVENTSTREAMINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT StartEventStreamingResult : public ServiceResult + { + public: + + + StartEventStreamingResult(); + explicit StartEventStreamingResult(const std::string &payload); + ~StartEventStreamingResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_STARTEVENTSTREAMINGRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/TestEventPatternRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/TestEventPatternRequest.h new file mode 100644 index 000000000..94fbd92bd --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/TestEventPatternRequest.h @@ -0,0 +1,45 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_TESTEVENTPATTERNREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_TESTEVENTPATTERNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT TestEventPatternRequest : public RpcServiceRequest { +public: + TestEventPatternRequest(); + ~TestEventPatternRequest(); + std::string getEventPattern() const; + void setEventPattern(const std::string &eventPattern); + std::string getEvent() const; + void setEvent(const std::string &event); + +private: + std::string eventPattern_; + std::string event_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_TESTEVENTPATTERNREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/TestEventPatternResult.h b/eventbridge/include/alibabacloud/eventbridge/model/TestEventPatternResult.h new file mode 100644 index 000000000..83ac645e9 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/TestEventPatternResult.h @@ -0,0 +1,61 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_TESTEVENTPATTERNRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_TESTEVENTPATTERNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT TestEventPatternResult : public ServiceResult + { + public: + struct Data + { + bool result; + }; + + + TestEventPatternResult(); + explicit TestEventPatternResult(const std::string &payload); + ~TestEventPatternResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_TESTEVENTPATTERNRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateApiDestinationRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateApiDestinationRequest.h new file mode 100644 index 000000000..96c2cf870 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateApiDestinationRequest.h @@ -0,0 +1,70 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEAPIDESTINATIONREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEAPIDESTINATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateApiDestinationRequest : public RpcServiceRequest { +public: + struct HttpApiParameters { + std::string endpoint; + std::string method; + struct ApiParametersItem { + std::string in; + std::string name; + std::string description; + std::string defaultValue; + std::string type; + }; + ApiParametersItem apiParametersItem; + std::vector apiParameters; + }; + UpdateApiDestinationRequest(); + ~UpdateApiDestinationRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getApiDestinationName() const; + void setApiDestinationName(const std::string &apiDestinationName); + std::string getConnectionName() const; + void setConnectionName(const std::string &connectionName); + HttpApiParameters getHttpApiParameters() const; + void setHttpApiParameters(const HttpApiParameters &httpApiParameters); + long getInvocationRateLimitPerSecond() const; + void setInvocationRateLimitPerSecond(long invocationRateLimitPerSecond); + +private: + std::string clientToken_; + std::string description_; + std::string apiDestinationName_; + std::string connectionName_; + HttpApiParameters httpApiParameters_; + long invocationRateLimitPerSecond_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEAPIDESTINATIONREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateApiDestinationResult.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateApiDestinationResult.h new file mode 100644 index 000000000..840a12cdf --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateApiDestinationResult.h @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEAPIDESTINATIONRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEAPIDESTINATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateApiDestinationResult : public ServiceResult + { + public: + + + UpdateApiDestinationResult(); + explicit UpdateApiDestinationResult(const std::string &payload); + ~UpdateApiDestinationResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getApiDestinationName()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string apiDestinationName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEAPIDESTINATIONRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateConnectionRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateConnectionRequest.h new file mode 100644 index 000000000..4e900f2dc --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateConnectionRequest.h @@ -0,0 +1,128 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATECONNECTIONREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATECONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateConnectionRequest : public RpcServiceRequest { +public: + struct NetworkParameters { + std::string vpcId; + std::string securityGroupId; + std::string networkType; + std::string vswitcheId; + }; + struct AuthParameters { + struct BasicAuthParameters { + std::string password; + std::string username; + }; + BasicAuthParameters basicAuthParameters; + struct ApiKeyAuthParameters { + std::string apiKeyName; + std::string apiKeyValue; + }; + ApiKeyAuthParameters apiKeyAuthParameters; + std::string authorizationType; + struct InvocationHttpParameters { + struct BodyParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + BodyParametersItem bodyParametersItem; + std::vector bodyParameters; + struct HeaderParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + HeaderParametersItem headerParametersItem; + std::vector headerParameters; + struct QueryStringParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + QueryStringParametersItem queryStringParametersItem; + std::vector queryStringParameters; + }; + InvocationHttpParameters invocationHttpParameters; + struct OAuthParameters { + struct ClientParameters { + std::string clientID; + std::string clientSecret; + }; + ClientParameters clientParameters; + std::string authorizationEndpoint; + std::string httpMethod; + struct OAuthHttpParameters { + struct BodyParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + BodyParametersItem bodyParametersItem; + std::vector bodyParameters; + struct HeaderParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + HeaderParametersItem headerParametersItem; + std::vector headerParameters; + struct QueryStringParametersItem { + std::string isValueSecret; + std::string value; + std::string key; + }; + QueryStringParametersItem queryStringParametersItem; + std::vector queryStringParameters; + }; + OAuthHttpParameters oAuthHttpParameters; + }; + OAuthParameters oAuthParameters; + }; + UpdateConnectionRequest(); + ~UpdateConnectionRequest(); + std::string getConnectionName() const; + void setConnectionName(const std::string &connectionName); + std::string getDescription() const; + void setDescription(const std::string &description); + NetworkParameters getNetworkParameters() const; + void setNetworkParameters(const NetworkParameters &networkParameters); + AuthParameters getAuthParameters() const; + void setAuthParameters(const AuthParameters &authParameters); + +private: + std::string connectionName_; + std::string description_; + NetworkParameters networkParameters_; + AuthParameters authParameters_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATECONNECTIONREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateConnectionResult.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateConnectionResult.h new file mode 100644 index 000000000..7711fb363 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateConnectionResult.h @@ -0,0 +1,53 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATECONNECTIONRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATECONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateConnectionResult : public ServiceResult + { + public: + + + UpdateConnectionResult(); + explicit UpdateConnectionResult(const std::string &payload); + ~UpdateConnectionResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATECONNECTIONRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventBusRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventBusRequest.h new file mode 100644 index 000000000..0d006a703 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventBusRequest.h @@ -0,0 +1,45 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTBUSREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTBUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateEventBusRequest : public RpcServiceRequest { +public: + UpdateEventBusRequest(); + ~UpdateEventBusRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + +private: + std::string description_; + std::string eventBusName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTBUSREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventBusResult.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventBusResult.h new file mode 100644 index 000000000..87e4bd8c3 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventBusResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTBUSRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTBUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateEventBusResult : public ServiceResult + { + public: + + + UpdateEventBusResult(); + explicit UpdateEventBusResult(const std::string &payload); + ~UpdateEventBusResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTBUSRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventSourceRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventSourceRequest.h new file mode 100644 index 000000000..dab3ede20 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventSourceRequest.h @@ -0,0 +1,140 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSOURCEREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateEventSourceRequest : public RpcServiceRequest { +public: + struct SourceMNSParameters { + std::string queueName; + std::string regionId; + bool isBase64Decode; + }; + struct SourceRabbitMQParameters { + std::string queueName; + std::string virtualHostName; + std::string instanceId; + std::string regionId; + }; + struct SourceRocketMQParameters { + std::string instanceSecurityGroupId; + std::string offset; + std::string groupID; + std::string instanceUsername; + std::string authType; + std::string instancePassword; + std::string instanceNetwork; + std::string instanceVSwitchIds; + std::string instanceId; + std::string instanceVpcId; + std::string instanceEndpoint; + std::string regionId; + std::string topic; + std::string instanceType; + std::string tag; + long timestamp; + }; + struct SourceSLSParameters { + std::string roleName; + std::string project; + std::string logStore; + std::string consumePosition; + }; + struct SourceScheduledEventParameters { + std::string schedule; + std::string userData; + std::string timeZone; + }; + struct SourceKafkaParameters { + std::string instanceId; + std::string consumerGroup; + std::string regionId; + std::string vSwitchIds; + std::string vpcId; + std::string securityGroupId; + std::string topic; + std::string offsetReset; + int maximumTasks; + std::string network; + }; + struct SourceHttpEventParameters { + std::string string; + std::vector referer; + std::string string; + std::vector method; + std::string string; + std::vector ip; + std::string securityConfig; + std::string type; + }; + UpdateEventSourceRequest(); + ~UpdateEventSourceRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + SourceMNSParameters getSourceMNSParameters() const; + void setSourceMNSParameters(const SourceMNSParameters &sourceMNSParameters); + bool getLinkedExternalSource() const; + void setLinkedExternalSource(bool linkedExternalSource); + std::string getExternalSourceType() const; + void setExternalSourceType(const std::string &externalSourceType); + std::map getExternalSourceConfig() const; + void setExternalSourceConfig(const std::map &externalSourceConfig); + SourceRabbitMQParameters getSourceRabbitMQParameters() const; + void setSourceRabbitMQParameters(const SourceRabbitMQParameters &sourceRabbitMQParameters); + SourceRocketMQParameters getSourceRocketMQParameters() const; + void setSourceRocketMQParameters(const SourceRocketMQParameters &sourceRocketMQParameters); + SourceSLSParameters getSourceSLSParameters() const; + void setSourceSLSParameters(const SourceSLSParameters &sourceSLSParameters); + SourceScheduledEventParameters getSourceScheduledEventParameters() const; + void setSourceScheduledEventParameters(const SourceScheduledEventParameters &sourceScheduledEventParameters); + SourceKafkaParameters getSourceKafkaParameters() const; + void setSourceKafkaParameters(const SourceKafkaParameters &sourceKafkaParameters); + SourceHttpEventParameters getSourceHttpEventParameters() const; + void setSourceHttpEventParameters(const SourceHttpEventParameters &sourceHttpEventParameters); + std::string getEventSourceName() const; + void setEventSourceName(const std::string &eventSourceName); + +private: + std::string description_; + std::string eventBusName_; + SourceMNSParameters sourceMNSParameters_; + bool linkedExternalSource_; + std::string externalSourceType_; + std::map externalSourceConfig_; + SourceRabbitMQParameters sourceRabbitMQParameters_; + SourceRocketMQParameters sourceRocketMQParameters_; + SourceSLSParameters sourceSLSParameters_; + SourceScheduledEventParameters sourceScheduledEventParameters_; + SourceKafkaParameters sourceKafkaParameters_; + SourceHttpEventParameters sourceHttpEventParameters_; + std::string eventSourceName_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSOURCEREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventSourceResult.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventSourceResult.h new file mode 100644 index 000000000..0cfd5bdd6 --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventSourceResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSOURCERESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateEventSourceResult : public ServiceResult + { + public: + + + UpdateEventSourceResult(); + explicit UpdateEventSourceResult(const std::string &payload); + ~UpdateEventSourceResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSOURCERESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventStreamingRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventStreamingRequest.h new file mode 100644 index 000000000..18a0f201f --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventStreamingRequest.h @@ -0,0 +1,471 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSTREAMINGREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSTREAMINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateEventStreamingRequest : public RpcServiceRequest { +public: + struct Sink { + struct SinkRabbitMQParameters { + struct RoutingKey { + std::string _template; + std::string form; + std::string value; + }; + RoutingKey routingKey; + struct QueueName { + std::string _template; + std::string form; + std::string value; + }; + QueueName queueName; + struct VirtualHostName { + std::string _template; + std::string form; + std::string value; + }; + VirtualHostName virtualHostName; + struct InstanceId { + std::string _template; + std::string form; + std::string value; + }; + InstanceId instanceId; + struct TargetType { + std::string _template; + std::string form; + std::string value; + }; + TargetType targetType; + struct MessageId { + std::string _template; + std::string form; + std::string value; + }; + MessageId messageId; + struct Exchange { + std::string _template; + std::string form; + std::string value; + }; + Exchange exchange; + struct Body { + std::string _template; + std::string form; + std::string value; + }; + Body body; + struct Properties { + std::string _template; + std::string form; + std::string value; + }; + Properties properties; + }; + SinkRabbitMQParameters sinkRabbitMQParameters; + struct SinkMNSParameters { + struct QueueName { + std::string _template; + std::string form; + std::string value; + }; + QueueName queueName; + struct IsBase64Encode { + std::string _template; + std::string form; + std::string value; + }; + IsBase64Encode isBase64Encode; + struct Body { + std::string _template; + std::string form; + std::string value; + }; + Body body; + }; + SinkMNSParameters sinkMNSParameters; + struct SinkKafkaParameters { + struct InstanceId { + std::string _template; + std::string form; + std::string value; + }; + InstanceId instanceId; + struct Acks { + std::string _template; + std::string form; + std::string value; + }; + Acks acks; + struct Topic { + std::string _template; + std::string form; + std::string value; + }; + Topic topic; + struct SaslUser { + std::string _template; + std::string form; + std::string value; + }; + SaslUser saslUser; + struct Value { + std::string _template; + std::string form; + std::string value; + }; + Value value; + struct Key { + std::string _template; + std::string form; + std::string value; + }; + Key key; + }; + SinkKafkaParameters sinkKafkaParameters; + struct SinkFnfParameters { + struct Input { + std::string _template; + std::string form; + std::string value; + }; + Input input; + struct ExecutionName { + std::string _template; + std::string form; + std::string value; + }; + ExecutionName executionName; + struct RoleName { + std::string _template; + std::string form; + std::string value; + }; + RoleName roleName; + struct FlowName { + std::string _template; + std::string form; + std::string value; + }; + FlowName flowName; + }; + SinkFnfParameters sinkFnfParameters; + struct SinkFcParameters { + struct InvocationType { + std::string _template; + std::string form; + std::string value; + }; + InvocationType invocationType; + struct FunctionName { + std::string _template; + std::string form; + std::string value; + }; + FunctionName functionName; + struct Qualifier { + std::string _template; + std::string form; + std::string value; + }; + Qualifier qualifier; + struct ServiceName { + std::string _template; + std::string form; + std::string value; + }; + ServiceName serviceName; + struct Body { + std::string _template; + std::string form; + std::string value; + }; + Body body; + struct Concurrency { + std::string _template; + std::string form; + std::string value; + }; + Concurrency concurrency; + }; + SinkFcParameters sinkFcParameters; + struct SinkPrometheusParameters { + struct VSwitchId { + std::string _template; + std::string form; + std::string value; + }; + VSwitchId vSwitchId; + struct Password { + std::string _template; + std::string form; + std::string value; + }; + Password password; + struct Data { + std::string _template; + std::string form; + std::string value; + }; + Data data; + struct VpcId { + std::string _template; + std::string form; + std::string value; + }; + VpcId vpcId; + struct SecurityGroupId { + std::string _template; + std::string form; + std::string value; + }; + SecurityGroupId securityGroupId; + struct AuthorizationType { + std::string _template; + std::string form; + std::string value; + }; + AuthorizationType authorizationType; + struct NetworkType { + std::string _template; + std::string form; + std::string value; + }; + NetworkType networkType; + struct URL { + std::string _template; + std::string form; + std::string value; + }; + URL uRL; + struct Username { + std::string _template; + std::string form; + std::string value; + }; + Username username; + }; + SinkPrometheusParameters sinkPrometheusParameters; + struct SinkSLSParameters { + struct RoleName { + std::string _template; + std::string form; + std::string value; + }; + RoleName roleName; + struct Project { + std::string _template; + std::string form; + std::string value; + }; + Project project; + struct Topic { + std::string _template; + std::string form; + std::string value; + }; + Topic topic; + struct Body { + std::string _template; + std::string form; + std::string value; + }; + Body body; + struct LogStore { + std::string _template; + std::string form; + std::string value; + }; + LogStore logStore; + }; + SinkSLSParameters sinkSLSParameters; + struct SinkRocketMQParameters { + struct InstanceId { + std::string _template; + std::string form; + std::string value; + }; + InstanceId instanceId; + struct Keys { + std::string _template; + std::string form; + std::string value; + }; + Keys keys; + struct Topic { + std::string _template; + std::string form; + std::string value; + }; + Topic topic; + struct Body { + std::string _template; + std::string form; + std::string value; + }; + Body body; + struct Properties { + std::string _template; + std::string form; + std::string value; + }; + Properties properties; + struct Tags { + std::string _template; + std::string form; + std::string value; + }; + Tags tags; + }; + SinkRocketMQParameters sinkRocketMQParameters; + }; + struct Transforms { + std::string arn; + }; + struct Source { + struct SourceMQTTParameters { + std::string instanceId; + std::string regionId; + std::string topic; + }; + SourceMQTTParameters sourceMQTTParameters; + struct SourceRocketMQParameters { + std::string instanceSecurityGroupId; + std::string offset; + std::string groupID; + std::string instanceUsername; + std::string authType; + std::string instancePassword; + std::string instanceVSwitchIds; + std::string instanceNetwork; + std::string instanceId; + std::string instanceEndpoint; + std::string instanceVpcId; + std::string regionId; + std::string topic; + std::string instanceType; + std::string tag; + long timestamp; + }; + SourceRocketMQParameters sourceRocketMQParameters; + struct SourceSLSParameters { + std::string roleName; + }; + SourceSLSParameters sourceSLSParameters; + struct SourcePrometheusParameters { + std::string dataType; + std::string clusterId; + std::string labels; + }; + SourcePrometheusParameters sourcePrometheusParameters; + struct SourceDTSParameters { + std::string brokerUrl; + std::string password; + long initCheckPoint; + std::string topic; + std::string taskId; + std::string sid; + std::string username; + }; + SourceDTSParameters sourceDTSParameters; + struct SourceKafkaParameters { + std::string instanceId; + std::string consumerGroup; + std::string regionId; + std::string vSwitchIds; + std::string vpcId; + std::string securityGroupId; + std::string topic; + std::string offsetReset; + std::string network; + }; + SourceKafkaParameters sourceKafkaParameters; + struct SourceMNSParameters { + std::string queueName; + std::string regionId; + bool isBase64Decode; + }; + SourceMNSParameters sourceMNSParameters; + struct SourceRabbitMQParameters { + std::string queueName; + std::string virtualHostName; + std::string instanceId; + std::string regionId; + }; + SourceRabbitMQParameters sourceRabbitMQParameters; + }; + struct RunOptions { + struct BatchWindow { + int countBasedWindow; + int timeBasedWindow; + }; + BatchWindow batchWindow; + struct RetryStrategy { + std::string pushRetryStrategy; + long maximumRetryAttempts; + long maximumEventAgeInSeconds; + }; + RetryStrategy retryStrategy; + struct DeadLetterQueue { + std::string arn; + }; + DeadLetterQueue deadLetterQueue; + long maximumTasks; + std::string errorsTolerance; + }; + UpdateEventStreamingRequest(); + ~UpdateEventStreamingRequest(); + Sink getSink() const; + void setSink(const Sink &sink); + std::vector getTransforms() const; + void setTransforms(const std::vector &transforms); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getFilterPattern() const; + void setFilterPattern(const std::string &filterPattern); + Source getSource() const; + void setSource(const Source &source); + RunOptions getRunOptions() const; + void setRunOptions(const RunOptions &runOptions); + std::string getEventStreamingName() const; + void setEventStreamingName(const std::string &eventStreamingName); + std::string getTag() const; + void setTag(const std::string &tag); + +private: + Sink sink_; + std::vector transforms_; + std::string description_; + std::string filterPattern_; + Source source_; + RunOptions runOptions_; + std::string eventStreamingName_; + std::string tag_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSTREAMINGREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventStreamingResult.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventStreamingResult.h new file mode 100644 index 000000000..8d449cf6d --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateEventStreamingResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSTREAMINGRESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSTREAMINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateEventStreamingResult : public ServiceResult + { + public: + + + UpdateEventStreamingResult(); + explicit UpdateEventStreamingResult(const std::string &payload); + ~UpdateEventStreamingResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATEEVENTSTREAMINGRESULT_H_ \ No newline at end of file diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateRuleRequest.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateRuleRequest.h new file mode 100644 index 000000000..b782d6b1b --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateRuleRequest.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATERULEREQUEST_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATERULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eventbridge { +namespace Model { +class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateRuleRequest : public RpcServiceRequest { +public: + UpdateRuleRequest(); + ~UpdateRuleRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getEventBusName() const; + void setEventBusName(const std::string &eventBusName); + std::string getFilterPattern() const; + void setFilterPattern(const std::string &filterPattern); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string clientToken_; + std::string description_; + std::string ruleName_; + std::string eventBusName_; + std::string filterPattern_; + std::string status_; +}; +} // namespace Model +} // namespace Eventbridge +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATERULEREQUEST_H_ diff --git a/eventbridge/include/alibabacloud/eventbridge/model/UpdateRuleResult.h b/eventbridge/include/alibabacloud/eventbridge/model/UpdateRuleResult.h new file mode 100644 index 000000000..4a9de9a7a --- /dev/null +++ b/eventbridge/include/alibabacloud/eventbridge/model/UpdateRuleResult.h @@ -0,0 +1,57 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATERULERESULT_H_ +#define ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATERULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eventbridge + { + namespace Model + { + class ALIBABACLOUD_EVENTBRIDGE_EXPORT UpdateRuleResult : public ServiceResult + { + public: + + + UpdateRuleResult(); + explicit UpdateRuleResult(const std::string &payload); + ~UpdateRuleResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EVENTBRIDGE_MODEL_UPDATERULERESULT_H_ \ No newline at end of file diff --git a/eventbridge/src/EventbridgeClient.cc b/eventbridge/src/EventbridgeClient.cc new file mode 100644 index 000000000..15b221c92 --- /dev/null +++ b/eventbridge/src/EventbridgeClient.cc @@ -0,0 +1,1601 @@ +/* + * 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 +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +namespace +{ + const std::string SERVICE_NAME = "eventbridge"; +} + +EventbridgeClient::EventbridgeClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +EventbridgeClient::EventbridgeClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +EventbridgeClient::EventbridgeClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +EventbridgeClient::~EventbridgeClient() +{} + +EventbridgeClient::CreateApiDestinationOutcome EventbridgeClient::createApiDestination(const CreateApiDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApiDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApiDestinationOutcome(CreateApiDestinationResult(outcome.result())); + else + return CreateApiDestinationOutcome(outcome.error()); +} + +void EventbridgeClient::createApiDestinationAsync(const CreateApiDestinationRequest& request, const CreateApiDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApiDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::CreateApiDestinationOutcomeCallable EventbridgeClient::createApiDestinationCallable(const CreateApiDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApiDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::CreateConnectionOutcome EventbridgeClient::createConnection(const CreateConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateConnectionOutcome(CreateConnectionResult(outcome.result())); + else + return CreateConnectionOutcome(outcome.error()); +} + +void EventbridgeClient::createConnectionAsync(const CreateConnectionRequest& request, const CreateConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::CreateConnectionOutcomeCallable EventbridgeClient::createConnectionCallable(const CreateConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::CreateEventBusOutcome EventbridgeClient::createEventBus(const CreateEventBusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEventBusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEventBusOutcome(CreateEventBusResult(outcome.result())); + else + return CreateEventBusOutcome(outcome.error()); +} + +void EventbridgeClient::createEventBusAsync(const CreateEventBusRequest& request, const CreateEventBusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEventBus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::CreateEventBusOutcomeCallable EventbridgeClient::createEventBusCallable(const CreateEventBusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEventBus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::CreateEventSourceOutcome EventbridgeClient::createEventSource(const CreateEventSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEventSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEventSourceOutcome(CreateEventSourceResult(outcome.result())); + else + return CreateEventSourceOutcome(outcome.error()); +} + +void EventbridgeClient::createEventSourceAsync(const CreateEventSourceRequest& request, const CreateEventSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEventSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::CreateEventSourceOutcomeCallable EventbridgeClient::createEventSourceCallable(const CreateEventSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEventSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::CreateEventStreamingOutcome EventbridgeClient::createEventStreaming(const CreateEventStreamingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEventStreamingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEventStreamingOutcome(CreateEventStreamingResult(outcome.result())); + else + return CreateEventStreamingOutcome(outcome.error()); +} + +void EventbridgeClient::createEventStreamingAsync(const CreateEventStreamingRequest& request, const CreateEventStreamingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEventStreaming(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::CreateEventStreamingOutcomeCallable EventbridgeClient::createEventStreamingCallable(const CreateEventStreamingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEventStreaming(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::CreateRuleOutcome EventbridgeClient::createRule(const CreateRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRuleOutcome(CreateRuleResult(outcome.result())); + else + return CreateRuleOutcome(outcome.error()); +} + +void EventbridgeClient::createRuleAsync(const CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::CreateRuleOutcomeCallable EventbridgeClient::createRuleCallable(const CreateRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::CreateServiceLinkedRoleForProductOutcome EventbridgeClient::createServiceLinkedRoleForProduct(const CreateServiceLinkedRoleForProductRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceLinkedRoleForProductOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceLinkedRoleForProductOutcome(CreateServiceLinkedRoleForProductResult(outcome.result())); + else + return CreateServiceLinkedRoleForProductOutcome(outcome.error()); +} + +void EventbridgeClient::createServiceLinkedRoleForProductAsync(const CreateServiceLinkedRoleForProductRequest& request, const CreateServiceLinkedRoleForProductAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createServiceLinkedRoleForProduct(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::CreateServiceLinkedRoleForProductOutcomeCallable EventbridgeClient::createServiceLinkedRoleForProductCallable(const CreateServiceLinkedRoleForProductRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createServiceLinkedRoleForProduct(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::DeleteApiDestinationOutcome EventbridgeClient::deleteApiDestination(const DeleteApiDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApiDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApiDestinationOutcome(DeleteApiDestinationResult(outcome.result())); + else + return DeleteApiDestinationOutcome(outcome.error()); +} + +void EventbridgeClient::deleteApiDestinationAsync(const DeleteApiDestinationRequest& request, const DeleteApiDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApiDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::DeleteApiDestinationOutcomeCallable EventbridgeClient::deleteApiDestinationCallable(const DeleteApiDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApiDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::DeleteConnectionOutcome EventbridgeClient::deleteConnection(const DeleteConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteConnectionOutcome(DeleteConnectionResult(outcome.result())); + else + return DeleteConnectionOutcome(outcome.error()); +} + +void EventbridgeClient::deleteConnectionAsync(const DeleteConnectionRequest& request, const DeleteConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::DeleteConnectionOutcomeCallable EventbridgeClient::deleteConnectionCallable(const DeleteConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::DeleteEventBusOutcome EventbridgeClient::deleteEventBus(const DeleteEventBusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEventBusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEventBusOutcome(DeleteEventBusResult(outcome.result())); + else + return DeleteEventBusOutcome(outcome.error()); +} + +void EventbridgeClient::deleteEventBusAsync(const DeleteEventBusRequest& request, const DeleteEventBusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEventBus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::DeleteEventBusOutcomeCallable EventbridgeClient::deleteEventBusCallable(const DeleteEventBusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEventBus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::DeleteEventSourceOutcome EventbridgeClient::deleteEventSource(const DeleteEventSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEventSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEventSourceOutcome(DeleteEventSourceResult(outcome.result())); + else + return DeleteEventSourceOutcome(outcome.error()); +} + +void EventbridgeClient::deleteEventSourceAsync(const DeleteEventSourceRequest& request, const DeleteEventSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEventSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::DeleteEventSourceOutcomeCallable EventbridgeClient::deleteEventSourceCallable(const DeleteEventSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEventSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::DeleteEventStreamingOutcome EventbridgeClient::deleteEventStreaming(const DeleteEventStreamingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEventStreamingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEventStreamingOutcome(DeleteEventStreamingResult(outcome.result())); + else + return DeleteEventStreamingOutcome(outcome.error()); +} + +void EventbridgeClient::deleteEventStreamingAsync(const DeleteEventStreamingRequest& request, const DeleteEventStreamingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEventStreaming(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::DeleteEventStreamingOutcomeCallable EventbridgeClient::deleteEventStreamingCallable(const DeleteEventStreamingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEventStreaming(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::DeleteRuleOutcome EventbridgeClient::deleteRule(const DeleteRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRuleOutcome(DeleteRuleResult(outcome.result())); + else + return DeleteRuleOutcome(outcome.error()); +} + +void EventbridgeClient::deleteRuleAsync(const DeleteRuleRequest& request, const DeleteRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::DeleteRuleOutcomeCallable EventbridgeClient::deleteRuleCallable(const DeleteRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::DeleteTargetsOutcome EventbridgeClient::deleteTargets(const DeleteTargetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTargetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTargetsOutcome(DeleteTargetsResult(outcome.result())); + else + return DeleteTargetsOutcome(outcome.error()); +} + +void EventbridgeClient::deleteTargetsAsync(const DeleteTargetsRequest& request, const DeleteTargetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTargets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::DeleteTargetsOutcomeCallable EventbridgeClient::deleteTargetsCallable(const DeleteTargetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTargets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::DisableRuleOutcome EventbridgeClient::disableRule(const DisableRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableRuleOutcome(DisableRuleResult(outcome.result())); + else + return DisableRuleOutcome(outcome.error()); +} + +void EventbridgeClient::disableRuleAsync(const DisableRuleRequest& request, const DisableRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::DisableRuleOutcomeCallable EventbridgeClient::disableRuleCallable(const DisableRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::EnableRuleOutcome EventbridgeClient::enableRule(const EnableRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableRuleOutcome(EnableRuleResult(outcome.result())); + else + return EnableRuleOutcome(outcome.error()); +} + +void EventbridgeClient::enableRuleAsync(const EnableRuleRequest& request, const EnableRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::EnableRuleOutcomeCallable EventbridgeClient::enableRuleCallable(const EnableRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::GetApiDestinationOutcome EventbridgeClient::getApiDestination(const GetApiDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetApiDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetApiDestinationOutcome(GetApiDestinationResult(outcome.result())); + else + return GetApiDestinationOutcome(outcome.error()); +} + +void EventbridgeClient::getApiDestinationAsync(const GetApiDestinationRequest& request, const GetApiDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getApiDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::GetApiDestinationOutcomeCallable EventbridgeClient::getApiDestinationCallable(const GetApiDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getApiDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::GetConnectionOutcome EventbridgeClient::getConnection(const GetConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConnectionOutcome(GetConnectionResult(outcome.result())); + else + return GetConnectionOutcome(outcome.error()); +} + +void EventbridgeClient::getConnectionAsync(const GetConnectionRequest& request, const GetConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::GetConnectionOutcomeCallable EventbridgeClient::getConnectionCallable(const GetConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::GetEventBusOutcome EventbridgeClient::getEventBus(const GetEventBusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEventBusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEventBusOutcome(GetEventBusResult(outcome.result())); + else + return GetEventBusOutcome(outcome.error()); +} + +void EventbridgeClient::getEventBusAsync(const GetEventBusRequest& request, const GetEventBusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEventBus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::GetEventBusOutcomeCallable EventbridgeClient::getEventBusCallable(const GetEventBusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEventBus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::GetEventStreamingOutcome EventbridgeClient::getEventStreaming(const GetEventStreamingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEventStreamingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEventStreamingOutcome(GetEventStreamingResult(outcome.result())); + else + return GetEventStreamingOutcome(outcome.error()); +} + +void EventbridgeClient::getEventStreamingAsync(const GetEventStreamingRequest& request, const GetEventStreamingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEventStreaming(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::GetEventStreamingOutcomeCallable EventbridgeClient::getEventStreamingCallable(const GetEventStreamingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEventStreaming(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::GetRuleOutcome EventbridgeClient::getRule(const GetRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRuleOutcome(GetRuleResult(outcome.result())); + else + return GetRuleOutcome(outcome.error()); +} + +void EventbridgeClient::getRuleAsync(const GetRuleRequest& request, const GetRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::GetRuleOutcomeCallable EventbridgeClient::getRuleCallable(const GetRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::ListAliyunOfficialEventSourcesOutcome EventbridgeClient::listAliyunOfficialEventSources(const ListAliyunOfficialEventSourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAliyunOfficialEventSourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAliyunOfficialEventSourcesOutcome(ListAliyunOfficialEventSourcesResult(outcome.result())); + else + return ListAliyunOfficialEventSourcesOutcome(outcome.error()); +} + +void EventbridgeClient::listAliyunOfficialEventSourcesAsync(const ListAliyunOfficialEventSourcesRequest& request, const ListAliyunOfficialEventSourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAliyunOfficialEventSources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::ListAliyunOfficialEventSourcesOutcomeCallable EventbridgeClient::listAliyunOfficialEventSourcesCallable(const ListAliyunOfficialEventSourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAliyunOfficialEventSources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::ListApiDestinationsOutcome EventbridgeClient::listApiDestinations(const ListApiDestinationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApiDestinationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApiDestinationsOutcome(ListApiDestinationsResult(outcome.result())); + else + return ListApiDestinationsOutcome(outcome.error()); +} + +void EventbridgeClient::listApiDestinationsAsync(const ListApiDestinationsRequest& request, const ListApiDestinationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApiDestinations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::ListApiDestinationsOutcomeCallable EventbridgeClient::listApiDestinationsCallable(const ListApiDestinationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApiDestinations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::ListConnectionsOutcome EventbridgeClient::listConnections(const ListConnectionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListConnectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListConnectionsOutcome(ListConnectionsResult(outcome.result())); + else + return ListConnectionsOutcome(outcome.error()); +} + +void EventbridgeClient::listConnectionsAsync(const ListConnectionsRequest& request, const ListConnectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listConnections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::ListConnectionsOutcomeCallable EventbridgeClient::listConnectionsCallable(const ListConnectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listConnections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::ListEventBusesOutcome EventbridgeClient::listEventBuses(const ListEventBusesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEventBusesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEventBusesOutcome(ListEventBusesResult(outcome.result())); + else + return ListEventBusesOutcome(outcome.error()); +} + +void EventbridgeClient::listEventBusesAsync(const ListEventBusesRequest& request, const ListEventBusesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEventBuses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::ListEventBusesOutcomeCallable EventbridgeClient::listEventBusesCallable(const ListEventBusesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEventBuses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::ListEventStreamingsOutcome EventbridgeClient::listEventStreamings(const ListEventStreamingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListEventStreamingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListEventStreamingsOutcome(ListEventStreamingsResult(outcome.result())); + else + return ListEventStreamingsOutcome(outcome.error()); +} + +void EventbridgeClient::listEventStreamingsAsync(const ListEventStreamingsRequest& request, const ListEventStreamingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listEventStreamings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::ListEventStreamingsOutcomeCallable EventbridgeClient::listEventStreamingsCallable(const ListEventStreamingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listEventStreamings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::ListRulesOutcome EventbridgeClient::listRules(const ListRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRulesOutcome(ListRulesResult(outcome.result())); + else + return ListRulesOutcome(outcome.error()); +} + +void EventbridgeClient::listRulesAsync(const ListRulesRequest& request, const ListRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::ListRulesOutcomeCallable EventbridgeClient::listRulesCallable(const ListRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::ListTargetsOutcome EventbridgeClient::listTargets(const ListTargetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTargetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTargetsOutcome(ListTargetsResult(outcome.result())); + else + return ListTargetsOutcome(outcome.error()); +} + +void EventbridgeClient::listTargetsAsync(const ListTargetsRequest& request, const ListTargetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTargets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::ListTargetsOutcomeCallable EventbridgeClient::listTargetsCallable(const ListTargetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTargets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::ListUserDefinedEventSourcesOutcome EventbridgeClient::listUserDefinedEventSources(const ListUserDefinedEventSourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserDefinedEventSourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserDefinedEventSourcesOutcome(ListUserDefinedEventSourcesResult(outcome.result())); + else + return ListUserDefinedEventSourcesOutcome(outcome.error()); +} + +void EventbridgeClient::listUserDefinedEventSourcesAsync(const ListUserDefinedEventSourcesRequest& request, const ListUserDefinedEventSourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserDefinedEventSources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::ListUserDefinedEventSourcesOutcomeCallable EventbridgeClient::listUserDefinedEventSourcesCallable(const ListUserDefinedEventSourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserDefinedEventSources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::PauseEventStreamingOutcome EventbridgeClient::pauseEventStreaming(const PauseEventStreamingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PauseEventStreamingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PauseEventStreamingOutcome(PauseEventStreamingResult(outcome.result())); + else + return PauseEventStreamingOutcome(outcome.error()); +} + +void EventbridgeClient::pauseEventStreamingAsync(const PauseEventStreamingRequest& request, const PauseEventStreamingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pauseEventStreaming(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::PauseEventStreamingOutcomeCallable EventbridgeClient::pauseEventStreamingCallable(const PauseEventStreamingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pauseEventStreaming(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::PutTargetsOutcome EventbridgeClient::putTargets(const PutTargetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PutTargetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PutTargetsOutcome(PutTargetsResult(outcome.result())); + else + return PutTargetsOutcome(outcome.error()); +} + +void EventbridgeClient::putTargetsAsync(const PutTargetsRequest& request, const PutTargetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, putTargets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::PutTargetsOutcomeCallable EventbridgeClient::putTargetsCallable(const PutTargetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->putTargets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::QueryEventOutcome EventbridgeClient::queryEvent(const QueryEventRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryEventOutcome(QueryEventResult(outcome.result())); + else + return QueryEventOutcome(outcome.error()); +} + +void EventbridgeClient::queryEventAsync(const QueryEventRequest& request, const QueryEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::QueryEventOutcomeCallable EventbridgeClient::queryEventCallable(const QueryEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::QueryEventTracesOutcome EventbridgeClient::queryEventTraces(const QueryEventTracesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryEventTracesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryEventTracesOutcome(QueryEventTracesResult(outcome.result())); + else + return QueryEventTracesOutcome(outcome.error()); +} + +void EventbridgeClient::queryEventTracesAsync(const QueryEventTracesRequest& request, const QueryEventTracesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryEventTraces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::QueryEventTracesOutcomeCallable EventbridgeClient::queryEventTracesCallable(const QueryEventTracesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryEventTraces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::QueryTracedEventByEventIdOutcome EventbridgeClient::queryTracedEventByEventId(const QueryTracedEventByEventIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTracedEventByEventIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTracedEventByEventIdOutcome(QueryTracedEventByEventIdResult(outcome.result())); + else + return QueryTracedEventByEventIdOutcome(outcome.error()); +} + +void EventbridgeClient::queryTracedEventByEventIdAsync(const QueryTracedEventByEventIdRequest& request, const QueryTracedEventByEventIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTracedEventByEventId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::QueryTracedEventByEventIdOutcomeCallable EventbridgeClient::queryTracedEventByEventIdCallable(const QueryTracedEventByEventIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTracedEventByEventId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::QueryTracedEventsOutcome EventbridgeClient::queryTracedEvents(const QueryTracedEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryTracedEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryTracedEventsOutcome(QueryTracedEventsResult(outcome.result())); + else + return QueryTracedEventsOutcome(outcome.error()); +} + +void EventbridgeClient::queryTracedEventsAsync(const QueryTracedEventsRequest& request, const QueryTracedEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryTracedEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::QueryTracedEventsOutcomeCallable EventbridgeClient::queryTracedEventsCallable(const QueryTracedEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryTracedEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::StartEventStreamingOutcome EventbridgeClient::startEventStreaming(const StartEventStreamingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartEventStreamingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartEventStreamingOutcome(StartEventStreamingResult(outcome.result())); + else + return StartEventStreamingOutcome(outcome.error()); +} + +void EventbridgeClient::startEventStreamingAsync(const StartEventStreamingRequest& request, const StartEventStreamingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startEventStreaming(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::StartEventStreamingOutcomeCallable EventbridgeClient::startEventStreamingCallable(const StartEventStreamingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startEventStreaming(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::TestEventPatternOutcome EventbridgeClient::testEventPattern(const TestEventPatternRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TestEventPatternOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TestEventPatternOutcome(TestEventPatternResult(outcome.result())); + else + return TestEventPatternOutcome(outcome.error()); +} + +void EventbridgeClient::testEventPatternAsync(const TestEventPatternRequest& request, const TestEventPatternAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, testEventPattern(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::TestEventPatternOutcomeCallable EventbridgeClient::testEventPatternCallable(const TestEventPatternRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->testEventPattern(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::UpdateApiDestinationOutcome EventbridgeClient::updateApiDestination(const UpdateApiDestinationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateApiDestinationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateApiDestinationOutcome(UpdateApiDestinationResult(outcome.result())); + else + return UpdateApiDestinationOutcome(outcome.error()); +} + +void EventbridgeClient::updateApiDestinationAsync(const UpdateApiDestinationRequest& request, const UpdateApiDestinationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateApiDestination(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::UpdateApiDestinationOutcomeCallable EventbridgeClient::updateApiDestinationCallable(const UpdateApiDestinationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateApiDestination(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::UpdateConnectionOutcome EventbridgeClient::updateConnection(const UpdateConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateConnectionOutcome(UpdateConnectionResult(outcome.result())); + else + return UpdateConnectionOutcome(outcome.error()); +} + +void EventbridgeClient::updateConnectionAsync(const UpdateConnectionRequest& request, const UpdateConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::UpdateConnectionOutcomeCallable EventbridgeClient::updateConnectionCallable(const UpdateConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::UpdateEventBusOutcome EventbridgeClient::updateEventBus(const UpdateEventBusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEventBusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEventBusOutcome(UpdateEventBusResult(outcome.result())); + else + return UpdateEventBusOutcome(outcome.error()); +} + +void EventbridgeClient::updateEventBusAsync(const UpdateEventBusRequest& request, const UpdateEventBusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEventBus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::UpdateEventBusOutcomeCallable EventbridgeClient::updateEventBusCallable(const UpdateEventBusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEventBus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::UpdateEventSourceOutcome EventbridgeClient::updateEventSource(const UpdateEventSourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEventSourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEventSourceOutcome(UpdateEventSourceResult(outcome.result())); + else + return UpdateEventSourceOutcome(outcome.error()); +} + +void EventbridgeClient::updateEventSourceAsync(const UpdateEventSourceRequest& request, const UpdateEventSourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEventSource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::UpdateEventSourceOutcomeCallable EventbridgeClient::updateEventSourceCallable(const UpdateEventSourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEventSource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::UpdateEventStreamingOutcome EventbridgeClient::updateEventStreaming(const UpdateEventStreamingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateEventStreamingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateEventStreamingOutcome(UpdateEventStreamingResult(outcome.result())); + else + return UpdateEventStreamingOutcome(outcome.error()); +} + +void EventbridgeClient::updateEventStreamingAsync(const UpdateEventStreamingRequest& request, const UpdateEventStreamingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateEventStreaming(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::UpdateEventStreamingOutcomeCallable EventbridgeClient::updateEventStreamingCallable(const UpdateEventStreamingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateEventStreaming(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EventbridgeClient::UpdateRuleOutcome EventbridgeClient::updateRule(const UpdateRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRuleOutcome(UpdateRuleResult(outcome.result())); + else + return UpdateRuleOutcome(outcome.error()); +} + +void EventbridgeClient::updateRuleAsync(const UpdateRuleRequest& request, const UpdateRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EventbridgeClient::UpdateRuleOutcomeCallable EventbridgeClient::updateRuleCallable(const UpdateRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/eventbridge/src/model/CreateApiDestinationRequest.cc b/eventbridge/src/model/CreateApiDestinationRequest.cc new file mode 100644 index 000000000..961fac6c4 --- /dev/null +++ b/eventbridge/src/model/CreateApiDestinationRequest.cc @@ -0,0 +1,80 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::CreateApiDestinationRequest; + +CreateApiDestinationRequest::CreateApiDestinationRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "CreateApiDestination") { + setMethod(HttpRequest::Method::Post); +} + +CreateApiDestinationRequest::~CreateApiDestinationRequest() {} + +std::string CreateApiDestinationRequest::getConnectionName() const { + return connectionName_; +} + +void CreateApiDestinationRequest::setConnectionName(const std::string &connectionName) { + connectionName_ = connectionName; + setParameter(std::string("ConnectionName"), connectionName); +} + +std::string CreateApiDestinationRequest::getDescription() const { + return description_; +} + +void CreateApiDestinationRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +CreateApiDestinationRequest::HttpApiParameters CreateApiDestinationRequest::getHttpApiParameters() const { + return httpApiParameters_; +} + +void CreateApiDestinationRequest::setHttpApiParameters(const CreateApiDestinationRequest::HttpApiParameters &httpApiParameters) { + httpApiParameters_ = httpApiParameters; + setParameter(std::string("HttpApiParameters") + ".Endpoint", httpApiParameters.endpoint); + setParameter(std::string("HttpApiParameters") + ".Method", httpApiParameters.method); + for(int dep1 = 0; dep1 != httpApiParameters.apiParameters.size(); dep1++) { + setParameter(std::string("HttpApiParameters") + ".ApiParameters." + std::to_string(dep1 + 1) + ".In", httpApiParameters.apiParameters[dep1].in); + setParameter(std::string("HttpApiParameters") + ".ApiParameters." + std::to_string(dep1 + 1) + ".Name", httpApiParameters.apiParameters[dep1].name); + setParameter(std::string("HttpApiParameters") + ".ApiParameters." + std::to_string(dep1 + 1) + ".Description", httpApiParameters.apiParameters[dep1].description); + setParameter(std::string("HttpApiParameters") + ".ApiParameters." + std::to_string(dep1 + 1) + ".DefaultValue", httpApiParameters.apiParameters[dep1].defaultValue); + setParameter(std::string("HttpApiParameters") + ".ApiParameters." + std::to_string(dep1 + 1) + ".Type", httpApiParameters.apiParameters[dep1].type); + } +} + +std::string CreateApiDestinationRequest::getApiDestinationName() const { + return apiDestinationName_; +} + +void CreateApiDestinationRequest::setApiDestinationName(const std::string &apiDestinationName) { + apiDestinationName_ = apiDestinationName; + setParameter(std::string("ApiDestinationName"), apiDestinationName); +} + +long CreateApiDestinationRequest::getInvocationRateLimitPerSecond() const { + return invocationRateLimitPerSecond_; +} + +void CreateApiDestinationRequest::setInvocationRateLimitPerSecond(long invocationRateLimitPerSecond) { + invocationRateLimitPerSecond_ = invocationRateLimitPerSecond; + setParameter(std::string("InvocationRateLimitPerSecond"), std::to_string(invocationRateLimitPerSecond)); +} + diff --git a/eventbridge/src/model/CreateApiDestinationResult.cc b/eventbridge/src/model/CreateApiDestinationResult.cc new file mode 100644 index 000000000..8e5691819 --- /dev/null +++ b/eventbridge/src/model/CreateApiDestinationResult.cc @@ -0,0 +1,66 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +CreateApiDestinationResult::CreateApiDestinationResult() : + ServiceResult() +{} + +CreateApiDestinationResult::CreateApiDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApiDestinationResult::~CreateApiDestinationResult() +{} + +void CreateApiDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dateNode = value["Date"]; + if(!dateNode["ApiDestinationName"].isNull()) + date_.apiDestinationName = dateNode["ApiDestinationName"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string CreateApiDestinationResult::getMessage()const +{ + return message_; +} + +std::string CreateApiDestinationResult::getCode()const +{ + return code_; +} + +CreateApiDestinationResult::Date CreateApiDestinationResult::getDate()const +{ + return date_; +} + diff --git a/eventbridge/src/model/CreateConnectionRequest.cc b/eventbridge/src/model/CreateConnectionRequest.cc new file mode 100644 index 000000000..ab5cdfde5 --- /dev/null +++ b/eventbridge/src/model/CreateConnectionRequest.cc @@ -0,0 +1,104 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::CreateConnectionRequest; + +CreateConnectionRequest::CreateConnectionRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "CreateConnection") { + setMethod(HttpRequest::Method::Post); +} + +CreateConnectionRequest::~CreateConnectionRequest() {} + +std::string CreateConnectionRequest::getConnectionName() const { + return connectionName_; +} + +void CreateConnectionRequest::setConnectionName(const std::string &connectionName) { + connectionName_ = connectionName; + setParameter(std::string("ConnectionName"), connectionName); +} + +std::string CreateConnectionRequest::getDescription() const { + return description_; +} + +void CreateConnectionRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +CreateConnectionRequest::NetworkParameters CreateConnectionRequest::getNetworkParameters() const { + return networkParameters_; +} + +void CreateConnectionRequest::setNetworkParameters(const CreateConnectionRequest::NetworkParameters &networkParameters) { + networkParameters_ = networkParameters; + setParameter(std::string("NetworkParameters") + ".VpcId", networkParameters.vpcId); + setParameter(std::string("NetworkParameters") + ".SecurityGroupId", networkParameters.securityGroupId); + setParameter(std::string("NetworkParameters") + ".NetworkType", networkParameters.networkType); + setParameter(std::string("NetworkParameters") + ".VswitcheId", networkParameters.vswitcheId); +} + +CreateConnectionRequest::AuthParameters CreateConnectionRequest::getAuthParameters() const { + return authParameters_; +} + +void CreateConnectionRequest::setAuthParameters(const CreateConnectionRequest::AuthParameters &authParameters) { + authParameters_ = authParameters; + setParameter(std::string("AuthParameters") + ".BasicAuthParameters.Password", authParameters.basicAuthParameters.password); + setParameter(std::string("AuthParameters") + ".BasicAuthParameters.Username", authParameters.basicAuthParameters.username); + setParameter(std::string("AuthParameters") + ".ApiKeyAuthParameters.ApiKeyName", authParameters.apiKeyAuthParameters.apiKeyName); + setParameter(std::string("AuthParameters") + ".ApiKeyAuthParameters.ApiKeyValue", authParameters.apiKeyAuthParameters.apiKeyValue); + setParameter(std::string("AuthParameters") + ".AuthorizationType", authParameters.authorizationType); + for(int dep1 = 0; dep1 != authParameters.invocationHttpParameters.bodyParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.invocationHttpParameters.bodyParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.invocationHttpParameters.bodyParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.invocationHttpParameters.bodyParameters[dep1].key); + } + for(int dep1 = 0; dep1 != authParameters.invocationHttpParameters.headerParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.invocationHttpParameters.headerParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.invocationHttpParameters.headerParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.invocationHttpParameters.headerParameters[dep1].key); + } + for(int dep1 = 0; dep1 != authParameters.invocationHttpParameters.queryStringParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.invocationHttpParameters.queryStringParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.invocationHttpParameters.queryStringParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.invocationHttpParameters.queryStringParameters[dep1].key); + } + setParameter(std::string("AuthParameters") + ".OAuthParameters.ClientParameters.ClientID", authParameters.oAuthParameters.clientParameters.clientID); + setParameter(std::string("AuthParameters") + ".OAuthParameters.ClientParameters.ClientSecret", authParameters.oAuthParameters.clientParameters.clientSecret); + setParameter(std::string("AuthParameters") + ".OAuthParameters.AuthorizationEndpoint", authParameters.oAuthParameters.authorizationEndpoint); + setParameter(std::string("AuthParameters") + ".OAuthParameters.HttpMethod", authParameters.oAuthParameters.httpMethod); + for(int dep1 = 0; dep1 != authParameters.oAuthParameters.oAuthHttpParameters.bodyParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.oAuthParameters.oAuthHttpParameters.bodyParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.oAuthParameters.oAuthHttpParameters.bodyParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.oAuthParameters.oAuthHttpParameters.bodyParameters[dep1].key); + } + for(int dep1 = 0; dep1 != authParameters.oAuthParameters.oAuthHttpParameters.headerParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.oAuthParameters.oAuthHttpParameters.headerParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.oAuthParameters.oAuthHttpParameters.headerParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.oAuthParameters.oAuthHttpParameters.headerParameters[dep1].key); + } + for(int dep1 = 0; dep1 != authParameters.oAuthParameters.oAuthHttpParameters.queryStringParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.oAuthParameters.oAuthHttpParameters.queryStringParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.oAuthParameters.oAuthHttpParameters.queryStringParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.oAuthParameters.oAuthHttpParameters.queryStringParameters[dep1].key); + } +} + diff --git a/eventbridge/src/model/CreateConnectionResult.cc b/eventbridge/src/model/CreateConnectionResult.cc new file mode 100644 index 000000000..7ac103281 --- /dev/null +++ b/eventbridge/src/model/CreateConnectionResult.cc @@ -0,0 +1,66 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +CreateConnectionResult::CreateConnectionResult() : + ServiceResult() +{} + +CreateConnectionResult::CreateConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateConnectionResult::~CreateConnectionResult() +{} + +void CreateConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ConnectionName"].isNull()) + data_.connectionName = dataNode["ConnectionName"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string CreateConnectionResult::getMessage()const +{ + return message_; +} + +CreateConnectionResult::Data CreateConnectionResult::getData()const +{ + return data_; +} + +std::string CreateConnectionResult::getCode()const +{ + return code_; +} + diff --git a/eventbridge/src/model/CreateEventBusRequest.cc b/eventbridge/src/model/CreateEventBusRequest.cc new file mode 100644 index 000000000..98cc7ca5b --- /dev/null +++ b/eventbridge/src/model/CreateEventBusRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::CreateEventBusRequest; + +CreateEventBusRequest::CreateEventBusRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "CreateEventBus") { + setMethod(HttpRequest::Method::Post); +} + +CreateEventBusRequest::~CreateEventBusRequest() {} + +std::string CreateEventBusRequest::getClientToken() const { + return clientToken_; +} + +void CreateEventBusRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateEventBusRequest::getDescription() const { + return description_; +} + +void CreateEventBusRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateEventBusRequest::getEventBusName() const { + return eventBusName_; +} + +void CreateEventBusRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + diff --git a/eventbridge/src/model/CreateEventBusResult.cc b/eventbridge/src/model/CreateEventBusResult.cc new file mode 100644 index 000000000..ea859dfad --- /dev/null +++ b/eventbridge/src/model/CreateEventBusResult.cc @@ -0,0 +1,73 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +CreateEventBusResult::CreateEventBusResult() : + ServiceResult() +{} + +CreateEventBusResult::CreateEventBusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEventBusResult::~CreateEventBusResult() +{} + +void CreateEventBusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["EventBusARN"].isNull()) + data_.eventBusARN = dataNode["EventBusARN"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateEventBusResult::getMessage()const +{ + return message_; +} + +CreateEventBusResult::Data CreateEventBusResult::getData()const +{ + return data_; +} + +std::string CreateEventBusResult::getCode()const +{ + return code_; +} + +bool CreateEventBusResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/CreateEventSourceRequest.cc b/eventbridge/src/model/CreateEventSourceRequest.cc new file mode 100644 index 000000000..b762dbc58 --- /dev/null +++ b/eventbridge/src/model/CreateEventSourceRequest.cc @@ -0,0 +1,188 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::CreateEventSourceRequest; + +CreateEventSourceRequest::CreateEventSourceRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "CreateEventSource") { + setMethod(HttpRequest::Method::Post); +} + +CreateEventSourceRequest::~CreateEventSourceRequest() {} + +std::string CreateEventSourceRequest::getDescription() const { + return description_; +} + +void CreateEventSourceRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateEventSourceRequest::getEventBusName() const { + return eventBusName_; +} + +void CreateEventSourceRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setBodyParameter(std::string("EventBusName"), eventBusName); +} + +CreateEventSourceRequest::SourceMNSParameters CreateEventSourceRequest::getSourceMNSParameters() const { + return sourceMNSParameters_; +} + +void CreateEventSourceRequest::setSourceMNSParameters(const CreateEventSourceRequest::SourceMNSParameters &sourceMNSParameters) { + sourceMNSParameters_ = sourceMNSParameters; + setBodyParameter(std::string("SourceMNSParameters") + ".QueueName", sourceMNSParameters.queueName); + setBodyParameter(std::string("SourceMNSParameters") + ".RegionId", sourceMNSParameters.regionId); + setBodyParameter(std::string("SourceMNSParameters") + ".IsBase64Decode", sourceMNSParameters.isBase64Decode ? "true" : "false"); +} + +bool CreateEventSourceRequest::getLinkedExternalSource() const { + return linkedExternalSource_; +} + +void CreateEventSourceRequest::setLinkedExternalSource(bool linkedExternalSource) { + linkedExternalSource_ = linkedExternalSource; + setBodyParameter(std::string("LinkedExternalSource"), linkedExternalSource ? "true" : "false"); +} + +std::string CreateEventSourceRequest::getExternalSourceType() const { + return externalSourceType_; +} + +void CreateEventSourceRequest::setExternalSourceType(const std::string &externalSourceType) { + externalSourceType_ = externalSourceType; + setBodyParameter(std::string("ExternalSourceType"), externalSourceType); +} + +std::string CreateEventSourceRequest::getExternalSourceConfig() const { + return externalSourceConfig_; +} + +void CreateEventSourceRequest::setExternalSourceConfig(const std::string &externalSourceConfig) { + externalSourceConfig_ = externalSourceConfig; + setBodyParameter(std::string("ExternalSourceConfig"), externalSourceConfig); +} + +CreateEventSourceRequest::SourceRabbitMQParameters CreateEventSourceRequest::getSourceRabbitMQParameters() const { + return sourceRabbitMQParameters_; +} + +void CreateEventSourceRequest::setSourceRabbitMQParameters(const CreateEventSourceRequest::SourceRabbitMQParameters &sourceRabbitMQParameters) { + sourceRabbitMQParameters_ = sourceRabbitMQParameters; + setBodyParameter(std::string("SourceRabbitMQParameters") + ".QueueName", sourceRabbitMQParameters.queueName); + setBodyParameter(std::string("SourceRabbitMQParameters") + ".VirtualHostName", sourceRabbitMQParameters.virtualHostName); + setBodyParameter(std::string("SourceRabbitMQParameters") + ".InstanceId", sourceRabbitMQParameters.instanceId); + setBodyParameter(std::string("SourceRabbitMQParameters") + ".RegionId", sourceRabbitMQParameters.regionId); +} + +CreateEventSourceRequest::SourceRocketMQParameters CreateEventSourceRequest::getSourceRocketMQParameters() const { + return sourceRocketMQParameters_; +} + +void CreateEventSourceRequest::setSourceRocketMQParameters(const CreateEventSourceRequest::SourceRocketMQParameters &sourceRocketMQParameters) { + sourceRocketMQParameters_ = sourceRocketMQParameters; + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceSecurityGroupId", sourceRocketMQParameters.instanceSecurityGroupId); + setBodyParameter(std::string("SourceRocketMQParameters") + ".Offset", sourceRocketMQParameters.offset); + setBodyParameter(std::string("SourceRocketMQParameters") + ".GroupID", sourceRocketMQParameters.groupID); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceUsername", sourceRocketMQParameters.instanceUsername); + setBodyParameter(std::string("SourceRocketMQParameters") + ".AuthType", sourceRocketMQParameters.authType); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstancePassword", sourceRocketMQParameters.instancePassword); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceNetwork", sourceRocketMQParameters.instanceNetwork); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceVSwitchIds", sourceRocketMQParameters.instanceVSwitchIds); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceId", sourceRocketMQParameters.instanceId); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceVpcId", sourceRocketMQParameters.instanceVpcId); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceEndpoint", sourceRocketMQParameters.instanceEndpoint); + setBodyParameter(std::string("SourceRocketMQParameters") + ".RegionId", sourceRocketMQParameters.regionId); + setBodyParameter(std::string("SourceRocketMQParameters") + ".Topic", sourceRocketMQParameters.topic); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceType", sourceRocketMQParameters.instanceType); + setBodyParameter(std::string("SourceRocketMQParameters") + ".Tag", sourceRocketMQParameters.tag); + setBodyParameter(std::string("SourceRocketMQParameters") + ".Timestamp", std::to_string(sourceRocketMQParameters.timestamp)); +} + +CreateEventSourceRequest::SourceSLSParameters CreateEventSourceRequest::getSourceSLSParameters() const { + return sourceSLSParameters_; +} + +void CreateEventSourceRequest::setSourceSLSParameters(const CreateEventSourceRequest::SourceSLSParameters &sourceSLSParameters) { + sourceSLSParameters_ = sourceSLSParameters; + setBodyParameter(std::string("SourceSLSParameters") + ".RoleName", sourceSLSParameters.roleName); + setBodyParameter(std::string("SourceSLSParameters") + ".Project", sourceSLSParameters.project); + setBodyParameter(std::string("SourceSLSParameters") + ".LogStore", sourceSLSParameters.logStore); + setBodyParameter(std::string("SourceSLSParameters") + ".ConsumePosition", sourceSLSParameters.consumePosition); +} + +CreateEventSourceRequest::SourceScheduledEventParameters CreateEventSourceRequest::getSourceScheduledEventParameters() const { + return sourceScheduledEventParameters_; +} + +void CreateEventSourceRequest::setSourceScheduledEventParameters(const CreateEventSourceRequest::SourceScheduledEventParameters &sourceScheduledEventParameters) { + sourceScheduledEventParameters_ = sourceScheduledEventParameters; + setBodyParameter(std::string("SourceScheduledEventParameters") + ".Schedule", sourceScheduledEventParameters.schedule); + setBodyParameter(std::string("SourceScheduledEventParameters") + ".UserData", sourceScheduledEventParameters.userData); + setBodyParameter(std::string("SourceScheduledEventParameters") + ".TimeZone", sourceScheduledEventParameters.timeZone); +} + +CreateEventSourceRequest::SourceKafkaParameters CreateEventSourceRequest::getSourceKafkaParameters() const { + return sourceKafkaParameters_; +} + +void CreateEventSourceRequest::setSourceKafkaParameters(const CreateEventSourceRequest::SourceKafkaParameters &sourceKafkaParameters) { + sourceKafkaParameters_ = sourceKafkaParameters; + setBodyParameter(std::string("SourceKafkaParameters") + ".InstanceId", sourceKafkaParameters.instanceId); + setBodyParameter(std::string("SourceKafkaParameters") + ".ConsumerGroup", sourceKafkaParameters.consumerGroup); + setBodyParameter(std::string("SourceKafkaParameters") + ".RegionId", sourceKafkaParameters.regionId); + setBodyParameter(std::string("SourceKafkaParameters") + ".VSwitchIds", sourceKafkaParameters.vSwitchIds); + setBodyParameter(std::string("SourceKafkaParameters") + ".VpcId", sourceKafkaParameters.vpcId); + setBodyParameter(std::string("SourceKafkaParameters") + ".SecurityGroupId", sourceKafkaParameters.securityGroupId); + setBodyParameter(std::string("SourceKafkaParameters") + ".Topic", sourceKafkaParameters.topic); + setBodyParameter(std::string("SourceKafkaParameters") + ".OffsetReset", sourceKafkaParameters.offsetReset); + setBodyParameter(std::string("SourceKafkaParameters") + ".MaximumTasks", std::to_string(sourceKafkaParameters.maximumTasks)); + setBodyParameter(std::string("SourceKafkaParameters") + ".Network", sourceKafkaParameters.network); +} + +CreateEventSourceRequest::SourceHttpEventParameters CreateEventSourceRequest::getSourceHttpEventParameters() const { + return sourceHttpEventParameters_; +} + +void CreateEventSourceRequest::setSourceHttpEventParameters(const CreateEventSourceRequest::SourceHttpEventParameters &sourceHttpEventParameters) { + sourceHttpEventParameters_ = sourceHttpEventParameters; + for(int dep1 = 0; dep1 != sourceHttpEventParameters.referer.size(); dep1++) { + setBodyParameter(std::string("SourceHttpEventParameters") + ".Referer." + std::to_string(dep1 + 1), sourceHttpEventParameters.referer[dep1]); + } + for(int dep1 = 0; dep1 != sourceHttpEventParameters.method.size(); dep1++) { + setBodyParameter(std::string("SourceHttpEventParameters") + ".Method." + std::to_string(dep1 + 1), sourceHttpEventParameters.method[dep1]); + } + for(int dep1 = 0; dep1 != sourceHttpEventParameters.ip.size(); dep1++) { + setBodyParameter(std::string("SourceHttpEventParameters") + ".Ip." + std::to_string(dep1 + 1), sourceHttpEventParameters.ip[dep1]); + } + setBodyParameter(std::string("SourceHttpEventParameters") + ".SecurityConfig", sourceHttpEventParameters.securityConfig); + setBodyParameter(std::string("SourceHttpEventParameters") + ".Type", sourceHttpEventParameters.type); +} + +std::string CreateEventSourceRequest::getEventSourceName() const { + return eventSourceName_; +} + +void CreateEventSourceRequest::setEventSourceName(const std::string &eventSourceName) { + eventSourceName_ = eventSourceName; + setBodyParameter(std::string("EventSourceName"), eventSourceName); +} + diff --git a/eventbridge/src/model/CreateEventSourceResult.cc b/eventbridge/src/model/CreateEventSourceResult.cc new file mode 100644 index 000000000..a573fb91e --- /dev/null +++ b/eventbridge/src/model/CreateEventSourceResult.cc @@ -0,0 +1,73 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +CreateEventSourceResult::CreateEventSourceResult() : + ServiceResult() +{} + +CreateEventSourceResult::CreateEventSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEventSourceResult::~CreateEventSourceResult() +{} + +void CreateEventSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["EventSourceARN"].isNull()) + data_.eventSourceARN = dataNode["EventSourceARN"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateEventSourceResult::getMessage()const +{ + return message_; +} + +CreateEventSourceResult::Data CreateEventSourceResult::getData()const +{ + return data_; +} + +std::string CreateEventSourceResult::getCode()const +{ + return code_; +} + +bool CreateEventSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/CreateEventStreamingRequest.cc b/eventbridge/src/model/CreateEventStreamingRequest.cc new file mode 100644 index 000000000..b62d0fec3 --- /dev/null +++ b/eventbridge/src/model/CreateEventStreamingRequest.cc @@ -0,0 +1,347 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::CreateEventStreamingRequest; + +CreateEventStreamingRequest::CreateEventStreamingRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "CreateEventStreaming") { + setMethod(HttpRequest::Method::Post); +} + +CreateEventStreamingRequest::~CreateEventStreamingRequest() {} + +CreateEventStreamingRequest::Sink CreateEventStreamingRequest::getSink() const { + return sink_; +} + +void CreateEventStreamingRequest::setSink(const CreateEventStreamingRequest::Sink &sink) { + sink_ = sink; + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.RoutingKey.Template", sink.sinkRabbitMQParameters.routingKey._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.RoutingKey.Form", sink.sinkRabbitMQParameters.routingKey.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.RoutingKey.Value", sink.sinkRabbitMQParameters.routingKey.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.QueueName.Template", sink.sinkRabbitMQParameters.queueName._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.QueueName.Form", sink.sinkRabbitMQParameters.queueName.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.QueueName.Value", sink.sinkRabbitMQParameters.queueName.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.VirtualHostName.Template", sink.sinkRabbitMQParameters.virtualHostName._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.VirtualHostName.Form", sink.sinkRabbitMQParameters.virtualHostName.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.VirtualHostName.Value", sink.sinkRabbitMQParameters.virtualHostName.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.InstanceId.Template", sink.sinkRabbitMQParameters.instanceId._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.InstanceId.Form", sink.sinkRabbitMQParameters.instanceId.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.InstanceId.Value", sink.sinkRabbitMQParameters.instanceId.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.TargetType.Template", sink.sinkRabbitMQParameters.targetType._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.TargetType.Form", sink.sinkRabbitMQParameters.targetType.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.TargetType.Value", sink.sinkRabbitMQParameters.targetType.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.MessageId.Template", sink.sinkRabbitMQParameters.messageId._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.MessageId.Form", sink.sinkRabbitMQParameters.messageId.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.MessageId.Value", sink.sinkRabbitMQParameters.messageId.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Exchange.Template", sink.sinkRabbitMQParameters.exchange._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Exchange.Form", sink.sinkRabbitMQParameters.exchange.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Exchange.Value", sink.sinkRabbitMQParameters.exchange.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Body.Template", sink.sinkRabbitMQParameters.body._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Body.Form", sink.sinkRabbitMQParameters.body.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Body.Value", sink.sinkRabbitMQParameters.body.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Properties.Template", sink.sinkRabbitMQParameters.properties._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Properties.Form", sink.sinkRabbitMQParameters.properties.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Properties.Value", sink.sinkRabbitMQParameters.properties.value); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.QueueName.Template", sink.sinkMNSParameters.queueName._template); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.QueueName.Form", sink.sinkMNSParameters.queueName.form); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.QueueName.Value", sink.sinkMNSParameters.queueName.value); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.IsBase64Encode.Template", sink.sinkMNSParameters.isBase64Encode._template); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.IsBase64Encode.Form", sink.sinkMNSParameters.isBase64Encode.form); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.IsBase64Encode.Value", sink.sinkMNSParameters.isBase64Encode.value); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.Body.Template", sink.sinkMNSParameters.body._template); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.Body.Form", sink.sinkMNSParameters.body.form); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.Body.Value", sink.sinkMNSParameters.body.value); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.RoleName.Template", sink.sinkDataHubParameters.roleName._template); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.RoleName.Form", sink.sinkDataHubParameters.roleName.form); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.RoleName.Value", sink.sinkDataHubParameters.roleName.value); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.Project.Template", sink.sinkDataHubParameters.project._template); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.Project.Form", sink.sinkDataHubParameters.project.form); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.Project.Value", sink.sinkDataHubParameters.project.value); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.Topic.Template", sink.sinkDataHubParameters.topic._template); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.Topic.Form", sink.sinkDataHubParameters.topic.form); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.Topic.Value", sink.sinkDataHubParameters.topic.value); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.TopicType.Template", sink.sinkDataHubParameters.topicType._template); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.TopicType.Form", sink.sinkDataHubParameters.topicType.form); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.TopicType.Value", sink.sinkDataHubParameters.topicType.value); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.Body.Template", sink.sinkDataHubParameters.body._template); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.Body.Form", sink.sinkDataHubParameters.body.form); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.Body.Value", sink.sinkDataHubParameters.body.value); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.TopicSchema.Template", sink.sinkDataHubParameters.topicSchema._template); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.TopicSchema.Form", sink.sinkDataHubParameters.topicSchema.form); + setBodyParameter(std::string("Sink") + ".SinkDataHubParameters.TopicSchema.Value", sink.sinkDataHubParameters.topicSchema.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.InstanceId.Template", sink.sinkKafkaParameters.instanceId._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.InstanceId.Form", sink.sinkKafkaParameters.instanceId.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.InstanceId.Value", sink.sinkKafkaParameters.instanceId.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Acks.Template", sink.sinkKafkaParameters.acks._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Acks.Form", sink.sinkKafkaParameters.acks.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Acks.Value", sink.sinkKafkaParameters.acks.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Topic.Template", sink.sinkKafkaParameters.topic._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Topic.Form", sink.sinkKafkaParameters.topic.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Topic.Value", sink.sinkKafkaParameters.topic.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.SaslUser.Template", sink.sinkKafkaParameters.saslUser._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.SaslUser.Form", sink.sinkKafkaParameters.saslUser.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.SaslUser.Value", sink.sinkKafkaParameters.saslUser.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Value.Template", sink.sinkKafkaParameters.value._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Value.Form", sink.sinkKafkaParameters.value.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Value.Value", sink.sinkKafkaParameters.value.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Key.Template", sink.sinkKafkaParameters.key._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Key.Form", sink.sinkKafkaParameters.key.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Key.Value", sink.sinkKafkaParameters.key.value); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.Input.Template", sink.sinkFnfParameters.input._template); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.Input.Form", sink.sinkFnfParameters.input.form); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.Input.Value", sink.sinkFnfParameters.input.value); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.ExecutionName.Template", sink.sinkFnfParameters.executionName._template); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.ExecutionName.Form", sink.sinkFnfParameters.executionName.form); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.ExecutionName.Value", sink.sinkFnfParameters.executionName.value); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.RoleName.Template", sink.sinkFnfParameters.roleName._template); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.RoleName.Form", sink.sinkFnfParameters.roleName.form); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.RoleName.Value", sink.sinkFnfParameters.roleName.value); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.FlowName.Template", sink.sinkFnfParameters.flowName._template); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.FlowName.Form", sink.sinkFnfParameters.flowName.form); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.FlowName.Value", sink.sinkFnfParameters.flowName.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.InvocationType.Template", sink.sinkFcParameters.invocationType._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.InvocationType.Form", sink.sinkFcParameters.invocationType.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.InvocationType.Value", sink.sinkFcParameters.invocationType.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.FunctionName.Template", sink.sinkFcParameters.functionName._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.FunctionName.Form", sink.sinkFcParameters.functionName.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.FunctionName.Value", sink.sinkFcParameters.functionName.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Qualifier.Template", sink.sinkFcParameters.qualifier._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Qualifier.Form", sink.sinkFcParameters.qualifier.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Qualifier.Value", sink.sinkFcParameters.qualifier.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.ServiceName.Template", sink.sinkFcParameters.serviceName._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.ServiceName.Form", sink.sinkFcParameters.serviceName.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.ServiceName.Value", sink.sinkFcParameters.serviceName.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Body.Template", sink.sinkFcParameters.body._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Body.Form", sink.sinkFcParameters.body.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Body.Value", sink.sinkFcParameters.body.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Concurrency.Template", sink.sinkFcParameters.concurrency._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Concurrency.Form", sink.sinkFcParameters.concurrency.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Concurrency.Value", sink.sinkFcParameters.concurrency.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VSwitchId.Template", sink.sinkPrometheusParameters.vSwitchId._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VSwitchId.Form", sink.sinkPrometheusParameters.vSwitchId.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VSwitchId.Value", sink.sinkPrometheusParameters.vSwitchId.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Password.Template", sink.sinkPrometheusParameters.password._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Password.Form", sink.sinkPrometheusParameters.password.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Password.Value", sink.sinkPrometheusParameters.password.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Data.Template", sink.sinkPrometheusParameters.data._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Data.Form", sink.sinkPrometheusParameters.data.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Data.Value", sink.sinkPrometheusParameters.data.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VpcId.Template", sink.sinkPrometheusParameters.vpcId._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VpcId.Form", sink.sinkPrometheusParameters.vpcId.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VpcId.Value", sink.sinkPrometheusParameters.vpcId.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.SecurityGroupId.Template", sink.sinkPrometheusParameters.securityGroupId._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.SecurityGroupId.Form", sink.sinkPrometheusParameters.securityGroupId.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.SecurityGroupId.Value", sink.sinkPrometheusParameters.securityGroupId.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.AuthorizationType.Template", sink.sinkPrometheusParameters.authorizationType._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.AuthorizationType.Form", sink.sinkPrometheusParameters.authorizationType.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.AuthorizationType.Value", sink.sinkPrometheusParameters.authorizationType.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.NetworkType.Template", sink.sinkPrometheusParameters.networkType._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.NetworkType.Form", sink.sinkPrometheusParameters.networkType.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.NetworkType.Value", sink.sinkPrometheusParameters.networkType.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.URL.Template", sink.sinkPrometheusParameters.uRL._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.URL.Form", sink.sinkPrometheusParameters.uRL.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.URL.Value", sink.sinkPrometheusParameters.uRL.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Username.Template", sink.sinkPrometheusParameters.username._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Username.Form", sink.sinkPrometheusParameters.username.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Username.Value", sink.sinkPrometheusParameters.username.value); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.RoleName.Template", sink.sinkSLSParameters.roleName._template); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.RoleName.Form", sink.sinkSLSParameters.roleName.form); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.RoleName.Value", sink.sinkSLSParameters.roleName.value); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Project.Template", sink.sinkSLSParameters.project._template); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Project.Form", sink.sinkSLSParameters.project.form); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Project.Value", sink.sinkSLSParameters.project.value); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Topic.Template", sink.sinkSLSParameters.topic._template); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Topic.Form", sink.sinkSLSParameters.topic.form); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Topic.Value", sink.sinkSLSParameters.topic.value); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Body.Template", sink.sinkSLSParameters.body._template); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Body.Form", sink.sinkSLSParameters.body.form); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Body.Value", sink.sinkSLSParameters.body.value); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.LogStore.Template", sink.sinkSLSParameters.logStore._template); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.LogStore.Form", sink.sinkSLSParameters.logStore.form); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.LogStore.Value", sink.sinkSLSParameters.logStore.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Keys.Template", sink.sinkRocketMQParameters.keys._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Keys.Form", sink.sinkRocketMQParameters.keys.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Keys.Value", sink.sinkRocketMQParameters.keys.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.VSwitchIds.Template", sink.sinkRocketMQParameters.vSwitchIds._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.VSwitchIds.Form", sink.sinkRocketMQParameters.vSwitchIds.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.VSwitchIds.Value", sink.sinkRocketMQParameters.vSwitchIds.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.SecurityGroupId.Template", sink.sinkRocketMQParameters.securityGroupId._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.SecurityGroupId.Form", sink.sinkRocketMQParameters.securityGroupId.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.SecurityGroupId.Value", sink.sinkRocketMQParameters.securityGroupId.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceUsername.Template", sink.sinkRocketMQParameters.instanceUsername._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceUsername.Form", sink.sinkRocketMQParameters.instanceUsername.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceUsername.Value", sink.sinkRocketMQParameters.instanceUsername.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Body.Template", sink.sinkRocketMQParameters.body._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Body.Form", sink.sinkRocketMQParameters.body.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Body.Value", sink.sinkRocketMQParameters.body.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Tags.Template", sink.sinkRocketMQParameters.tags._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Tags.Form", sink.sinkRocketMQParameters.tags.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Tags.Value", sink.sinkRocketMQParameters.tags.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Network.Template", sink.sinkRocketMQParameters.network._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Network.Form", sink.sinkRocketMQParameters.network.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Network.Value", sink.sinkRocketMQParameters.network.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstancePassword.Template", sink.sinkRocketMQParameters.instancePassword._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstancePassword.Form", sink.sinkRocketMQParameters.instancePassword.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstancePassword.Value", sink.sinkRocketMQParameters.instancePassword.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceId.Template", sink.sinkRocketMQParameters.instanceId._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceId.Form", sink.sinkRocketMQParameters.instanceId.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceId.Value", sink.sinkRocketMQParameters.instanceId.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceEndpoint.Template", sink.sinkRocketMQParameters.instanceEndpoint._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceEndpoint.Form", sink.sinkRocketMQParameters.instanceEndpoint.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceEndpoint.Value", sink.sinkRocketMQParameters.instanceEndpoint.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.VpcId.Template", sink.sinkRocketMQParameters.vpcId._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.VpcId.Form", sink.sinkRocketMQParameters.vpcId.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.VpcId.Value", sink.sinkRocketMQParameters.vpcId.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Topic.Template", sink.sinkRocketMQParameters.topic._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Topic.Form", sink.sinkRocketMQParameters.topic.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Topic.Value", sink.sinkRocketMQParameters.topic.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceType.Template", sink.sinkRocketMQParameters.instanceType._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceType.Form", sink.sinkRocketMQParameters.instanceType.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceType.Value", sink.sinkRocketMQParameters.instanceType.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Properties.Template", sink.sinkRocketMQParameters.properties._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Properties.Form", sink.sinkRocketMQParameters.properties.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Properties.Value", sink.sinkRocketMQParameters.properties.value); +} + +std::vector CreateEventStreamingRequest::getTransforms() const { + return transforms_; +} + +void CreateEventStreamingRequest::setTransforms(const std::vector &transforms) { + transforms_ = transforms; + for(int dep1 = 0; dep1 != transforms.size(); dep1++) { + setBodyParameter(std::string("Transforms") + "." + std::to_string(dep1 + 1) + ".Arn", transforms[dep1].arn); + } +} + +std::string CreateEventStreamingRequest::getDescription() const { + return description_; +} + +void CreateEventStreamingRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string CreateEventStreamingRequest::getFilterPattern() const { + return filterPattern_; +} + +void CreateEventStreamingRequest::setFilterPattern(const std::string &filterPattern) { + filterPattern_ = filterPattern; + setBodyParameter(std::string("FilterPattern"), filterPattern); +} + +CreateEventStreamingRequest::Source CreateEventStreamingRequest::getSource() const { + return source_; +} + +void CreateEventStreamingRequest::setSource(const CreateEventStreamingRequest::Source &source) { + source_ = source; + setBodyParameter(std::string("Source") + ".SourceMQTTParameters.InstanceId", source.sourceMQTTParameters.instanceId); + setBodyParameter(std::string("Source") + ".SourceMQTTParameters.RegionId", source.sourceMQTTParameters.regionId); + setBodyParameter(std::string("Source") + ".SourceMQTTParameters.Topic", source.sourceMQTTParameters.topic); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.FilterSql", source.sourceRocketMQParameters.filterSql); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceSecurityGroupId", source.sourceRocketMQParameters.instanceSecurityGroupId); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.Offset", source.sourceRocketMQParameters.offset); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.VSwitchIds", source.sourceRocketMQParameters.vSwitchIds); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.GroupID", source.sourceRocketMQParameters.groupID); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.SecurityGroupId", source.sourceRocketMQParameters.securityGroupId); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceUsername", source.sourceRocketMQParameters.instanceUsername); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.FilterType", source.sourceRocketMQParameters.filterType); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.Network", source.sourceRocketMQParameters.network); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.AuthType", source.sourceRocketMQParameters.authType); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstancePassword", source.sourceRocketMQParameters.instancePassword); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceVSwitchIds", source.sourceRocketMQParameters.instanceVSwitchIds); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceNetwork", source.sourceRocketMQParameters.instanceNetwork); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceId", source.sourceRocketMQParameters.instanceId); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceEndpoint", source.sourceRocketMQParameters.instanceEndpoint); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceVpcId", source.sourceRocketMQParameters.instanceVpcId); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.RegionId", source.sourceRocketMQParameters.regionId); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.VpcId", source.sourceRocketMQParameters.vpcId); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.Topic", source.sourceRocketMQParameters.topic); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceType", source.sourceRocketMQParameters.instanceType); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.Tag", source.sourceRocketMQParameters.tag); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.Timestamp", std::to_string(source.sourceRocketMQParameters.timestamp)); + setBodyParameter(std::string("Source") + ".SourceSLSParameters.RoleName", source.sourceSLSParameters.roleName); + setBodyParameter(std::string("Source") + ".SourceSLSParameters.Project", source.sourceSLSParameters.project); + setBodyParameter(std::string("Source") + ".SourceSLSParameters.LogStore", source.sourceSLSParameters.logStore); + setBodyParameter(std::string("Source") + ".SourceSLSParameters.ConsumePosition", source.sourceSLSParameters.consumePosition); + setBodyParameter(std::string("Source") + ".SourcePrometheusParameters.DataType", source.sourcePrometheusParameters.dataType); + setBodyParameter(std::string("Source") + ".SourcePrometheusParameters.ClusterId", source.sourcePrometheusParameters.clusterId); + setBodyParameter(std::string("Source") + ".SourcePrometheusParameters.Labels", source.sourcePrometheusParameters.labels); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.BrokerUrl", source.sourceDTSParameters.brokerUrl); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.Password", source.sourceDTSParameters.password); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.InitCheckPoint", std::to_string(source.sourceDTSParameters.initCheckPoint)); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.Topic", source.sourceDTSParameters.topic); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.TaskId", source.sourceDTSParameters.taskId); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.Sid", source.sourceDTSParameters.sid); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.Username", source.sourceDTSParameters.username); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.InstanceId", source.sourceKafkaParameters.instanceId); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.ConsumerGroup", source.sourceKafkaParameters.consumerGroup); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.RegionId", source.sourceKafkaParameters.regionId); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.VSwitchIds", source.sourceKafkaParameters.vSwitchIds); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.VpcId", source.sourceKafkaParameters.vpcId); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.SecurityGroupId", source.sourceKafkaParameters.securityGroupId); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.Topic", source.sourceKafkaParameters.topic); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.OffsetReset", source.sourceKafkaParameters.offsetReset); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.Network", source.sourceKafkaParameters.network); + setBodyParameter(std::string("Source") + ".SourceMNSParameters.QueueName", source.sourceMNSParameters.queueName); + setBodyParameter(std::string("Source") + ".SourceMNSParameters.RegionId", source.sourceMNSParameters.regionId); + setBodyParameter(std::string("Source") + ".SourceMNSParameters.IsBase64Decode", source.sourceMNSParameters.isBase64Decode ? "true" : "false"); + setBodyParameter(std::string("Source") + ".SourceRabbitMQParameters.QueueName", source.sourceRabbitMQParameters.queueName); + setBodyParameter(std::string("Source") + ".SourceRabbitMQParameters.VirtualHostName", source.sourceRabbitMQParameters.virtualHostName); + setBodyParameter(std::string("Source") + ".SourceRabbitMQParameters.InstanceId", source.sourceRabbitMQParameters.instanceId); + setBodyParameter(std::string("Source") + ".SourceRabbitMQParameters.RegionId", source.sourceRabbitMQParameters.regionId); +} + +CreateEventStreamingRequest::RunOptions CreateEventStreamingRequest::getRunOptions() const { + return runOptions_; +} + +void CreateEventStreamingRequest::setRunOptions(const CreateEventStreamingRequest::RunOptions &runOptions) { + runOptions_ = runOptions; + setBodyParameter(std::string("RunOptions") + ".BatchWindow.CountBasedWindow", std::to_string(runOptions.batchWindow.countBasedWindow)); + setBodyParameter(std::string("RunOptions") + ".BatchWindow.TimeBasedWindow", std::to_string(runOptions.batchWindow.timeBasedWindow)); + setBodyParameter(std::string("RunOptions") + ".RetryStrategy.PushRetryStrategy", runOptions.retryStrategy.pushRetryStrategy); + setBodyParameter(std::string("RunOptions") + ".RetryStrategy.MaximumRetryAttempts", std::to_string(runOptions.retryStrategy.maximumRetryAttempts)); + setBodyParameter(std::string("RunOptions") + ".RetryStrategy.MaximumEventAgeInSeconds", std::to_string(runOptions.retryStrategy.maximumEventAgeInSeconds)); + setBodyParameter(std::string("RunOptions") + ".DeadLetterQueue.Arn", runOptions.deadLetterQueue.arn); + setBodyParameter(std::string("RunOptions") + ".MaximumTasks", std::to_string(runOptions.maximumTasks)); + setBodyParameter(std::string("RunOptions") + ".ErrorsTolerance", runOptions.errorsTolerance); +} + +std::string CreateEventStreamingRequest::getEventStreamingName() const { + return eventStreamingName_; +} + +void CreateEventStreamingRequest::setEventStreamingName(const std::string &eventStreamingName) { + eventStreamingName_ = eventStreamingName; + setBodyParameter(std::string("EventStreamingName"), eventStreamingName); +} + +std::string CreateEventStreamingRequest::getTag() const { + return tag_; +} + +void CreateEventStreamingRequest::setTag(const std::string &tag) { + tag_ = tag; + setBodyParameter(std::string("Tag"), tag); +} + diff --git a/eventbridge/src/model/CreateEventStreamingResult.cc b/eventbridge/src/model/CreateEventStreamingResult.cc new file mode 100644 index 000000000..40eeeac63 --- /dev/null +++ b/eventbridge/src/model/CreateEventStreamingResult.cc @@ -0,0 +1,73 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +CreateEventStreamingResult::CreateEventStreamingResult() : + ServiceResult() +{} + +CreateEventStreamingResult::CreateEventStreamingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEventStreamingResult::~CreateEventStreamingResult() +{} + +void CreateEventStreamingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["EventStreamingARN"].isNull()) + data_.eventStreamingARN = dataNode["EventStreamingARN"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateEventStreamingResult::getMessage()const +{ + return message_; +} + +CreateEventStreamingResult::Data CreateEventStreamingResult::getData()const +{ + return data_; +} + +std::string CreateEventStreamingResult::getCode()const +{ + return code_; +} + +bool CreateEventStreamingResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/CreateRuleRequest.cc b/eventbridge/src/model/CreateRuleRequest.cc new file mode 100644 index 000000000..ac764a38b --- /dev/null +++ b/eventbridge/src/model/CreateRuleRequest.cc @@ -0,0 +1,112 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::CreateRuleRequest; + +CreateRuleRequest::CreateRuleRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "CreateRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateRuleRequest::~CreateRuleRequest() {} + +std::string CreateRuleRequest::getClientToken() const { + return clientToken_; +} + +void CreateRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateRuleRequest::getDescription() const { + return description_; +} + +void CreateRuleRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateRuleRequest::getRuleName() const { + return ruleName_; +} + +void CreateRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string CreateRuleRequest::getEventBusName() const { + return eventBusName_; +} + +void CreateRuleRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + +std::string CreateRuleRequest::getTargets() const { + return targets_; +} + +void CreateRuleRequest::setTargets(const std::string &targets) { + targets_ = targets; + setParameter(std::string("Targets"), targets); +} + +std::vector CreateRuleRequest::getEventTargets() const { + return eventTargets_; +} + +void CreateRuleRequest::setEventTargets(const std::vector &eventTargets) { + eventTargets_ = eventTargets; + for(int dep1 = 0; dep1 != eventTargets.size(); dep1++) { + setParameter(std::string("EventTargets") + "." + std::to_string(dep1 + 1) + ".Endpoint", eventTargets[dep1].endpoint); + setParameter(std::string("EventTargets") + "." + std::to_string(dep1 + 1) + ".PushRetryStrategy", eventTargets[dep1].pushRetryStrategy); + for(int dep2 = 0; dep2 != eventTargets[dep1].paramList.size(); dep2++) { + setParameter(std::string("EventTargets") + "." + std::to_string(dep1 + 1) + ".ParamList." + std::to_string(dep2 + 1) + ".Template", eventTargets[dep1].paramList[dep2]._template); + setParameter(std::string("EventTargets") + "." + std::to_string(dep1 + 1) + ".ParamList." + std::to_string(dep2 + 1) + ".ResourceKey", eventTargets[dep1].paramList[dep2].resourceKey); + setParameter(std::string("EventTargets") + "." + std::to_string(dep1 + 1) + ".ParamList." + std::to_string(dep2 + 1) + ".Form", eventTargets[dep1].paramList[dep2].form); + setParameter(std::string("EventTargets") + "." + std::to_string(dep1 + 1) + ".ParamList." + std::to_string(dep2 + 1) + ".Value", eventTargets[dep1].paramList[dep2].value); + } + setParameter(std::string("EventTargets") + "." + std::to_string(dep1 + 1) + ".Id", eventTargets[dep1].id); + setParameter(std::string("EventTargets") + "." + std::to_string(dep1 + 1) + ".DeadLetterQueue.Arn", eventTargets[dep1].deadLetterQueue.arn); + setParameter(std::string("EventTargets") + "." + std::to_string(dep1 + 1) + ".Type", eventTargets[dep1].type); + setParameter(std::string("EventTargets") + "." + std::to_string(dep1 + 1) + ".ErrorsTolerance", eventTargets[dep1].errorsTolerance); + } +} + +std::string CreateRuleRequest::getFilterPattern() const { + return filterPattern_; +} + +void CreateRuleRequest::setFilterPattern(const std::string &filterPattern) { + filterPattern_ = filterPattern; + setParameter(std::string("FilterPattern"), filterPattern); +} + +std::string CreateRuleRequest::getStatus() const { + return status_; +} + +void CreateRuleRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/eventbridge/src/model/CreateRuleResult.cc b/eventbridge/src/model/CreateRuleResult.cc new file mode 100644 index 000000000..df17499d1 --- /dev/null +++ b/eventbridge/src/model/CreateRuleResult.cc @@ -0,0 +1,73 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +CreateRuleResult::CreateRuleResult() : + ServiceResult() +{} + +CreateRuleResult::CreateRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRuleResult::~CreateRuleResult() +{} + +void CreateRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["RuleARN"].isNull()) + data_.ruleARN = dataNode["RuleARN"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateRuleResult::getMessage()const +{ + return message_; +} + +CreateRuleResult::Data CreateRuleResult::getData()const +{ + return data_; +} + +std::string CreateRuleResult::getCode()const +{ + return code_; +} + +bool CreateRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/CreateServiceLinkedRoleForProductRequest.cc b/eventbridge/src/model/CreateServiceLinkedRoleForProductRequest.cc new file mode 100644 index 000000000..d2376b7c0 --- /dev/null +++ b/eventbridge/src/model/CreateServiceLinkedRoleForProductRequest.cc @@ -0,0 +1,36 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::CreateServiceLinkedRoleForProductRequest; + +CreateServiceLinkedRoleForProductRequest::CreateServiceLinkedRoleForProductRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "CreateServiceLinkedRoleForProduct") { + setMethod(HttpRequest::Method::Post); +} + +CreateServiceLinkedRoleForProductRequest::~CreateServiceLinkedRoleForProductRequest() {} + +std::string CreateServiceLinkedRoleForProductRequest::getProductName() const { + return productName_; +} + +void CreateServiceLinkedRoleForProductRequest::setProductName(const std::string &productName) { + productName_ = productName; + setParameter(std::string("ProductName"), productName); +} + diff --git a/eventbridge/src/model/CreateServiceLinkedRoleForProductResult.cc b/eventbridge/src/model/CreateServiceLinkedRoleForProductResult.cc new file mode 100644 index 000000000..acf457f44 --- /dev/null +++ b/eventbridge/src/model/CreateServiceLinkedRoleForProductResult.cc @@ -0,0 +1,65 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +CreateServiceLinkedRoleForProductResult::CreateServiceLinkedRoleForProductResult() : + ServiceResult() +{} + +CreateServiceLinkedRoleForProductResult::CreateServiceLinkedRoleForProductResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceLinkedRoleForProductResult::~CreateServiceLinkedRoleForProductResult() +{} + +void CreateServiceLinkedRoleForProductResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateServiceLinkedRoleForProductResult::getMessage()const +{ + return message_; +} + +std::string CreateServiceLinkedRoleForProductResult::getCode()const +{ + return code_; +} + +bool CreateServiceLinkedRoleForProductResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/DeleteApiDestinationRequest.cc b/eventbridge/src/model/DeleteApiDestinationRequest.cc new file mode 100644 index 000000000..dfb23630c --- /dev/null +++ b/eventbridge/src/model/DeleteApiDestinationRequest.cc @@ -0,0 +1,45 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::DeleteApiDestinationRequest; + +DeleteApiDestinationRequest::DeleteApiDestinationRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "DeleteApiDestination") { + setMethod(HttpRequest::Method::Post); +} + +DeleteApiDestinationRequest::~DeleteApiDestinationRequest() {} + +std::string DeleteApiDestinationRequest::getClientToken() const { + return clientToken_; +} + +void DeleteApiDestinationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteApiDestinationRequest::getApiDestinationName() const { + return apiDestinationName_; +} + +void DeleteApiDestinationRequest::setApiDestinationName(const std::string &apiDestinationName) { + apiDestinationName_ = apiDestinationName; + setParameter(std::string("ApiDestinationName"), apiDestinationName); +} + diff --git a/eventbridge/src/model/DeleteApiDestinationResult.cc b/eventbridge/src/model/DeleteApiDestinationResult.cc new file mode 100644 index 000000000..cc0f5b0f7 --- /dev/null +++ b/eventbridge/src/model/DeleteApiDestinationResult.cc @@ -0,0 +1,58 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +DeleteApiDestinationResult::DeleteApiDestinationResult() : + ServiceResult() +{} + +DeleteApiDestinationResult::DeleteApiDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteApiDestinationResult::~DeleteApiDestinationResult() +{} + +void DeleteApiDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DeleteApiDestinationResult::getMessage()const +{ + return message_; +} + +std::string DeleteApiDestinationResult::getCode()const +{ + return code_; +} + diff --git a/eventbridge/src/model/DeleteConnectionRequest.cc b/eventbridge/src/model/DeleteConnectionRequest.cc new file mode 100644 index 000000000..d35237f1e --- /dev/null +++ b/eventbridge/src/model/DeleteConnectionRequest.cc @@ -0,0 +1,36 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::DeleteConnectionRequest; + +DeleteConnectionRequest::DeleteConnectionRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "DeleteConnection") { + setMethod(HttpRequest::Method::Post); +} + +DeleteConnectionRequest::~DeleteConnectionRequest() {} + +std::string DeleteConnectionRequest::getConnectionName() const { + return connectionName_; +} + +void DeleteConnectionRequest::setConnectionName(const std::string &connectionName) { + connectionName_ = connectionName; + setParameter(std::string("ConnectionName"), connectionName); +} + diff --git a/eventbridge/src/model/DeleteConnectionResult.cc b/eventbridge/src/model/DeleteConnectionResult.cc new file mode 100644 index 000000000..cd373609f --- /dev/null +++ b/eventbridge/src/model/DeleteConnectionResult.cc @@ -0,0 +1,58 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +DeleteConnectionResult::DeleteConnectionResult() : + ServiceResult() +{} + +DeleteConnectionResult::DeleteConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteConnectionResult::~DeleteConnectionResult() +{} + +void DeleteConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string DeleteConnectionResult::getMessage()const +{ + return message_; +} + +std::string DeleteConnectionResult::getCode()const +{ + return code_; +} + diff --git a/eventbridge/src/model/DeleteEventBusRequest.cc b/eventbridge/src/model/DeleteEventBusRequest.cc new file mode 100644 index 000000000..4d16ac0bf --- /dev/null +++ b/eventbridge/src/model/DeleteEventBusRequest.cc @@ -0,0 +1,45 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::DeleteEventBusRequest; + +DeleteEventBusRequest::DeleteEventBusRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "DeleteEventBus") { + setMethod(HttpRequest::Method::Post); +} + +DeleteEventBusRequest::~DeleteEventBusRequest() {} + +std::string DeleteEventBusRequest::getClientToken() const { + return clientToken_; +} + +void DeleteEventBusRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteEventBusRequest::getEventBusName() const { + return eventBusName_; +} + +void DeleteEventBusRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + diff --git a/eventbridge/src/model/DeleteEventBusResult.cc b/eventbridge/src/model/DeleteEventBusResult.cc new file mode 100644 index 000000000..736bad18b --- /dev/null +++ b/eventbridge/src/model/DeleteEventBusResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +DeleteEventBusResult::DeleteEventBusResult() : + ServiceResult() +{} + +DeleteEventBusResult::DeleteEventBusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEventBusResult::~DeleteEventBusResult() +{} + +void DeleteEventBusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteEventBusResult::getMessage()const +{ + return message_; +} + +bool DeleteEventBusResult::getData()const +{ + return data_; +} + +std::string DeleteEventBusResult::getCode()const +{ + return code_; +} + +bool DeleteEventBusResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/DeleteEventSourceRequest.cc b/eventbridge/src/model/DeleteEventSourceRequest.cc new file mode 100644 index 000000000..4a3435e04 --- /dev/null +++ b/eventbridge/src/model/DeleteEventSourceRequest.cc @@ -0,0 +1,36 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::DeleteEventSourceRequest; + +DeleteEventSourceRequest::DeleteEventSourceRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "DeleteEventSource") { + setMethod(HttpRequest::Method::Post); +} + +DeleteEventSourceRequest::~DeleteEventSourceRequest() {} + +std::string DeleteEventSourceRequest::getEventSourceName() const { + return eventSourceName_; +} + +void DeleteEventSourceRequest::setEventSourceName(const std::string &eventSourceName) { + eventSourceName_ = eventSourceName; + setBodyParameter(std::string("EventSourceName"), eventSourceName); +} + diff --git a/eventbridge/src/model/DeleteEventSourceResult.cc b/eventbridge/src/model/DeleteEventSourceResult.cc new file mode 100644 index 000000000..15d1b490a --- /dev/null +++ b/eventbridge/src/model/DeleteEventSourceResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +DeleteEventSourceResult::DeleteEventSourceResult() : + ServiceResult() +{} + +DeleteEventSourceResult::DeleteEventSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEventSourceResult::~DeleteEventSourceResult() +{} + +void DeleteEventSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteEventSourceResult::getMessage()const +{ + return message_; +} + +bool DeleteEventSourceResult::getData()const +{ + return data_; +} + +std::string DeleteEventSourceResult::getCode()const +{ + return code_; +} + +bool DeleteEventSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/DeleteEventStreamingRequest.cc b/eventbridge/src/model/DeleteEventStreamingRequest.cc new file mode 100644 index 000000000..368f2f87f --- /dev/null +++ b/eventbridge/src/model/DeleteEventStreamingRequest.cc @@ -0,0 +1,36 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::DeleteEventStreamingRequest; + +DeleteEventStreamingRequest::DeleteEventStreamingRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "DeleteEventStreaming") { + setMethod(HttpRequest::Method::Post); +} + +DeleteEventStreamingRequest::~DeleteEventStreamingRequest() {} + +std::string DeleteEventStreamingRequest::getEventStreamingName() const { + return eventStreamingName_; +} + +void DeleteEventStreamingRequest::setEventStreamingName(const std::string &eventStreamingName) { + eventStreamingName_ = eventStreamingName; + setBodyParameter(std::string("EventStreamingName"), eventStreamingName); +} + diff --git a/eventbridge/src/model/DeleteEventStreamingResult.cc b/eventbridge/src/model/DeleteEventStreamingResult.cc new file mode 100644 index 000000000..71d1d60cc --- /dev/null +++ b/eventbridge/src/model/DeleteEventStreamingResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +DeleteEventStreamingResult::DeleteEventStreamingResult() : + ServiceResult() +{} + +DeleteEventStreamingResult::DeleteEventStreamingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEventStreamingResult::~DeleteEventStreamingResult() +{} + +void DeleteEventStreamingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteEventStreamingResult::getMessage()const +{ + return message_; +} + +bool DeleteEventStreamingResult::getData()const +{ + return data_; +} + +bool DeleteEventStreamingResult::getCode()const +{ + return code_; +} + +bool DeleteEventStreamingResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/DeleteRuleRequest.cc b/eventbridge/src/model/DeleteRuleRequest.cc new file mode 100644 index 000000000..83656e0e7 --- /dev/null +++ b/eventbridge/src/model/DeleteRuleRequest.cc @@ -0,0 +1,45 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::DeleteRuleRequest; + +DeleteRuleRequest::DeleteRuleRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "DeleteRule") { + setMethod(HttpRequest::Method::Post); +} + +DeleteRuleRequest::~DeleteRuleRequest() {} + +std::string DeleteRuleRequest::getRuleName() const { + return ruleName_; +} + +void DeleteRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string DeleteRuleRequest::getEventBusName() const { + return eventBusName_; +} + +void DeleteRuleRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + diff --git a/eventbridge/src/model/DeleteRuleResult.cc b/eventbridge/src/model/DeleteRuleResult.cc new file mode 100644 index 000000000..5352a3a61 --- /dev/null +++ b/eventbridge/src/model/DeleteRuleResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +DeleteRuleResult::DeleteRuleResult() : + ServiceResult() +{} + +DeleteRuleResult::DeleteRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRuleResult::~DeleteRuleResult() +{} + +void DeleteRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteRuleResult::getMessage()const +{ + return message_; +} + +bool DeleteRuleResult::getData()const +{ + return data_; +} + +std::string DeleteRuleResult::getCode()const +{ + return code_; +} + +bool DeleteRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/DeleteTargetsRequest.cc b/eventbridge/src/model/DeleteTargetsRequest.cc new file mode 100644 index 000000000..bd7ab4c3f --- /dev/null +++ b/eventbridge/src/model/DeleteTargetsRequest.cc @@ -0,0 +1,56 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::DeleteTargetsRequest; + +DeleteTargetsRequest::DeleteTargetsRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "DeleteTargets") { + setMethod(HttpRequest::Method::Post); +} + +DeleteTargetsRequest::~DeleteTargetsRequest() {} + +std::vector DeleteTargetsRequest::getTargetIds() const { + return targetIds_; +} + +void DeleteTargetsRequest::setTargetIds(const std::vector &targetIds) { + targetIds_ = targetIds; + for(int dep1 = 0; dep1 != targetIds.size(); dep1++) { + setParameter(std::string("TargetIds") + "." + std::to_string(dep1 + 1), targetIds[dep1]); + } +} + +std::string DeleteTargetsRequest::getRuleName() const { + return ruleName_; +} + +void DeleteTargetsRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string DeleteTargetsRequest::getEventBusName() const { + return eventBusName_; +} + +void DeleteTargetsRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + diff --git a/eventbridge/src/model/DeleteTargetsResult.cc b/eventbridge/src/model/DeleteTargetsResult.cc new file mode 100644 index 000000000..b2dafdfbb --- /dev/null +++ b/eventbridge/src/model/DeleteTargetsResult.cc @@ -0,0 +1,85 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +DeleteTargetsResult::DeleteTargetsResult() : + ServiceResult() +{} + +DeleteTargetsResult::DeleteTargetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTargetsResult::~DeleteTargetsResult() +{} + +void DeleteTargetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ErrorEntriesCount"].isNull()) + data_.errorEntriesCount = std::stoi(dataNode["ErrorEntriesCount"].asString()); + auto allErrorEntriesNode = dataNode["ErrorEntries"]["ErrorEntriesItem"]; + for (auto dataNodeErrorEntriesErrorEntriesItem : allErrorEntriesNode) + { + Data::ErrorEntriesItem errorEntriesItemObject; + if(!dataNodeErrorEntriesErrorEntriesItem["ErrorMessage"].isNull()) + errorEntriesItemObject.errorMessage = dataNodeErrorEntriesErrorEntriesItem["ErrorMessage"].asString(); + if(!dataNodeErrorEntriesErrorEntriesItem["ErrorCode"].isNull()) + errorEntriesItemObject.errorCode = dataNodeErrorEntriesErrorEntriesItem["ErrorCode"].asString(); + if(!dataNodeErrorEntriesErrorEntriesItem["EntryId"].isNull()) + errorEntriesItemObject.entryId = dataNodeErrorEntriesErrorEntriesItem["EntryId"].asString(); + data_.errorEntries.push_back(errorEntriesItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteTargetsResult::getMessage()const +{ + return message_; +} + +DeleteTargetsResult::Data DeleteTargetsResult::getData()const +{ + return data_; +} + +std::string DeleteTargetsResult::getCode()const +{ + return code_; +} + +bool DeleteTargetsResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/DisableRuleRequest.cc b/eventbridge/src/model/DisableRuleRequest.cc new file mode 100644 index 000000000..13854f7fe --- /dev/null +++ b/eventbridge/src/model/DisableRuleRequest.cc @@ -0,0 +1,45 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::DisableRuleRequest; + +DisableRuleRequest::DisableRuleRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "DisableRule") { + setMethod(HttpRequest::Method::Post); +} + +DisableRuleRequest::~DisableRuleRequest() {} + +std::string DisableRuleRequest::getRuleName() const { + return ruleName_; +} + +void DisableRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string DisableRuleRequest::getEventBusName() const { + return eventBusName_; +} + +void DisableRuleRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + diff --git a/eventbridge/src/model/DisableRuleResult.cc b/eventbridge/src/model/DisableRuleResult.cc new file mode 100644 index 000000000..8c000150c --- /dev/null +++ b/eventbridge/src/model/DisableRuleResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +DisableRuleResult::DisableRuleResult() : + ServiceResult() +{} + +DisableRuleResult::DisableRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableRuleResult::~DisableRuleResult() +{} + +void DisableRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DisableRuleResult::getMessage()const +{ + return message_; +} + +bool DisableRuleResult::getData()const +{ + return data_; +} + +std::string DisableRuleResult::getCode()const +{ + return code_; +} + +bool DisableRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/EnableRuleRequest.cc b/eventbridge/src/model/EnableRuleRequest.cc new file mode 100644 index 000000000..880351422 --- /dev/null +++ b/eventbridge/src/model/EnableRuleRequest.cc @@ -0,0 +1,45 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::EnableRuleRequest; + +EnableRuleRequest::EnableRuleRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "EnableRule") { + setMethod(HttpRequest::Method::Post); +} + +EnableRuleRequest::~EnableRuleRequest() {} + +std::string EnableRuleRequest::getRuleName() const { + return ruleName_; +} + +void EnableRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string EnableRuleRequest::getEventBusName() const { + return eventBusName_; +} + +void EnableRuleRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + diff --git a/eventbridge/src/model/EnableRuleResult.cc b/eventbridge/src/model/EnableRuleResult.cc new file mode 100644 index 000000000..b28548603 --- /dev/null +++ b/eventbridge/src/model/EnableRuleResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +EnableRuleResult::EnableRuleResult() : + ServiceResult() +{} + +EnableRuleResult::EnableRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableRuleResult::~EnableRuleResult() +{} + +void EnableRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string EnableRuleResult::getMessage()const +{ + return message_; +} + +bool EnableRuleResult::getData()const +{ + return data_; +} + +std::string EnableRuleResult::getCode()const +{ + return code_; +} + +bool EnableRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/GetApiDestinationRequest.cc b/eventbridge/src/model/GetApiDestinationRequest.cc new file mode 100644 index 000000000..5335d5a43 --- /dev/null +++ b/eventbridge/src/model/GetApiDestinationRequest.cc @@ -0,0 +1,45 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::GetApiDestinationRequest; + +GetApiDestinationRequest::GetApiDestinationRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "GetApiDestination") { + setMethod(HttpRequest::Method::Post); +} + +GetApiDestinationRequest::~GetApiDestinationRequest() {} + +std::string GetApiDestinationRequest::getClientToken() const { + return clientToken_; +} + +void GetApiDestinationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetApiDestinationRequest::getApiDestinationName() const { + return apiDestinationName_; +} + +void GetApiDestinationRequest::setApiDestinationName(const std::string &apiDestinationName) { + apiDestinationName_ = apiDestinationName; + setParameter(std::string("ApiDestinationName"), apiDestinationName); +} + diff --git a/eventbridge/src/model/GetApiDestinationResult.cc b/eventbridge/src/model/GetApiDestinationResult.cc new file mode 100644 index 000000000..3f3b2ddf7 --- /dev/null +++ b/eventbridge/src/model/GetApiDestinationResult.cc @@ -0,0 +1,93 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +GetApiDestinationResult::GetApiDestinationResult() : + ServiceResult() +{} + +GetApiDestinationResult::GetApiDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetApiDestinationResult::~GetApiDestinationResult() +{} + +void GetApiDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ApiDestinationName"].isNull()) + data_.apiDestinationName = dataNode["ApiDestinationName"].asString(); + if(!dataNode["ConnectionName"].isNull()) + data_.connectionName = dataNode["ConnectionName"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["InvocationRateLimitPerSecond"].isNull()) + data_.invocationRateLimitPerSecond = std::stol(dataNode["InvocationRateLimitPerSecond"].asString()); + if(!dataNode["GmtCreate"].isNull()) + data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString()); + auto httpApiParametersNode = dataNode["HttpApiParameters"]; + if(!httpApiParametersNode["Endpoint"].isNull()) + data_.httpApiParameters.endpoint = httpApiParametersNode["Endpoint"].asString(); + if(!httpApiParametersNode["Method"].isNull()) + data_.httpApiParameters.method = httpApiParametersNode["Method"].asString(); + auto allApiParametersNode = httpApiParametersNode["ApiParameters"]["apiParametersItem"]; + for (auto httpApiParametersNodeApiParametersapiParametersItem : allApiParametersNode) + { + Data::HttpApiParameters::ApiParametersItem apiParametersItemObject; + if(!httpApiParametersNodeApiParametersapiParametersItem["Name"].isNull()) + apiParametersItemObject.name = httpApiParametersNodeApiParametersapiParametersItem["Name"].asString(); + if(!httpApiParametersNodeApiParametersapiParametersItem["Description"].isNull()) + apiParametersItemObject.description = httpApiParametersNodeApiParametersapiParametersItem["Description"].asString(); + if(!httpApiParametersNodeApiParametersapiParametersItem["Type"].isNull()) + apiParametersItemObject.type = httpApiParametersNodeApiParametersapiParametersItem["Type"].asString(); + if(!httpApiParametersNodeApiParametersapiParametersItem["In"].isNull()) + apiParametersItemObject.in = httpApiParametersNodeApiParametersapiParametersItem["In"].asString(); + data_.httpApiParameters.apiParameters.push_back(apiParametersItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GetApiDestinationResult::getMessage()const +{ + return message_; +} + +GetApiDestinationResult::Data GetApiDestinationResult::getData()const +{ + return data_; +} + +std::string GetApiDestinationResult::getCode()const +{ + return code_; +} + diff --git a/eventbridge/src/model/GetConnectionRequest.cc b/eventbridge/src/model/GetConnectionRequest.cc new file mode 100644 index 000000000..2ed7682ca --- /dev/null +++ b/eventbridge/src/model/GetConnectionRequest.cc @@ -0,0 +1,36 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::GetConnectionRequest; + +GetConnectionRequest::GetConnectionRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "GetConnection") { + setMethod(HttpRequest::Method::Post); +} + +GetConnectionRequest::~GetConnectionRequest() {} + +std::string GetConnectionRequest::getConnectionName() const { + return connectionName_; +} + +void GetConnectionRequest::setConnectionName(const std::string &connectionName) { + connectionName_ = connectionName; + setParameter(std::string("ConnectionName"), connectionName); +} + diff --git a/eventbridge/src/model/GetConnectionResult.cc b/eventbridge/src/model/GetConnectionResult.cc new file mode 100644 index 000000000..ffa4f386b --- /dev/null +++ b/eventbridge/src/model/GetConnectionResult.cc @@ -0,0 +1,191 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +GetConnectionResult::GetConnectionResult() : + ServiceResult() +{} + +GetConnectionResult::GetConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConnectionResult::~GetConnectionResult() +{} + +void GetConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allConnectionsNode = dataNode["Connections"]["connectionsItem"]; + for (auto dataNodeConnectionsconnectionsItem : allConnectionsNode) + { + Data::ConnectionsItem connectionsItemObject; + if(!dataNodeConnectionsconnectionsItem["ConnectionName"].isNull()) + connectionsItemObject.connectionName = dataNodeConnectionsconnectionsItem["ConnectionName"].asString(); + if(!dataNodeConnectionsconnectionsItem["Id"].isNull()) + connectionsItemObject.id = std::stol(dataNodeConnectionsconnectionsItem["Id"].asString()); + if(!dataNodeConnectionsconnectionsItem["Description"].isNull()) + connectionsItemObject.description = dataNodeConnectionsconnectionsItem["Description"].asString(); + if(!dataNodeConnectionsconnectionsItem["GmtCreate"].isNull()) + connectionsItemObject.gmtCreate = std::stol(dataNodeConnectionsconnectionsItem["GmtCreate"].asString()); + auto networkParametersNode = value["NetworkParameters"]; + if(!networkParametersNode["NetworkType"].isNull()) + connectionsItemObject.networkParameters.networkType = networkParametersNode["NetworkType"].asString(); + if(!networkParametersNode["VpcId"].isNull()) + connectionsItemObject.networkParameters.vpcId = networkParametersNode["VpcId"].asString(); + if(!networkParametersNode["VswitcheId"].isNull()) + connectionsItemObject.networkParameters.vswitcheId = networkParametersNode["VswitcheId"].asString(); + if(!networkParametersNode["SecurityGroupId"].isNull()) + connectionsItemObject.networkParameters.securityGroupId = networkParametersNode["SecurityGroupId"].asString(); + auto authParametersNode = value["AuthParameters"]; + if(!authParametersNode["AuthorizationType"].isNull()) + connectionsItemObject.authParameters.authorizationType = authParametersNode["AuthorizationType"].asString(); + auto apiKeyAuthParametersNode = authParametersNode["ApiKeyAuthParameters"]; + if(!apiKeyAuthParametersNode["ApiKeyName"].isNull()) + connectionsItemObject.authParameters.apiKeyAuthParameters.apiKeyName = apiKeyAuthParametersNode["ApiKeyName"].asString(); + if(!apiKeyAuthParametersNode["ApiKeyValue"].isNull()) + connectionsItemObject.authParameters.apiKeyAuthParameters.apiKeyValue = apiKeyAuthParametersNode["ApiKeyValue"].asString(); + auto basicAuthParametersNode = authParametersNode["BasicAuthParameters"]; + if(!basicAuthParametersNode["Password"].isNull()) + connectionsItemObject.authParameters.basicAuthParameters.password = basicAuthParametersNode["Password"].asString(); + if(!basicAuthParametersNode["Username"].isNull()) + connectionsItemObject.authParameters.basicAuthParameters.username = basicAuthParametersNode["Username"].asString(); + auto invocationHttpParametersNode = authParametersNode["InvocationHttpParameters"]; + auto allBodyParametersNode = invocationHttpParametersNode["BodyParameters"]["bodyParametersItem"]; + for (auto invocationHttpParametersNodeBodyParametersbodyParametersItem : allBodyParametersNode) + { + Data::ConnectionsItem::AuthParameters::InvocationHttpParameters::BodyParametersItem bodyParametersItemObject; + if(!invocationHttpParametersNodeBodyParametersbodyParametersItem["IsValueSecret"].isNull()) + bodyParametersItemObject.isValueSecret = invocationHttpParametersNodeBodyParametersbodyParametersItem["IsValueSecret"].asString(); + if(!invocationHttpParametersNodeBodyParametersbodyParametersItem["Key"].isNull()) + bodyParametersItemObject.key = invocationHttpParametersNodeBodyParametersbodyParametersItem["Key"].asString(); + if(!invocationHttpParametersNodeBodyParametersbodyParametersItem["Value"].isNull()) + bodyParametersItemObject.value = invocationHttpParametersNodeBodyParametersbodyParametersItem["Value"].asString(); + connectionsItemObject.authParameters.invocationHttpParameters.bodyParameters.push_back(bodyParametersItemObject); + } + auto allHeaderParametersNode = invocationHttpParametersNode["HeaderParameters"]["headerParametersItem"]; + for (auto invocationHttpParametersNodeHeaderParametersheaderParametersItem : allHeaderParametersNode) + { + Data::ConnectionsItem::AuthParameters::InvocationHttpParameters::HeaderParametersItem headerParametersItemObject; + if(!invocationHttpParametersNodeHeaderParametersheaderParametersItem["IsValueSecret"].isNull()) + headerParametersItemObject.isValueSecret = invocationHttpParametersNodeHeaderParametersheaderParametersItem["IsValueSecret"].asString(); + if(!invocationHttpParametersNodeHeaderParametersheaderParametersItem["Key"].isNull()) + headerParametersItemObject.key = invocationHttpParametersNodeHeaderParametersheaderParametersItem["Key"].asString(); + if(!invocationHttpParametersNodeHeaderParametersheaderParametersItem["Value"].isNull()) + headerParametersItemObject.value = invocationHttpParametersNodeHeaderParametersheaderParametersItem["Value"].asString(); + connectionsItemObject.authParameters.invocationHttpParameters.headerParameters.push_back(headerParametersItemObject); + } + auto allQueryStringParametersNode = invocationHttpParametersNode["QueryStringParameters"]["queryStringParametersItem"]; + for (auto invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem : allQueryStringParametersNode) + { + Data::ConnectionsItem::AuthParameters::InvocationHttpParameters::QueryStringParametersItem queryStringParametersItemObject; + if(!invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["IsValueSecret"].isNull()) + queryStringParametersItemObject.isValueSecret = invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["IsValueSecret"].asString(); + if(!invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["Key"].isNull()) + queryStringParametersItemObject.key = invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["Key"].asString(); + if(!invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["Value"].isNull()) + queryStringParametersItemObject.value = invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["Value"].asString(); + connectionsItemObject.authParameters.invocationHttpParameters.queryStringParameters.push_back(queryStringParametersItemObject); + } + auto oAuthParametersNode = authParametersNode["OAuthParameters"]; + if(!oAuthParametersNode["AuthorizationEndpoint"].isNull()) + connectionsItemObject.authParameters.oAuthParameters.authorizationEndpoint = oAuthParametersNode["AuthorizationEndpoint"].asString(); + if(!oAuthParametersNode["HttpMethod"].isNull()) + connectionsItemObject.authParameters.oAuthParameters.httpMethod = oAuthParametersNode["HttpMethod"].asString(); + auto clientParametersNode = oAuthParametersNode["ClientParameters"]; + if(!clientParametersNode["ClientID"].isNull()) + connectionsItemObject.authParameters.oAuthParameters.clientParameters.clientID = clientParametersNode["ClientID"].asString(); + if(!clientParametersNode["ClientSecret"].isNull()) + connectionsItemObject.authParameters.oAuthParameters.clientParameters.clientSecret = clientParametersNode["ClientSecret"].asString(); + auto oAuthHttpParametersNode = oAuthParametersNode["OAuthHttpParameters"]; + auto allBodyParameters1Node = oAuthHttpParametersNode["BodyParameters"]["bodyParametersItem"]; + for (auto oAuthHttpParametersNodeBodyParametersbodyParametersItem : allBodyParameters1Node) + { + Data::ConnectionsItem::AuthParameters::OAuthParameters::OAuthHttpParameters::BodyParametersItem4 bodyParametersItem4Object; + if(!oAuthHttpParametersNodeBodyParametersbodyParametersItem["IsValueSecret"].isNull()) + bodyParametersItem4Object.isValueSecret = oAuthHttpParametersNodeBodyParametersbodyParametersItem["IsValueSecret"].asString(); + if(!oAuthHttpParametersNodeBodyParametersbodyParametersItem["Key"].isNull()) + bodyParametersItem4Object.key = oAuthHttpParametersNodeBodyParametersbodyParametersItem["Key"].asString(); + if(!oAuthHttpParametersNodeBodyParametersbodyParametersItem["Value"].isNull()) + bodyParametersItem4Object.value = oAuthHttpParametersNodeBodyParametersbodyParametersItem["Value"].asString(); + connectionsItemObject.authParameters.oAuthParameters.oAuthHttpParameters.bodyParameters1.push_back(bodyParametersItem4Object); + } + auto allHeaderParameters2Node = oAuthHttpParametersNode["HeaderParameters"]["headerParametersItem"]; + for (auto oAuthHttpParametersNodeHeaderParametersheaderParametersItem : allHeaderParameters2Node) + { + Data::ConnectionsItem::AuthParameters::OAuthParameters::OAuthHttpParameters::HeaderParametersItem5 headerParametersItem5Object; + if(!oAuthHttpParametersNodeHeaderParametersheaderParametersItem["IsValueSecret"].isNull()) + headerParametersItem5Object.isValueSecret = oAuthHttpParametersNodeHeaderParametersheaderParametersItem["IsValueSecret"].asString(); + if(!oAuthHttpParametersNodeHeaderParametersheaderParametersItem["Key"].isNull()) + headerParametersItem5Object.key = oAuthHttpParametersNodeHeaderParametersheaderParametersItem["Key"].asString(); + if(!oAuthHttpParametersNodeHeaderParametersheaderParametersItem["Value"].isNull()) + headerParametersItem5Object.value = oAuthHttpParametersNodeHeaderParametersheaderParametersItem["Value"].asString(); + connectionsItemObject.authParameters.oAuthParameters.oAuthHttpParameters.headerParameters2.push_back(headerParametersItem5Object); + } + auto allQueryStringParameters3Node = oAuthHttpParametersNode["QueryStringParameters"]["queryStringParametersItem"]; + for (auto oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem : allQueryStringParameters3Node) + { + Data::ConnectionsItem::AuthParameters::OAuthParameters::OAuthHttpParameters::QueryStringParametersItem6 queryStringParametersItem6Object; + if(!oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["IsValueSecret"].isNull()) + queryStringParametersItem6Object.isValueSecret = oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["IsValueSecret"].asString(); + if(!oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["Key"].isNull()) + queryStringParametersItem6Object.key = oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["Key"].asString(); + if(!oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["Value"].isNull()) + queryStringParametersItem6Object.value = oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["Value"].asString(); + connectionsItemObject.authParameters.oAuthParameters.oAuthHttpParameters.queryStringParameters3.push_back(queryStringParametersItem6Object); + } + data_.connections.push_back(connectionsItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["HttpCode"].isNull()) + httpCode_ = std::stoi(value["HttpCode"].asString()); + +} + +int GetConnectionResult::getHttpCode()const +{ + return httpCode_; +} + +std::string GetConnectionResult::getMessage()const +{ + return message_; +} + +GetConnectionResult::Data GetConnectionResult::getData()const +{ + return data_; +} + +std::string GetConnectionResult::getCode()const +{ + return code_; +} + diff --git a/eventbridge/src/model/GetEventBusRequest.cc b/eventbridge/src/model/GetEventBusRequest.cc new file mode 100644 index 000000000..9f7d1d53c --- /dev/null +++ b/eventbridge/src/model/GetEventBusRequest.cc @@ -0,0 +1,36 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::GetEventBusRequest; + +GetEventBusRequest::GetEventBusRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "GetEventBus") { + setMethod(HttpRequest::Method::Post); +} + +GetEventBusRequest::~GetEventBusRequest() {} + +std::string GetEventBusRequest::getEventBusName() const { + return eventBusName_; +} + +void GetEventBusRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + diff --git a/eventbridge/src/model/GetEventBusResult.cc b/eventbridge/src/model/GetEventBusResult.cc new file mode 100644 index 000000000..03b5c7c3c --- /dev/null +++ b/eventbridge/src/model/GetEventBusResult.cc @@ -0,0 +1,79 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +GetEventBusResult::GetEventBusResult() : + ServiceResult() +{} + +GetEventBusResult::GetEventBusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEventBusResult::~GetEventBusResult() +{} + +void GetEventBusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["EventBusARN"].isNull()) + data_.eventBusARN = dataNode["EventBusARN"].asString(); + if(!dataNode["EventBusName"].isNull()) + data_.eventBusName = dataNode["EventBusName"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["CreateTimestamp"].isNull()) + data_.createTimestamp = std::stol(dataNode["CreateTimestamp"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetEventBusResult::getMessage()const +{ + return message_; +} + +GetEventBusResult::Data GetEventBusResult::getData()const +{ + return data_; +} + +std::string GetEventBusResult::getCode()const +{ + return code_; +} + +bool GetEventBusResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/GetEventStreamingRequest.cc b/eventbridge/src/model/GetEventStreamingRequest.cc new file mode 100644 index 000000000..8973a4860 --- /dev/null +++ b/eventbridge/src/model/GetEventStreamingRequest.cc @@ -0,0 +1,36 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::GetEventStreamingRequest; + +GetEventStreamingRequest::GetEventStreamingRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "GetEventStreaming") { + setMethod(HttpRequest::Method::Post); +} + +GetEventStreamingRequest::~GetEventStreamingRequest() {} + +std::string GetEventStreamingRequest::getEventStreamingName() const { + return eventStreamingName_; +} + +void GetEventStreamingRequest::setEventStreamingName(const std::string &eventStreamingName) { + eventStreamingName_ = eventStreamingName; + setBodyParameter(std::string("EventStreamingName"), eventStreamingName); +} + diff --git a/eventbridge/src/model/GetEventStreamingResult.cc b/eventbridge/src/model/GetEventStreamingResult.cc new file mode 100644 index 000000000..1834b90a3 --- /dev/null +++ b/eventbridge/src/model/GetEventStreamingResult.cc @@ -0,0 +1,499 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +GetEventStreamingResult::GetEventStreamingResult() : + ServiceResult() +{} + +GetEventStreamingResult::GetEventStreamingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEventStreamingResult::~GetEventStreamingResult() +{} + +void GetEventStreamingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["EventStreamingName"].isNull()) + data_.eventStreamingName = dataNode["EventStreamingName"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["FilterPattern"].isNull()) + data_.filterPattern = dataNode["FilterPattern"].asString(); + if(!dataNode["Tag"].isNull()) + data_.tag = dataNode["Tag"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + auto allTransformsNode = dataNode["Transforms"]["TransformsItem"]; + for (auto dataNodeTransformsTransformsItem : allTransformsNode) + { + Data::TransformsItem transformsItemObject; + if(!dataNodeTransformsTransformsItem["Arn"].isNull()) + transformsItemObject.arn = dataNodeTransformsTransformsItem["Arn"].asString(); + data_.transforms.push_back(transformsItemObject); + } + auto sourceNode = dataNode["Source"]; + auto sourceMNSParametersNode = sourceNode["SourceMNSParameters"]; + if(!sourceMNSParametersNode["RegionId"].isNull()) + data_.source.sourceMNSParameters.regionId = sourceMNSParametersNode["RegionId"].asString(); + if(!sourceMNSParametersNode["QueueName"].isNull()) + data_.source.sourceMNSParameters.queueName = sourceMNSParametersNode["QueueName"].asString(); + if(!sourceMNSParametersNode["IsBase64Decode"].isNull()) + data_.source.sourceMNSParameters.isBase64Decode = sourceMNSParametersNode["IsBase64Decode"].asString() == "true"; + auto sourceRabbitMQParametersNode = sourceNode["SourceRabbitMQParameters"]; + if(!sourceRabbitMQParametersNode["RegionId"].isNull()) + data_.source.sourceRabbitMQParameters.regionId = sourceRabbitMQParametersNode["RegionId"].asString(); + if(!sourceRabbitMQParametersNode["InstanceId"].isNull()) + data_.source.sourceRabbitMQParameters.instanceId = sourceRabbitMQParametersNode["InstanceId"].asString(); + if(!sourceRabbitMQParametersNode["VirtualHostName"].isNull()) + data_.source.sourceRabbitMQParameters.virtualHostName = sourceRabbitMQParametersNode["VirtualHostName"].asString(); + if(!sourceRabbitMQParametersNode["QueueName"].isNull()) + data_.source.sourceRabbitMQParameters.queueName = sourceRabbitMQParametersNode["QueueName"].asString(); + auto sourceRocketMQParametersNode = sourceNode["SourceRocketMQParameters"]; + if(!sourceRocketMQParametersNode["RegionId"].isNull()) + data_.source.sourceRocketMQParameters.regionId = sourceRocketMQParametersNode["RegionId"].asString(); + if(!sourceRocketMQParametersNode["InstanceId"].isNull()) + data_.source.sourceRocketMQParameters.instanceId = sourceRocketMQParametersNode["InstanceId"].asString(); + if(!sourceRocketMQParametersNode["Topic"].isNull()) + data_.source.sourceRocketMQParameters.topic = sourceRocketMQParametersNode["Topic"].asString(); + if(!sourceRocketMQParametersNode["Tag"].isNull()) + data_.source.sourceRocketMQParameters.tag = sourceRocketMQParametersNode["Tag"].asString(); + if(!sourceRocketMQParametersNode["Offset"].isNull()) + data_.source.sourceRocketMQParameters.offset = sourceRocketMQParametersNode["Offset"].asString(); + if(!sourceRocketMQParametersNode["GroupID"].isNull()) + data_.source.sourceRocketMQParameters.groupID = sourceRocketMQParametersNode["GroupID"].asString(); + if(!sourceRocketMQParametersNode["Timestamp"].isNull()) + data_.source.sourceRocketMQParameters.timestamp = std::stol(sourceRocketMQParametersNode["Timestamp"].asString()); + if(!sourceRocketMQParametersNode["InstanceType"].isNull()) + data_.source.sourceRocketMQParameters.instanceType = sourceRocketMQParametersNode["InstanceType"].asString(); + if(!sourceRocketMQParametersNode["InstanceEndpoint"].isNull()) + data_.source.sourceRocketMQParameters.instanceEndpoint = sourceRocketMQParametersNode["InstanceEndpoint"].asString(); + if(!sourceRocketMQParametersNode["AuthType"].isNull()) + data_.source.sourceRocketMQParameters.authType = sourceRocketMQParametersNode["AuthType"].asString(); + if(!sourceRocketMQParametersNode["InstanceUsername"].isNull()) + data_.source.sourceRocketMQParameters.instanceUsername = sourceRocketMQParametersNode["InstanceUsername"].asString(); + if(!sourceRocketMQParametersNode["InstancePassword"].isNull()) + data_.source.sourceRocketMQParameters.instancePassword = sourceRocketMQParametersNode["InstancePassword"].asString(); + if(!sourceRocketMQParametersNode["InstanceVpcId"].isNull()) + data_.source.sourceRocketMQParameters.instanceVpcId = sourceRocketMQParametersNode["InstanceVpcId"].asString(); + if(!sourceRocketMQParametersNode["InstanceVSwitchIds"].isNull()) + data_.source.sourceRocketMQParameters.instanceVSwitchIds = sourceRocketMQParametersNode["InstanceVSwitchIds"].asString(); + if(!sourceRocketMQParametersNode["InstanceSecurityGroupId"].isNull()) + data_.source.sourceRocketMQParameters.instanceSecurityGroupId = sourceRocketMQParametersNode["InstanceSecurityGroupId"].asString(); + if(!sourceRocketMQParametersNode["InstanceNetwork"].isNull()) + data_.source.sourceRocketMQParameters.instanceNetwork = sourceRocketMQParametersNode["InstanceNetwork"].asString(); + auto sourceKafkaParametersNode = sourceNode["SourceKafkaParameters"]; + if(!sourceKafkaParametersNode["RegionId"].isNull()) + data_.source.sourceKafkaParameters.regionId = sourceKafkaParametersNode["RegionId"].asString(); + if(!sourceKafkaParametersNode["InstanceId"].isNull()) + data_.source.sourceKafkaParameters.instanceId = sourceKafkaParametersNode["InstanceId"].asString(); + if(!sourceKafkaParametersNode["Topic"].isNull()) + data_.source.sourceKafkaParameters.topic = sourceKafkaParametersNode["Topic"].asString(); + if(!sourceKafkaParametersNode["ConsumerGroup"].isNull()) + data_.source.sourceKafkaParameters.consumerGroup = sourceKafkaParametersNode["ConsumerGroup"].asString(); + if(!sourceKafkaParametersNode["OffsetReset"].isNull()) + data_.source.sourceKafkaParameters.offsetReset = sourceKafkaParametersNode["OffsetReset"].asString(); + if(!sourceKafkaParametersNode["Network"].isNull()) + data_.source.sourceKafkaParameters.network = sourceKafkaParametersNode["Network"].asString(); + if(!sourceKafkaParametersNode["VpcId"].isNull()) + data_.source.sourceKafkaParameters.vpcId = sourceKafkaParametersNode["VpcId"].asString(); + if(!sourceKafkaParametersNode["VSwitchIds"].isNull()) + data_.source.sourceKafkaParameters.vSwitchIds = sourceKafkaParametersNode["VSwitchIds"].asString(); + if(!sourceKafkaParametersNode["SecurityGroupId"].isNull()) + data_.source.sourceKafkaParameters.securityGroupId = sourceKafkaParametersNode["SecurityGroupId"].asString(); + auto sourceMQTTParametersNode = sourceNode["SourceMQTTParameters"]; + if(!sourceMQTTParametersNode["RegionId"].isNull()) + data_.source.sourceMQTTParameters.regionId = sourceMQTTParametersNode["RegionId"].asString(); + if(!sourceMQTTParametersNode["InstanceId"].isNull()) + data_.source.sourceMQTTParameters.instanceId = sourceMQTTParametersNode["InstanceId"].asString(); + if(!sourceMQTTParametersNode["Topic"].isNull()) + data_.source.sourceMQTTParameters.topic = sourceMQTTParametersNode["Topic"].asString(); + auto sourceDTSParametersNode = sourceNode["SourceDTSParameters"]; + if(!sourceDTSParametersNode["TaskId"].isNull()) + data_.source.sourceDTSParameters.taskId = sourceDTSParametersNode["TaskId"].asString(); + if(!sourceDTSParametersNode["BrokerUrl"].isNull()) + data_.source.sourceDTSParameters.brokerUrl = sourceDTSParametersNode["BrokerUrl"].asString(); + if(!sourceDTSParametersNode["Topic"].isNull()) + data_.source.sourceDTSParameters.topic = sourceDTSParametersNode["Topic"].asString(); + if(!sourceDTSParametersNode["Sid"].isNull()) + data_.source.sourceDTSParameters.sid = sourceDTSParametersNode["Sid"].asString(); + if(!sourceDTSParametersNode["Username"].isNull()) + data_.source.sourceDTSParameters.username = sourceDTSParametersNode["Username"].asString(); + if(!sourceDTSParametersNode["Password"].isNull()) + data_.source.sourceDTSParameters.password = sourceDTSParametersNode["Password"].asString(); + if(!sourceDTSParametersNode["InitCheckPoint"].isNull()) + data_.source.sourceDTSParameters.initCheckPoint = sourceDTSParametersNode["InitCheckPoint"].asString(); + auto sourceSLSParametersNode = sourceNode["SourceSLSParameters"]; + if(!sourceSLSParametersNode["Project"].isNull()) + data_.source.sourceSLSParameters.project = sourceSLSParametersNode["Project"].asString(); + if(!sourceSLSParametersNode["LogStore"].isNull()) + data_.source.sourceSLSParameters.logStore = sourceSLSParametersNode["LogStore"].asString(); + if(!sourceSLSParametersNode["ConsumerGroup"].isNull()) + data_.source.sourceSLSParameters.consumerGroup = sourceSLSParametersNode["ConsumerGroup"].asString(); + if(!sourceSLSParametersNode["ConsumePosition"].isNull()) + data_.source.sourceSLSParameters.consumePosition = sourceSLSParametersNode["ConsumePosition"].asString(); + if(!sourceSLSParametersNode["RoleName"].isNull()) + data_.source.sourceSLSParameters.roleName = sourceSLSParametersNode["RoleName"].asString(); + auto sourcePrometheusParametersNode = sourceNode["SourcePrometheusParameters"]; + if(!sourcePrometheusParametersNode["ClusterId"].isNull()) + data_.source.sourcePrometheusParameters.clusterId = sourcePrometheusParametersNode["ClusterId"].asString(); + if(!sourcePrometheusParametersNode["DataType"].isNull()) + data_.source.sourcePrometheusParameters.dataType = sourcePrometheusParametersNode["DataType"].asString(); + if(!sourcePrometheusParametersNode["Labels"].isNull()) + data_.source.sourcePrometheusParameters.labels = sourcePrometheusParametersNode["Labels"].asString(); + auto sinkNode = dataNode["Sink"]; + auto sinkMNSParametersNode = sinkNode["SinkMNSParameters"]; + auto queueNameNode = sinkMNSParametersNode["QueueName"]; + if(!queueNameNode["Value"].isNull()) + data_.sink.sinkMNSParameters.queueName.value = queueNameNode["Value"].asString(); + if(!queueNameNode["Form"].isNull()) + data_.sink.sinkMNSParameters.queueName.form = queueNameNode["Form"].asString(); + if(!queueNameNode["Template"].isNull()) + data_.sink.sinkMNSParameters.queueName._template = queueNameNode["Template"].asString(); + auto bodyNode = sinkMNSParametersNode["Body"]; + if(!bodyNode["Value"].isNull()) + data_.sink.sinkMNSParameters.body.value = bodyNode["Value"].asString(); + if(!bodyNode["Form"].isNull()) + data_.sink.sinkMNSParameters.body.form = bodyNode["Form"].asString(); + if(!bodyNode["Template"].isNull()) + data_.sink.sinkMNSParameters.body._template = bodyNode["Template"].asString(); + auto isBase64EncodeNode = sinkMNSParametersNode["IsBase64Encode"]; + if(!isBase64EncodeNode["Value"].isNull()) + data_.sink.sinkMNSParameters.isBase64Encode.value = isBase64EncodeNode["Value"].asString(); + if(!isBase64EncodeNode["Form"].isNull()) + data_.sink.sinkMNSParameters.isBase64Encode.form = isBase64EncodeNode["Form"].asString(); + if(!isBase64EncodeNode["Template"].isNull()) + data_.sink.sinkMNSParameters.isBase64Encode._template = isBase64EncodeNode["Template"].asString(); + auto sinkRabbitMQParametersNode = sinkNode["SinkRabbitMQParameters"]; + auto instanceIdNode = sinkRabbitMQParametersNode["InstanceId"]; + if(!instanceIdNode["Value"].isNull()) + data_.sink.sinkRabbitMQParameters.instanceId.value = instanceIdNode["Value"].asString(); + if(!instanceIdNode["Form"].isNull()) + data_.sink.sinkRabbitMQParameters.instanceId.form = instanceIdNode["Form"].asString(); + if(!instanceIdNode["Template"].isNull()) + data_.sink.sinkRabbitMQParameters.instanceId._template = instanceIdNode["Template"].asString(); + auto virtualHostNameNode = sinkRabbitMQParametersNode["VirtualHostName"]; + if(!virtualHostNameNode["Value"].isNull()) + data_.sink.sinkRabbitMQParameters.virtualHostName.value = virtualHostNameNode["Value"].asString(); + if(!virtualHostNameNode["Form"].isNull()) + data_.sink.sinkRabbitMQParameters.virtualHostName.form = virtualHostNameNode["Form"].asString(); + if(!virtualHostNameNode["Template"].isNull()) + data_.sink.sinkRabbitMQParameters.virtualHostName._template = virtualHostNameNode["Template"].asString(); + auto targetTypeNode = sinkRabbitMQParametersNode["TargetType"]; + if(!targetTypeNode["Value"].isNull()) + data_.sink.sinkRabbitMQParameters.targetType.value = targetTypeNode["Value"].asString(); + if(!targetTypeNode["Form"].isNull()) + data_.sink.sinkRabbitMQParameters.targetType.form = targetTypeNode["Form"].asString(); + if(!targetTypeNode["Template"].isNull()) + data_.sink.sinkRabbitMQParameters.targetType._template = targetTypeNode["Template"].asString(); + auto exchangeNode = sinkRabbitMQParametersNode["Exchange"]; + if(!exchangeNode["Value"].isNull()) + data_.sink.sinkRabbitMQParameters.exchange.value = exchangeNode["Value"].asString(); + if(!exchangeNode["Form"].isNull()) + data_.sink.sinkRabbitMQParameters.exchange.form = exchangeNode["Form"].asString(); + if(!exchangeNode["Template"].isNull()) + data_.sink.sinkRabbitMQParameters.exchange._template = exchangeNode["Template"].asString(); + auto routingKeyNode = sinkRabbitMQParametersNode["RoutingKey"]; + if(!routingKeyNode["Value"].isNull()) + data_.sink.sinkRabbitMQParameters.routingKey.value = routingKeyNode["Value"].asString(); + if(!routingKeyNode["Form"].isNull()) + data_.sink.sinkRabbitMQParameters.routingKey.form = routingKeyNode["Form"].asString(); + if(!routingKeyNode["Template"].isNull()) + data_.sink.sinkRabbitMQParameters.routingKey._template = routingKeyNode["Template"].asString(); + auto queueName1Node = sinkRabbitMQParametersNode["QueueName"]; + if(!queueName1Node["Value"].isNull()) + data_.sink.sinkRabbitMQParameters.queueName1.value = queueName1Node["Value"].asString(); + if(!queueName1Node["Form"].isNull()) + data_.sink.sinkRabbitMQParameters.queueName1.form = queueName1Node["Form"].asString(); + if(!queueName1Node["Template"].isNull()) + data_.sink.sinkRabbitMQParameters.queueName1._template = queueName1Node["Template"].asString(); + auto body2Node = sinkRabbitMQParametersNode["Body"]; + if(!body2Node["Value"].isNull()) + data_.sink.sinkRabbitMQParameters.body2.value = body2Node["Value"].asString(); + if(!body2Node["Form"].isNull()) + data_.sink.sinkRabbitMQParameters.body2.form = body2Node["Form"].asString(); + if(!body2Node["Template"].isNull()) + data_.sink.sinkRabbitMQParameters.body2._template = body2Node["Template"].asString(); + auto messageIdNode = sinkRabbitMQParametersNode["MessageId"]; + if(!messageIdNode["Value"].isNull()) + data_.sink.sinkRabbitMQParameters.messageId.value = messageIdNode["Value"].asString(); + if(!messageIdNode["Form"].isNull()) + data_.sink.sinkRabbitMQParameters.messageId.form = messageIdNode["Form"].asString(); + if(!messageIdNode["Template"].isNull()) + data_.sink.sinkRabbitMQParameters.messageId._template = messageIdNode["Template"].asString(); + auto propertiesNode = sinkRabbitMQParametersNode["Properties"]; + if(!propertiesNode["Value"].isNull()) + data_.sink.sinkRabbitMQParameters.properties.value = propertiesNode["Value"].asString(); + if(!propertiesNode["Form"].isNull()) + data_.sink.sinkRabbitMQParameters.properties.form = propertiesNode["Form"].asString(); + if(!propertiesNode["Template"].isNull()) + data_.sink.sinkRabbitMQParameters.properties._template = propertiesNode["Template"].asString(); + auto sinkFcParametersNode = sinkNode["SinkFcParameters"]; + auto serviceNameNode = sinkFcParametersNode["ServiceName"]; + if(!serviceNameNode["Value"].isNull()) + data_.sink.sinkFcParameters.serviceName.value = serviceNameNode["Value"].asString(); + if(!serviceNameNode["Form"].isNull()) + data_.sink.sinkFcParameters.serviceName.form = serviceNameNode["Form"].asString(); + if(!serviceNameNode["Template"].isNull()) + data_.sink.sinkFcParameters.serviceName._template = serviceNameNode["Template"].asString(); + auto functionNameNode = sinkFcParametersNode["FunctionName"]; + if(!functionNameNode["Value"].isNull()) + data_.sink.sinkFcParameters.functionName.value = functionNameNode["Value"].asString(); + if(!functionNameNode["Form"].isNull()) + data_.sink.sinkFcParameters.functionName.form = functionNameNode["Form"].asString(); + if(!functionNameNode["Template"].isNull()) + data_.sink.sinkFcParameters.functionName._template = functionNameNode["Template"].asString(); + auto concurrencyNode = sinkFcParametersNode["Concurrency"]; + if(!concurrencyNode["Value"].isNull()) + data_.sink.sinkFcParameters.concurrency.value = concurrencyNode["Value"].asString(); + if(!concurrencyNode["Form"].isNull()) + data_.sink.sinkFcParameters.concurrency.form = concurrencyNode["Form"].asString(); + if(!concurrencyNode["Template"].isNull()) + data_.sink.sinkFcParameters.concurrency._template = concurrencyNode["Template"].asString(); + auto qualifierNode = sinkFcParametersNode["Qualifier"]; + if(!qualifierNode["Value"].isNull()) + data_.sink.sinkFcParameters.qualifier.value = qualifierNode["Value"].asString(); + if(!qualifierNode["Form"].isNull()) + data_.sink.sinkFcParameters.qualifier.form = qualifierNode["Form"].asString(); + if(!qualifierNode["Template"].isNull()) + data_.sink.sinkFcParameters.qualifier._template = qualifierNode["Template"].asString(); + auto invocationTypeNode = sinkFcParametersNode["InvocationType"]; + if(!invocationTypeNode["Value"].isNull()) + data_.sink.sinkFcParameters.invocationType.value = invocationTypeNode["Value"].asString(); + if(!invocationTypeNode["Form"].isNull()) + data_.sink.sinkFcParameters.invocationType.form = invocationTypeNode["Form"].asString(); + if(!invocationTypeNode["Template"].isNull()) + data_.sink.sinkFcParameters.invocationType._template = invocationTypeNode["Template"].asString(); + auto body3Node = sinkFcParametersNode["Body"]; + if(!body3Node["Value"].isNull()) + data_.sink.sinkFcParameters.body3.value = body3Node["Value"].asString(); + if(!body3Node["Form"].isNull()) + data_.sink.sinkFcParameters.body3.form = body3Node["Form"].asString(); + if(!body3Node["Template"].isNull()) + data_.sink.sinkFcParameters.body3._template = body3Node["Template"].asString(); + auto sinkKafkaParametersNode = sinkNode["SinkKafkaParameters"]; + auto instanceId4Node = sinkKafkaParametersNode["InstanceId"]; + if(!instanceId4Node["Value"].isNull()) + data_.sink.sinkKafkaParameters.instanceId4.value = instanceId4Node["Value"].asString(); + if(!instanceId4Node["Form"].isNull()) + data_.sink.sinkKafkaParameters.instanceId4.form = instanceId4Node["Form"].asString(); + if(!instanceId4Node["Template"].isNull()) + data_.sink.sinkKafkaParameters.instanceId4._template = instanceId4Node["Template"].asString(); + auto topicNode = sinkKafkaParametersNode["Topic"]; + if(!topicNode["Value"].isNull()) + data_.sink.sinkKafkaParameters.topic.value = topicNode["Value"].asString(); + if(!topicNode["Form"].isNull()) + data_.sink.sinkKafkaParameters.topic.form = topicNode["Form"].asString(); + if(!topicNode["Template"].isNull()) + data_.sink.sinkKafkaParameters.topic._template = topicNode["Template"].asString(); + auto acksNode = sinkKafkaParametersNode["Acks"]; + if(!acksNode["Value"].isNull()) + data_.sink.sinkKafkaParameters.acks.value = acksNode["Value"].asString(); + if(!acksNode["Form"].isNull()) + data_.sink.sinkKafkaParameters.acks.form = acksNode["Form"].asString(); + if(!acksNode["Template"].isNull()) + data_.sink.sinkKafkaParameters.acks._template = acksNode["Template"].asString(); + auto keyNode = sinkKafkaParametersNode["Key"]; + if(!keyNode["Value"].isNull()) + data_.sink.sinkKafkaParameters.key.value = keyNode["Value"].asString(); + if(!keyNode["Form"].isNull()) + data_.sink.sinkKafkaParameters.key.form = keyNode["Form"].asString(); + if(!keyNode["Template"].isNull()) + data_.sink.sinkKafkaParameters.key._template = keyNode["Template"].asString(); + auto valueNode = sinkKafkaParametersNode["Value"]; + if(!valueNode["Value"].isNull()) + data_.sink.sinkKafkaParameters.value.value = valueNode["Value"].asString(); + if(!valueNode["Form"].isNull()) + data_.sink.sinkKafkaParameters.value.form = valueNode["Form"].asString(); + if(!valueNode["Template"].isNull()) + data_.sink.sinkKafkaParameters.value._template = valueNode["Template"].asString(); + auto saslUserNode = sinkKafkaParametersNode["SaslUser"]; + if(!saslUserNode["Value"].isNull()) + data_.sink.sinkKafkaParameters.saslUser.value = saslUserNode["Value"].asString(); + if(!saslUserNode["Form"].isNull()) + data_.sink.sinkKafkaParameters.saslUser.form = saslUserNode["Form"].asString(); + if(!saslUserNode["Template"].isNull()) + data_.sink.sinkKafkaParameters.saslUser._template = saslUserNode["Template"].asString(); + auto sinkRocketMQParametersNode = sinkNode["SinkRocketMQParameters"]; + auto instanceId5Node = sinkRocketMQParametersNode["InstanceId"]; + if(!instanceId5Node["Value"].isNull()) + data_.sink.sinkRocketMQParameters.instanceId5.value = instanceId5Node["Value"].asString(); + if(!instanceId5Node["Form"].isNull()) + data_.sink.sinkRocketMQParameters.instanceId5.form = instanceId5Node["Form"].asString(); + if(!instanceId5Node["Template"].isNull()) + data_.sink.sinkRocketMQParameters.instanceId5._template = instanceId5Node["Template"].asString(); + auto topic6Node = sinkRocketMQParametersNode["Topic"]; + if(!topic6Node["Value"].isNull()) + data_.sink.sinkRocketMQParameters.topic6.value = topic6Node["Value"].asString(); + if(!topic6Node["Form"].isNull()) + data_.sink.sinkRocketMQParameters.topic6.form = topic6Node["Form"].asString(); + if(!topic6Node["Template"].isNull()) + data_.sink.sinkRocketMQParameters.topic6._template = topic6Node["Template"].asString(); + auto body7Node = sinkRocketMQParametersNode["Body"]; + if(!body7Node["Value"].isNull()) + data_.sink.sinkRocketMQParameters.body7.value = body7Node["Value"].asString(); + if(!body7Node["Form"].isNull()) + data_.sink.sinkRocketMQParameters.body7.form = body7Node["Form"].asString(); + if(!body7Node["Template"].isNull()) + data_.sink.sinkRocketMQParameters.body7._template = body7Node["Template"].asString(); + auto properties8Node = sinkRocketMQParametersNode["Properties"]; + if(!properties8Node["Value"].isNull()) + data_.sink.sinkRocketMQParameters.properties8.value = properties8Node["Value"].asString(); + if(!properties8Node["Form"].isNull()) + data_.sink.sinkRocketMQParameters.properties8.form = properties8Node["Form"].asString(); + if(!properties8Node["Template"].isNull()) + data_.sink.sinkRocketMQParameters.properties8._template = properties8Node["Template"].asString(); + auto keysNode = sinkRocketMQParametersNode["Keys"]; + if(!keysNode["Value"].isNull()) + data_.sink.sinkRocketMQParameters.keys.value = keysNode["Value"].asString(); + if(!keysNode["Form"].isNull()) + data_.sink.sinkRocketMQParameters.keys.form = keysNode["Form"].asString(); + if(!keysNode["Template"].isNull()) + data_.sink.sinkRocketMQParameters.keys._template = keysNode["Template"].asString(); + auto tagsNode = sinkRocketMQParametersNode["Tags"]; + if(!tagsNode["Value"].isNull()) + data_.sink.sinkRocketMQParameters.tags.value = tagsNode["Value"].asString(); + if(!tagsNode["Form"].isNull()) + data_.sink.sinkRocketMQParameters.tags.form = tagsNode["Form"].asString(); + if(!tagsNode["Template"].isNull()) + data_.sink.sinkRocketMQParameters.tags._template = tagsNode["Template"].asString(); + auto sinkSLSParametersNode = sinkNode["SinkSLSParameters"]; + auto projectNode = sinkSLSParametersNode["Project"]; + if(!projectNode["Value"].isNull()) + data_.sink.sinkSLSParameters.project.value = projectNode["Value"].asString(); + if(!projectNode["Form"].isNull()) + data_.sink.sinkSLSParameters.project.form = projectNode["Form"].asString(); + if(!projectNode["Template"].isNull()) + data_.sink.sinkSLSParameters.project._template = projectNode["Template"].asString(); + auto logStoreNode = sinkSLSParametersNode["LogStore"]; + if(!logStoreNode["Value"].isNull()) + data_.sink.sinkSLSParameters.logStore.value = logStoreNode["Value"].asString(); + if(!logStoreNode["Form"].isNull()) + data_.sink.sinkSLSParameters.logStore.form = logStoreNode["Form"].asString(); + if(!logStoreNode["Template"].isNull()) + data_.sink.sinkSLSParameters.logStore._template = logStoreNode["Template"].asString(); + auto topic9Node = sinkSLSParametersNode["Topic"]; + if(!topic9Node["Value"].isNull()) + data_.sink.sinkSLSParameters.topic9.value = topic9Node["Value"].asString(); + if(!topic9Node["Form"].isNull()) + data_.sink.sinkSLSParameters.topic9.form = topic9Node["Form"].asString(); + if(!topic9Node["Template"].isNull()) + data_.sink.sinkSLSParameters.topic9._template = topic9Node["Template"].asString(); + auto body10Node = sinkSLSParametersNode["Body"]; + if(!body10Node["Value"].isNull()) + data_.sink.sinkSLSParameters.body10.value = body10Node["Value"].asString(); + if(!body10Node["Form"].isNull()) + data_.sink.sinkSLSParameters.body10.form = body10Node["Form"].asString(); + if(!body10Node["Template"].isNull()) + data_.sink.sinkSLSParameters.body10._template = body10Node["Template"].asString(); + auto roleNameNode = sinkSLSParametersNode["RoleName"]; + if(!roleNameNode["Value"].isNull()) + data_.sink.sinkSLSParameters.roleName.value = roleNameNode["Value"].asString(); + if(!roleNameNode["Form"].isNull()) + data_.sink.sinkSLSParameters.roleName.form = roleNameNode["Form"].asString(); + if(!roleNameNode["Template"].isNull()) + data_.sink.sinkSLSParameters.roleName._template = roleNameNode["Template"].asString(); + auto sinkFnfParametersNode = sinkNode["SinkFnfParameters"]; + auto flowNameNode = sinkFnfParametersNode["FlowName"]; + if(!flowNameNode["Value"].isNull()) + data_.sink.sinkFnfParameters.flowName.value = flowNameNode["Value"].asString(); + if(!flowNameNode["Form"].isNull()) + data_.sink.sinkFnfParameters.flowName.form = flowNameNode["Form"].asString(); + if(!flowNameNode["Template"].isNull()) + data_.sink.sinkFnfParameters.flowName._template = flowNameNode["Template"].asString(); + auto executionNameNode = sinkFnfParametersNode["ExecutionName"]; + if(!executionNameNode["Value"].isNull()) + data_.sink.sinkFnfParameters.executionName.value = executionNameNode["Value"].asString(); + if(!executionNameNode["Form"].isNull()) + data_.sink.sinkFnfParameters.executionName.form = executionNameNode["Form"].asString(); + if(!executionNameNode["Template"].isNull()) + data_.sink.sinkFnfParameters.executionName._template = executionNameNode["Template"].asString(); + auto inputNode = sinkFnfParametersNode["Input"]; + if(!inputNode["Value"].isNull()) + data_.sink.sinkFnfParameters.input.value = inputNode["Value"].asString(); + if(!inputNode["Form"].isNull()) + data_.sink.sinkFnfParameters.input.form = inputNode["Form"].asString(); + if(!inputNode["Template"].isNull()) + data_.sink.sinkFnfParameters.input._template = inputNode["Template"].asString(); + auto roleName11Node = sinkFnfParametersNode["RoleName"]; + if(!roleName11Node["Value"].isNull()) + data_.sink.sinkFnfParameters.roleName11.value = roleName11Node["Value"].asString(); + if(!roleName11Node["Form"].isNull()) + data_.sink.sinkFnfParameters.roleName11.form = roleName11Node["Form"].asString(); + if(!roleName11Node["Template"].isNull()) + data_.sink.sinkFnfParameters.roleName11._template = roleName11Node["Template"].asString(); + auto runOptionsNode = dataNode["RunOptions"]; + if(!runOptionsNode["MaximumTasks"].isNull()) + data_.runOptions.maximumTasks = std::stoi(runOptionsNode["MaximumTasks"].asString()); + if(!runOptionsNode["ErrorsTolerance"].isNull()) + data_.runOptions.errorsTolerance = runOptionsNode["ErrorsTolerance"].asString(); + auto retryStrategyNode = runOptionsNode["RetryStrategy"]; + if(!retryStrategyNode["PushRetryStrategy"].isNull()) + data_.runOptions.retryStrategy.pushRetryStrategy = retryStrategyNode["PushRetryStrategy"].asString(); + if(!retryStrategyNode["MaximumEventAgeInSeconds"].isNull()) + data_.runOptions.retryStrategy.maximumEventAgeInSeconds = std::stof(retryStrategyNode["MaximumEventAgeInSeconds"].asString()); + if(!retryStrategyNode["MaximumRetryAttempts"].isNull()) + data_.runOptions.retryStrategy.maximumRetryAttempts = std::stof(retryStrategyNode["MaximumRetryAttempts"].asString()); + auto deadLetterQueueNode = runOptionsNode["DeadLetterQueue"]; + if(!deadLetterQueueNode["Arn"].isNull()) + data_.runOptions.deadLetterQueue.arn = deadLetterQueueNode["Arn"].asString(); + auto batchWindowNode = runOptionsNode["BatchWindow"]; + if(!batchWindowNode["CountBasedWindow"].isNull()) + data_.runOptions.batchWindow.countBasedWindow = std::stoi(batchWindowNode["CountBasedWindow"].asString()); + if(!batchWindowNode["TimeBasedWindow"].isNull()) + data_.runOptions.batchWindow.timeBasedWindow = std::stoi(batchWindowNode["TimeBasedWindow"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetEventStreamingResult::getMessage()const +{ + return message_; +} + +GetEventStreamingResult::Data GetEventStreamingResult::getData()const +{ + return data_; +} + +std::string GetEventStreamingResult::getCode()const +{ + return code_; +} + +bool GetEventStreamingResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/GetRuleRequest.cc b/eventbridge/src/model/GetRuleRequest.cc new file mode 100644 index 000000000..3c934f99c --- /dev/null +++ b/eventbridge/src/model/GetRuleRequest.cc @@ -0,0 +1,45 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::GetRuleRequest; + +GetRuleRequest::GetRuleRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "GetRule") { + setMethod(HttpRequest::Method::Post); +} + +GetRuleRequest::~GetRuleRequest() {} + +std::string GetRuleRequest::getRuleName() const { + return ruleName_; +} + +void GetRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string GetRuleRequest::getEventBusName() const { + return eventBusName_; +} + +void GetRuleRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + diff --git a/eventbridge/src/model/GetRuleResult.cc b/eventbridge/src/model/GetRuleResult.cc new file mode 100644 index 000000000..be18d02cf --- /dev/null +++ b/eventbridge/src/model/GetRuleResult.cc @@ -0,0 +1,122 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +GetRuleResult::GetRuleResult() : + ServiceResult() +{} + +GetRuleResult::GetRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRuleResult::~GetRuleResult() +{} + +void GetRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Status"].isNull()) + data_.status = dataNode["Status"].asString(); + if(!dataNode["EventBusName"].isNull()) + data_.eventBusName = dataNode["EventBusName"].asString(); + if(!dataNode["RuleARN"].isNull()) + data_.ruleARN = dataNode["RuleARN"].asString(); + if(!dataNode["Description"].isNull()) + data_.description = dataNode["Description"].asString(); + if(!dataNode["FilterPattern"].isNull()) + data_.filterPattern = dataNode["FilterPattern"].asString(); + if(!dataNode["CreatedTimestamp"].isNull()) + data_.createdTimestamp = std::stol(dataNode["CreatedTimestamp"].asString()); + if(!dataNode["RuleName"].isNull()) + data_.ruleName = dataNode["RuleName"].asString(); + auto allTargetsNode = dataNode["Targets"]["TargetsItem"]; + for (auto dataNodeTargetsTargetsItem : allTargetsNode) + { + Data::TargetsItem targetsItemObject; + if(!dataNodeTargetsTargetsItem["DetailMap"].isNull()) + targetsItemObject.detailMap = dataNodeTargetsTargetsItem["DetailMap"].asString(); + if(!dataNodeTargetsTargetsItem["Type"].isNull()) + targetsItemObject.type = dataNodeTargetsTargetsItem["Type"].asString(); + if(!dataNodeTargetsTargetsItem["Endpoint"].isNull()) + targetsItemObject.endpoint = dataNodeTargetsTargetsItem["Endpoint"].asString(); + if(!dataNodeTargetsTargetsItem["PushSelector"].isNull()) + targetsItemObject.pushSelector = dataNodeTargetsTargetsItem["PushSelector"].asString(); + if(!dataNodeTargetsTargetsItem["Id"].isNull()) + targetsItemObject.id = dataNodeTargetsTargetsItem["Id"].asString(); + if(!dataNodeTargetsTargetsItem["PushRetryStrategy"].isNull()) + targetsItemObject.pushRetryStrategy = dataNodeTargetsTargetsItem["PushRetryStrategy"].asString(); + if(!dataNodeTargetsTargetsItem["ErrorsTolerance"].isNull()) + targetsItemObject.errorsTolerance = dataNodeTargetsTargetsItem["ErrorsTolerance"].asString(); + auto allParamListNode = dataNodeTargetsTargetsItem["ParamList"]["ParamListItem"]; + for (auto dataNodeTargetsTargetsItemParamListParamListItem : allParamListNode) + { + Data::TargetsItem::ParamListItem paramListObject; + if(!dataNodeTargetsTargetsItemParamListParamListItem["Value"].isNull()) + paramListObject.value = dataNodeTargetsTargetsItemParamListParamListItem["Value"].asString(); + if(!dataNodeTargetsTargetsItemParamListParamListItem["Template"].isNull()) + paramListObject._template = dataNodeTargetsTargetsItemParamListParamListItem["Template"].asString(); + if(!dataNodeTargetsTargetsItemParamListParamListItem["Form"].isNull()) + paramListObject.form = dataNodeTargetsTargetsItemParamListParamListItem["Form"].asString(); + if(!dataNodeTargetsTargetsItemParamListParamListItem["ResourceKey"].isNull()) + paramListObject.resourceKey = dataNodeTargetsTargetsItemParamListParamListItem["ResourceKey"].asString(); + targetsItemObject.paramList.push_back(paramListObject); + } + auto deadLetterQueueNode = value["DeadLetterQueue"]; + if(!deadLetterQueueNode["Arn"].isNull()) + targetsItemObject.deadLetterQueue.arn = deadLetterQueueNode["Arn"].asString(); + data_.targets.push_back(targetsItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetRuleResult::getMessage()const +{ + return message_; +} + +GetRuleResult::Data GetRuleResult::getData()const +{ + return data_; +} + +std::string GetRuleResult::getCode()const +{ + return code_; +} + +bool GetRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/ListAliyunOfficialEventSourcesRequest.cc b/eventbridge/src/model/ListAliyunOfficialEventSourcesRequest.cc new file mode 100644 index 000000000..032bb8ff3 --- /dev/null +++ b/eventbridge/src/model/ListAliyunOfficialEventSourcesRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::ListAliyunOfficialEventSourcesRequest; + +ListAliyunOfficialEventSourcesRequest::ListAliyunOfficialEventSourcesRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "ListAliyunOfficialEventSources") { + setMethod(HttpRequest::Method::Post); +} + +ListAliyunOfficialEventSourcesRequest::~ListAliyunOfficialEventSourcesRequest() {} + +std::string ListAliyunOfficialEventSourcesRequest::getType() const { + return type_; +} + +void ListAliyunOfficialEventSourcesRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string ListAliyunOfficialEventSourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListAliyunOfficialEventSourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListAliyunOfficialEventSourcesRequest::getLimit() const { + return limit_; +} + +void ListAliyunOfficialEventSourcesRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + +std::string ListAliyunOfficialEventSourcesRequest::getNamePrefix() const { + return namePrefix_; +} + +void ListAliyunOfficialEventSourcesRequest::setNamePrefix(const std::string &namePrefix) { + namePrefix_ = namePrefix; + setParameter(std::string("NamePrefix"), namePrefix); +} + diff --git a/eventbridge/src/model/ListAliyunOfficialEventSourcesResult.cc b/eventbridge/src/model/ListAliyunOfficialEventSourcesResult.cc new file mode 100644 index 000000000..090a17b80 --- /dev/null +++ b/eventbridge/src/model/ListAliyunOfficialEventSourcesResult.cc @@ -0,0 +1,113 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +ListAliyunOfficialEventSourcesResult::ListAliyunOfficialEventSourcesResult() : + ServiceResult() +{} + +ListAliyunOfficialEventSourcesResult::ListAliyunOfficialEventSourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAliyunOfficialEventSourcesResult::~ListAliyunOfficialEventSourcesResult() +{} + +void ListAliyunOfficialEventSourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NextToken"].isNull()) + data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stof(dataNode["Total"].asString()); + auto allEventSourceListNode = dataNode["EventSourceList"]["eventSourceListItem"]; + for (auto dataNodeEventSourceListeventSourceListItem : allEventSourceListNode) + { + Data::EventSourceListItem eventSourceListItemObject; + if(!dataNodeEventSourceListeventSourceListItem["Name"].isNull()) + eventSourceListItemObject.name = dataNodeEventSourceListeventSourceListItem["Name"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["FullName"].isNull()) + eventSourceListItemObject.fullName = dataNodeEventSourceListeventSourceListItem["FullName"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["Arn"].isNull()) + eventSourceListItemObject.arn = dataNodeEventSourceListeventSourceListItem["Arn"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["Status"].isNull()) + eventSourceListItemObject.status = dataNodeEventSourceListeventSourceListItem["Status"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["Type"].isNull()) + eventSourceListItemObject.type = dataNodeEventSourceListeventSourceListItem["Type"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["Ctime"].isNull()) + eventSourceListItemObject.ctime = std::stof(dataNodeEventSourceListeventSourceListItem["Ctime"].asString()); + if(!dataNodeEventSourceListeventSourceListItem["Description"].isNull()) + eventSourceListItemObject.description = dataNodeEventSourceListeventSourceListItem["Description"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["EventBusName"].isNull()) + eventSourceListItemObject.eventBusName = dataNodeEventSourceListeventSourceListItem["EventBusName"].asString(); + auto allEventTypesNode = dataNodeEventSourceListeventSourceListItem["EventTypes"]["eventTypesItem"]; + for (auto dataNodeEventSourceListeventSourceListItemEventTypeseventTypesItem : allEventTypesNode) + { + Data::EventSourceListItem::EventTypesItem eventTypesObject; + if(!dataNodeEventSourceListeventSourceListItemEventTypeseventTypesItem["Name"].isNull()) + eventTypesObject.name = dataNodeEventSourceListeventSourceListItemEventTypeseventTypesItem["Name"].asString(); + if(!dataNodeEventSourceListeventSourceListItemEventTypeseventTypesItem["ShortName"].isNull()) + eventTypesObject.shortName = dataNodeEventSourceListeventSourceListItemEventTypeseventTypesItem["ShortName"].asString(); + if(!dataNodeEventSourceListeventSourceListItemEventTypeseventTypesItem["GroupName"].isNull()) + eventTypesObject.groupName = dataNodeEventSourceListeventSourceListItemEventTypeseventTypesItem["GroupName"].asString(); + if(!dataNodeEventSourceListeventSourceListItemEventTypeseventTypesItem["Description"].isNull()) + eventTypesObject.description = dataNodeEventSourceListeventSourceListItemEventTypeseventTypesItem["Description"].asString(); + if(!dataNodeEventSourceListeventSourceListItemEventTypeseventTypesItem["EventSourceName"].isNull()) + eventTypesObject.eventSourceName = dataNodeEventSourceListeventSourceListItemEventTypeseventTypesItem["EventSourceName"].asString(); + eventSourceListItemObject.eventTypes.push_back(eventTypesObject); + } + data_.eventSourceList.push_back(eventSourceListItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListAliyunOfficialEventSourcesResult::getMessage()const +{ + return message_; +} + +ListAliyunOfficialEventSourcesResult::Data ListAliyunOfficialEventSourcesResult::getData()const +{ + return data_; +} + +std::string ListAliyunOfficialEventSourcesResult::getCode()const +{ + return code_; +} + +bool ListAliyunOfficialEventSourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/ListApiDestinationsRequest.cc b/eventbridge/src/model/ListApiDestinationsRequest.cc new file mode 100644 index 000000000..7331f00d9 --- /dev/null +++ b/eventbridge/src/model/ListApiDestinationsRequest.cc @@ -0,0 +1,81 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::ListApiDestinationsRequest; + +ListApiDestinationsRequest::ListApiDestinationsRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "ListApiDestinations") { + setMethod(HttpRequest::Method::Post); +} + +ListApiDestinationsRequest::~ListApiDestinationsRequest() {} + +std::string ListApiDestinationsRequest::getClientToken() const { + return clientToken_; +} + +void ListApiDestinationsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ListApiDestinationsRequest::getDescription() const { + return description_; +} + +void ListApiDestinationsRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string ListApiDestinationsRequest::getNextToken() const { + return nextToken_; +} + +void ListApiDestinationsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListApiDestinationsRequest::getConnectionName() const { + return connectionName_; +} + +void ListApiDestinationsRequest::setConnectionName(const std::string &connectionName) { + connectionName_ = connectionName; + setParameter(std::string("ConnectionName"), connectionName); +} + +long ListApiDestinationsRequest::getMaxResults() const { + return maxResults_; +} + +void ListApiDestinationsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListApiDestinationsRequest::getApiDestinationNamePrefix() const { + return apiDestinationNamePrefix_; +} + +void ListApiDestinationsRequest::setApiDestinationNamePrefix(const std::string &apiDestinationNamePrefix) { + apiDestinationNamePrefix_ = apiDestinationNamePrefix; + setParameter(std::string("ApiDestinationNamePrefix"), apiDestinationNamePrefix); +} + diff --git a/eventbridge/src/model/ListApiDestinationsResult.cc b/eventbridge/src/model/ListApiDestinationsResult.cc new file mode 100644 index 000000000..90f7290b3 --- /dev/null +++ b/eventbridge/src/model/ListApiDestinationsResult.cc @@ -0,0 +1,107 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +ListApiDestinationsResult::ListApiDestinationsResult() : + ServiceResult() +{} + +ListApiDestinationsResult::ListApiDestinationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApiDestinationsResult::~ListApiDestinationsResult() +{} + +void ListApiDestinationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NextToken"].isNull()) + data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stof(dataNode["Total"].asString()); + if(!dataNode["MaxResults"].isNull()) + data_.maxResults = std::stof(dataNode["MaxResults"].asString()); + auto allApiDestinationsNode = dataNode["ApiDestinations"]["apiDestinationsItem"]; + for (auto dataNodeApiDestinationsapiDestinationsItem : allApiDestinationsNode) + { + Data::ApiDestinationsItem apiDestinationsItemObject; + if(!dataNodeApiDestinationsapiDestinationsItem["ApiDestinationName"].isNull()) + apiDestinationsItemObject.apiDestinationName = dataNodeApiDestinationsapiDestinationsItem["ApiDestinationName"].asString(); + if(!dataNodeApiDestinationsapiDestinationsItem["ConnectionName"].isNull()) + apiDestinationsItemObject.connectionName = dataNodeApiDestinationsapiDestinationsItem["ConnectionName"].asString(); + if(!dataNodeApiDestinationsapiDestinationsItem["Description"].isNull()) + apiDestinationsItemObject.description = dataNodeApiDestinationsapiDestinationsItem["Description"].asString(); + if(!dataNodeApiDestinationsapiDestinationsItem["GmtCreate"].isNull()) + apiDestinationsItemObject.gmtCreate = std::stol(dataNodeApiDestinationsapiDestinationsItem["GmtCreate"].asString()); + if(!dataNodeApiDestinationsapiDestinationsItem["InvocationRateLimitPerSecond"].isNull()) + apiDestinationsItemObject.invocationRateLimitPerSecond = std::stol(dataNodeApiDestinationsapiDestinationsItem["InvocationRateLimitPerSecond"].asString()); + auto httpApiParametersNode = value["HttpApiParameters"]; + if(!httpApiParametersNode["Endpoint"].isNull()) + apiDestinationsItemObject.httpApiParameters.endpoint = httpApiParametersNode["Endpoint"].asString(); + if(!httpApiParametersNode["Method"].isNull()) + apiDestinationsItemObject.httpApiParameters.method = httpApiParametersNode["Method"].asString(); + auto allApiParametersNode = httpApiParametersNode["ApiParameters"]["apiParametersItem"]; + for (auto httpApiParametersNodeApiParametersapiParametersItem : allApiParametersNode) + { + Data::ApiDestinationsItem::HttpApiParameters::ApiParametersItem apiParametersItemObject; + if(!httpApiParametersNodeApiParametersapiParametersItem["Name"].isNull()) + apiParametersItemObject.name = httpApiParametersNodeApiParametersapiParametersItem["Name"].asString(); + if(!httpApiParametersNodeApiParametersapiParametersItem["Description"].isNull()) + apiParametersItemObject.description = httpApiParametersNodeApiParametersapiParametersItem["Description"].asString(); + if(!httpApiParametersNodeApiParametersapiParametersItem["Type"].isNull()) + apiParametersItemObject.type = httpApiParametersNodeApiParametersapiParametersItem["Type"].asString(); + if(!httpApiParametersNodeApiParametersapiParametersItem["DefaultValue"].isNull()) + apiParametersItemObject.defaultValue = httpApiParametersNodeApiParametersapiParametersItem["DefaultValue"].asString(); + if(!httpApiParametersNodeApiParametersapiParametersItem["In"].isNull()) + apiParametersItemObject.in = httpApiParametersNodeApiParametersapiParametersItem["In"].asString(); + apiDestinationsItemObject.httpApiParameters.apiParameters.push_back(apiParametersItemObject); + } + data_.apiDestinations.push_back(apiDestinationsItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string ListApiDestinationsResult::getMessage()const +{ + return message_; +} + +ListApiDestinationsResult::Data ListApiDestinationsResult::getData()const +{ + return data_; +} + +std::string ListApiDestinationsResult::getCode()const +{ + return code_; +} + diff --git a/eventbridge/src/model/ListConnectionsRequest.cc b/eventbridge/src/model/ListConnectionsRequest.cc new file mode 100644 index 000000000..0648e8f68 --- /dev/null +++ b/eventbridge/src/model/ListConnectionsRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::ListConnectionsRequest; + +ListConnectionsRequest::ListConnectionsRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "ListConnections") { + setMethod(HttpRequest::Method::Post); +} + +ListConnectionsRequest::~ListConnectionsRequest() {} + +std::string ListConnectionsRequest::getConnectionNamePrefix() const { + return connectionNamePrefix_; +} + +void ListConnectionsRequest::setConnectionNamePrefix(const std::string &connectionNamePrefix) { + connectionNamePrefix_ = connectionNamePrefix; + setBodyParameter(std::string("ConnectionNamePrefix"), connectionNamePrefix); +} + +std::string ListConnectionsRequest::getNextToken() const { + return nextToken_; +} + +void ListConnectionsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setBodyParameter(std::string("NextToken"), nextToken); +} + +long ListConnectionsRequest::getMaxResults() const { + return maxResults_; +} + +void ListConnectionsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setBodyParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/eventbridge/src/model/ListConnectionsResult.cc b/eventbridge/src/model/ListConnectionsResult.cc new file mode 100644 index 000000000..5ca1a08b6 --- /dev/null +++ b/eventbridge/src/model/ListConnectionsResult.cc @@ -0,0 +1,190 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +ListConnectionsResult::ListConnectionsResult() : + ServiceResult() +{} + +ListConnectionsResult::ListConnectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListConnectionsResult::~ListConnectionsResult() +{} + +void ListConnectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NextToken"].isNull()) + data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stof(dataNode["Total"].asString()); + if(!dataNode["MaxResults"].isNull()) + data_.maxResults = std::stof(dataNode["MaxResults"].asString()); + auto allConnectionsNode = dataNode["Connections"]["connectionsItem"]; + for (auto dataNodeConnectionsconnectionsItem : allConnectionsNode) + { + Data::ConnectionsItem connectionsItemObject; + if(!dataNodeConnectionsconnectionsItem["ConnectionName"].isNull()) + connectionsItemObject.connectionName = dataNodeConnectionsconnectionsItem["ConnectionName"].asString(); + if(!dataNodeConnectionsconnectionsItem["Description"].isNull()) + connectionsItemObject.description = dataNodeConnectionsconnectionsItem["Description"].asString(); + if(!dataNodeConnectionsconnectionsItem["Id"].isNull()) + connectionsItemObject.id = std::stol(dataNodeConnectionsconnectionsItem["Id"].asString()); + if(!dataNodeConnectionsconnectionsItem["GmtCreate"].isNull()) + connectionsItemObject.gmtCreate = std::stol(dataNodeConnectionsconnectionsItem["GmtCreate"].asString()); + auto networkParametersNode = value["NetworkParameters"]; + if(!networkParametersNode["NetworkType"].isNull()) + connectionsItemObject.networkParameters.networkType = networkParametersNode["NetworkType"].asString(); + if(!networkParametersNode["VpcId"].isNull()) + connectionsItemObject.networkParameters.vpcId = networkParametersNode["VpcId"].asString(); + if(!networkParametersNode["VswitcheId"].isNull()) + connectionsItemObject.networkParameters.vswitcheId = networkParametersNode["VswitcheId"].asString(); + if(!networkParametersNode["SecurityGroupId"].isNull()) + connectionsItemObject.networkParameters.securityGroupId = networkParametersNode["SecurityGroupId"].asString(); + auto authParametersNode = value["AuthParameters"]; + if(!authParametersNode["AuthorizationType"].isNull()) + connectionsItemObject.authParameters.authorizationType = authParametersNode["AuthorizationType"].asString(); + auto apiKeyAuthParametersNode = authParametersNode["ApiKeyAuthParameters"]; + if(!apiKeyAuthParametersNode["ApiKeyName"].isNull()) + connectionsItemObject.authParameters.apiKeyAuthParameters.apiKeyName = apiKeyAuthParametersNode["ApiKeyName"].asString(); + if(!apiKeyAuthParametersNode["ApiKeyValue"].isNull()) + connectionsItemObject.authParameters.apiKeyAuthParameters.apiKeyValue = apiKeyAuthParametersNode["ApiKeyValue"].asString(); + auto basicAuthParametersNode = authParametersNode["BasicAuthParameters"]; + if(!basicAuthParametersNode["Password"].isNull()) + connectionsItemObject.authParameters.basicAuthParameters.password = basicAuthParametersNode["Password"].asString(); + if(!basicAuthParametersNode["Username"].isNull()) + connectionsItemObject.authParameters.basicAuthParameters.username = basicAuthParametersNode["Username"].asString(); + auto invocationHttpParametersNode = authParametersNode["InvocationHttpParameters"]; + auto allBodyParametersNode = invocationHttpParametersNode["BodyParameters"]["bodyParametersItem"]; + for (auto invocationHttpParametersNodeBodyParametersbodyParametersItem : allBodyParametersNode) + { + Data::ConnectionsItem::AuthParameters::InvocationHttpParameters::BodyParametersItem bodyParametersItemObject; + if(!invocationHttpParametersNodeBodyParametersbodyParametersItem["IsValueSecret"].isNull()) + bodyParametersItemObject.isValueSecret = invocationHttpParametersNodeBodyParametersbodyParametersItem["IsValueSecret"].asString(); + if(!invocationHttpParametersNodeBodyParametersbodyParametersItem["Key"].isNull()) + bodyParametersItemObject.key = invocationHttpParametersNodeBodyParametersbodyParametersItem["Key"].asString(); + if(!invocationHttpParametersNodeBodyParametersbodyParametersItem["Value"].isNull()) + bodyParametersItemObject.value = invocationHttpParametersNodeBodyParametersbodyParametersItem["Value"].asString(); + connectionsItemObject.authParameters.invocationHttpParameters.bodyParameters.push_back(bodyParametersItemObject); + } + auto allHeaderParametersNode = invocationHttpParametersNode["HeaderParameters"]["headerParametersItem"]; + for (auto invocationHttpParametersNodeHeaderParametersheaderParametersItem : allHeaderParametersNode) + { + Data::ConnectionsItem::AuthParameters::InvocationHttpParameters::HeaderParametersItem headerParametersItemObject; + if(!invocationHttpParametersNodeHeaderParametersheaderParametersItem["IsValueSecret"].isNull()) + headerParametersItemObject.isValueSecret = invocationHttpParametersNodeHeaderParametersheaderParametersItem["IsValueSecret"].asString(); + if(!invocationHttpParametersNodeHeaderParametersheaderParametersItem["Key"].isNull()) + headerParametersItemObject.key = invocationHttpParametersNodeHeaderParametersheaderParametersItem["Key"].asString(); + if(!invocationHttpParametersNodeHeaderParametersheaderParametersItem["Value"].isNull()) + headerParametersItemObject.value = invocationHttpParametersNodeHeaderParametersheaderParametersItem["Value"].asString(); + connectionsItemObject.authParameters.invocationHttpParameters.headerParameters.push_back(headerParametersItemObject); + } + auto allQueryStringParametersNode = invocationHttpParametersNode["QueryStringParameters"]["queryStringParametersItem"]; + for (auto invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem : allQueryStringParametersNode) + { + Data::ConnectionsItem::AuthParameters::InvocationHttpParameters::QueryStringParametersItem queryStringParametersItemObject; + if(!invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["IsValueSecret"].isNull()) + queryStringParametersItemObject.isValueSecret = invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["IsValueSecret"].asString(); + if(!invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["Key"].isNull()) + queryStringParametersItemObject.key = invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["Key"].asString(); + if(!invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["Value"].isNull()) + queryStringParametersItemObject.value = invocationHttpParametersNodeQueryStringParametersqueryStringParametersItem["Value"].asString(); + connectionsItemObject.authParameters.invocationHttpParameters.queryStringParameters.push_back(queryStringParametersItemObject); + } + auto oAuthParametersNode = authParametersNode["OAuthParameters"]; + if(!oAuthParametersNode["AuthorizationEndpoint"].isNull()) + connectionsItemObject.authParameters.oAuthParameters.authorizationEndpoint = oAuthParametersNode["AuthorizationEndpoint"].asString(); + if(!oAuthParametersNode["HttpMethod"].isNull()) + connectionsItemObject.authParameters.oAuthParameters.httpMethod = oAuthParametersNode["HttpMethod"].asString(); + auto clientParametersNode = oAuthParametersNode["ClientParameters"]; + if(!clientParametersNode["ClientID"].isNull()) + connectionsItemObject.authParameters.oAuthParameters.clientParameters.clientID = clientParametersNode["ClientID"].asString(); + if(!clientParametersNode["ClientSecret"].isNull()) + connectionsItemObject.authParameters.oAuthParameters.clientParameters.clientSecret = clientParametersNode["ClientSecret"].asString(); + auto oAuthHttpParametersNode = oAuthParametersNode["OAuthHttpParameters"]; + auto allBodyParameters1Node = oAuthHttpParametersNode["BodyParameters"]["bodyParametersItem"]; + for (auto oAuthHttpParametersNodeBodyParametersbodyParametersItem : allBodyParameters1Node) + { + Data::ConnectionsItem::AuthParameters::OAuthParameters::OAuthHttpParameters::BodyParametersItem4 bodyParametersItem4Object; + if(!oAuthHttpParametersNodeBodyParametersbodyParametersItem["IsValueSecret"].isNull()) + bodyParametersItem4Object.isValueSecret = oAuthHttpParametersNodeBodyParametersbodyParametersItem["IsValueSecret"].asString(); + if(!oAuthHttpParametersNodeBodyParametersbodyParametersItem["Key"].isNull()) + bodyParametersItem4Object.key = oAuthHttpParametersNodeBodyParametersbodyParametersItem["Key"].asString(); + if(!oAuthHttpParametersNodeBodyParametersbodyParametersItem["Value"].isNull()) + bodyParametersItem4Object.value = oAuthHttpParametersNodeBodyParametersbodyParametersItem["Value"].asString(); + connectionsItemObject.authParameters.oAuthParameters.oAuthHttpParameters.bodyParameters1.push_back(bodyParametersItem4Object); + } + auto allHeaderParameters2Node = oAuthHttpParametersNode["HeaderParameters"]["headerParametersItem"]; + for (auto oAuthHttpParametersNodeHeaderParametersheaderParametersItem : allHeaderParameters2Node) + { + Data::ConnectionsItem::AuthParameters::OAuthParameters::OAuthHttpParameters::HeaderParametersItem5 headerParametersItem5Object; + if(!oAuthHttpParametersNodeHeaderParametersheaderParametersItem["IsValueSecret"].isNull()) + headerParametersItem5Object.isValueSecret = oAuthHttpParametersNodeHeaderParametersheaderParametersItem["IsValueSecret"].asString(); + if(!oAuthHttpParametersNodeHeaderParametersheaderParametersItem["Key"].isNull()) + headerParametersItem5Object.key = oAuthHttpParametersNodeHeaderParametersheaderParametersItem["Key"].asString(); + if(!oAuthHttpParametersNodeHeaderParametersheaderParametersItem["Value"].isNull()) + headerParametersItem5Object.value = oAuthHttpParametersNodeHeaderParametersheaderParametersItem["Value"].asString(); + connectionsItemObject.authParameters.oAuthParameters.oAuthHttpParameters.headerParameters2.push_back(headerParametersItem5Object); + } + auto allQueryStringParameters3Node = oAuthHttpParametersNode["QueryStringParameters"]["queryStringParametersItem"]; + for (auto oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem : allQueryStringParameters3Node) + { + Data::ConnectionsItem::AuthParameters::OAuthParameters::OAuthHttpParameters::QueryStringParametersItem6 queryStringParametersItem6Object; + if(!oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["IsValueSecret"].isNull()) + queryStringParametersItem6Object.isValueSecret = oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["IsValueSecret"].asString(); + if(!oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["Key"].isNull()) + queryStringParametersItem6Object.key = oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["Key"].asString(); + if(!oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["Value"].isNull()) + queryStringParametersItem6Object.value = oAuthHttpParametersNodeQueryStringParametersqueryStringParametersItem["Value"].asString(); + connectionsItemObject.authParameters.oAuthParameters.oAuthHttpParameters.queryStringParameters3.push_back(queryStringParametersItem6Object); + } + data_.connections.push_back(connectionsItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string ListConnectionsResult::getMessage()const +{ + return message_; +} + +ListConnectionsResult::Data ListConnectionsResult::getData()const +{ + return data_; +} + +std::string ListConnectionsResult::getCode()const +{ + return code_; +} + diff --git a/eventbridge/src/model/ListEventBusesRequest.cc b/eventbridge/src/model/ListEventBusesRequest.cc new file mode 100644 index 000000000..11bc6ac50 --- /dev/null +++ b/eventbridge/src/model/ListEventBusesRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::ListEventBusesRequest; + +ListEventBusesRequest::ListEventBusesRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "ListEventBuses") { + setMethod(HttpRequest::Method::Post); +} + +ListEventBusesRequest::~ListEventBusesRequest() {} + +std::string ListEventBusesRequest::getNextToken() const { + return nextToken_; +} + +void ListEventBusesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListEventBusesRequest::getLimit() const { + return limit_; +} + +void ListEventBusesRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + +std::string ListEventBusesRequest::getNamePrefix() const { + return namePrefix_; +} + +void ListEventBusesRequest::setNamePrefix(const std::string &namePrefix) { + namePrefix_ = namePrefix; + setParameter(std::string("NamePrefix"), namePrefix); +} + +std::string ListEventBusesRequest::getEventBusType() const { + return eventBusType_; +} + +void ListEventBusesRequest::setEventBusType(const std::string &eventBusType) { + eventBusType_ = eventBusType; + setParameter(std::string("EventBusType"), eventBusType); +} + diff --git a/eventbridge/src/model/ListEventBusesResult.cc b/eventbridge/src/model/ListEventBusesResult.cc new file mode 100644 index 000000000..f16eb1a10 --- /dev/null +++ b/eventbridge/src/model/ListEventBusesResult.cc @@ -0,0 +1,89 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +ListEventBusesResult::ListEventBusesResult() : + ServiceResult() +{} + +ListEventBusesResult::ListEventBusesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEventBusesResult::~ListEventBusesResult() +{} + +void ListEventBusesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NextToken"].isNull()) + data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allEventBusesNode = dataNode["EventBuses"]["EventBusesItem"]; + for (auto dataNodeEventBusesEventBusesItem : allEventBusesNode) + { + Data::EventBusesItem eventBusesItemObject; + if(!dataNodeEventBusesEventBusesItem["EventBusARN"].isNull()) + eventBusesItemObject.eventBusARN = dataNodeEventBusesEventBusesItem["EventBusARN"].asString(); + if(!dataNodeEventBusesEventBusesItem["EventBusName"].isNull()) + eventBusesItemObject.eventBusName = dataNodeEventBusesEventBusesItem["EventBusName"].asString(); + if(!dataNodeEventBusesEventBusesItem["Description"].isNull()) + eventBusesItemObject.description = dataNodeEventBusesEventBusesItem["Description"].asString(); + if(!dataNodeEventBusesEventBusesItem["CreateTimestamp"].isNull()) + eventBusesItemObject.createTimestamp = std::stol(dataNodeEventBusesEventBusesItem["CreateTimestamp"].asString()); + data_.eventBuses.push_back(eventBusesItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListEventBusesResult::getMessage()const +{ + return message_; +} + +ListEventBusesResult::Data ListEventBusesResult::getData()const +{ + return data_; +} + +std::string ListEventBusesResult::getCode()const +{ + return code_; +} + +bool ListEventBusesResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/ListEventStreamingsRequest.cc b/eventbridge/src/model/ListEventStreamingsRequest.cc new file mode 100644 index 000000000..f8088a58a --- /dev/null +++ b/eventbridge/src/model/ListEventStreamingsRequest.cc @@ -0,0 +1,99 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::ListEventStreamingsRequest; + +ListEventStreamingsRequest::ListEventStreamingsRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "ListEventStreamings") { + setMethod(HttpRequest::Method::Post); +} + +ListEventStreamingsRequest::~ListEventStreamingsRequest() {} + +std::string ListEventStreamingsRequest::getSourceArn() const { + return sourceArn_; +} + +void ListEventStreamingsRequest::setSourceArn(const std::string &sourceArn) { + sourceArn_ = sourceArn; + setBodyParameter(std::string("SourceArn"), sourceArn); +} + +std::string ListEventStreamingsRequest::getSinkType() const { + return sinkType_; +} + +void ListEventStreamingsRequest::setSinkType(const std::string &sinkType) { + sinkType_ = sinkType; + setBodyParameter(std::string("SinkType"), sinkType); +} + +std::string ListEventStreamingsRequest::getSinkArn() const { + return sinkArn_; +} + +void ListEventStreamingsRequest::setSinkArn(const std::string &sinkArn) { + sinkArn_ = sinkArn; + setBodyParameter(std::string("SinkArn"), sinkArn); +} + +std::string ListEventStreamingsRequest::getNextToken() const { + return nextToken_; +} + +void ListEventStreamingsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setBodyParameter(std::string("NextToken"), nextToken); +} + +int ListEventStreamingsRequest::getLimit() const { + return limit_; +} + +void ListEventStreamingsRequest::setLimit(int limit) { + limit_ = limit; + setBodyParameter(std::string("Limit"), std::to_string(limit)); +} + +std::string ListEventStreamingsRequest::getSourceType() const { + return sourceType_; +} + +void ListEventStreamingsRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setBodyParameter(std::string("SourceType"), sourceType); +} + +std::string ListEventStreamingsRequest::getNamePrefix() const { + return namePrefix_; +} + +void ListEventStreamingsRequest::setNamePrefix(const std::string &namePrefix) { + namePrefix_ = namePrefix; + setBodyParameter(std::string("NamePrefix"), namePrefix); +} + +std::string ListEventStreamingsRequest::getTag() const { + return tag_; +} + +void ListEventStreamingsRequest::setTag(const std::string &tag) { + tag_ = tag; + setBodyParameter(std::string("Tag"), tag); +} + diff --git a/eventbridge/src/model/ListEventStreamingsResult.cc b/eventbridge/src/model/ListEventStreamingsResult.cc new file mode 100644 index 000000000..96aed1d4e --- /dev/null +++ b/eventbridge/src/model/ListEventStreamingsResult.cc @@ -0,0 +1,502 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +ListEventStreamingsResult::ListEventStreamingsResult() : + ServiceResult() +{} + +ListEventStreamingsResult::ListEventStreamingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListEventStreamingsResult::~ListEventStreamingsResult() +{} + +void ListEventStreamingsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NextToken"].isNull()) + data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allEventStreamingsNode = dataNode["EventStreamings"]["EventStreamingsItem"]; + for (auto dataNodeEventStreamingsEventStreamingsItem : allEventStreamingsNode) + { + Data::EventStreamingsItem eventStreamingsItemObject; + if(!dataNodeEventStreamingsEventStreamingsItem["EventStreamingName"].isNull()) + eventStreamingsItemObject.eventStreamingName = dataNodeEventStreamingsEventStreamingsItem["EventStreamingName"].asString(); + if(!dataNodeEventStreamingsEventStreamingsItem["Description"].isNull()) + eventStreamingsItemObject.description = dataNodeEventStreamingsEventStreamingsItem["Description"].asString(); + if(!dataNodeEventStreamingsEventStreamingsItem["FilterPattern"].isNull()) + eventStreamingsItemObject.filterPattern = dataNodeEventStreamingsEventStreamingsItem["FilterPattern"].asString(); + if(!dataNodeEventStreamingsEventStreamingsItem["Tag"].isNull()) + eventStreamingsItemObject.tag = dataNodeEventStreamingsEventStreamingsItem["Tag"].asString(); + if(!dataNodeEventStreamingsEventStreamingsItem["Status"].isNull()) + eventStreamingsItemObject.status = dataNodeEventStreamingsEventStreamingsItem["Status"].asString(); + auto allTransformsNode = dataNodeEventStreamingsEventStreamingsItem["Transforms"]["TransformsItem"]; + for (auto dataNodeEventStreamingsEventStreamingsItemTransformsTransformsItem : allTransformsNode) + { + Data::EventStreamingsItem::TransformsItem transformsObject; + if(!dataNodeEventStreamingsEventStreamingsItemTransformsTransformsItem["Arn"].isNull()) + transformsObject.arn = dataNodeEventStreamingsEventStreamingsItemTransformsTransformsItem["Arn"].asString(); + eventStreamingsItemObject.transforms.push_back(transformsObject); + } + auto sourceNode = value["Source"]; + auto sourceMNSParametersNode = sourceNode["SourceMNSParameters"]; + if(!sourceMNSParametersNode["RegionId"].isNull()) + eventStreamingsItemObject.source.sourceMNSParameters.regionId = sourceMNSParametersNode["RegionId"].asString(); + if(!sourceMNSParametersNode["QueueName"].isNull()) + eventStreamingsItemObject.source.sourceMNSParameters.queueName = sourceMNSParametersNode["QueueName"].asString(); + if(!sourceMNSParametersNode["IsBase64Decode"].isNull()) + eventStreamingsItemObject.source.sourceMNSParameters.isBase64Decode = sourceMNSParametersNode["IsBase64Decode"].asString() == "true"; + auto sourceRabbitMQParametersNode = sourceNode["SourceRabbitMQParameters"]; + if(!sourceRabbitMQParametersNode["RegionId"].isNull()) + eventStreamingsItemObject.source.sourceRabbitMQParameters.regionId = sourceRabbitMQParametersNode["RegionId"].asString(); + if(!sourceRabbitMQParametersNode["InstanceId"].isNull()) + eventStreamingsItemObject.source.sourceRabbitMQParameters.instanceId = sourceRabbitMQParametersNode["InstanceId"].asString(); + if(!sourceRabbitMQParametersNode["VirtualHostName"].isNull()) + eventStreamingsItemObject.source.sourceRabbitMQParameters.virtualHostName = sourceRabbitMQParametersNode["VirtualHostName"].asString(); + if(!sourceRabbitMQParametersNode["QueueName"].isNull()) + eventStreamingsItemObject.source.sourceRabbitMQParameters.queueName = sourceRabbitMQParametersNode["QueueName"].asString(); + auto sourceRocketMQParametersNode = sourceNode["SourceRocketMQParameters"]; + if(!sourceRocketMQParametersNode["RegionId"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.regionId = sourceRocketMQParametersNode["RegionId"].asString(); + if(!sourceRocketMQParametersNode["InstanceId"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.instanceId = sourceRocketMQParametersNode["InstanceId"].asString(); + if(!sourceRocketMQParametersNode["Topic"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.topic = sourceRocketMQParametersNode["Topic"].asString(); + if(!sourceRocketMQParametersNode["Tag"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.tag = sourceRocketMQParametersNode["Tag"].asString(); + if(!sourceRocketMQParametersNode["Offset"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.offset = sourceRocketMQParametersNode["Offset"].asString(); + if(!sourceRocketMQParametersNode["GroupID"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.groupID = sourceRocketMQParametersNode["GroupID"].asString(); + if(!sourceRocketMQParametersNode["Timestamp"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.timestamp = std::stol(sourceRocketMQParametersNode["Timestamp"].asString()); + if(!sourceRocketMQParametersNode["InstanceType"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.instanceType = sourceRocketMQParametersNode["InstanceType"].asString(); + if(!sourceRocketMQParametersNode["InstanceEndpoint"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.instanceEndpoint = sourceRocketMQParametersNode["InstanceEndpoint"].asString(); + if(!sourceRocketMQParametersNode["AuthType"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.authType = sourceRocketMQParametersNode["AuthType"].asString(); + if(!sourceRocketMQParametersNode["InstanceUsername"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.instanceUsername = sourceRocketMQParametersNode["InstanceUsername"].asString(); + if(!sourceRocketMQParametersNode["InstancePassword"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.instancePassword = sourceRocketMQParametersNode["InstancePassword"].asString(); + if(!sourceRocketMQParametersNode["InstanceVpcId"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.instanceVpcId = sourceRocketMQParametersNode["InstanceVpcId"].asString(); + if(!sourceRocketMQParametersNode["InstanceVSwitchIds"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.instanceVSwitchIds = sourceRocketMQParametersNode["InstanceVSwitchIds"].asString(); + if(!sourceRocketMQParametersNode["InstanceSecurityGroupId"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.instanceSecurityGroupId = sourceRocketMQParametersNode["InstanceSecurityGroupId"].asString(); + if(!sourceRocketMQParametersNode["InstanceNetwork"].isNull()) + eventStreamingsItemObject.source.sourceRocketMQParameters.instanceNetwork = sourceRocketMQParametersNode["InstanceNetwork"].asString(); + auto sourceKafkaParametersNode = sourceNode["SourceKafkaParameters"]; + if(!sourceKafkaParametersNode["RegionId"].isNull()) + eventStreamingsItemObject.source.sourceKafkaParameters.regionId = sourceKafkaParametersNode["RegionId"].asString(); + if(!sourceKafkaParametersNode["InstanceId"].isNull()) + eventStreamingsItemObject.source.sourceKafkaParameters.instanceId = sourceKafkaParametersNode["InstanceId"].asString(); + if(!sourceKafkaParametersNode["Topic"].isNull()) + eventStreamingsItemObject.source.sourceKafkaParameters.topic = sourceKafkaParametersNode["Topic"].asString(); + if(!sourceKafkaParametersNode["ConsumerGroup"].isNull()) + eventStreamingsItemObject.source.sourceKafkaParameters.consumerGroup = sourceKafkaParametersNode["ConsumerGroup"].asString(); + if(!sourceKafkaParametersNode["OffsetReset"].isNull()) + eventStreamingsItemObject.source.sourceKafkaParameters.offsetReset = sourceKafkaParametersNode["OffsetReset"].asString(); + if(!sourceKafkaParametersNode["Network"].isNull()) + eventStreamingsItemObject.source.sourceKafkaParameters.network = sourceKafkaParametersNode["Network"].asString(); + if(!sourceKafkaParametersNode["VpcId"].isNull()) + eventStreamingsItemObject.source.sourceKafkaParameters.vpcId = sourceKafkaParametersNode["VpcId"].asString(); + if(!sourceKafkaParametersNode["VSwitchIds"].isNull()) + eventStreamingsItemObject.source.sourceKafkaParameters.vSwitchIds = sourceKafkaParametersNode["VSwitchIds"].asString(); + if(!sourceKafkaParametersNode["SecurityGroupId"].isNull()) + eventStreamingsItemObject.source.sourceKafkaParameters.securityGroupId = sourceKafkaParametersNode["SecurityGroupId"].asString(); + auto sourceMQTTParametersNode = sourceNode["SourceMQTTParameters"]; + if(!sourceMQTTParametersNode["RegionId"].isNull()) + eventStreamingsItemObject.source.sourceMQTTParameters.regionId = sourceMQTTParametersNode["RegionId"].asString(); + if(!sourceMQTTParametersNode["InstanceId"].isNull()) + eventStreamingsItemObject.source.sourceMQTTParameters.instanceId = sourceMQTTParametersNode["InstanceId"].asString(); + if(!sourceMQTTParametersNode["Topic"].isNull()) + eventStreamingsItemObject.source.sourceMQTTParameters.topic = sourceMQTTParametersNode["Topic"].asString(); + auto sourceDTSParametersNode = sourceNode["SourceDTSParameters"]; + if(!sourceDTSParametersNode["TaskId"].isNull()) + eventStreamingsItemObject.source.sourceDTSParameters.taskId = sourceDTSParametersNode["TaskId"].asString(); + if(!sourceDTSParametersNode["BrokerUrl"].isNull()) + eventStreamingsItemObject.source.sourceDTSParameters.brokerUrl = sourceDTSParametersNode["BrokerUrl"].asString(); + if(!sourceDTSParametersNode["Topic"].isNull()) + eventStreamingsItemObject.source.sourceDTSParameters.topic = sourceDTSParametersNode["Topic"].asString(); + if(!sourceDTSParametersNode["Sid"].isNull()) + eventStreamingsItemObject.source.sourceDTSParameters.sid = sourceDTSParametersNode["Sid"].asString(); + if(!sourceDTSParametersNode["Username"].isNull()) + eventStreamingsItemObject.source.sourceDTSParameters.username = sourceDTSParametersNode["Username"].asString(); + if(!sourceDTSParametersNode["Password"].isNull()) + eventStreamingsItemObject.source.sourceDTSParameters.password = sourceDTSParametersNode["Password"].asString(); + if(!sourceDTSParametersNode["InitCheckPoint"].isNull()) + eventStreamingsItemObject.source.sourceDTSParameters.initCheckPoint = sourceDTSParametersNode["InitCheckPoint"].asString(); + auto sourceSLSParametersNode = sourceNode["SourceSLSParameters"]; + if(!sourceSLSParametersNode["Project"].isNull()) + eventStreamingsItemObject.source.sourceSLSParameters.project = sourceSLSParametersNode["Project"].asString(); + if(!sourceSLSParametersNode["LogStore"].isNull()) + eventStreamingsItemObject.source.sourceSLSParameters.logStore = sourceSLSParametersNode["LogStore"].asString(); + if(!sourceSLSParametersNode["ConsumerGroup"].isNull()) + eventStreamingsItemObject.source.sourceSLSParameters.consumerGroup = sourceSLSParametersNode["ConsumerGroup"].asString(); + if(!sourceSLSParametersNode["ConsumePosition"].isNull()) + eventStreamingsItemObject.source.sourceSLSParameters.consumePosition = sourceSLSParametersNode["ConsumePosition"].asString(); + if(!sourceSLSParametersNode["RoleName"].isNull()) + eventStreamingsItemObject.source.sourceSLSParameters.roleName = sourceSLSParametersNode["RoleName"].asString(); + auto sinkNode = value["Sink"]; + auto sinkMNSParametersNode = sinkNode["SinkMNSParameters"]; + auto queueNameNode = sinkMNSParametersNode["QueueName"]; + if(!queueNameNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkMNSParameters.queueName.value = queueNameNode["Value"].asString(); + if(!queueNameNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkMNSParameters.queueName.form = queueNameNode["Form"].asString(); + if(!queueNameNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkMNSParameters.queueName._template = queueNameNode["Template"].asString(); + auto bodyNode = sinkMNSParametersNode["Body"]; + if(!bodyNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkMNSParameters.body.value = bodyNode["Value"].asString(); + if(!bodyNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkMNSParameters.body.form = bodyNode["Form"].asString(); + if(!bodyNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkMNSParameters.body._template = bodyNode["Template"].asString(); + auto isBase64EncodeNode = sinkMNSParametersNode["IsBase64Encode"]; + if(!isBase64EncodeNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkMNSParameters.isBase64Encode.value = isBase64EncodeNode["Value"].asString(); + if(!isBase64EncodeNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkMNSParameters.isBase64Encode.form = isBase64EncodeNode["Form"].asString(); + if(!isBase64EncodeNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkMNSParameters.isBase64Encode._template = isBase64EncodeNode["Template"].asString(); + auto sinkFcParametersNode = sinkNode["SinkFcParameters"]; + auto serviceNameNode = sinkFcParametersNode["ServiceName"]; + if(!serviceNameNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.serviceName.value = serviceNameNode["Value"].asString(); + if(!serviceNameNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.serviceName.form = serviceNameNode["Form"].asString(); + if(!serviceNameNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.serviceName._template = serviceNameNode["Template"].asString(); + auto functionNameNode = sinkFcParametersNode["FunctionName"]; + if(!functionNameNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.functionName.value = functionNameNode["Value"].asString(); + if(!functionNameNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.functionName.form = functionNameNode["Form"].asString(); + if(!functionNameNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.functionName._template = functionNameNode["Template"].asString(); + auto concurrencyNode = sinkFcParametersNode["Concurrency"]; + if(!concurrencyNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.concurrency.value = concurrencyNode["Value"].asString(); + if(!concurrencyNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.concurrency.form = concurrencyNode["Form"].asString(); + if(!concurrencyNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.concurrency._template = concurrencyNode["Template"].asString(); + auto qualifierNode = sinkFcParametersNode["Qualifier"]; + if(!qualifierNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.qualifier.value = qualifierNode["Value"].asString(); + if(!qualifierNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.qualifier.form = qualifierNode["Form"].asString(); + if(!qualifierNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.qualifier._template = qualifierNode["Template"].asString(); + auto invocationTypeNode = sinkFcParametersNode["InvocationType"]; + if(!invocationTypeNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.invocationType.value = invocationTypeNode["Value"].asString(); + if(!invocationTypeNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.invocationType.form = invocationTypeNode["Form"].asString(); + if(!invocationTypeNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.invocationType._template = invocationTypeNode["Template"].asString(); + auto body1Node = sinkFcParametersNode["Body"]; + if(!body1Node["Value"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.body1.value = body1Node["Value"].asString(); + if(!body1Node["Form"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.body1.form = body1Node["Form"].asString(); + if(!body1Node["Template"].isNull()) + eventStreamingsItemObject.sink.sinkFcParameters.body1._template = body1Node["Template"].asString(); + auto sinkRabbitMQParametersNode = sinkNode["SinkRabbitMQParameters"]; + auto instanceIdNode = sinkRabbitMQParametersNode["InstanceId"]; + if(!instanceIdNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.instanceId.value = instanceIdNode["Value"].asString(); + if(!instanceIdNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.instanceId.form = instanceIdNode["Form"].asString(); + if(!instanceIdNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.instanceId._template = instanceIdNode["Template"].asString(); + auto virtualHostNameNode = sinkRabbitMQParametersNode["VirtualHostName"]; + if(!virtualHostNameNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.virtualHostName.value = virtualHostNameNode["Value"].asString(); + if(!virtualHostNameNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.virtualHostName.form = virtualHostNameNode["Form"].asString(); + if(!virtualHostNameNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.virtualHostName._template = virtualHostNameNode["Template"].asString(); + auto targetTypeNode = sinkRabbitMQParametersNode["TargetType"]; + if(!targetTypeNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.targetType.value = targetTypeNode["Value"].asString(); + if(!targetTypeNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.targetType.form = targetTypeNode["Form"].asString(); + if(!targetTypeNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.targetType._template = targetTypeNode["Template"].asString(); + auto exchangeNode = sinkRabbitMQParametersNode["Exchange"]; + if(!exchangeNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.exchange.value = exchangeNode["Value"].asString(); + if(!exchangeNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.exchange.form = exchangeNode["Form"].asString(); + if(!exchangeNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.exchange._template = exchangeNode["Template"].asString(); + auto routingKeyNode = sinkRabbitMQParametersNode["RoutingKey"]; + if(!routingKeyNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.routingKey.value = routingKeyNode["Value"].asString(); + if(!routingKeyNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.routingKey.form = routingKeyNode["Form"].asString(); + if(!routingKeyNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.routingKey._template = routingKeyNode["Template"].asString(); + auto queueName2Node = sinkRabbitMQParametersNode["QueueName"]; + if(!queueName2Node["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.queueName2.value = queueName2Node["Value"].asString(); + if(!queueName2Node["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.queueName2.form = queueName2Node["Form"].asString(); + if(!queueName2Node["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.queueName2._template = queueName2Node["Template"].asString(); + auto body3Node = sinkRabbitMQParametersNode["Body"]; + if(!body3Node["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.body3.value = body3Node["Value"].asString(); + if(!body3Node["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.body3.form = body3Node["Form"].asString(); + if(!body3Node["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.body3._template = body3Node["Template"].asString(); + auto messageIdNode = sinkRabbitMQParametersNode["MessageId"]; + if(!messageIdNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.messageId.value = messageIdNode["Value"].asString(); + if(!messageIdNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.messageId.form = messageIdNode["Form"].asString(); + if(!messageIdNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.messageId._template = messageIdNode["Template"].asString(); + auto propertiesNode = sinkRabbitMQParametersNode["Properties"]; + if(!propertiesNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.properties.value = propertiesNode["Value"].asString(); + if(!propertiesNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.properties.form = propertiesNode["Form"].asString(); + if(!propertiesNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRabbitMQParameters.properties._template = propertiesNode["Template"].asString(); + auto sinkKafkaParametersNode = sinkNode["SinkKafkaParameters"]; + auto instanceId4Node = sinkKafkaParametersNode["InstanceId"]; + if(!instanceId4Node["Value"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.instanceId4.value = instanceId4Node["Value"].asString(); + if(!instanceId4Node["Form"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.instanceId4.form = instanceId4Node["Form"].asString(); + if(!instanceId4Node["Template"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.instanceId4._template = instanceId4Node["Template"].asString(); + auto topicNode = sinkKafkaParametersNode["Topic"]; + if(!topicNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.topic.value = topicNode["Value"].asString(); + if(!topicNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.topic.form = topicNode["Form"].asString(); + if(!topicNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.topic._template = topicNode["Template"].asString(); + auto acksNode = sinkKafkaParametersNode["Acks"]; + if(!acksNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.acks.value = acksNode["Value"].asString(); + if(!acksNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.acks.form = acksNode["Form"].asString(); + if(!acksNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.acks._template = acksNode["Template"].asString(); + auto keyNode = sinkKafkaParametersNode["Key"]; + if(!keyNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.key.value = keyNode["Value"].asString(); + if(!keyNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.key.form = keyNode["Form"].asString(); + if(!keyNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.key._template = keyNode["Template"].asString(); + auto valueNode = sinkKafkaParametersNode["Value"]; + if(!valueNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.value.value = valueNode["Value"].asString(); + if(!valueNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.value.form = valueNode["Form"].asString(); + if(!valueNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.value._template = valueNode["Template"].asString(); + auto saslUserNode = sinkKafkaParametersNode["SaslUser"]; + if(!saslUserNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.saslUser.value = saslUserNode["Value"].asString(); + if(!saslUserNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.saslUser.form = saslUserNode["Form"].asString(); + if(!saslUserNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkKafkaParameters.saslUser._template = saslUserNode["Template"].asString(); + auto sinkRocketMQParametersNode = sinkNode["SinkRocketMQParameters"]; + auto instanceId5Node = sinkRocketMQParametersNode["InstanceId"]; + if(!instanceId5Node["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.instanceId5.value = instanceId5Node["Value"].asString(); + if(!instanceId5Node["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.instanceId5.form = instanceId5Node["Form"].asString(); + if(!instanceId5Node["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.instanceId5._template = instanceId5Node["Template"].asString(); + auto topic6Node = sinkRocketMQParametersNode["Topic"]; + if(!topic6Node["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.topic6.value = topic6Node["Value"].asString(); + if(!topic6Node["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.topic6.form = topic6Node["Form"].asString(); + if(!topic6Node["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.topic6._template = topic6Node["Template"].asString(); + auto body7Node = sinkRocketMQParametersNode["Body"]; + if(!body7Node["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.body7.value = body7Node["Value"].asString(); + if(!body7Node["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.body7.form = body7Node["Form"].asString(); + if(!body7Node["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.body7._template = body7Node["Template"].asString(); + auto properties8Node = sinkRocketMQParametersNode["Properties"]; + if(!properties8Node["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.properties8.value = properties8Node["Value"].asString(); + if(!properties8Node["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.properties8.form = properties8Node["Form"].asString(); + if(!properties8Node["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.properties8._template = properties8Node["Template"].asString(); + auto keysNode = sinkRocketMQParametersNode["Keys"]; + if(!keysNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.keys.value = keysNode["Value"].asString(); + if(!keysNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.keys.form = keysNode["Form"].asString(); + if(!keysNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.keys._template = keysNode["Template"].asString(); + auto tagsNode = sinkRocketMQParametersNode["Tags"]; + if(!tagsNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.tags.value = tagsNode["Value"].asString(); + if(!tagsNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.tags.form = tagsNode["Form"].asString(); + if(!tagsNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkRocketMQParameters.tags._template = tagsNode["Template"].asString(); + auto sinkSLSParametersNode = sinkNode["SinkSLSParameters"]; + auto projectNode = sinkSLSParametersNode["Project"]; + if(!projectNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.project.value = projectNode["Value"].asString(); + if(!projectNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.project.form = projectNode["Form"].asString(); + if(!projectNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.project._template = projectNode["Template"].asString(); + auto logStoreNode = sinkSLSParametersNode["LogStore"]; + if(!logStoreNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.logStore.value = logStoreNode["Value"].asString(); + if(!logStoreNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.logStore.form = logStoreNode["Form"].asString(); + if(!logStoreNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.logStore._template = logStoreNode["Template"].asString(); + auto topic9Node = sinkSLSParametersNode["Topic"]; + if(!topic9Node["Value"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.topic9.value = topic9Node["Value"].asString(); + if(!topic9Node["Form"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.topic9.form = topic9Node["Form"].asString(); + if(!topic9Node["Template"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.topic9._template = topic9Node["Template"].asString(); + auto body10Node = sinkSLSParametersNode["Body"]; + if(!body10Node["Value"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.body10.value = body10Node["Value"].asString(); + if(!body10Node["Form"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.body10.form = body10Node["Form"].asString(); + if(!body10Node["Template"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.body10._template = body10Node["Template"].asString(); + auto roleNameNode = sinkSLSParametersNode["RoleName"]; + if(!roleNameNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.roleName.value = roleNameNode["Value"].asString(); + if(!roleNameNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.roleName.form = roleNameNode["Form"].asString(); + if(!roleNameNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkSLSParameters.roleName._template = roleNameNode["Template"].asString(); + auto sinkFnfParametersNode = sinkNode["SinkFnfParameters"]; + auto flowNameNode = sinkFnfParametersNode["FlowName"]; + if(!flowNameNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.flowName.value = flowNameNode["Value"].asString(); + if(!flowNameNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.flowName.form = flowNameNode["Form"].asString(); + if(!flowNameNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.flowName._template = flowNameNode["Template"].asString(); + auto executionNameNode = sinkFnfParametersNode["ExecutionName"]; + if(!executionNameNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.executionName.value = executionNameNode["Value"].asString(); + if(!executionNameNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.executionName.form = executionNameNode["Form"].asString(); + if(!executionNameNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.executionName._template = executionNameNode["Template"].asString(); + auto inputNode = sinkFnfParametersNode["Input"]; + if(!inputNode["Value"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.input.value = inputNode["Value"].asString(); + if(!inputNode["Form"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.input.form = inputNode["Form"].asString(); + if(!inputNode["Template"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.input._template = inputNode["Template"].asString(); + auto roleName11Node = sinkFnfParametersNode["RoleName"]; + if(!roleName11Node["Value"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.roleName11.value = roleName11Node["Value"].asString(); + if(!roleName11Node["Form"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.roleName11.form = roleName11Node["Form"].asString(); + if(!roleName11Node["Template"].isNull()) + eventStreamingsItemObject.sink.sinkFnfParameters.roleName11._template = roleName11Node["Template"].asString(); + auto runOptionsNode = value["RunOptions"]; + if(!runOptionsNode["MaximumTasks"].isNull()) + eventStreamingsItemObject.runOptions.maximumTasks = std::stoi(runOptionsNode["MaximumTasks"].asString()); + if(!runOptionsNode["ErrorsTolerance"].isNull()) + eventStreamingsItemObject.runOptions.errorsTolerance = runOptionsNode["ErrorsTolerance"].asString(); + auto retryStrategyNode = runOptionsNode["RetryStrategy"]; + if(!retryStrategyNode["PushRetryStrategy"].isNull()) + eventStreamingsItemObject.runOptions.retryStrategy.pushRetryStrategy = retryStrategyNode["PushRetryStrategy"].asString(); + if(!retryStrategyNode["MaximumEventAgeInSeconds"].isNull()) + eventStreamingsItemObject.runOptions.retryStrategy.maximumEventAgeInSeconds = std::stof(retryStrategyNode["MaximumEventAgeInSeconds"].asString()); + if(!retryStrategyNode["MaximumRetryAttempts"].isNull()) + eventStreamingsItemObject.runOptions.retryStrategy.maximumRetryAttempts = std::stof(retryStrategyNode["MaximumRetryAttempts"].asString()); + auto deadLetterQueueNode = runOptionsNode["DeadLetterQueue"]; + if(!deadLetterQueueNode["Arn"].isNull()) + eventStreamingsItemObject.runOptions.deadLetterQueue.arn = deadLetterQueueNode["Arn"].asString(); + auto batchWindowNode = runOptionsNode["BatchWindow"]; + if(!batchWindowNode["CountBasedWindow"].isNull()) + eventStreamingsItemObject.runOptions.batchWindow.countBasedWindow = std::stoi(batchWindowNode["CountBasedWindow"].asString()); + if(!batchWindowNode["TimeBasedWindow"].isNull()) + eventStreamingsItemObject.runOptions.batchWindow.timeBasedWindow = std::stoi(batchWindowNode["TimeBasedWindow"].asString()); + data_.eventStreamings.push_back(eventStreamingsItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListEventStreamingsResult::getMessage()const +{ + return message_; +} + +ListEventStreamingsResult::Data ListEventStreamingsResult::getData()const +{ + return data_; +} + +std::string ListEventStreamingsResult::getCode()const +{ + return code_; +} + +bool ListEventStreamingsResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/ListRulesRequest.cc b/eventbridge/src/model/ListRulesRequest.cc new file mode 100644 index 000000000..cc2dbe1da --- /dev/null +++ b/eventbridge/src/model/ListRulesRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::ListRulesRequest; + +ListRulesRequest::ListRulesRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "ListRules") { + setMethod(HttpRequest::Method::Post); +} + +ListRulesRequest::~ListRulesRequest() {} + +std::string ListRulesRequest::getRuleNamePrefix() const { + return ruleNamePrefix_; +} + +void ListRulesRequest::setRuleNamePrefix(const std::string &ruleNamePrefix) { + ruleNamePrefix_ = ruleNamePrefix; + setParameter(std::string("RuleNamePrefix"), ruleNamePrefix); +} + +std::string ListRulesRequest::getEventBusName() const { + return eventBusName_; +} + +void ListRulesRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + +std::string ListRulesRequest::getNextToken() const { + return nextToken_; +} + +void ListRulesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListRulesRequest::getLimit() const { + return limit_; +} + +void ListRulesRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + diff --git a/eventbridge/src/model/ListRulesResult.cc b/eventbridge/src/model/ListRulesResult.cc new file mode 100644 index 000000000..63b815616 --- /dev/null +++ b/eventbridge/src/model/ListRulesResult.cc @@ -0,0 +1,113 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +ListRulesResult::ListRulesResult() : + ServiceResult() +{} + +ListRulesResult::ListRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRulesResult::~ListRulesResult() +{} + +void ListRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NextToken"].isNull()) + data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allRulesNode = dataNode["Rules"]["RulesItem"]; + for (auto dataNodeRulesRulesItem : allRulesNode) + { + Data::RulesItem rulesItemObject; + if(!dataNodeRulesRulesItem["DetailMap"].isNull()) + rulesItemObject.detailMap = dataNodeRulesRulesItem["DetailMap"].asString(); + if(!dataNodeRulesRulesItem["Status"].isNull()) + rulesItemObject.status = dataNodeRulesRulesItem["Status"].asString(); + if(!dataNodeRulesRulesItem["EventBusName"].isNull()) + rulesItemObject.eventBusName = dataNodeRulesRulesItem["EventBusName"].asString(); + if(!dataNodeRulesRulesItem["RuleARN"].isNull()) + rulesItemObject.ruleARN = dataNodeRulesRulesItem["RuleARN"].asString(); + if(!dataNodeRulesRulesItem["Description"].isNull()) + rulesItemObject.description = dataNodeRulesRulesItem["Description"].asString(); + if(!dataNodeRulesRulesItem["FilterPattern"].isNull()) + rulesItemObject.filterPattern = dataNodeRulesRulesItem["FilterPattern"].asString(); + if(!dataNodeRulesRulesItem["CreatedTimestamp"].isNull()) + rulesItemObject.createdTimestamp = std::stol(dataNodeRulesRulesItem["CreatedTimestamp"].asString()); + if(!dataNodeRulesRulesItem["RuleName"].isNull()) + rulesItemObject.ruleName = dataNodeRulesRulesItem["RuleName"].asString(); + auto allTargetsNode = dataNodeRulesRulesItem["Targets"]["TargetsItem"]; + for (auto dataNodeRulesRulesItemTargetsTargetsItem : allTargetsNode) + { + Data::RulesItem::TargetsItem targetsObject; + if(!dataNodeRulesRulesItemTargetsTargetsItem["Type"].isNull()) + targetsObject.type = dataNodeRulesRulesItemTargetsTargetsItem["Type"].asString(); + if(!dataNodeRulesRulesItemTargetsTargetsItem["Endpoint"].isNull()) + targetsObject.endpoint = dataNodeRulesRulesItemTargetsTargetsItem["Endpoint"].asString(); + if(!dataNodeRulesRulesItemTargetsTargetsItem["Id"].isNull()) + targetsObject.id = dataNodeRulesRulesItemTargetsTargetsItem["Id"].asString(); + if(!dataNodeRulesRulesItemTargetsTargetsItem["PushSelector"].isNull()) + targetsObject.pushSelector = dataNodeRulesRulesItemTargetsTargetsItem["PushSelector"].asString(); + if(!dataNodeRulesRulesItemTargetsTargetsItem["ErrorsTolerance"].isNull()) + targetsObject.errorsTolerance = dataNodeRulesRulesItemTargetsTargetsItem["ErrorsTolerance"].asString(); + rulesItemObject.targets.push_back(targetsObject); + } + data_.rules.push_back(rulesItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListRulesResult::getMessage()const +{ + return message_; +} + +ListRulesResult::Data ListRulesResult::getData()const +{ + return data_; +} + +std::string ListRulesResult::getCode()const +{ + return code_; +} + +bool ListRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/ListTargetsRequest.cc b/eventbridge/src/model/ListTargetsRequest.cc new file mode 100644 index 000000000..912cd4753 --- /dev/null +++ b/eventbridge/src/model/ListTargetsRequest.cc @@ -0,0 +1,72 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::ListTargetsRequest; + +ListTargetsRequest::ListTargetsRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "ListTargets") { + setMethod(HttpRequest::Method::Post); +} + +ListTargetsRequest::~ListTargetsRequest() {} + +std::string ListTargetsRequest::getRuleName() const { + return ruleName_; +} + +void ListTargetsRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string ListTargetsRequest::getEventBusName() const { + return eventBusName_; +} + +void ListTargetsRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + +std::string ListTargetsRequest::getNextToken() const { + return nextToken_; +} + +void ListTargetsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListTargetsRequest::getLimit() const { + return limit_; +} + +void ListTargetsRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + +std::string ListTargetsRequest::getArn() const { + return arn_; +} + +void ListTargetsRequest::setArn(const std::string &arn) { + arn_ = arn; + setParameter(std::string("Arn"), arn); +} + diff --git a/eventbridge/src/model/ListTargetsResult.cc b/eventbridge/src/model/ListTargetsResult.cc new file mode 100644 index 000000000..6545a73ce --- /dev/null +++ b/eventbridge/src/model/ListTargetsResult.cc @@ -0,0 +1,111 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +ListTargetsResult::ListTargetsResult() : + ServiceResult() +{} + +ListTargetsResult::ListTargetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTargetsResult::~ListTargetsResult() +{} + +void ListTargetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NextToken"].isNull()) + data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allTargetsNode = dataNode["Targets"]["TargetsItem"]; + for (auto dataNodeTargetsTargetsItem : allTargetsNode) + { + Data::TargetsItem targetsItemObject; + if(!dataNodeTargetsTargetsItem["DetailMap"].isNull()) + targetsItemObject.detailMap = dataNodeTargetsTargetsItem["DetailMap"].asString(); + if(!dataNodeTargetsTargetsItem["Type"].isNull()) + targetsItemObject.type = dataNodeTargetsTargetsItem["Type"].asString(); + if(!dataNodeTargetsTargetsItem["Endpoint"].isNull()) + targetsItemObject.endpoint = dataNodeTargetsTargetsItem["Endpoint"].asString(); + if(!dataNodeTargetsTargetsItem["PushSelector"].isNull()) + targetsItemObject.pushSelector = dataNodeTargetsTargetsItem["PushSelector"].asString(); + if(!dataNodeTargetsTargetsItem["ErrorsTolerance"].isNull()) + targetsItemObject.errorsTolerance = dataNodeTargetsTargetsItem["ErrorsTolerance"].asString(); + if(!dataNodeTargetsTargetsItem["Id"].isNull()) + targetsItemObject.id = dataNodeTargetsTargetsItem["Id"].asString(); + if(!dataNodeTargetsTargetsItem["EventBusName"].isNull()) + targetsItemObject.eventBusName = dataNodeTargetsTargetsItem["EventBusName"].asString(); + if(!dataNodeTargetsTargetsItem["RuleName"].isNull()) + targetsItemObject.ruleName = dataNodeTargetsTargetsItem["RuleName"].asString(); + auto allParamListNode = dataNodeTargetsTargetsItem["ParamList"]["ParamListItem"]; + for (auto dataNodeTargetsTargetsItemParamListParamListItem : allParamListNode) + { + Data::TargetsItem::ParamListItem paramListObject; + if(!dataNodeTargetsTargetsItemParamListParamListItem["Value"].isNull()) + paramListObject.value = dataNodeTargetsTargetsItemParamListParamListItem["Value"].asString(); + if(!dataNodeTargetsTargetsItemParamListParamListItem["Template"].isNull()) + paramListObject._template = dataNodeTargetsTargetsItemParamListParamListItem["Template"].asString(); + if(!dataNodeTargetsTargetsItemParamListParamListItem["Form"].isNull()) + paramListObject.form = dataNodeTargetsTargetsItemParamListParamListItem["Form"].asString(); + if(!dataNodeTargetsTargetsItemParamListParamListItem["ResourceKey"].isNull()) + paramListObject.resourceKey = dataNodeTargetsTargetsItemParamListParamListItem["ResourceKey"].asString(); + targetsItemObject.paramList.push_back(paramListObject); + } + data_.targets.push_back(targetsItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListTargetsResult::getMessage()const +{ + return message_; +} + +ListTargetsResult::Data ListTargetsResult::getData()const +{ + return data_; +} + +std::string ListTargetsResult::getCode()const +{ + return code_; +} + +bool ListTargetsResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/ListUserDefinedEventSourcesRequest.cc b/eventbridge/src/model/ListUserDefinedEventSourcesRequest.cc new file mode 100644 index 000000000..800b97c17 --- /dev/null +++ b/eventbridge/src/model/ListUserDefinedEventSourcesRequest.cc @@ -0,0 +1,72 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::ListUserDefinedEventSourcesRequest; + +ListUserDefinedEventSourcesRequest::ListUserDefinedEventSourcesRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "ListUserDefinedEventSources") { + setMethod(HttpRequest::Method::Post); +} + +ListUserDefinedEventSourcesRequest::~ListUserDefinedEventSourcesRequest() {} + +std::string ListUserDefinedEventSourcesRequest::getType() const { + return type_; +} + +void ListUserDefinedEventSourcesRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string ListUserDefinedEventSourcesRequest::getEventBusName() const { + return eventBusName_; +} + +void ListUserDefinedEventSourcesRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + +std::string ListUserDefinedEventSourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListUserDefinedEventSourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListUserDefinedEventSourcesRequest::getLimit() const { + return limit_; +} + +void ListUserDefinedEventSourcesRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + +std::string ListUserDefinedEventSourcesRequest::getNamePrefix() const { + return namePrefix_; +} + +void ListUserDefinedEventSourcesRequest::setNamePrefix(const std::string &namePrefix) { + namePrefix_ = namePrefix; + setParameter(std::string("NamePrefix"), namePrefix); +} + diff --git a/eventbridge/src/model/ListUserDefinedEventSourcesResult.cc b/eventbridge/src/model/ListUserDefinedEventSourcesResult.cc new file mode 100644 index 000000000..8c69be6eb --- /dev/null +++ b/eventbridge/src/model/ListUserDefinedEventSourcesResult.cc @@ -0,0 +1,205 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +ListUserDefinedEventSourcesResult::ListUserDefinedEventSourcesResult() : + ServiceResult() +{} + +ListUserDefinedEventSourcesResult::ListUserDefinedEventSourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserDefinedEventSourcesResult::~ListUserDefinedEventSourcesResult() +{} + +void ListUserDefinedEventSourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NextToken"].isNull()) + data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stof(dataNode["Total"].asString()); + auto allEventSourceListNode = dataNode["EventSourceList"]["eventSourceListItem"]; + for (auto dataNodeEventSourceListeventSourceListItem : allEventSourceListNode) + { + Data::EventSourceListItem eventSourceListItemObject; + if(!dataNodeEventSourceListeventSourceListItem["Name"].isNull()) + eventSourceListItemObject.name = dataNodeEventSourceListeventSourceListItem["Name"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["Arn"].isNull()) + eventSourceListItemObject.arn = dataNodeEventSourceListeventSourceListItem["Arn"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["Status"].isNull()) + eventSourceListItemObject.status = dataNodeEventSourceListeventSourceListItem["Status"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["Type"].isNull()) + eventSourceListItemObject.type = dataNodeEventSourceListeventSourceListItem["Type"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["Ctime"].isNull()) + eventSourceListItemObject.ctime = std::stof(dataNodeEventSourceListeventSourceListItem["Ctime"].asString()); + if(!dataNodeEventSourceListeventSourceListItem["Description"].isNull()) + eventSourceListItemObject.description = dataNodeEventSourceListeventSourceListItem["Description"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["ExternalSourceType"].isNull()) + eventSourceListItemObject.externalSourceType = dataNodeEventSourceListeventSourceListItem["ExternalSourceType"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["ExternalSourceConfig"].isNull()) + eventSourceListItemObject.externalSourceConfig = dataNodeEventSourceListeventSourceListItem["ExternalSourceConfig"].asString(); + if(!dataNodeEventSourceListeventSourceListItem["EventBusName"].isNull()) + eventSourceListItemObject.eventBusName = dataNodeEventSourceListeventSourceListItem["EventBusName"].asString(); + auto sourceMNSParametersNode = value["SourceMNSParameters"]; + if(!sourceMNSParametersNode["RegionId"].isNull()) + eventSourceListItemObject.sourceMNSParameters.regionId = sourceMNSParametersNode["RegionId"].asString(); + if(!sourceMNSParametersNode["QueueName"].isNull()) + eventSourceListItemObject.sourceMNSParameters.queueName = sourceMNSParametersNode["QueueName"].asString(); + if(!sourceMNSParametersNode["IsBase64Decode"].isNull()) + eventSourceListItemObject.sourceMNSParameters.isBase64Decode = sourceMNSParametersNode["IsBase64Decode"].asString() == "true"; + auto sourceRocketMQParametersNode = value["SourceRocketMQParameters"]; + if(!sourceRocketMQParametersNode["RegionId"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.regionId = sourceRocketMQParametersNode["RegionId"].asString(); + if(!sourceRocketMQParametersNode["InstanceId"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.instanceId = sourceRocketMQParametersNode["InstanceId"].asString(); + if(!sourceRocketMQParametersNode["Topic"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.topic = sourceRocketMQParametersNode["Topic"].asString(); + if(!sourceRocketMQParametersNode["Tag"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.tag = sourceRocketMQParametersNode["Tag"].asString(); + if(!sourceRocketMQParametersNode["Offset"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.offset = sourceRocketMQParametersNode["Offset"].asString(); + if(!sourceRocketMQParametersNode["Timestamp"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.timestamp = std::stof(sourceRocketMQParametersNode["Timestamp"].asString()); + if(!sourceRocketMQParametersNode["GroupId"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.groupId = sourceRocketMQParametersNode["GroupId"].asString(); + if(!sourceRocketMQParametersNode["InstanceType"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.instanceType = sourceRocketMQParametersNode["InstanceType"].asString(); + if(!sourceRocketMQParametersNode["InstanceNetwork"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.instanceNetwork = sourceRocketMQParametersNode["InstanceNetwork"].asString(); + if(!sourceRocketMQParametersNode["InstanceVpcId"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.instanceVpcId = sourceRocketMQParametersNode["InstanceVpcId"].asString(); + if(!sourceRocketMQParametersNode["InstanceVSwitchIds"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.instanceVSwitchIds = sourceRocketMQParametersNode["InstanceVSwitchIds"].asString(); + if(!sourceRocketMQParametersNode["InstanceSecurityGroupId"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.instanceSecurityGroupId = sourceRocketMQParametersNode["InstanceSecurityGroupId"].asString(); + if(!sourceRocketMQParametersNode["AuthType"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.authType = sourceRocketMQParametersNode["AuthType"].asString(); + if(!sourceRocketMQParametersNode["InstanceEndpoint"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.instanceEndpoint = sourceRocketMQParametersNode["InstanceEndpoint"].asString(); + if(!sourceRocketMQParametersNode["InstanceUsername"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.instanceUsername = sourceRocketMQParametersNode["InstanceUsername"].asString(); + if(!sourceRocketMQParametersNode["InstancePassword"].isNull()) + eventSourceListItemObject.sourceRocketMQParameters.instancePassword = sourceRocketMQParametersNode["InstancePassword"].asString(); + auto sourceRabbitMQParametersNode = value["SourceRabbitMQParameters"]; + if(!sourceRabbitMQParametersNode["RegionId"].isNull()) + eventSourceListItemObject.sourceRabbitMQParameters.regionId = sourceRabbitMQParametersNode["RegionId"].asString(); + if(!sourceRabbitMQParametersNode["InstanceId"].isNull()) + eventSourceListItemObject.sourceRabbitMQParameters.instanceId = sourceRabbitMQParametersNode["InstanceId"].asString(); + if(!sourceRabbitMQParametersNode["VirtualHostName"].isNull()) + eventSourceListItemObject.sourceRabbitMQParameters.virtualHostName = sourceRabbitMQParametersNode["VirtualHostName"].asString(); + if(!sourceRabbitMQParametersNode["QueueName"].isNull()) + eventSourceListItemObject.sourceRabbitMQParameters.queueName = sourceRabbitMQParametersNode["QueueName"].asString(); + auto sourceSLSParametersNode = value["SourceSLSParameters"]; + if(!sourceSLSParametersNode["Project"].isNull()) + eventSourceListItemObject.sourceSLSParameters.project = sourceSLSParametersNode["Project"].asString(); + if(!sourceSLSParametersNode["LogStore"].isNull()) + eventSourceListItemObject.sourceSLSParameters.logStore = sourceSLSParametersNode["LogStore"].asString(); + if(!sourceSLSParametersNode["ConsumePosition"].isNull()) + eventSourceListItemObject.sourceSLSParameters.consumePosition = sourceSLSParametersNode["ConsumePosition"].asString(); + if(!sourceSLSParametersNode["RoleName"].isNull()) + eventSourceListItemObject.sourceSLSParameters.roleName = sourceSLSParametersNode["RoleName"].asString(); + auto sourceHttpEventParametersNode = value["SourceHttpEventParameters"]; + if(!sourceHttpEventParametersNode["Type"].isNull()) + eventSourceListItemObject.sourceHttpEventParameters.type = sourceHttpEventParametersNode["Type"].asString(); + if(!sourceHttpEventParametersNode["SecurityConfig"].isNull()) + eventSourceListItemObject.sourceHttpEventParameters.securityConfig = sourceHttpEventParametersNode["SecurityConfig"].asString(); + auto allMethod = sourceHttpEventParametersNode["Method"]["method"]; + for (auto value : allMethod) + eventSourceListItemObject.sourceHttpEventParameters.method.push_back(value.asString()); + auto allIp = sourceHttpEventParametersNode["Ip"]["ip"]; + for (auto value : allIp) + eventSourceListItemObject.sourceHttpEventParameters.ip.push_back(value.asString()); + auto allReferer = sourceHttpEventParametersNode["Referer"]["referer"]; + for (auto value : allReferer) + eventSourceListItemObject.sourceHttpEventParameters.referer.push_back(value.asString()); + auto allPublicWebHookUrl = sourceHttpEventParametersNode["PublicWebHookUrl"]["publicWebHookUrl"]; + for (auto value : allPublicWebHookUrl) + eventSourceListItemObject.sourceHttpEventParameters.publicWebHookUrl.push_back(value.asString()); + auto allVpcWebHookUrl = sourceHttpEventParametersNode["VpcWebHookUrl"]["vpcWebHookUrl"]; + for (auto value : allVpcWebHookUrl) + eventSourceListItemObject.sourceHttpEventParameters.vpcWebHookUrl.push_back(value.asString()); + auto sourceKafkaParametersNode = value["SourceKafkaParameters"]; + if(!sourceKafkaParametersNode["InstanceId"].isNull()) + eventSourceListItemObject.sourceKafkaParameters.instanceId = sourceKafkaParametersNode["InstanceId"].asString(); + if(!sourceKafkaParametersNode["ConsumerGroup"].isNull()) + eventSourceListItemObject.sourceKafkaParameters.consumerGroup = sourceKafkaParametersNode["ConsumerGroup"].asString(); + if(!sourceKafkaParametersNode["Topic"].isNull()) + eventSourceListItemObject.sourceKafkaParameters.topic = sourceKafkaParametersNode["Topic"].asString(); + if(!sourceKafkaParametersNode["OffsetReset"].isNull()) + eventSourceListItemObject.sourceKafkaParameters.offsetReset = sourceKafkaParametersNode["OffsetReset"].asString(); + if(!sourceKafkaParametersNode["RegionId"].isNull()) + eventSourceListItemObject.sourceKafkaParameters.regionId = sourceKafkaParametersNode["RegionId"].asString(); + if(!sourceKafkaParametersNode["MaximumTasks"].isNull()) + eventSourceListItemObject.sourceKafkaParameters.maximumTasks = std::stoi(sourceKafkaParametersNode["MaximumTasks"].asString()); + if(!sourceKafkaParametersNode["Network"].isNull()) + eventSourceListItemObject.sourceKafkaParameters.network = sourceKafkaParametersNode["Network"].asString(); + if(!sourceKafkaParametersNode["SecurityGroupId"].isNull()) + eventSourceListItemObject.sourceKafkaParameters.securityGroupId = sourceKafkaParametersNode["SecurityGroupId"].asString(); + if(!sourceKafkaParametersNode["VpcId"].isNull()) + eventSourceListItemObject.sourceKafkaParameters.vpcId = sourceKafkaParametersNode["VpcId"].asString(); + if(!sourceKafkaParametersNode["VSwitchIds"].isNull()) + eventSourceListItemObject.sourceKafkaParameters.vSwitchIds = sourceKafkaParametersNode["VSwitchIds"].asString(); + auto sourceScheduledEventParametersNode = value["SourceScheduledEventParameters"]; + if(!sourceScheduledEventParametersNode["Schedule"].isNull()) + eventSourceListItemObject.sourceScheduledEventParameters.schedule = sourceScheduledEventParametersNode["Schedule"].asString(); + if(!sourceScheduledEventParametersNode["TimeZone"].isNull()) + eventSourceListItemObject.sourceScheduledEventParameters.timeZone = sourceScheduledEventParametersNode["TimeZone"].asString(); + if(!sourceScheduledEventParametersNode["UserData"].isNull()) + eventSourceListItemObject.sourceScheduledEventParameters.userData = sourceScheduledEventParametersNode["UserData"].asString(); + data_.eventSourceList.push_back(eventSourceListItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ListUserDefinedEventSourcesResult::getMessage()const +{ + return message_; +} + +ListUserDefinedEventSourcesResult::Data ListUserDefinedEventSourcesResult::getData()const +{ + return data_; +} + +std::string ListUserDefinedEventSourcesResult::getCode()const +{ + return code_; +} + +bool ListUserDefinedEventSourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/PauseEventStreamingRequest.cc b/eventbridge/src/model/PauseEventStreamingRequest.cc new file mode 100644 index 000000000..fcf16ea39 --- /dev/null +++ b/eventbridge/src/model/PauseEventStreamingRequest.cc @@ -0,0 +1,36 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::PauseEventStreamingRequest; + +PauseEventStreamingRequest::PauseEventStreamingRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "PauseEventStreaming") { + setMethod(HttpRequest::Method::Post); +} + +PauseEventStreamingRequest::~PauseEventStreamingRequest() {} + +std::string PauseEventStreamingRequest::getEventStreamingName() const { + return eventStreamingName_; +} + +void PauseEventStreamingRequest::setEventStreamingName(const std::string &eventStreamingName) { + eventStreamingName_ = eventStreamingName; + setBodyParameter(std::string("EventStreamingName"), eventStreamingName); +} + diff --git a/eventbridge/src/model/PauseEventStreamingResult.cc b/eventbridge/src/model/PauseEventStreamingResult.cc new file mode 100644 index 000000000..ae35af7d2 --- /dev/null +++ b/eventbridge/src/model/PauseEventStreamingResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +PauseEventStreamingResult::PauseEventStreamingResult() : + ServiceResult() +{} + +PauseEventStreamingResult::PauseEventStreamingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PauseEventStreamingResult::~PauseEventStreamingResult() +{} + +void PauseEventStreamingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string PauseEventStreamingResult::getMessage()const +{ + return message_; +} + +bool PauseEventStreamingResult::getData()const +{ + return data_; +} + +bool PauseEventStreamingResult::getCode()const +{ + return code_; +} + +bool PauseEventStreamingResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/PutTargetsRequest.cc b/eventbridge/src/model/PutTargetsRequest.cc new file mode 100644 index 000000000..ba31ee0ea --- /dev/null +++ b/eventbridge/src/model/PutTargetsRequest.cc @@ -0,0 +1,76 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::PutTargetsRequest; + +PutTargetsRequest::PutTargetsRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "PutTargets") { + setMethod(HttpRequest::Method::Post); +} + +PutTargetsRequest::~PutTargetsRequest() {} + +std::string PutTargetsRequest::getClientToken() const { + return clientToken_; +} + +void PutTargetsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string PutTargetsRequest::getRuleName() const { + return ruleName_; +} + +void PutTargetsRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string PutTargetsRequest::getEventBusName() const { + return eventBusName_; +} + +void PutTargetsRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + +std::vector PutTargetsRequest::getTargets() const { + return targets_; +} + +void PutTargetsRequest::setTargets(const std::vector &targets) { + targets_ = targets; + for(int dep1 = 0; dep1 != targets.size(); dep1++) { + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Endpoint", targets[dep1].endpoint); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".PushRetryStrategy", targets[dep1].pushRetryStrategy); + for(int dep2 = 0; dep2 != targets[dep1].paramList.size(); dep2++) { + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".ParamList." + std::to_string(dep2 + 1) + ".Template", targets[dep1].paramList[dep2]._template); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".ParamList." + std::to_string(dep2 + 1) + ".ResourceKey", targets[dep1].paramList[dep2].resourceKey); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".ParamList." + std::to_string(dep2 + 1) + ".Form", targets[dep1].paramList[dep2].form); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".ParamList." + std::to_string(dep2 + 1) + ".Value", targets[dep1].paramList[dep2].value); + } + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Id", targets[dep1].id); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".DeadLetterQueue.Arn", targets[dep1].deadLetterQueue.arn); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Type", targets[dep1].type); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".ErrorsTolerance", targets[dep1].errorsTolerance); + } +} + diff --git a/eventbridge/src/model/PutTargetsResult.cc b/eventbridge/src/model/PutTargetsResult.cc new file mode 100644 index 000000000..db74ef3a3 --- /dev/null +++ b/eventbridge/src/model/PutTargetsResult.cc @@ -0,0 +1,85 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +PutTargetsResult::PutTargetsResult() : + ServiceResult() +{} + +PutTargetsResult::PutTargetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutTargetsResult::~PutTargetsResult() +{} + +void PutTargetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ErrorEntriesCount"].isNull()) + data_.errorEntriesCount = std::stoi(dataNode["ErrorEntriesCount"].asString()); + auto allErrorEntriesNode = dataNode["ErrorEntries"]["ErrorEntriesItem"]; + for (auto dataNodeErrorEntriesErrorEntriesItem : allErrorEntriesNode) + { + Data::ErrorEntriesItem errorEntriesItemObject; + if(!dataNodeErrorEntriesErrorEntriesItem["ErrorMessage"].isNull()) + errorEntriesItemObject.errorMessage = dataNodeErrorEntriesErrorEntriesItem["ErrorMessage"].asString(); + if(!dataNodeErrorEntriesErrorEntriesItem["ErrorCode"].isNull()) + errorEntriesItemObject.errorCode = dataNodeErrorEntriesErrorEntriesItem["ErrorCode"].asString(); + if(!dataNodeErrorEntriesErrorEntriesItem["EntryId"].isNull()) + errorEntriesItemObject.entryId = dataNodeErrorEntriesErrorEntriesItem["EntryId"].asString(); + data_.errorEntries.push_back(errorEntriesItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string PutTargetsResult::getMessage()const +{ + return message_; +} + +PutTargetsResult::Data PutTargetsResult::getData()const +{ + return data_; +} + +std::string PutTargetsResult::getCode()const +{ + return code_; +} + +bool PutTargetsResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/QueryEventRequest.cc b/eventbridge/src/model/QueryEventRequest.cc new file mode 100644 index 000000000..f8f363128 --- /dev/null +++ b/eventbridge/src/model/QueryEventRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::QueryEventRequest; + +QueryEventRequest::QueryEventRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "QueryEvent") { + setMethod(HttpRequest::Method::Post); +} + +QueryEventRequest::~QueryEventRequest() {} + +std::string QueryEventRequest::getEventId() const { + return eventId_; +} + +void QueryEventRequest::setEventId(const std::string &eventId) { + eventId_ = eventId; + setParameter(std::string("EventId"), eventId); +} + +std::string QueryEventRequest::getEventBusName() const { + return eventBusName_; +} + +void QueryEventRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + +std::string QueryEventRequest::getEventSource() const { + return eventSource_; +} + +void QueryEventRequest::setEventSource(const std::string &eventSource) { + eventSource_ = eventSource; + setParameter(std::string("EventSource"), eventSource); +} + diff --git a/eventbridge/src/model/QueryEventResult.cc b/eventbridge/src/model/QueryEventResult.cc new file mode 100644 index 000000000..1bf9008ab --- /dev/null +++ b/eventbridge/src/model/QueryEventResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +QueryEventResult::QueryEventResult() : + ServiceResult() +{} + +QueryEventResult::QueryEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryEventResult::~QueryEventResult() +{} + +void QueryEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryEventResult::getMessage()const +{ + return message_; +} + +std::string QueryEventResult::getData()const +{ + return data_; +} + +std::string QueryEventResult::getCode()const +{ + return code_; +} + +bool QueryEventResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/QueryEventTracesRequest.cc b/eventbridge/src/model/QueryEventTracesRequest.cc new file mode 100644 index 000000000..8320c2c6a --- /dev/null +++ b/eventbridge/src/model/QueryEventTracesRequest.cc @@ -0,0 +1,45 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::QueryEventTracesRequest; + +QueryEventTracesRequest::QueryEventTracesRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "QueryEventTraces") { + setMethod(HttpRequest::Method::Post); +} + +QueryEventTracesRequest::~QueryEventTracesRequest() {} + +std::string QueryEventTracesRequest::getEventId() const { + return eventId_; +} + +void QueryEventTracesRequest::setEventId(const std::string &eventId) { + eventId_ = eventId; + setParameter(std::string("EventId"), eventId); +} + +std::string QueryEventTracesRequest::getEventBusName() const { + return eventBusName_; +} + +void QueryEventTracesRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + diff --git a/eventbridge/src/model/QueryEventTracesResult.cc b/eventbridge/src/model/QueryEventTracesResult.cc new file mode 100644 index 000000000..744de4c4d --- /dev/null +++ b/eventbridge/src/model/QueryEventTracesResult.cc @@ -0,0 +1,100 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +QueryEventTracesResult::QueryEventTracesResult() : + ServiceResult() +{} + +QueryEventTracesResult::QueryEventTracesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryEventTracesResult::~QueryEventTracesResult() +{} + +void QueryEventTracesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Action"].isNull()) + dataObject.action = valueDataDataItem["Action"].asString(); + if(!valueDataDataItem["ReceivedTime"].isNull()) + dataObject.receivedTime = std::stol(valueDataDataItem["ReceivedTime"].asString()); + if(!valueDataDataItem["RuleMatchingTime"].isNull()) + dataObject.ruleMatchingTime = valueDataDataItem["RuleMatchingTime"].asString(); + if(!valueDataDataItem["ActionTime"].isNull()) + dataObject.actionTime = std::stol(valueDataDataItem["ActionTime"].asString()); + if(!valueDataDataItem["NotifyStatus"].isNull()) + dataObject.notifyStatus = valueDataDataItem["NotifyStatus"].asString(); + if(!valueDataDataItem["RuleName"].isNull()) + dataObject.ruleName = valueDataDataItem["RuleName"].asString(); + if(!valueDataDataItem["EventId"].isNull()) + dataObject.eventId = valueDataDataItem["EventId"].asString(); + if(!valueDataDataItem["EventBusName"].isNull()) + dataObject.eventBusName = valueDataDataItem["EventBusName"].asString(); + if(!valueDataDataItem["Endpoint"].isNull()) + dataObject.endpoint = valueDataDataItem["Endpoint"].asString(); + if(!valueDataDataItem["NotifyLatency"].isNull()) + dataObject.notifyLatency = valueDataDataItem["NotifyLatency"].asString(); + if(!valueDataDataItem["NotifyTime"].isNull()) + dataObject.notifyTime = std::stol(valueDataDataItem["NotifyTime"].asString()); + if(!valueDataDataItem["EventSource"].isNull()) + dataObject.eventSource = valueDataDataItem["EventSource"].asString(); + data_.push_back(dataObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryEventTracesResult::getMessage()const +{ + return message_; +} + +std::vector QueryEventTracesResult::getData()const +{ + return data_; +} + +std::string QueryEventTracesResult::getCode()const +{ + return code_; +} + +bool QueryEventTracesResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/QueryTracedEventByEventIdRequest.cc b/eventbridge/src/model/QueryTracedEventByEventIdRequest.cc new file mode 100644 index 000000000..9247c811e --- /dev/null +++ b/eventbridge/src/model/QueryTracedEventByEventIdRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::QueryTracedEventByEventIdRequest; + +QueryTracedEventByEventIdRequest::QueryTracedEventByEventIdRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "QueryTracedEventByEventId") { + setMethod(HttpRequest::Method::Post); +} + +QueryTracedEventByEventIdRequest::~QueryTracedEventByEventIdRequest() {} + +std::string QueryTracedEventByEventIdRequest::getEventId() const { + return eventId_; +} + +void QueryTracedEventByEventIdRequest::setEventId(const std::string &eventId) { + eventId_ = eventId; + setParameter(std::string("EventId"), eventId); +} + +std::string QueryTracedEventByEventIdRequest::getEventBusName() const { + return eventBusName_; +} + +void QueryTracedEventByEventIdRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + +std::string QueryTracedEventByEventIdRequest::getEventSource() const { + return eventSource_; +} + +void QueryTracedEventByEventIdRequest::setEventSource(const std::string &eventSource) { + eventSource_ = eventSource; + setParameter(std::string("EventSource"), eventSource); +} + diff --git a/eventbridge/src/model/QueryTracedEventByEventIdResult.cc b/eventbridge/src/model/QueryTracedEventByEventIdResult.cc new file mode 100644 index 000000000..edd928d43 --- /dev/null +++ b/eventbridge/src/model/QueryTracedEventByEventIdResult.cc @@ -0,0 +1,96 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +QueryTracedEventByEventIdResult::QueryTracedEventByEventIdResult() : + ServiceResult() +{} + +QueryTracedEventByEventIdResult::QueryTracedEventByEventIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTracedEventByEventIdResult::~QueryTracedEventByEventIdResult() +{} + +void QueryTracedEventByEventIdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["NextToken"].isNull()) + dataObject.nextToken = valueDataDataItem["NextToken"].asString(); + if(!valueDataDataItem["Total"].isNull()) + dataObject.total = std::stoi(valueDataDataItem["Total"].asString()); + auto allEventsNode = valueDataDataItem["Events"]["EventsItem"]; + for (auto valueDataDataItemEventsEventsItem : allEventsNode) + { + DataItem::EventsItem eventsObject; + if(!valueDataDataItemEventsEventsItem["EventId"].isNull()) + eventsObject.eventId = valueDataDataItemEventsEventsItem["EventId"].asString(); + if(!valueDataDataItemEventsEventsItem["EventBusName"].isNull()) + eventsObject.eventBusName = valueDataDataItemEventsEventsItem["EventBusName"].asString(); + if(!valueDataDataItemEventsEventsItem["EventReceivedTime"].isNull()) + eventsObject.eventReceivedTime = std::stol(valueDataDataItemEventsEventsItem["EventReceivedTime"].asString()); + if(!valueDataDataItemEventsEventsItem["EventSource"].isNull()) + eventsObject.eventSource = valueDataDataItemEventsEventsItem["EventSource"].asString(); + if(!valueDataDataItemEventsEventsItem["EventType"].isNull()) + eventsObject.eventType = valueDataDataItemEventsEventsItem["EventType"].asString(); + dataObject.events.push_back(eventsObject); + } + data_.push_back(dataObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryTracedEventByEventIdResult::getMessage()const +{ + return message_; +} + +std::vector QueryTracedEventByEventIdResult::getData()const +{ + return data_; +} + +std::string QueryTracedEventByEventIdResult::getCode()const +{ + return code_; +} + +bool QueryTracedEventByEventIdResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/QueryTracedEventsRequest.cc b/eventbridge/src/model/QueryTracedEventsRequest.cc new file mode 100644 index 000000000..6634c20ef --- /dev/null +++ b/eventbridge/src/model/QueryTracedEventsRequest.cc @@ -0,0 +1,99 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::QueryTracedEventsRequest; + +QueryTracedEventsRequest::QueryTracedEventsRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "QueryTracedEvents") { + setMethod(HttpRequest::Method::Post); +} + +QueryTracedEventsRequest::~QueryTracedEventsRequest() {} + +std::string QueryTracedEventsRequest::getMatchedRule() const { + return matchedRule_; +} + +void QueryTracedEventsRequest::setMatchedRule(const std::string &matchedRule) { + matchedRule_ = matchedRule; + setParameter(std::string("MatchedRule"), matchedRule); +} + +long QueryTracedEventsRequest::getStartTime() const { + return startTime_; +} + +void QueryTracedEventsRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string QueryTracedEventsRequest::getEventBusName() const { + return eventBusName_; +} + +void QueryTracedEventsRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + +std::string QueryTracedEventsRequest::getEventSource() const { + return eventSource_; +} + +void QueryTracedEventsRequest::setEventSource(const std::string &eventSource) { + eventSource_ = eventSource; + setParameter(std::string("EventSource"), eventSource); +} + +std::string QueryTracedEventsRequest::getNextToken() const { + return nextToken_; +} + +void QueryTracedEventsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int QueryTracedEventsRequest::getLimit() const { + return limit_; +} + +void QueryTracedEventsRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + +long QueryTracedEventsRequest::getEndTime() const { + return endTime_; +} + +void QueryTracedEventsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +std::string QueryTracedEventsRequest::getEventType() const { + return eventType_; +} + +void QueryTracedEventsRequest::setEventType(const std::string &eventType) { + eventType_ = eventType; + setParameter(std::string("EventType"), eventType); +} + diff --git a/eventbridge/src/model/QueryTracedEventsResult.cc b/eventbridge/src/model/QueryTracedEventsResult.cc new file mode 100644 index 000000000..d1cdab8cb --- /dev/null +++ b/eventbridge/src/model/QueryTracedEventsResult.cc @@ -0,0 +1,91 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +QueryTracedEventsResult::QueryTracedEventsResult() : + ServiceResult() +{} + +QueryTracedEventsResult::QueryTracedEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryTracedEventsResult::~QueryTracedEventsResult() +{} + +void QueryTracedEventsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["NextToken"].isNull()) + data_.nextToken = dataNode["NextToken"].asString(); + if(!dataNode["Total"].isNull()) + data_.total = std::stoi(dataNode["Total"].asString()); + auto allEventsNode = dataNode["Events"]["EventsItem"]; + for (auto dataNodeEventsEventsItem : allEventsNode) + { + Data::EventsItem eventsItemObject; + if(!dataNodeEventsEventsItem["EventId"].isNull()) + eventsItemObject.eventId = dataNodeEventsEventsItem["EventId"].asString(); + if(!dataNodeEventsEventsItem["EventBusName"].isNull()) + eventsItemObject.eventBusName = dataNodeEventsEventsItem["EventBusName"].asString(); + if(!dataNodeEventsEventsItem["EventReceivedTime"].isNull()) + eventsItemObject.eventReceivedTime = std::stol(dataNodeEventsEventsItem["EventReceivedTime"].asString()); + if(!dataNodeEventsEventsItem["EventSource"].isNull()) + eventsItemObject.eventSource = dataNodeEventsEventsItem["EventSource"].asString(); + if(!dataNodeEventsEventsItem["EventType"].isNull()) + eventsItemObject.eventType = dataNodeEventsEventsItem["EventType"].asString(); + data_.events.push_back(eventsItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string QueryTracedEventsResult::getMessage()const +{ + return message_; +} + +QueryTracedEventsResult::Data QueryTracedEventsResult::getData()const +{ + return data_; +} + +std::string QueryTracedEventsResult::getCode()const +{ + return code_; +} + +bool QueryTracedEventsResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/StartEventStreamingRequest.cc b/eventbridge/src/model/StartEventStreamingRequest.cc new file mode 100644 index 000000000..2cb3ddd61 --- /dev/null +++ b/eventbridge/src/model/StartEventStreamingRequest.cc @@ -0,0 +1,36 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::StartEventStreamingRequest; + +StartEventStreamingRequest::StartEventStreamingRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "StartEventStreaming") { + setMethod(HttpRequest::Method::Post); +} + +StartEventStreamingRequest::~StartEventStreamingRequest() {} + +std::string StartEventStreamingRequest::getEventStreamingName() const { + return eventStreamingName_; +} + +void StartEventStreamingRequest::setEventStreamingName(const std::string &eventStreamingName) { + eventStreamingName_ = eventStreamingName; + setBodyParameter(std::string("EventStreamingName"), eventStreamingName); +} + diff --git a/eventbridge/src/model/StartEventStreamingResult.cc b/eventbridge/src/model/StartEventStreamingResult.cc new file mode 100644 index 000000000..76e34979d --- /dev/null +++ b/eventbridge/src/model/StartEventStreamingResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +StartEventStreamingResult::StartEventStreamingResult() : + ServiceResult() +{} + +StartEventStreamingResult::StartEventStreamingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartEventStreamingResult::~StartEventStreamingResult() +{} + +void StartEventStreamingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string StartEventStreamingResult::getMessage()const +{ + return message_; +} + +bool StartEventStreamingResult::getData()const +{ + return data_; +} + +std::string StartEventStreamingResult::getCode()const +{ + return code_; +} + +bool StartEventStreamingResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/TestEventPatternRequest.cc b/eventbridge/src/model/TestEventPatternRequest.cc new file mode 100644 index 000000000..76f757ae6 --- /dev/null +++ b/eventbridge/src/model/TestEventPatternRequest.cc @@ -0,0 +1,45 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::TestEventPatternRequest; + +TestEventPatternRequest::TestEventPatternRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "TestEventPattern") { + setMethod(HttpRequest::Method::Post); +} + +TestEventPatternRequest::~TestEventPatternRequest() {} + +std::string TestEventPatternRequest::getEventPattern() const { + return eventPattern_; +} + +void TestEventPatternRequest::setEventPattern(const std::string &eventPattern) { + eventPattern_ = eventPattern; + setBodyParameter(std::string("EventPattern"), eventPattern); +} + +std::string TestEventPatternRequest::getEvent() const { + return event_; +} + +void TestEventPatternRequest::setEvent(const std::string &event) { + event_ = event; + setBodyParameter(std::string("Event"), event); +} + diff --git a/eventbridge/src/model/TestEventPatternResult.cc b/eventbridge/src/model/TestEventPatternResult.cc new file mode 100644 index 000000000..fd5b5a5c9 --- /dev/null +++ b/eventbridge/src/model/TestEventPatternResult.cc @@ -0,0 +1,73 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +TestEventPatternResult::TestEventPatternResult() : + ServiceResult() +{} + +TestEventPatternResult::TestEventPatternResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TestEventPatternResult::~TestEventPatternResult() +{} + +void TestEventPatternResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Result"].isNull()) + data_.result = dataNode["Result"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string TestEventPatternResult::getMessage()const +{ + return message_; +} + +TestEventPatternResult::Data TestEventPatternResult::getData()const +{ + return data_; +} + +std::string TestEventPatternResult::getCode()const +{ + return code_; +} + +bool TestEventPatternResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/UpdateApiDestinationRequest.cc b/eventbridge/src/model/UpdateApiDestinationRequest.cc new file mode 100644 index 000000000..a208d2903 --- /dev/null +++ b/eventbridge/src/model/UpdateApiDestinationRequest.cc @@ -0,0 +1,89 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::UpdateApiDestinationRequest; + +UpdateApiDestinationRequest::UpdateApiDestinationRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "UpdateApiDestination") { + setMethod(HttpRequest::Method::Post); +} + +UpdateApiDestinationRequest::~UpdateApiDestinationRequest() {} + +std::string UpdateApiDestinationRequest::getClientToken() const { + return clientToken_; +} + +void UpdateApiDestinationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateApiDestinationRequest::getDescription() const { + return description_; +} + +void UpdateApiDestinationRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdateApiDestinationRequest::getApiDestinationName() const { + return apiDestinationName_; +} + +void UpdateApiDestinationRequest::setApiDestinationName(const std::string &apiDestinationName) { + apiDestinationName_ = apiDestinationName; + setParameter(std::string("ApiDestinationName"), apiDestinationName); +} + +std::string UpdateApiDestinationRequest::getConnectionName() const { + return connectionName_; +} + +void UpdateApiDestinationRequest::setConnectionName(const std::string &connectionName) { + connectionName_ = connectionName; + setParameter(std::string("ConnectionName"), connectionName); +} + +UpdateApiDestinationRequest::HttpApiParameters UpdateApiDestinationRequest::getHttpApiParameters() const { + return httpApiParameters_; +} + +void UpdateApiDestinationRequest::setHttpApiParameters(const UpdateApiDestinationRequest::HttpApiParameters &httpApiParameters) { + httpApiParameters_ = httpApiParameters; + setParameter(std::string("HttpApiParameters") + ".Endpoint", httpApiParameters.endpoint); + setParameter(std::string("HttpApiParameters") + ".Method", httpApiParameters.method); + for(int dep1 = 0; dep1 != httpApiParameters.apiParameters.size(); dep1++) { + setParameter(std::string("HttpApiParameters") + ".ApiParameters." + std::to_string(dep1 + 1) + ".In", httpApiParameters.apiParameters[dep1].in); + setParameter(std::string("HttpApiParameters") + ".ApiParameters." + std::to_string(dep1 + 1) + ".Name", httpApiParameters.apiParameters[dep1].name); + setParameter(std::string("HttpApiParameters") + ".ApiParameters." + std::to_string(dep1 + 1) + ".Description", httpApiParameters.apiParameters[dep1].description); + setParameter(std::string("HttpApiParameters") + ".ApiParameters." + std::to_string(dep1 + 1) + ".DefaultValue", httpApiParameters.apiParameters[dep1].defaultValue); + setParameter(std::string("HttpApiParameters") + ".ApiParameters." + std::to_string(dep1 + 1) + ".Type", httpApiParameters.apiParameters[dep1].type); + } +} + +long UpdateApiDestinationRequest::getInvocationRateLimitPerSecond() const { + return invocationRateLimitPerSecond_; +} + +void UpdateApiDestinationRequest::setInvocationRateLimitPerSecond(long invocationRateLimitPerSecond) { + invocationRateLimitPerSecond_ = invocationRateLimitPerSecond; + setParameter(std::string("InvocationRateLimitPerSecond"), std::to_string(invocationRateLimitPerSecond)); +} + diff --git a/eventbridge/src/model/UpdateApiDestinationResult.cc b/eventbridge/src/model/UpdateApiDestinationResult.cc new file mode 100644 index 000000000..951564e59 --- /dev/null +++ b/eventbridge/src/model/UpdateApiDestinationResult.cc @@ -0,0 +1,65 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +UpdateApiDestinationResult::UpdateApiDestinationResult() : + ServiceResult() +{} + +UpdateApiDestinationResult::UpdateApiDestinationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateApiDestinationResult::~UpdateApiDestinationResult() +{} + +void UpdateApiDestinationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["ApiDestinationName"].isNull()) + apiDestinationName_ = value["ApiDestinationName"].asString(); + +} + +std::string UpdateApiDestinationResult::getMessage()const +{ + return message_; +} + +std::string UpdateApiDestinationResult::getCode()const +{ + return code_; +} + +std::string UpdateApiDestinationResult::getApiDestinationName()const +{ + return apiDestinationName_; +} + diff --git a/eventbridge/src/model/UpdateConnectionRequest.cc b/eventbridge/src/model/UpdateConnectionRequest.cc new file mode 100644 index 000000000..b4a31043b --- /dev/null +++ b/eventbridge/src/model/UpdateConnectionRequest.cc @@ -0,0 +1,104 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::UpdateConnectionRequest; + +UpdateConnectionRequest::UpdateConnectionRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "UpdateConnection") { + setMethod(HttpRequest::Method::Post); +} + +UpdateConnectionRequest::~UpdateConnectionRequest() {} + +std::string UpdateConnectionRequest::getConnectionName() const { + return connectionName_; +} + +void UpdateConnectionRequest::setConnectionName(const std::string &connectionName) { + connectionName_ = connectionName; + setParameter(std::string("ConnectionName"), connectionName); +} + +std::string UpdateConnectionRequest::getDescription() const { + return description_; +} + +void UpdateConnectionRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +UpdateConnectionRequest::NetworkParameters UpdateConnectionRequest::getNetworkParameters() const { + return networkParameters_; +} + +void UpdateConnectionRequest::setNetworkParameters(const UpdateConnectionRequest::NetworkParameters &networkParameters) { + networkParameters_ = networkParameters; + setParameter(std::string("NetworkParameters") + ".VpcId", networkParameters.vpcId); + setParameter(std::string("NetworkParameters") + ".SecurityGroupId", networkParameters.securityGroupId); + setParameter(std::string("NetworkParameters") + ".NetworkType", networkParameters.networkType); + setParameter(std::string("NetworkParameters") + ".VswitcheId", networkParameters.vswitcheId); +} + +UpdateConnectionRequest::AuthParameters UpdateConnectionRequest::getAuthParameters() const { + return authParameters_; +} + +void UpdateConnectionRequest::setAuthParameters(const UpdateConnectionRequest::AuthParameters &authParameters) { + authParameters_ = authParameters; + setParameter(std::string("AuthParameters") + ".BasicAuthParameters.Password", authParameters.basicAuthParameters.password); + setParameter(std::string("AuthParameters") + ".BasicAuthParameters.Username", authParameters.basicAuthParameters.username); + setParameter(std::string("AuthParameters") + ".ApiKeyAuthParameters.ApiKeyName", authParameters.apiKeyAuthParameters.apiKeyName); + setParameter(std::string("AuthParameters") + ".ApiKeyAuthParameters.ApiKeyValue", authParameters.apiKeyAuthParameters.apiKeyValue); + setParameter(std::string("AuthParameters") + ".AuthorizationType", authParameters.authorizationType); + for(int dep1 = 0; dep1 != authParameters.invocationHttpParameters.bodyParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.invocationHttpParameters.bodyParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.invocationHttpParameters.bodyParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.invocationHttpParameters.bodyParameters[dep1].key); + } + for(int dep1 = 0; dep1 != authParameters.invocationHttpParameters.headerParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.invocationHttpParameters.headerParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.invocationHttpParameters.headerParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.invocationHttpParameters.headerParameters[dep1].key); + } + for(int dep1 = 0; dep1 != authParameters.invocationHttpParameters.queryStringParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.invocationHttpParameters.queryStringParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.invocationHttpParameters.queryStringParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".InvocationHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.invocationHttpParameters.queryStringParameters[dep1].key); + } + setParameter(std::string("AuthParameters") + ".OAuthParameters.ClientParameters.ClientID", authParameters.oAuthParameters.clientParameters.clientID); + setParameter(std::string("AuthParameters") + ".OAuthParameters.ClientParameters.ClientSecret", authParameters.oAuthParameters.clientParameters.clientSecret); + setParameter(std::string("AuthParameters") + ".OAuthParameters.AuthorizationEndpoint", authParameters.oAuthParameters.authorizationEndpoint); + setParameter(std::string("AuthParameters") + ".OAuthParameters.HttpMethod", authParameters.oAuthParameters.httpMethod); + for(int dep1 = 0; dep1 != authParameters.oAuthParameters.oAuthHttpParameters.bodyParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.oAuthParameters.oAuthHttpParameters.bodyParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.oAuthParameters.oAuthHttpParameters.bodyParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.BodyParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.oAuthParameters.oAuthHttpParameters.bodyParameters[dep1].key); + } + for(int dep1 = 0; dep1 != authParameters.oAuthParameters.oAuthHttpParameters.headerParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.oAuthParameters.oAuthHttpParameters.headerParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.oAuthParameters.oAuthHttpParameters.headerParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.HeaderParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.oAuthParameters.oAuthHttpParameters.headerParameters[dep1].key); + } + for(int dep1 = 0; dep1 != authParameters.oAuthParameters.oAuthHttpParameters.queryStringParameters.size(); dep1++) { + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".IsValueSecret", authParameters.oAuthParameters.oAuthHttpParameters.queryStringParameters[dep1].isValueSecret); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".Value", authParameters.oAuthParameters.oAuthHttpParameters.queryStringParameters[dep1].value); + setParameter(std::string("AuthParameters") + ".OAuthParameters.OAuthHttpParameters.QueryStringParameters." + std::to_string(dep1 + 1) + ".Key", authParameters.oAuthParameters.oAuthHttpParameters.queryStringParameters[dep1].key); + } +} + diff --git a/eventbridge/src/model/UpdateConnectionResult.cc b/eventbridge/src/model/UpdateConnectionResult.cc new file mode 100644 index 000000000..1f180414c --- /dev/null +++ b/eventbridge/src/model/UpdateConnectionResult.cc @@ -0,0 +1,58 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +UpdateConnectionResult::UpdateConnectionResult() : + ServiceResult() +{} + +UpdateConnectionResult::UpdateConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateConnectionResult::~UpdateConnectionResult() +{} + +void UpdateConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string UpdateConnectionResult::getMessage()const +{ + return message_; +} + +std::string UpdateConnectionResult::getCode()const +{ + return code_; +} + diff --git a/eventbridge/src/model/UpdateEventBusRequest.cc b/eventbridge/src/model/UpdateEventBusRequest.cc new file mode 100644 index 000000000..6f80fadb5 --- /dev/null +++ b/eventbridge/src/model/UpdateEventBusRequest.cc @@ -0,0 +1,45 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::UpdateEventBusRequest; + +UpdateEventBusRequest::UpdateEventBusRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "UpdateEventBus") { + setMethod(HttpRequest::Method::Post); +} + +UpdateEventBusRequest::~UpdateEventBusRequest() {} + +std::string UpdateEventBusRequest::getDescription() const { + return description_; +} + +void UpdateEventBusRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdateEventBusRequest::getEventBusName() const { + return eventBusName_; +} + +void UpdateEventBusRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + diff --git a/eventbridge/src/model/UpdateEventBusResult.cc b/eventbridge/src/model/UpdateEventBusResult.cc new file mode 100644 index 000000000..62b5d20c7 --- /dev/null +++ b/eventbridge/src/model/UpdateEventBusResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +UpdateEventBusResult::UpdateEventBusResult() : + ServiceResult() +{} + +UpdateEventBusResult::UpdateEventBusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateEventBusResult::~UpdateEventBusResult() +{} + +void UpdateEventBusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateEventBusResult::getMessage()const +{ + return message_; +} + +bool UpdateEventBusResult::getData()const +{ + return data_; +} + +std::string UpdateEventBusResult::getCode()const +{ + return code_; +} + +bool UpdateEventBusResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/UpdateEventSourceRequest.cc b/eventbridge/src/model/UpdateEventSourceRequest.cc new file mode 100644 index 000000000..e7fc21c0e --- /dev/null +++ b/eventbridge/src/model/UpdateEventSourceRequest.cc @@ -0,0 +1,190 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::UpdateEventSourceRequest; + +UpdateEventSourceRequest::UpdateEventSourceRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "UpdateEventSource") { + setMethod(HttpRequest::Method::Post); +} + +UpdateEventSourceRequest::~UpdateEventSourceRequest() {} + +std::string UpdateEventSourceRequest::getDescription() const { + return description_; +} + +void UpdateEventSourceRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateEventSourceRequest::getEventBusName() const { + return eventBusName_; +} + +void UpdateEventSourceRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setBodyParameter(std::string("EventBusName"), eventBusName); +} + +UpdateEventSourceRequest::SourceMNSParameters UpdateEventSourceRequest::getSourceMNSParameters() const { + return sourceMNSParameters_; +} + +void UpdateEventSourceRequest::setSourceMNSParameters(const UpdateEventSourceRequest::SourceMNSParameters &sourceMNSParameters) { + sourceMNSParameters_ = sourceMNSParameters; + setBodyParameter(std::string("SourceMNSParameters") + ".QueueName", sourceMNSParameters.queueName); + setBodyParameter(std::string("SourceMNSParameters") + ".RegionId", sourceMNSParameters.regionId); + setBodyParameter(std::string("SourceMNSParameters") + ".IsBase64Decode", sourceMNSParameters.isBase64Decode ? "true" : "false"); +} + +bool UpdateEventSourceRequest::getLinkedExternalSource() const { + return linkedExternalSource_; +} + +void UpdateEventSourceRequest::setLinkedExternalSource(bool linkedExternalSource) { + linkedExternalSource_ = linkedExternalSource; + setBodyParameter(std::string("LinkedExternalSource"), linkedExternalSource ? "true" : "false"); +} + +std::string UpdateEventSourceRequest::getExternalSourceType() const { + return externalSourceType_; +} + +void UpdateEventSourceRequest::setExternalSourceType(const std::string &externalSourceType) { + externalSourceType_ = externalSourceType; + setBodyParameter(std::string("ExternalSourceType"), externalSourceType); +} + +std::map UpdateEventSourceRequest::getExternalSourceConfig() const { + return externalSourceConfig_; +} + +void UpdateEventSourceRequest::setExternalSourceConfig(const std::map &externalSourceConfig) { + externalSourceConfig_ = externalSourceConfig; + for(auto const &iter1 : externalSourceConfig) { + setBodyParameter(std::string("ExternalSourceConfig") + "." + iter1.first, iter1.second); + } +} + +UpdateEventSourceRequest::SourceRabbitMQParameters UpdateEventSourceRequest::getSourceRabbitMQParameters() const { + return sourceRabbitMQParameters_; +} + +void UpdateEventSourceRequest::setSourceRabbitMQParameters(const UpdateEventSourceRequest::SourceRabbitMQParameters &sourceRabbitMQParameters) { + sourceRabbitMQParameters_ = sourceRabbitMQParameters; + setBodyParameter(std::string("SourceRabbitMQParameters") + ".QueueName", sourceRabbitMQParameters.queueName); + setBodyParameter(std::string("SourceRabbitMQParameters") + ".VirtualHostName", sourceRabbitMQParameters.virtualHostName); + setBodyParameter(std::string("SourceRabbitMQParameters") + ".InstanceId", sourceRabbitMQParameters.instanceId); + setBodyParameter(std::string("SourceRabbitMQParameters") + ".RegionId", sourceRabbitMQParameters.regionId); +} + +UpdateEventSourceRequest::SourceRocketMQParameters UpdateEventSourceRequest::getSourceRocketMQParameters() const { + return sourceRocketMQParameters_; +} + +void UpdateEventSourceRequest::setSourceRocketMQParameters(const UpdateEventSourceRequest::SourceRocketMQParameters &sourceRocketMQParameters) { + sourceRocketMQParameters_ = sourceRocketMQParameters; + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceSecurityGroupId", sourceRocketMQParameters.instanceSecurityGroupId); + setBodyParameter(std::string("SourceRocketMQParameters") + ".Offset", sourceRocketMQParameters.offset); + setBodyParameter(std::string("SourceRocketMQParameters") + ".GroupID", sourceRocketMQParameters.groupID); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceUsername", sourceRocketMQParameters.instanceUsername); + setBodyParameter(std::string("SourceRocketMQParameters") + ".AuthType", sourceRocketMQParameters.authType); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstancePassword", sourceRocketMQParameters.instancePassword); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceNetwork", sourceRocketMQParameters.instanceNetwork); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceVSwitchIds", sourceRocketMQParameters.instanceVSwitchIds); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceId", sourceRocketMQParameters.instanceId); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceVpcId", sourceRocketMQParameters.instanceVpcId); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceEndpoint", sourceRocketMQParameters.instanceEndpoint); + setBodyParameter(std::string("SourceRocketMQParameters") + ".RegionId", sourceRocketMQParameters.regionId); + setBodyParameter(std::string("SourceRocketMQParameters") + ".Topic", sourceRocketMQParameters.topic); + setBodyParameter(std::string("SourceRocketMQParameters") + ".InstanceType", sourceRocketMQParameters.instanceType); + setBodyParameter(std::string("SourceRocketMQParameters") + ".Tag", sourceRocketMQParameters.tag); + setBodyParameter(std::string("SourceRocketMQParameters") + ".Timestamp", std::to_string(sourceRocketMQParameters.timestamp)); +} + +UpdateEventSourceRequest::SourceSLSParameters UpdateEventSourceRequest::getSourceSLSParameters() const { + return sourceSLSParameters_; +} + +void UpdateEventSourceRequest::setSourceSLSParameters(const UpdateEventSourceRequest::SourceSLSParameters &sourceSLSParameters) { + sourceSLSParameters_ = sourceSLSParameters; + setBodyParameter(std::string("SourceSLSParameters") + ".RoleName", sourceSLSParameters.roleName); + setBodyParameter(std::string("SourceSLSParameters") + ".Project", sourceSLSParameters.project); + setBodyParameter(std::string("SourceSLSParameters") + ".LogStore", sourceSLSParameters.logStore); + setBodyParameter(std::string("SourceSLSParameters") + ".ConsumePosition", sourceSLSParameters.consumePosition); +} + +UpdateEventSourceRequest::SourceScheduledEventParameters UpdateEventSourceRequest::getSourceScheduledEventParameters() const { + return sourceScheduledEventParameters_; +} + +void UpdateEventSourceRequest::setSourceScheduledEventParameters(const UpdateEventSourceRequest::SourceScheduledEventParameters &sourceScheduledEventParameters) { + sourceScheduledEventParameters_ = sourceScheduledEventParameters; + setBodyParameter(std::string("SourceScheduledEventParameters") + ".Schedule", sourceScheduledEventParameters.schedule); + setBodyParameter(std::string("SourceScheduledEventParameters") + ".UserData", sourceScheduledEventParameters.userData); + setBodyParameter(std::string("SourceScheduledEventParameters") + ".TimeZone", sourceScheduledEventParameters.timeZone); +} + +UpdateEventSourceRequest::SourceKafkaParameters UpdateEventSourceRequest::getSourceKafkaParameters() const { + return sourceKafkaParameters_; +} + +void UpdateEventSourceRequest::setSourceKafkaParameters(const UpdateEventSourceRequest::SourceKafkaParameters &sourceKafkaParameters) { + sourceKafkaParameters_ = sourceKafkaParameters; + setBodyParameter(std::string("SourceKafkaParameters") + ".InstanceId", sourceKafkaParameters.instanceId); + setBodyParameter(std::string("SourceKafkaParameters") + ".ConsumerGroup", sourceKafkaParameters.consumerGroup); + setBodyParameter(std::string("SourceKafkaParameters") + ".RegionId", sourceKafkaParameters.regionId); + setBodyParameter(std::string("SourceKafkaParameters") + ".VSwitchIds", sourceKafkaParameters.vSwitchIds); + setBodyParameter(std::string("SourceKafkaParameters") + ".VpcId", sourceKafkaParameters.vpcId); + setBodyParameter(std::string("SourceKafkaParameters") + ".SecurityGroupId", sourceKafkaParameters.securityGroupId); + setBodyParameter(std::string("SourceKafkaParameters") + ".Topic", sourceKafkaParameters.topic); + setBodyParameter(std::string("SourceKafkaParameters") + ".OffsetReset", sourceKafkaParameters.offsetReset); + setBodyParameter(std::string("SourceKafkaParameters") + ".MaximumTasks", std::to_string(sourceKafkaParameters.maximumTasks)); + setBodyParameter(std::string("SourceKafkaParameters") + ".Network", sourceKafkaParameters.network); +} + +UpdateEventSourceRequest::SourceHttpEventParameters UpdateEventSourceRequest::getSourceHttpEventParameters() const { + return sourceHttpEventParameters_; +} + +void UpdateEventSourceRequest::setSourceHttpEventParameters(const UpdateEventSourceRequest::SourceHttpEventParameters &sourceHttpEventParameters) { + sourceHttpEventParameters_ = sourceHttpEventParameters; + for(int dep1 = 0; dep1 != sourceHttpEventParameters.referer.size(); dep1++) { + setBodyParameter(std::string("SourceHttpEventParameters") + ".Referer." + std::to_string(dep1 + 1), sourceHttpEventParameters.referer[dep1]); + } + for(int dep1 = 0; dep1 != sourceHttpEventParameters.method.size(); dep1++) { + setBodyParameter(std::string("SourceHttpEventParameters") + ".Method." + std::to_string(dep1 + 1), sourceHttpEventParameters.method[dep1]); + } + for(int dep1 = 0; dep1 != sourceHttpEventParameters.ip.size(); dep1++) { + setBodyParameter(std::string("SourceHttpEventParameters") + ".Ip." + std::to_string(dep1 + 1), sourceHttpEventParameters.ip[dep1]); + } + setBodyParameter(std::string("SourceHttpEventParameters") + ".SecurityConfig", sourceHttpEventParameters.securityConfig); + setBodyParameter(std::string("SourceHttpEventParameters") + ".Type", sourceHttpEventParameters.type); +} + +std::string UpdateEventSourceRequest::getEventSourceName() const { + return eventSourceName_; +} + +void UpdateEventSourceRequest::setEventSourceName(const std::string &eventSourceName) { + eventSourceName_ = eventSourceName; + setBodyParameter(std::string("EventSourceName"), eventSourceName); +} + diff --git a/eventbridge/src/model/UpdateEventSourceResult.cc b/eventbridge/src/model/UpdateEventSourceResult.cc new file mode 100644 index 000000000..cc962c3b5 --- /dev/null +++ b/eventbridge/src/model/UpdateEventSourceResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +UpdateEventSourceResult::UpdateEventSourceResult() : + ServiceResult() +{} + +UpdateEventSourceResult::UpdateEventSourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateEventSourceResult::~UpdateEventSourceResult() +{} + +void UpdateEventSourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateEventSourceResult::getMessage()const +{ + return message_; +} + +bool UpdateEventSourceResult::getData()const +{ + return data_; +} + +std::string UpdateEventSourceResult::getCode()const +{ + return code_; +} + +bool UpdateEventSourceResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/UpdateEventStreamingRequest.cc b/eventbridge/src/model/UpdateEventStreamingRequest.cc new file mode 100644 index 000000000..1ef13ecf1 --- /dev/null +++ b/eventbridge/src/model/UpdateEventStreamingRequest.cc @@ -0,0 +1,296 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::UpdateEventStreamingRequest; + +UpdateEventStreamingRequest::UpdateEventStreamingRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "UpdateEventStreaming") { + setMethod(HttpRequest::Method::Post); +} + +UpdateEventStreamingRequest::~UpdateEventStreamingRequest() {} + +UpdateEventStreamingRequest::Sink UpdateEventStreamingRequest::getSink() const { + return sink_; +} + +void UpdateEventStreamingRequest::setSink(const UpdateEventStreamingRequest::Sink &sink) { + sink_ = sink; + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.RoutingKey.Template", sink.sinkRabbitMQParameters.routingKey._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.RoutingKey.Form", sink.sinkRabbitMQParameters.routingKey.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.RoutingKey.Value", sink.sinkRabbitMQParameters.routingKey.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.QueueName.Template", sink.sinkRabbitMQParameters.queueName._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.QueueName.Form", sink.sinkRabbitMQParameters.queueName.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.QueueName.Value", sink.sinkRabbitMQParameters.queueName.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.VirtualHostName.Template", sink.sinkRabbitMQParameters.virtualHostName._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.VirtualHostName.Form", sink.sinkRabbitMQParameters.virtualHostName.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.VirtualHostName.Value", sink.sinkRabbitMQParameters.virtualHostName.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.InstanceId.Template", sink.sinkRabbitMQParameters.instanceId._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.InstanceId.Form", sink.sinkRabbitMQParameters.instanceId.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.InstanceId.Value", sink.sinkRabbitMQParameters.instanceId.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.TargetType.Template", sink.sinkRabbitMQParameters.targetType._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.TargetType.Form", sink.sinkRabbitMQParameters.targetType.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.TargetType.Value", sink.sinkRabbitMQParameters.targetType.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.MessageId.Template", sink.sinkRabbitMQParameters.messageId._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.MessageId.Form", sink.sinkRabbitMQParameters.messageId.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.MessageId.Value", sink.sinkRabbitMQParameters.messageId.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Exchange.Template", sink.sinkRabbitMQParameters.exchange._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Exchange.Form", sink.sinkRabbitMQParameters.exchange.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Exchange.Value", sink.sinkRabbitMQParameters.exchange.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Body.Template", sink.sinkRabbitMQParameters.body._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Body.Form", sink.sinkRabbitMQParameters.body.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Body.Value", sink.sinkRabbitMQParameters.body.value); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Properties.Template", sink.sinkRabbitMQParameters.properties._template); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Properties.Form", sink.sinkRabbitMQParameters.properties.form); + setBodyParameter(std::string("Sink") + ".SinkRabbitMQParameters.Properties.Value", sink.sinkRabbitMQParameters.properties.value); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.QueueName.Template", sink.sinkMNSParameters.queueName._template); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.QueueName.Form", sink.sinkMNSParameters.queueName.form); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.QueueName.Value", sink.sinkMNSParameters.queueName.value); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.IsBase64Encode.Template", sink.sinkMNSParameters.isBase64Encode._template); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.IsBase64Encode.Form", sink.sinkMNSParameters.isBase64Encode.form); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.IsBase64Encode.Value", sink.sinkMNSParameters.isBase64Encode.value); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.Body.Template", sink.sinkMNSParameters.body._template); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.Body.Form", sink.sinkMNSParameters.body.form); + setBodyParameter(std::string("Sink") + ".SinkMNSParameters.Body.Value", sink.sinkMNSParameters.body.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.InstanceId.Template", sink.sinkKafkaParameters.instanceId._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.InstanceId.Form", sink.sinkKafkaParameters.instanceId.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.InstanceId.Value", sink.sinkKafkaParameters.instanceId.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Acks.Template", sink.sinkKafkaParameters.acks._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Acks.Form", sink.sinkKafkaParameters.acks.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Acks.Value", sink.sinkKafkaParameters.acks.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Topic.Template", sink.sinkKafkaParameters.topic._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Topic.Form", sink.sinkKafkaParameters.topic.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Topic.Value", sink.sinkKafkaParameters.topic.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.SaslUser.Template", sink.sinkKafkaParameters.saslUser._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.SaslUser.Form", sink.sinkKafkaParameters.saslUser.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.SaslUser.Value", sink.sinkKafkaParameters.saslUser.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Value.Template", sink.sinkKafkaParameters.value._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Value.Form", sink.sinkKafkaParameters.value.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Value.Value", sink.sinkKafkaParameters.value.value); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Key.Template", sink.sinkKafkaParameters.key._template); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Key.Form", sink.sinkKafkaParameters.key.form); + setBodyParameter(std::string("Sink") + ".SinkKafkaParameters.Key.Value", sink.sinkKafkaParameters.key.value); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.Input.Template", sink.sinkFnfParameters.input._template); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.Input.Form", sink.sinkFnfParameters.input.form); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.Input.Value", sink.sinkFnfParameters.input.value); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.ExecutionName.Template", sink.sinkFnfParameters.executionName._template); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.ExecutionName.Form", sink.sinkFnfParameters.executionName.form); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.ExecutionName.Value", sink.sinkFnfParameters.executionName.value); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.RoleName.Template", sink.sinkFnfParameters.roleName._template); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.RoleName.Form", sink.sinkFnfParameters.roleName.form); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.RoleName.Value", sink.sinkFnfParameters.roleName.value); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.FlowName.Template", sink.sinkFnfParameters.flowName._template); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.FlowName.Form", sink.sinkFnfParameters.flowName.form); + setBodyParameter(std::string("Sink") + ".SinkFnfParameters.FlowName.Value", sink.sinkFnfParameters.flowName.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.InvocationType.Template", sink.sinkFcParameters.invocationType._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.InvocationType.Form", sink.sinkFcParameters.invocationType.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.InvocationType.Value", sink.sinkFcParameters.invocationType.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.FunctionName.Template", sink.sinkFcParameters.functionName._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.FunctionName.Form", sink.sinkFcParameters.functionName.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.FunctionName.Value", sink.sinkFcParameters.functionName.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Qualifier.Template", sink.sinkFcParameters.qualifier._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Qualifier.Form", sink.sinkFcParameters.qualifier.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Qualifier.Value", sink.sinkFcParameters.qualifier.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.ServiceName.Template", sink.sinkFcParameters.serviceName._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.ServiceName.Form", sink.sinkFcParameters.serviceName.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.ServiceName.Value", sink.sinkFcParameters.serviceName.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Body.Template", sink.sinkFcParameters.body._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Body.Form", sink.sinkFcParameters.body.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Body.Value", sink.sinkFcParameters.body.value); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Concurrency.Template", sink.sinkFcParameters.concurrency._template); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Concurrency.Form", sink.sinkFcParameters.concurrency.form); + setBodyParameter(std::string("Sink") + ".SinkFcParameters.Concurrency.Value", sink.sinkFcParameters.concurrency.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VSwitchId.Template", sink.sinkPrometheusParameters.vSwitchId._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VSwitchId.Form", sink.sinkPrometheusParameters.vSwitchId.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VSwitchId.Value", sink.sinkPrometheusParameters.vSwitchId.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Password.Template", sink.sinkPrometheusParameters.password._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Password.Form", sink.sinkPrometheusParameters.password.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Password.Value", sink.sinkPrometheusParameters.password.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Data.Template", sink.sinkPrometheusParameters.data._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Data.Form", sink.sinkPrometheusParameters.data.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Data.Value", sink.sinkPrometheusParameters.data.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VpcId.Template", sink.sinkPrometheusParameters.vpcId._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VpcId.Form", sink.sinkPrometheusParameters.vpcId.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.VpcId.Value", sink.sinkPrometheusParameters.vpcId.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.SecurityGroupId.Template", sink.sinkPrometheusParameters.securityGroupId._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.SecurityGroupId.Form", sink.sinkPrometheusParameters.securityGroupId.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.SecurityGroupId.Value", sink.sinkPrometheusParameters.securityGroupId.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.AuthorizationType.Template", sink.sinkPrometheusParameters.authorizationType._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.AuthorizationType.Form", sink.sinkPrometheusParameters.authorizationType.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.AuthorizationType.Value", sink.sinkPrometheusParameters.authorizationType.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.NetworkType.Template", sink.sinkPrometheusParameters.networkType._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.NetworkType.Form", sink.sinkPrometheusParameters.networkType.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.NetworkType.Value", sink.sinkPrometheusParameters.networkType.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.URL.Template", sink.sinkPrometheusParameters.uRL._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.URL.Form", sink.sinkPrometheusParameters.uRL.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.URL.Value", sink.sinkPrometheusParameters.uRL.value); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Username.Template", sink.sinkPrometheusParameters.username._template); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Username.Form", sink.sinkPrometheusParameters.username.form); + setBodyParameter(std::string("Sink") + ".SinkPrometheusParameters.Username.Value", sink.sinkPrometheusParameters.username.value); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.RoleName.Template", sink.sinkSLSParameters.roleName._template); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.RoleName.Form", sink.sinkSLSParameters.roleName.form); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.RoleName.Value", sink.sinkSLSParameters.roleName.value); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Project.Template", sink.sinkSLSParameters.project._template); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Project.Form", sink.sinkSLSParameters.project.form); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Project.Value", sink.sinkSLSParameters.project.value); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Topic.Template", sink.sinkSLSParameters.topic._template); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Topic.Form", sink.sinkSLSParameters.topic.form); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Topic.Value", sink.sinkSLSParameters.topic.value); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Body.Template", sink.sinkSLSParameters.body._template); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Body.Form", sink.sinkSLSParameters.body.form); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.Body.Value", sink.sinkSLSParameters.body.value); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.LogStore.Template", sink.sinkSLSParameters.logStore._template); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.LogStore.Form", sink.sinkSLSParameters.logStore.form); + setBodyParameter(std::string("Sink") + ".SinkSLSParameters.LogStore.Value", sink.sinkSLSParameters.logStore.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceId.Template", sink.sinkRocketMQParameters.instanceId._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceId.Form", sink.sinkRocketMQParameters.instanceId.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.InstanceId.Value", sink.sinkRocketMQParameters.instanceId.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Keys.Template", sink.sinkRocketMQParameters.keys._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Keys.Form", sink.sinkRocketMQParameters.keys.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Keys.Value", sink.sinkRocketMQParameters.keys.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Topic.Template", sink.sinkRocketMQParameters.topic._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Topic.Form", sink.sinkRocketMQParameters.topic.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Topic.Value", sink.sinkRocketMQParameters.topic.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Body.Template", sink.sinkRocketMQParameters.body._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Body.Form", sink.sinkRocketMQParameters.body.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Body.Value", sink.sinkRocketMQParameters.body.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Properties.Template", sink.sinkRocketMQParameters.properties._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Properties.Form", sink.sinkRocketMQParameters.properties.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Properties.Value", sink.sinkRocketMQParameters.properties.value); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Tags.Template", sink.sinkRocketMQParameters.tags._template); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Tags.Form", sink.sinkRocketMQParameters.tags.form); + setBodyParameter(std::string("Sink") + ".SinkRocketMQParameters.Tags.Value", sink.sinkRocketMQParameters.tags.value); +} + +std::vector UpdateEventStreamingRequest::getTransforms() const { + return transforms_; +} + +void UpdateEventStreamingRequest::setTransforms(const std::vector &transforms) { + transforms_ = transforms; + for(int dep1 = 0; dep1 != transforms.size(); dep1++) { + setBodyParameter(std::string("Transforms") + "." + std::to_string(dep1 + 1) + ".Arn", transforms[dep1].arn); + } +} + +std::string UpdateEventStreamingRequest::getDescription() const { + return description_; +} + +void UpdateEventStreamingRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string UpdateEventStreamingRequest::getFilterPattern() const { + return filterPattern_; +} + +void UpdateEventStreamingRequest::setFilterPattern(const std::string &filterPattern) { + filterPattern_ = filterPattern; + setBodyParameter(std::string("FilterPattern"), filterPattern); +} + +UpdateEventStreamingRequest::Source UpdateEventStreamingRequest::getSource() const { + return source_; +} + +void UpdateEventStreamingRequest::setSource(const UpdateEventStreamingRequest::Source &source) { + source_ = source; + setBodyParameter(std::string("Source") + ".SourceMQTTParameters.InstanceId", source.sourceMQTTParameters.instanceId); + setBodyParameter(std::string("Source") + ".SourceMQTTParameters.RegionId", source.sourceMQTTParameters.regionId); + setBodyParameter(std::string("Source") + ".SourceMQTTParameters.Topic", source.sourceMQTTParameters.topic); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceSecurityGroupId", source.sourceRocketMQParameters.instanceSecurityGroupId); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.Offset", source.sourceRocketMQParameters.offset); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.GroupID", source.sourceRocketMQParameters.groupID); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceUsername", source.sourceRocketMQParameters.instanceUsername); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.AuthType", source.sourceRocketMQParameters.authType); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstancePassword", source.sourceRocketMQParameters.instancePassword); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceVSwitchIds", source.sourceRocketMQParameters.instanceVSwitchIds); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceNetwork", source.sourceRocketMQParameters.instanceNetwork); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceId", source.sourceRocketMQParameters.instanceId); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceEndpoint", source.sourceRocketMQParameters.instanceEndpoint); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceVpcId", source.sourceRocketMQParameters.instanceVpcId); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.RegionId", source.sourceRocketMQParameters.regionId); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.Topic", source.sourceRocketMQParameters.topic); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.InstanceType", source.sourceRocketMQParameters.instanceType); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.Tag", source.sourceRocketMQParameters.tag); + setBodyParameter(std::string("Source") + ".SourceRocketMQParameters.Timestamp", std::to_string(source.sourceRocketMQParameters.timestamp)); + setBodyParameter(std::string("Source") + ".SourceSLSParameters.RoleName", source.sourceSLSParameters.roleName); + setBodyParameter(std::string("Source") + ".SourcePrometheusParameters.DataType", source.sourcePrometheusParameters.dataType); + setBodyParameter(std::string("Source") + ".SourcePrometheusParameters.ClusterId", source.sourcePrometheusParameters.clusterId); + setBodyParameter(std::string("Source") + ".SourcePrometheusParameters.Labels", source.sourcePrometheusParameters.labels); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.BrokerUrl", source.sourceDTSParameters.brokerUrl); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.Password", source.sourceDTSParameters.password); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.InitCheckPoint", std::to_string(source.sourceDTSParameters.initCheckPoint)); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.Topic", source.sourceDTSParameters.topic); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.TaskId", source.sourceDTSParameters.taskId); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.Sid", source.sourceDTSParameters.sid); + setBodyParameter(std::string("Source") + ".SourceDTSParameters.Username", source.sourceDTSParameters.username); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.InstanceId", source.sourceKafkaParameters.instanceId); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.ConsumerGroup", source.sourceKafkaParameters.consumerGroup); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.RegionId", source.sourceKafkaParameters.regionId); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.VSwitchIds", source.sourceKafkaParameters.vSwitchIds); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.VpcId", source.sourceKafkaParameters.vpcId); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.SecurityGroupId", source.sourceKafkaParameters.securityGroupId); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.Topic", source.sourceKafkaParameters.topic); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.OffsetReset", source.sourceKafkaParameters.offsetReset); + setBodyParameter(std::string("Source") + ".SourceKafkaParameters.Network", source.sourceKafkaParameters.network); + setBodyParameter(std::string("Source") + ".SourceMNSParameters.QueueName", source.sourceMNSParameters.queueName); + setBodyParameter(std::string("Source") + ".SourceMNSParameters.RegionId", source.sourceMNSParameters.regionId); + setBodyParameter(std::string("Source") + ".SourceMNSParameters.IsBase64Decode", source.sourceMNSParameters.isBase64Decode ? "true" : "false"); + setBodyParameter(std::string("Source") + ".SourceRabbitMQParameters.QueueName", source.sourceRabbitMQParameters.queueName); + setBodyParameter(std::string("Source") + ".SourceRabbitMQParameters.VirtualHostName", source.sourceRabbitMQParameters.virtualHostName); + setBodyParameter(std::string("Source") + ".SourceRabbitMQParameters.InstanceId", source.sourceRabbitMQParameters.instanceId); + setBodyParameter(std::string("Source") + ".SourceRabbitMQParameters.RegionId", source.sourceRabbitMQParameters.regionId); +} + +UpdateEventStreamingRequest::RunOptions UpdateEventStreamingRequest::getRunOptions() const { + return runOptions_; +} + +void UpdateEventStreamingRequest::setRunOptions(const UpdateEventStreamingRequest::RunOptions &runOptions) { + runOptions_ = runOptions; + setBodyParameter(std::string("RunOptions") + ".BatchWindow.CountBasedWindow", std::to_string(runOptions.batchWindow.countBasedWindow)); + setBodyParameter(std::string("RunOptions") + ".BatchWindow.TimeBasedWindow", std::to_string(runOptions.batchWindow.timeBasedWindow)); + setBodyParameter(std::string("RunOptions") + ".RetryStrategy.PushRetryStrategy", runOptions.retryStrategy.pushRetryStrategy); + setBodyParameter(std::string("RunOptions") + ".RetryStrategy.MaximumRetryAttempts", std::to_string(runOptions.retryStrategy.maximumRetryAttempts)); + setBodyParameter(std::string("RunOptions") + ".RetryStrategy.MaximumEventAgeInSeconds", std::to_string(runOptions.retryStrategy.maximumEventAgeInSeconds)); + setBodyParameter(std::string("RunOptions") + ".DeadLetterQueue.Arn", runOptions.deadLetterQueue.arn); + setBodyParameter(std::string("RunOptions") + ".MaximumTasks", std::to_string(runOptions.maximumTasks)); + setBodyParameter(std::string("RunOptions") + ".ErrorsTolerance", runOptions.errorsTolerance); +} + +std::string UpdateEventStreamingRequest::getEventStreamingName() const { + return eventStreamingName_; +} + +void UpdateEventStreamingRequest::setEventStreamingName(const std::string &eventStreamingName) { + eventStreamingName_ = eventStreamingName; + setBodyParameter(std::string("EventStreamingName"), eventStreamingName); +} + +std::string UpdateEventStreamingRequest::getTag() const { + return tag_; +} + +void UpdateEventStreamingRequest::setTag(const std::string &tag) { + tag_ = tag; + setBodyParameter(std::string("Tag"), tag); +} + diff --git a/eventbridge/src/model/UpdateEventStreamingResult.cc b/eventbridge/src/model/UpdateEventStreamingResult.cc new file mode 100644 index 000000000..4ff641b88 --- /dev/null +++ b/eventbridge/src/model/UpdateEventStreamingResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +UpdateEventStreamingResult::UpdateEventStreamingResult() : + ServiceResult() +{} + +UpdateEventStreamingResult::UpdateEventStreamingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateEventStreamingResult::~UpdateEventStreamingResult() +{} + +void UpdateEventStreamingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateEventStreamingResult::getMessage()const +{ + return message_; +} + +bool UpdateEventStreamingResult::getData()const +{ + return data_; +} + +std::string UpdateEventStreamingResult::getCode()const +{ + return code_; +} + +bool UpdateEventStreamingResult::getSuccess()const +{ + return success_; +} + diff --git a/eventbridge/src/model/UpdateRuleRequest.cc b/eventbridge/src/model/UpdateRuleRequest.cc new file mode 100644 index 000000000..a572599fb --- /dev/null +++ b/eventbridge/src/model/UpdateRuleRequest.cc @@ -0,0 +1,81 @@ +/* + * 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 + +using AlibabaCloud::Eventbridge::Model::UpdateRuleRequest; + +UpdateRuleRequest::UpdateRuleRequest() + : RpcServiceRequest("eventbridge", "2020-04-01", "UpdateRule") { + setMethod(HttpRequest::Method::Post); +} + +UpdateRuleRequest::~UpdateRuleRequest() {} + +std::string UpdateRuleRequest::getClientToken() const { + return clientToken_; +} + +void UpdateRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateRuleRequest::getDescription() const { + return description_; +} + +void UpdateRuleRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string UpdateRuleRequest::getRuleName() const { + return ruleName_; +} + +void UpdateRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string UpdateRuleRequest::getEventBusName() const { + return eventBusName_; +} + +void UpdateRuleRequest::setEventBusName(const std::string &eventBusName) { + eventBusName_ = eventBusName; + setParameter(std::string("EventBusName"), eventBusName); +} + +std::string UpdateRuleRequest::getFilterPattern() const { + return filterPattern_; +} + +void UpdateRuleRequest::setFilterPattern(const std::string &filterPattern) { + filterPattern_ = filterPattern; + setParameter(std::string("FilterPattern"), filterPattern); +} + +std::string UpdateRuleRequest::getStatus() const { + return status_; +} + +void UpdateRuleRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/eventbridge/src/model/UpdateRuleResult.cc b/eventbridge/src/model/UpdateRuleResult.cc new file mode 100644 index 000000000..6718a88eb --- /dev/null +++ b/eventbridge/src/model/UpdateRuleResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eventbridge; +using namespace AlibabaCloud::Eventbridge::Model; + +UpdateRuleResult::UpdateRuleResult() : + ServiceResult() +{} + +UpdateRuleResult::UpdateRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRuleResult::~UpdateRuleResult() +{} + +void UpdateRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string UpdateRuleResult::getMessage()const +{ + return message_; +} + +bool UpdateRuleResult::getData()const +{ + return data_; +} + +std::string UpdateRuleResult::getCode()const +{ + return code_; +} + +bool UpdateRuleResult::getSuccess()const +{ + return success_; +} +