diff --git a/CHANGELOG b/CHANGELOG index 4919eb075..596266705 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-08-13 Version: 1.36.851 +- Support sts. + 2021-08-12 Version: 1.36.850 - Support query dbfs specification. diff --git a/VERSION b/VERSION index 7412d20cd..5dd88c5d4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.850 \ No newline at end of file +1.36.851 \ No newline at end of file diff --git a/smartag/CMakeLists.txt b/smartag/CMakeLists.txt index 26e76db88..4617b227c 100644 --- a/smartag/CMakeLists.txt +++ b/smartag/CMakeLists.txt @@ -29,10 +29,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/AddACLRuleResult.h include/alibabacloud/smartag/model/AddDnatEntryRequest.h include/alibabacloud/smartag/model/AddDnatEntryResult.h - include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.h - include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.h - include/alibabacloud/smartag/model/AddSagCidrRequest.h - include/alibabacloud/smartag/model/AddSagCidrResult.h include/alibabacloud/smartag/model/AddSnatEntryRequest.h include/alibabacloud/smartag/model/AddSnatEntryResult.h include/alibabacloud/smartag/model/AssociateACLRequest.h @@ -41,8 +37,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/AssociateFlowLogResult.h include/alibabacloud/smartag/model/AssociateQosRequest.h include/alibabacloud/smartag/model/AssociateQosResult.h - include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.h - include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.h include/alibabacloud/smartag/model/BindSerialNumberRequest.h include/alibabacloud/smartag/model/BindSerialNumberResult.h include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h @@ -63,8 +57,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/CreateFlowLogResult.h include/alibabacloud/smartag/model/CreateHealthCheckRequest.h include/alibabacloud/smartag/model/CreateHealthCheckResult.h - include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.h - include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h include/alibabacloud/smartag/model/CreateQosRequest.h include/alibabacloud/smartag/model/CreateQosResult.h include/alibabacloud/smartag/model/CreateQosCarRequest.h @@ -97,10 +89,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DeleteFlowLogResult.h include/alibabacloud/smartag/model/DeleteHealthCheckRequest.h include/alibabacloud/smartag/model/DeleteHealthCheckResult.h - include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.h - include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.h - include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.h - include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.h include/alibabacloud/smartag/model/DeleteQosRequest.h include/alibabacloud/smartag/model/DeleteQosResult.h include/alibabacloud/smartag/model/DeleteQosCarRequest.h @@ -109,8 +97,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DeleteQosPolicyResult.h include/alibabacloud/smartag/model/DeleteRouteDistributionStrategyRequest.h include/alibabacloud/smartag/model/DeleteRouteDistributionStrategyResult.h - include/alibabacloud/smartag/model/DeleteSagCidrRequest.h - include/alibabacloud/smartag/model/DeleteSagCidrResult.h include/alibabacloud/smartag/model/DeleteSagExpressConnectInterfaceRequest.h include/alibabacloud/smartag/model/DeleteSagExpressConnectInterfaceResult.h include/alibabacloud/smartag/model/DeleteSagStaticRouteRequest.h @@ -149,18 +135,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DescribeHealthCheckAttributeResult.h include/alibabacloud/smartag/model/DescribeHealthChecksRequest.h include/alibabacloud/smartag/model/DescribeHealthChecksResult.h - include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.h - include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h - include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.h - include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h - include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.h - include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h - include/alibabacloud/smartag/model/DescribePbrInterfacesRequest.h - include/alibabacloud/smartag/model/DescribePbrInterfacesResult.h - include/alibabacloud/smartag/model/DescribePbrRulesRequest.h - include/alibabacloud/smartag/model/DescribePbrRulesResult.h - include/alibabacloud/smartag/model/DescribePolicyBasedRoutingsRequest.h - include/alibabacloud/smartag/model/DescribePolicyBasedRoutingsResult.h include/alibabacloud/smartag/model/DescribeQosCarsRequest.h include/alibabacloud/smartag/model/DescribeQosCarsResult.h include/alibabacloud/smartag/model/DescribeQosPoliciesRequest.h @@ -177,8 +151,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DescribeSagCurrentDnsResult.h include/alibabacloud/smartag/model/DescribeSagDropTopNRequest.h include/alibabacloud/smartag/model/DescribeSagDropTopNResult.h - include/alibabacloud/smartag/model/DescribeSagECRouteBackupAttributeRequest.h - include/alibabacloud/smartag/model/DescribeSagECRouteBackupAttributeResult.h include/alibabacloud/smartag/model/DescribeSagExpressConnectInterfaceListRequest.h include/alibabacloud/smartag/model/DescribeSagExpressConnectInterfaceListResult.h include/alibabacloud/smartag/model/DescribeSagGlobalRouteProtocolRequest.h @@ -203,8 +175,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpResult.h include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfRequest.h include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfResult.h - include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.h - include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h include/alibabacloud/smartag/model/DescribeSagStaticRouteListRequest.h include/alibabacloud/smartag/model/DescribeSagStaticRouteListResult.h include/alibabacloud/smartag/model/DescribeSagTrafficTopNRequest.h @@ -241,8 +211,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsResult.h include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h include/alibabacloud/smartag/model/DescribeUserOnlineClientsResult.h - include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h - include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayRequest.h include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayResult.h include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorRequest.h @@ -313,8 +281,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/ModifyFlowLogAttributeResult.h include/alibabacloud/smartag/model/ModifyHealthCheckRequest.h include/alibabacloud/smartag/model/ModifyHealthCheckResult.h - include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.h - include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.h include/alibabacloud/smartag/model/ModifyQosRequest.h include/alibabacloud/smartag/model/ModifyQosResult.h include/alibabacloud/smartag/model/ModifyQosCarRequest.h @@ -325,10 +291,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/ModifyRouteDistributionStrategyResult.h include/alibabacloud/smartag/model/ModifySAGAdminPasswordRequest.h include/alibabacloud/smartag/model/ModifySAGAdminPasswordResult.h - include/alibabacloud/smartag/model/ModifySagCidrRequest.h - include/alibabacloud/smartag/model/ModifySagCidrResult.h - include/alibabacloud/smartag/model/ModifySagECRouteBackupRequest.h - include/alibabacloud/smartag/model/ModifySagECRouteBackupResult.h include/alibabacloud/smartag/model/ModifySagExpressConnectInterfaceRequest.h include/alibabacloud/smartag/model/ModifySagExpressConnectInterfaceResult.h include/alibabacloud/smartag/model/ModifySagGlobalRouteProtocolRequest.h @@ -367,8 +329,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthResult.h include/alibabacloud/smartag/model/MoveResourceGroupRequest.h include/alibabacloud/smartag/model/MoveResourceGroupResult.h - include/alibabacloud/smartag/model/OrchestrateSagECRouteBackupRequest.h - include/alibabacloud/smartag/model/OrchestrateSagECRouteBackupResult.h include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityRequest.h include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityResult.h include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h @@ -383,8 +343,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnResult.h include/alibabacloud/smartag/model/RoamClientUserRequest.h include/alibabacloud/smartag/model/RoamClientUserResult.h - include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h - include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h include/alibabacloud/smartag/model/SynchronizeSmartAGWebConfigRequest.h include/alibabacloud/smartag/model/SynchronizeSmartAGWebConfigResult.h include/alibabacloud/smartag/model/UnbindSerialNumberRequest.h @@ -393,10 +351,6 @@ set(smartag_public_header_model include/alibabacloud/smartag/model/UnbindSmartAccessGatewayResult.h include/alibabacloud/smartag/model/UnbindVbrRequest.h include/alibabacloud/smartag/model/UnbindVbrResult.h - include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h - include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h - include/alibabacloud/smartag/model/UnicomSignConfirmRequest.h - include/alibabacloud/smartag/model/UnicomSignConfirmResult.h include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h include/alibabacloud/smartag/model/UnlockSmartAccessGatewayResult.h include/alibabacloud/smartag/model/UpdateEnterpriseCodeRequest.h @@ -424,10 +378,6 @@ set(smartag_src src/model/AddACLRuleResult.cc src/model/AddDnatEntryRequest.cc src/model/AddDnatEntryResult.cc - src/model/AddNetworkOptimizationSettingRequest.cc - src/model/AddNetworkOptimizationSettingResult.cc - src/model/AddSagCidrRequest.cc - src/model/AddSagCidrResult.cc src/model/AddSnatEntryRequest.cc src/model/AddSnatEntryResult.cc src/model/AssociateACLRequest.cc @@ -436,8 +386,6 @@ set(smartag_src src/model/AssociateFlowLogResult.cc src/model/AssociateQosRequest.cc src/model/AssociateQosResult.cc - src/model/AttachNetworkOptimizationSagsRequest.cc - src/model/AttachNetworkOptimizationSagsResult.cc src/model/BindSerialNumberRequest.cc src/model/BindSerialNumberResult.cc src/model/BindSmartAccessGatewayRequest.cc @@ -458,8 +406,6 @@ set(smartag_src src/model/CreateFlowLogResult.cc src/model/CreateHealthCheckRequest.cc src/model/CreateHealthCheckResult.cc - src/model/CreateNetworkOptimizationRequest.cc - src/model/CreateNetworkOptimizationResult.cc src/model/CreateQosRequest.cc src/model/CreateQosResult.cc src/model/CreateQosCarRequest.cc @@ -492,10 +438,6 @@ set(smartag_src src/model/DeleteFlowLogResult.cc src/model/DeleteHealthCheckRequest.cc src/model/DeleteHealthCheckResult.cc - src/model/DeleteNetworkOptimizationRequest.cc - src/model/DeleteNetworkOptimizationResult.cc - src/model/DeleteNetworkOptimizationSettingRequest.cc - src/model/DeleteNetworkOptimizationSettingResult.cc src/model/DeleteQosRequest.cc src/model/DeleteQosResult.cc src/model/DeleteQosCarRequest.cc @@ -504,8 +446,6 @@ set(smartag_src src/model/DeleteQosPolicyResult.cc src/model/DeleteRouteDistributionStrategyRequest.cc src/model/DeleteRouteDistributionStrategyResult.cc - src/model/DeleteSagCidrRequest.cc - src/model/DeleteSagCidrResult.cc src/model/DeleteSagExpressConnectInterfaceRequest.cc src/model/DeleteSagExpressConnectInterfaceResult.cc src/model/DeleteSagStaticRouteRequest.cc @@ -544,18 +484,6 @@ set(smartag_src src/model/DescribeHealthCheckAttributeResult.cc src/model/DescribeHealthChecksRequest.cc src/model/DescribeHealthChecksResult.cc - src/model/DescribeNetworkOptimizationSagsRequest.cc - src/model/DescribeNetworkOptimizationSagsResult.cc - src/model/DescribeNetworkOptimizationSettingsRequest.cc - src/model/DescribeNetworkOptimizationSettingsResult.cc - src/model/DescribeNetworkOptimizationsRequest.cc - src/model/DescribeNetworkOptimizationsResult.cc - src/model/DescribePbrInterfacesRequest.cc - src/model/DescribePbrInterfacesResult.cc - src/model/DescribePbrRulesRequest.cc - src/model/DescribePbrRulesResult.cc - src/model/DescribePolicyBasedRoutingsRequest.cc - src/model/DescribePolicyBasedRoutingsResult.cc src/model/DescribeQosCarsRequest.cc src/model/DescribeQosCarsResult.cc src/model/DescribeQosPoliciesRequest.cc @@ -572,8 +500,6 @@ set(smartag_src src/model/DescribeSagCurrentDnsResult.cc src/model/DescribeSagDropTopNRequest.cc src/model/DescribeSagDropTopNResult.cc - src/model/DescribeSagECRouteBackupAttributeRequest.cc - src/model/DescribeSagECRouteBackupAttributeResult.cc src/model/DescribeSagExpressConnectInterfaceListRequest.cc src/model/DescribeSagExpressConnectInterfaceListResult.cc src/model/DescribeSagGlobalRouteProtocolRequest.cc @@ -598,8 +524,6 @@ set(smartag_src src/model/DescribeSagRouteProtocolBgpResult.cc src/model/DescribeSagRouteProtocolOspfRequest.cc src/model/DescribeSagRouteProtocolOspfResult.cc - src/model/DescribeSagRouteableAddressRequest.cc - src/model/DescribeSagRouteableAddressResult.cc src/model/DescribeSagStaticRouteListRequest.cc src/model/DescribeSagStaticRouteListResult.cc src/model/DescribeSagTrafficTopNRequest.cc @@ -636,8 +560,6 @@ set(smartag_src src/model/DescribeUserOnlineClientStatisticsResult.cc src/model/DescribeUserOnlineClientsRequest.cc src/model/DescribeUserOnlineClientsResult.cc - src/model/DetachNetworkOptimizationSagsRequest.cc - src/model/DetachNetworkOptimizationSagsResult.cc src/model/DiagnoseSmartAccessGatewayRequest.cc src/model/DiagnoseSmartAccessGatewayResult.cc src/model/DisableSmartAGDpiMonitorRequest.cc @@ -708,8 +630,6 @@ set(smartag_src src/model/ModifyFlowLogAttributeResult.cc src/model/ModifyHealthCheckRequest.cc src/model/ModifyHealthCheckResult.cc - src/model/ModifyNetworkOptimizationRequest.cc - src/model/ModifyNetworkOptimizationResult.cc src/model/ModifyQosRequest.cc src/model/ModifyQosResult.cc src/model/ModifyQosCarRequest.cc @@ -720,10 +640,6 @@ set(smartag_src src/model/ModifyRouteDistributionStrategyResult.cc src/model/ModifySAGAdminPasswordRequest.cc src/model/ModifySAGAdminPasswordResult.cc - src/model/ModifySagCidrRequest.cc - src/model/ModifySagCidrResult.cc - src/model/ModifySagECRouteBackupRequest.cc - src/model/ModifySagECRouteBackupResult.cc src/model/ModifySagExpressConnectInterfaceRequest.cc src/model/ModifySagExpressConnectInterfaceResult.cc src/model/ModifySagGlobalRouteProtocolRequest.cc @@ -762,8 +678,6 @@ set(smartag_src src/model/ModifySmartAccessGatewayUpBandwidthResult.cc src/model/MoveResourceGroupRequest.cc src/model/MoveResourceGroupResult.cc - src/model/OrchestrateSagECRouteBackupRequest.cc - src/model/OrchestrateSagECRouteBackupResult.cc src/model/ProbeAccessPointNetworkQualityRequest.cc src/model/ProbeAccessPointNetworkQualityResult.cc src/model/RebootSmartAccessGatewayRequest.cc @@ -778,8 +692,6 @@ set(smartag_src src/model/RevokeSagInstanceFromCcnResult.cc src/model/RoamClientUserRequest.cc src/model/RoamClientUserResult.cc - src/model/SetSagRouteableAddressRequest.cc - src/model/SetSagRouteableAddressResult.cc src/model/SynchronizeSmartAGWebConfigRequest.cc src/model/SynchronizeSmartAGWebConfigResult.cc src/model/UnbindSerialNumberRequest.cc @@ -788,10 +700,6 @@ set(smartag_src src/model/UnbindSmartAccessGatewayResult.cc src/model/UnbindVbrRequest.cc src/model/UnbindVbrResult.cc - src/model/UnicomOrderConfirmRequest.cc - src/model/UnicomOrderConfirmResult.cc - src/model/UnicomSignConfirmRequest.cc - src/model/UnicomSignConfirmResult.cc src/model/UnlockSmartAccessGatewayRequest.cc src/model/UnlockSmartAccessGatewayResult.cc src/model/UpdateEnterpriseCodeRequest.cc diff --git a/smartag/include/alibabacloud/smartag/SmartagClient.h b/smartag/include/alibabacloud/smartag/SmartagClient.h index 99f2ba833..f6f21a2ed 100644 --- a/smartag/include/alibabacloud/smartag/SmartagClient.h +++ b/smartag/include/alibabacloud/smartag/SmartagClient.h @@ -30,10 +30,6 @@ #include "model/AddACLRuleResult.h" #include "model/AddDnatEntryRequest.h" #include "model/AddDnatEntryResult.h" -#include "model/AddNetworkOptimizationSettingRequest.h" -#include "model/AddNetworkOptimizationSettingResult.h" -#include "model/AddSagCidrRequest.h" -#include "model/AddSagCidrResult.h" #include "model/AddSnatEntryRequest.h" #include "model/AddSnatEntryResult.h" #include "model/AssociateACLRequest.h" @@ -42,8 +38,6 @@ #include "model/AssociateFlowLogResult.h" #include "model/AssociateQosRequest.h" #include "model/AssociateQosResult.h" -#include "model/AttachNetworkOptimizationSagsRequest.h" -#include "model/AttachNetworkOptimizationSagsResult.h" #include "model/BindSerialNumberRequest.h" #include "model/BindSerialNumberResult.h" #include "model/BindSmartAccessGatewayRequest.h" @@ -64,8 +58,6 @@ #include "model/CreateFlowLogResult.h" #include "model/CreateHealthCheckRequest.h" #include "model/CreateHealthCheckResult.h" -#include "model/CreateNetworkOptimizationRequest.h" -#include "model/CreateNetworkOptimizationResult.h" #include "model/CreateQosRequest.h" #include "model/CreateQosResult.h" #include "model/CreateQosCarRequest.h" @@ -98,10 +90,6 @@ #include "model/DeleteFlowLogResult.h" #include "model/DeleteHealthCheckRequest.h" #include "model/DeleteHealthCheckResult.h" -#include "model/DeleteNetworkOptimizationRequest.h" -#include "model/DeleteNetworkOptimizationResult.h" -#include "model/DeleteNetworkOptimizationSettingRequest.h" -#include "model/DeleteNetworkOptimizationSettingResult.h" #include "model/DeleteQosRequest.h" #include "model/DeleteQosResult.h" #include "model/DeleteQosCarRequest.h" @@ -110,8 +98,6 @@ #include "model/DeleteQosPolicyResult.h" #include "model/DeleteRouteDistributionStrategyRequest.h" #include "model/DeleteRouteDistributionStrategyResult.h" -#include "model/DeleteSagCidrRequest.h" -#include "model/DeleteSagCidrResult.h" #include "model/DeleteSagExpressConnectInterfaceRequest.h" #include "model/DeleteSagExpressConnectInterfaceResult.h" #include "model/DeleteSagStaticRouteRequest.h" @@ -150,18 +136,6 @@ #include "model/DescribeHealthCheckAttributeResult.h" #include "model/DescribeHealthChecksRequest.h" #include "model/DescribeHealthChecksResult.h" -#include "model/DescribeNetworkOptimizationSagsRequest.h" -#include "model/DescribeNetworkOptimizationSagsResult.h" -#include "model/DescribeNetworkOptimizationSettingsRequest.h" -#include "model/DescribeNetworkOptimizationSettingsResult.h" -#include "model/DescribeNetworkOptimizationsRequest.h" -#include "model/DescribeNetworkOptimizationsResult.h" -#include "model/DescribePbrInterfacesRequest.h" -#include "model/DescribePbrInterfacesResult.h" -#include "model/DescribePbrRulesRequest.h" -#include "model/DescribePbrRulesResult.h" -#include "model/DescribePolicyBasedRoutingsRequest.h" -#include "model/DescribePolicyBasedRoutingsResult.h" #include "model/DescribeQosCarsRequest.h" #include "model/DescribeQosCarsResult.h" #include "model/DescribeQosPoliciesRequest.h" @@ -178,8 +152,6 @@ #include "model/DescribeSagCurrentDnsResult.h" #include "model/DescribeSagDropTopNRequest.h" #include "model/DescribeSagDropTopNResult.h" -#include "model/DescribeSagECRouteBackupAttributeRequest.h" -#include "model/DescribeSagECRouteBackupAttributeResult.h" #include "model/DescribeSagExpressConnectInterfaceListRequest.h" #include "model/DescribeSagExpressConnectInterfaceListResult.h" #include "model/DescribeSagGlobalRouteProtocolRequest.h" @@ -204,8 +176,6 @@ #include "model/DescribeSagRouteProtocolBgpResult.h" #include "model/DescribeSagRouteProtocolOspfRequest.h" #include "model/DescribeSagRouteProtocolOspfResult.h" -#include "model/DescribeSagRouteableAddressRequest.h" -#include "model/DescribeSagRouteableAddressResult.h" #include "model/DescribeSagStaticRouteListRequest.h" #include "model/DescribeSagStaticRouteListResult.h" #include "model/DescribeSagTrafficTopNRequest.h" @@ -242,8 +212,6 @@ #include "model/DescribeUserOnlineClientStatisticsResult.h" #include "model/DescribeUserOnlineClientsRequest.h" #include "model/DescribeUserOnlineClientsResult.h" -#include "model/DetachNetworkOptimizationSagsRequest.h" -#include "model/DetachNetworkOptimizationSagsResult.h" #include "model/DiagnoseSmartAccessGatewayRequest.h" #include "model/DiagnoseSmartAccessGatewayResult.h" #include "model/DisableSmartAGDpiMonitorRequest.h" @@ -314,8 +282,6 @@ #include "model/ModifyFlowLogAttributeResult.h" #include "model/ModifyHealthCheckRequest.h" #include "model/ModifyHealthCheckResult.h" -#include "model/ModifyNetworkOptimizationRequest.h" -#include "model/ModifyNetworkOptimizationResult.h" #include "model/ModifyQosRequest.h" #include "model/ModifyQosResult.h" #include "model/ModifyQosCarRequest.h" @@ -326,10 +292,6 @@ #include "model/ModifyRouteDistributionStrategyResult.h" #include "model/ModifySAGAdminPasswordRequest.h" #include "model/ModifySAGAdminPasswordResult.h" -#include "model/ModifySagCidrRequest.h" -#include "model/ModifySagCidrResult.h" -#include "model/ModifySagECRouteBackupRequest.h" -#include "model/ModifySagECRouteBackupResult.h" #include "model/ModifySagExpressConnectInterfaceRequest.h" #include "model/ModifySagExpressConnectInterfaceResult.h" #include "model/ModifySagGlobalRouteProtocolRequest.h" @@ -368,8 +330,6 @@ #include "model/ModifySmartAccessGatewayUpBandwidthResult.h" #include "model/MoveResourceGroupRequest.h" #include "model/MoveResourceGroupResult.h" -#include "model/OrchestrateSagECRouteBackupRequest.h" -#include "model/OrchestrateSagECRouteBackupResult.h" #include "model/ProbeAccessPointNetworkQualityRequest.h" #include "model/ProbeAccessPointNetworkQualityResult.h" #include "model/RebootSmartAccessGatewayRequest.h" @@ -384,8 +344,6 @@ #include "model/RevokeSagInstanceFromCcnResult.h" #include "model/RoamClientUserRequest.h" #include "model/RoamClientUserResult.h" -#include "model/SetSagRouteableAddressRequest.h" -#include "model/SetSagRouteableAddressResult.h" #include "model/SynchronizeSmartAGWebConfigRequest.h" #include "model/SynchronizeSmartAGWebConfigResult.h" #include "model/UnbindSerialNumberRequest.h" @@ -394,10 +352,6 @@ #include "model/UnbindSmartAccessGatewayResult.h" #include "model/UnbindVbrRequest.h" #include "model/UnbindVbrResult.h" -#include "model/UnicomOrderConfirmRequest.h" -#include "model/UnicomOrderConfirmResult.h" -#include "model/UnicomSignConfirmRequest.h" -#include "model/UnicomSignConfirmResult.h" #include "model/UnlockSmartAccessGatewayRequest.h" #include "model/UnlockSmartAccessGatewayResult.h" #include "model/UpdateEnterpriseCodeRequest.h" @@ -435,12 +389,6 @@ namespace AlibabaCloud typedef Outcome AddDnatEntryOutcome; typedef std::future AddDnatEntryOutcomeCallable; typedef std::function&)> AddDnatEntryAsyncHandler; - typedef Outcome AddNetworkOptimizationSettingOutcome; - typedef std::future AddNetworkOptimizationSettingOutcomeCallable; - typedef std::function&)> AddNetworkOptimizationSettingAsyncHandler; - typedef Outcome AddSagCidrOutcome; - typedef std::future AddSagCidrOutcomeCallable; - typedef std::function&)> AddSagCidrAsyncHandler; typedef Outcome AddSnatEntryOutcome; typedef std::future AddSnatEntryOutcomeCallable; typedef std::function&)> AddSnatEntryAsyncHandler; @@ -453,9 +401,6 @@ namespace AlibabaCloud typedef Outcome AssociateQosOutcome; typedef std::future AssociateQosOutcomeCallable; typedef std::function&)> AssociateQosAsyncHandler; - typedef Outcome AttachNetworkOptimizationSagsOutcome; - typedef std::future AttachNetworkOptimizationSagsOutcomeCallable; - typedef std::function&)> AttachNetworkOptimizationSagsAsyncHandler; typedef Outcome BindSerialNumberOutcome; typedef std::future BindSerialNumberOutcomeCallable; typedef std::function&)> BindSerialNumberAsyncHandler; @@ -486,9 +431,6 @@ namespace AlibabaCloud typedef Outcome CreateHealthCheckOutcome; typedef std::future CreateHealthCheckOutcomeCallable; typedef std::function&)> CreateHealthCheckAsyncHandler; - typedef Outcome CreateNetworkOptimizationOutcome; - typedef std::future CreateNetworkOptimizationOutcomeCallable; - typedef std::function&)> CreateNetworkOptimizationAsyncHandler; typedef Outcome CreateQosOutcome; typedef std::future CreateQosOutcomeCallable; typedef std::function&)> CreateQosAsyncHandler; @@ -537,12 +479,6 @@ namespace AlibabaCloud typedef Outcome DeleteHealthCheckOutcome; typedef std::future DeleteHealthCheckOutcomeCallable; typedef std::function&)> DeleteHealthCheckAsyncHandler; - typedef Outcome DeleteNetworkOptimizationOutcome; - typedef std::future DeleteNetworkOptimizationOutcomeCallable; - typedef std::function&)> DeleteNetworkOptimizationAsyncHandler; - typedef Outcome DeleteNetworkOptimizationSettingOutcome; - typedef std::future DeleteNetworkOptimizationSettingOutcomeCallable; - typedef std::function&)> DeleteNetworkOptimizationSettingAsyncHandler; typedef Outcome DeleteQosOutcome; typedef std::future DeleteQosOutcomeCallable; typedef std::function&)> DeleteQosAsyncHandler; @@ -555,9 +491,6 @@ namespace AlibabaCloud typedef Outcome DeleteRouteDistributionStrategyOutcome; typedef std::future DeleteRouteDistributionStrategyOutcomeCallable; typedef std::function&)> DeleteRouteDistributionStrategyAsyncHandler; - typedef Outcome DeleteSagCidrOutcome; - typedef std::future DeleteSagCidrOutcomeCallable; - typedef std::function&)> DeleteSagCidrAsyncHandler; typedef Outcome DeleteSagExpressConnectInterfaceOutcome; typedef std::future DeleteSagExpressConnectInterfaceOutcomeCallable; typedef std::function&)> DeleteSagExpressConnectInterfaceAsyncHandler; @@ -615,24 +548,6 @@ namespace AlibabaCloud typedef Outcome DescribeHealthChecksOutcome; typedef std::future DescribeHealthChecksOutcomeCallable; typedef std::function&)> DescribeHealthChecksAsyncHandler; - typedef Outcome DescribeNetworkOptimizationSagsOutcome; - typedef std::future DescribeNetworkOptimizationSagsOutcomeCallable; - typedef std::function&)> DescribeNetworkOptimizationSagsAsyncHandler; - typedef Outcome DescribeNetworkOptimizationSettingsOutcome; - typedef std::future DescribeNetworkOptimizationSettingsOutcomeCallable; - typedef std::function&)> DescribeNetworkOptimizationSettingsAsyncHandler; - typedef Outcome DescribeNetworkOptimizationsOutcome; - typedef std::future DescribeNetworkOptimizationsOutcomeCallable; - typedef std::function&)> DescribeNetworkOptimizationsAsyncHandler; - typedef Outcome DescribePbrInterfacesOutcome; - typedef std::future DescribePbrInterfacesOutcomeCallable; - typedef std::function&)> DescribePbrInterfacesAsyncHandler; - typedef Outcome DescribePbrRulesOutcome; - typedef std::future DescribePbrRulesOutcomeCallable; - typedef std::function&)> DescribePbrRulesAsyncHandler; - typedef Outcome DescribePolicyBasedRoutingsOutcome; - typedef std::future DescribePolicyBasedRoutingsOutcomeCallable; - typedef std::function&)> DescribePolicyBasedRoutingsAsyncHandler; typedef Outcome DescribeQosCarsOutcome; typedef std::future DescribeQosCarsOutcomeCallable; typedef std::function&)> DescribeQosCarsAsyncHandler; @@ -657,9 +572,6 @@ namespace AlibabaCloud typedef Outcome DescribeSagDropTopNOutcome; typedef std::future DescribeSagDropTopNOutcomeCallable; typedef std::function&)> DescribeSagDropTopNAsyncHandler; - typedef Outcome DescribeSagECRouteBackupAttributeOutcome; - typedef std::future DescribeSagECRouteBackupAttributeOutcomeCallable; - typedef std::function&)> DescribeSagECRouteBackupAttributeAsyncHandler; typedef Outcome DescribeSagExpressConnectInterfaceListOutcome; typedef std::future DescribeSagExpressConnectInterfaceListOutcomeCallable; typedef std::function&)> DescribeSagExpressConnectInterfaceListAsyncHandler; @@ -696,9 +608,6 @@ namespace AlibabaCloud typedef Outcome DescribeSagRouteProtocolOspfOutcome; typedef std::future DescribeSagRouteProtocolOspfOutcomeCallable; typedef std::function&)> DescribeSagRouteProtocolOspfAsyncHandler; - typedef Outcome DescribeSagRouteableAddressOutcome; - typedef std::future DescribeSagRouteableAddressOutcomeCallable; - typedef std::function&)> DescribeSagRouteableAddressAsyncHandler; typedef Outcome DescribeSagStaticRouteListOutcome; typedef std::future DescribeSagStaticRouteListOutcomeCallable; typedef std::function&)> DescribeSagStaticRouteListAsyncHandler; @@ -753,9 +662,6 @@ namespace AlibabaCloud typedef Outcome DescribeUserOnlineClientsOutcome; typedef std::future DescribeUserOnlineClientsOutcomeCallable; typedef std::function&)> DescribeUserOnlineClientsAsyncHandler; - typedef Outcome DetachNetworkOptimizationSagsOutcome; - typedef std::future DetachNetworkOptimizationSagsOutcomeCallable; - typedef std::function&)> DetachNetworkOptimizationSagsAsyncHandler; typedef Outcome DiagnoseSmartAccessGatewayOutcome; typedef std::future DiagnoseSmartAccessGatewayOutcomeCallable; typedef std::function&)> DiagnoseSmartAccessGatewayAsyncHandler; @@ -861,9 +767,6 @@ namespace AlibabaCloud typedef Outcome ModifyHealthCheckOutcome; typedef std::future ModifyHealthCheckOutcomeCallable; typedef std::function&)> ModifyHealthCheckAsyncHandler; - typedef Outcome ModifyNetworkOptimizationOutcome; - typedef std::future ModifyNetworkOptimizationOutcomeCallable; - typedef std::function&)> ModifyNetworkOptimizationAsyncHandler; typedef Outcome ModifyQosOutcome; typedef std::future ModifyQosOutcomeCallable; typedef std::function&)> ModifyQosAsyncHandler; @@ -879,12 +782,6 @@ namespace AlibabaCloud typedef Outcome ModifySAGAdminPasswordOutcome; typedef std::future ModifySAGAdminPasswordOutcomeCallable; typedef std::function&)> ModifySAGAdminPasswordAsyncHandler; - typedef Outcome ModifySagCidrOutcome; - typedef std::future ModifySagCidrOutcomeCallable; - typedef std::function&)> ModifySagCidrAsyncHandler; - typedef Outcome ModifySagECRouteBackupOutcome; - typedef std::future ModifySagECRouteBackupOutcomeCallable; - typedef std::function&)> ModifySagECRouteBackupAsyncHandler; typedef Outcome ModifySagExpressConnectInterfaceOutcome; typedef std::future ModifySagExpressConnectInterfaceOutcomeCallable; typedef std::function&)> ModifySagExpressConnectInterfaceAsyncHandler; @@ -942,9 +839,6 @@ namespace AlibabaCloud typedef Outcome MoveResourceGroupOutcome; typedef std::future MoveResourceGroupOutcomeCallable; typedef std::function&)> MoveResourceGroupAsyncHandler; - typedef Outcome OrchestrateSagECRouteBackupOutcome; - typedef std::future OrchestrateSagECRouteBackupOutcomeCallable; - typedef std::function&)> OrchestrateSagECRouteBackupAsyncHandler; typedef Outcome ProbeAccessPointNetworkQualityOutcome; typedef std::future ProbeAccessPointNetworkQualityOutcomeCallable; typedef std::function&)> ProbeAccessPointNetworkQualityAsyncHandler; @@ -966,9 +860,6 @@ namespace AlibabaCloud typedef Outcome RoamClientUserOutcome; typedef std::future RoamClientUserOutcomeCallable; typedef std::function&)> RoamClientUserAsyncHandler; - typedef Outcome SetSagRouteableAddressOutcome; - typedef std::future SetSagRouteableAddressOutcomeCallable; - typedef std::function&)> SetSagRouteableAddressAsyncHandler; typedef Outcome SynchronizeSmartAGWebConfigOutcome; typedef std::future SynchronizeSmartAGWebConfigOutcomeCallable; typedef std::function&)> SynchronizeSmartAGWebConfigAsyncHandler; @@ -981,12 +872,6 @@ namespace AlibabaCloud typedef Outcome UnbindVbrOutcome; typedef std::future UnbindVbrOutcomeCallable; typedef std::function&)> UnbindVbrAsyncHandler; - typedef Outcome UnicomOrderConfirmOutcome; - typedef std::future UnicomOrderConfirmOutcomeCallable; - typedef std::function&)> UnicomOrderConfirmAsyncHandler; - typedef Outcome UnicomSignConfirmOutcome; - typedef std::future UnicomSignConfirmOutcomeCallable; - typedef std::function&)> UnicomSignConfirmAsyncHandler; typedef Outcome UnlockSmartAccessGatewayOutcome; typedef std::future UnlockSmartAccessGatewayOutcomeCallable; typedef std::function&)> UnlockSmartAccessGatewayAsyncHandler; @@ -1028,12 +913,6 @@ namespace AlibabaCloud AddDnatEntryOutcome addDnatEntry(const Model::AddDnatEntryRequest &request)const; void addDnatEntryAsync(const Model::AddDnatEntryRequest& request, const AddDnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddDnatEntryOutcomeCallable addDnatEntryCallable(const Model::AddDnatEntryRequest& request) const; - AddNetworkOptimizationSettingOutcome addNetworkOptimizationSetting(const Model::AddNetworkOptimizationSettingRequest &request)const; - void addNetworkOptimizationSettingAsync(const Model::AddNetworkOptimizationSettingRequest& request, const AddNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddNetworkOptimizationSettingOutcomeCallable addNetworkOptimizationSettingCallable(const Model::AddNetworkOptimizationSettingRequest& request) const; - AddSagCidrOutcome addSagCidr(const Model::AddSagCidrRequest &request)const; - void addSagCidrAsync(const Model::AddSagCidrRequest& request, const AddSagCidrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddSagCidrOutcomeCallable addSagCidrCallable(const Model::AddSagCidrRequest& request) const; AddSnatEntryOutcome addSnatEntry(const Model::AddSnatEntryRequest &request)const; void addSnatEntryAsync(const Model::AddSnatEntryRequest& request, const AddSnatEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddSnatEntryOutcomeCallable addSnatEntryCallable(const Model::AddSnatEntryRequest& request) const; @@ -1046,9 +925,6 @@ namespace AlibabaCloud AssociateQosOutcome associateQos(const Model::AssociateQosRequest &request)const; void associateQosAsync(const Model::AssociateQosRequest& request, const AssociateQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateQosOutcomeCallable associateQosCallable(const Model::AssociateQosRequest& request) const; - AttachNetworkOptimizationSagsOutcome attachNetworkOptimizationSags(const Model::AttachNetworkOptimizationSagsRequest &request)const; - void attachNetworkOptimizationSagsAsync(const Model::AttachNetworkOptimizationSagsRequest& request, const AttachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AttachNetworkOptimizationSagsOutcomeCallable attachNetworkOptimizationSagsCallable(const Model::AttachNetworkOptimizationSagsRequest& request) const; BindSerialNumberOutcome bindSerialNumber(const Model::BindSerialNumberRequest &request)const; void bindSerialNumberAsync(const Model::BindSerialNumberRequest& request, const BindSerialNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindSerialNumberOutcomeCallable bindSerialNumberCallable(const Model::BindSerialNumberRequest& request) const; @@ -1079,9 +955,6 @@ namespace AlibabaCloud CreateHealthCheckOutcome createHealthCheck(const Model::CreateHealthCheckRequest &request)const; void createHealthCheckAsync(const Model::CreateHealthCheckRequest& request, const CreateHealthCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateHealthCheckOutcomeCallable createHealthCheckCallable(const Model::CreateHealthCheckRequest& request) const; - CreateNetworkOptimizationOutcome createNetworkOptimization(const Model::CreateNetworkOptimizationRequest &request)const; - void createNetworkOptimizationAsync(const Model::CreateNetworkOptimizationRequest& request, const CreateNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateNetworkOptimizationOutcomeCallable createNetworkOptimizationCallable(const Model::CreateNetworkOptimizationRequest& request) const; CreateQosOutcome createQos(const Model::CreateQosRequest &request)const; void createQosAsync(const Model::CreateQosRequest& request, const CreateQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateQosOutcomeCallable createQosCallable(const Model::CreateQosRequest& request) const; @@ -1130,12 +1003,6 @@ namespace AlibabaCloud DeleteHealthCheckOutcome deleteHealthCheck(const Model::DeleteHealthCheckRequest &request)const; void deleteHealthCheckAsync(const Model::DeleteHealthCheckRequest& request, const DeleteHealthCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteHealthCheckOutcomeCallable deleteHealthCheckCallable(const Model::DeleteHealthCheckRequest& request) const; - DeleteNetworkOptimizationOutcome deleteNetworkOptimization(const Model::DeleteNetworkOptimizationRequest &request)const; - void deleteNetworkOptimizationAsync(const Model::DeleteNetworkOptimizationRequest& request, const DeleteNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteNetworkOptimizationOutcomeCallable deleteNetworkOptimizationCallable(const Model::DeleteNetworkOptimizationRequest& request) const; - DeleteNetworkOptimizationSettingOutcome deleteNetworkOptimizationSetting(const Model::DeleteNetworkOptimizationSettingRequest &request)const; - void deleteNetworkOptimizationSettingAsync(const Model::DeleteNetworkOptimizationSettingRequest& request, const DeleteNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteNetworkOptimizationSettingOutcomeCallable deleteNetworkOptimizationSettingCallable(const Model::DeleteNetworkOptimizationSettingRequest& request) const; DeleteQosOutcome deleteQos(const Model::DeleteQosRequest &request)const; void deleteQosAsync(const Model::DeleteQosRequest& request, const DeleteQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteQosOutcomeCallable deleteQosCallable(const Model::DeleteQosRequest& request) const; @@ -1148,9 +1015,6 @@ namespace AlibabaCloud DeleteRouteDistributionStrategyOutcome deleteRouteDistributionStrategy(const Model::DeleteRouteDistributionStrategyRequest &request)const; void deleteRouteDistributionStrategyAsync(const Model::DeleteRouteDistributionStrategyRequest& request, const DeleteRouteDistributionStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteRouteDistributionStrategyOutcomeCallable deleteRouteDistributionStrategyCallable(const Model::DeleteRouteDistributionStrategyRequest& request) const; - DeleteSagCidrOutcome deleteSagCidr(const Model::DeleteSagCidrRequest &request)const; - void deleteSagCidrAsync(const Model::DeleteSagCidrRequest& request, const DeleteSagCidrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteSagCidrOutcomeCallable deleteSagCidrCallable(const Model::DeleteSagCidrRequest& request) const; DeleteSagExpressConnectInterfaceOutcome deleteSagExpressConnectInterface(const Model::DeleteSagExpressConnectInterfaceRequest &request)const; void deleteSagExpressConnectInterfaceAsync(const Model::DeleteSagExpressConnectInterfaceRequest& request, const DeleteSagExpressConnectInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSagExpressConnectInterfaceOutcomeCallable deleteSagExpressConnectInterfaceCallable(const Model::DeleteSagExpressConnectInterfaceRequest& request) const; @@ -1208,24 +1072,6 @@ namespace AlibabaCloud DescribeHealthChecksOutcome describeHealthChecks(const Model::DescribeHealthChecksRequest &request)const; void describeHealthChecksAsync(const Model::DescribeHealthChecksRequest& request, const DescribeHealthChecksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeHealthChecksOutcomeCallable describeHealthChecksCallable(const Model::DescribeHealthChecksRequest& request) const; - DescribeNetworkOptimizationSagsOutcome describeNetworkOptimizationSags(const Model::DescribeNetworkOptimizationSagsRequest &request)const; - void describeNetworkOptimizationSagsAsync(const Model::DescribeNetworkOptimizationSagsRequest& request, const DescribeNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeNetworkOptimizationSagsOutcomeCallable describeNetworkOptimizationSagsCallable(const Model::DescribeNetworkOptimizationSagsRequest& request) const; - DescribeNetworkOptimizationSettingsOutcome describeNetworkOptimizationSettings(const Model::DescribeNetworkOptimizationSettingsRequest &request)const; - void describeNetworkOptimizationSettingsAsync(const Model::DescribeNetworkOptimizationSettingsRequest& request, const DescribeNetworkOptimizationSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeNetworkOptimizationSettingsOutcomeCallable describeNetworkOptimizationSettingsCallable(const Model::DescribeNetworkOptimizationSettingsRequest& request) const; - DescribeNetworkOptimizationsOutcome describeNetworkOptimizations(const Model::DescribeNetworkOptimizationsRequest &request)const; - void describeNetworkOptimizationsAsync(const Model::DescribeNetworkOptimizationsRequest& request, const DescribeNetworkOptimizationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeNetworkOptimizationsOutcomeCallable describeNetworkOptimizationsCallable(const Model::DescribeNetworkOptimizationsRequest& request) const; - DescribePbrInterfacesOutcome describePbrInterfaces(const Model::DescribePbrInterfacesRequest &request)const; - void describePbrInterfacesAsync(const Model::DescribePbrInterfacesRequest& request, const DescribePbrInterfacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePbrInterfacesOutcomeCallable describePbrInterfacesCallable(const Model::DescribePbrInterfacesRequest& request) const; - DescribePbrRulesOutcome describePbrRules(const Model::DescribePbrRulesRequest &request)const; - void describePbrRulesAsync(const Model::DescribePbrRulesRequest& request, const DescribePbrRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePbrRulesOutcomeCallable describePbrRulesCallable(const Model::DescribePbrRulesRequest& request) const; - DescribePolicyBasedRoutingsOutcome describePolicyBasedRoutings(const Model::DescribePolicyBasedRoutingsRequest &request)const; - void describePolicyBasedRoutingsAsync(const Model::DescribePolicyBasedRoutingsRequest& request, const DescribePolicyBasedRoutingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePolicyBasedRoutingsOutcomeCallable describePolicyBasedRoutingsCallable(const Model::DescribePolicyBasedRoutingsRequest& request) const; DescribeQosCarsOutcome describeQosCars(const Model::DescribeQosCarsRequest &request)const; void describeQosCarsAsync(const Model::DescribeQosCarsRequest& request, const DescribeQosCarsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeQosCarsOutcomeCallable describeQosCarsCallable(const Model::DescribeQosCarsRequest& request) const; @@ -1250,9 +1096,6 @@ namespace AlibabaCloud DescribeSagDropTopNOutcome describeSagDropTopN(const Model::DescribeSagDropTopNRequest &request)const; void describeSagDropTopNAsync(const Model::DescribeSagDropTopNRequest& request, const DescribeSagDropTopNAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSagDropTopNOutcomeCallable describeSagDropTopNCallable(const Model::DescribeSagDropTopNRequest& request) const; - DescribeSagECRouteBackupAttributeOutcome describeSagECRouteBackupAttribute(const Model::DescribeSagECRouteBackupAttributeRequest &request)const; - void describeSagECRouteBackupAttributeAsync(const Model::DescribeSagECRouteBackupAttributeRequest& request, const DescribeSagECRouteBackupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSagECRouteBackupAttributeOutcomeCallable describeSagECRouteBackupAttributeCallable(const Model::DescribeSagECRouteBackupAttributeRequest& request) const; DescribeSagExpressConnectInterfaceListOutcome describeSagExpressConnectInterfaceList(const Model::DescribeSagExpressConnectInterfaceListRequest &request)const; void describeSagExpressConnectInterfaceListAsync(const Model::DescribeSagExpressConnectInterfaceListRequest& request, const DescribeSagExpressConnectInterfaceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSagExpressConnectInterfaceListOutcomeCallable describeSagExpressConnectInterfaceListCallable(const Model::DescribeSagExpressConnectInterfaceListRequest& request) const; @@ -1289,9 +1132,6 @@ namespace AlibabaCloud DescribeSagRouteProtocolOspfOutcome describeSagRouteProtocolOspf(const Model::DescribeSagRouteProtocolOspfRequest &request)const; void describeSagRouteProtocolOspfAsync(const Model::DescribeSagRouteProtocolOspfRequest& request, const DescribeSagRouteProtocolOspfAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSagRouteProtocolOspfOutcomeCallable describeSagRouteProtocolOspfCallable(const Model::DescribeSagRouteProtocolOspfRequest& request) const; - DescribeSagRouteableAddressOutcome describeSagRouteableAddress(const Model::DescribeSagRouteableAddressRequest &request)const; - void describeSagRouteableAddressAsync(const Model::DescribeSagRouteableAddressRequest& request, const DescribeSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSagRouteableAddressOutcomeCallable describeSagRouteableAddressCallable(const Model::DescribeSagRouteableAddressRequest& request) const; DescribeSagStaticRouteListOutcome describeSagStaticRouteList(const Model::DescribeSagStaticRouteListRequest &request)const; void describeSagStaticRouteListAsync(const Model::DescribeSagStaticRouteListRequest& request, const DescribeSagStaticRouteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSagStaticRouteListOutcomeCallable describeSagStaticRouteListCallable(const Model::DescribeSagStaticRouteListRequest& request) const; @@ -1346,9 +1186,6 @@ namespace AlibabaCloud DescribeUserOnlineClientsOutcome describeUserOnlineClients(const Model::DescribeUserOnlineClientsRequest &request)const; void describeUserOnlineClientsAsync(const Model::DescribeUserOnlineClientsRequest& request, const DescribeUserOnlineClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserOnlineClientsOutcomeCallable describeUserOnlineClientsCallable(const Model::DescribeUserOnlineClientsRequest& request) const; - DetachNetworkOptimizationSagsOutcome detachNetworkOptimizationSags(const Model::DetachNetworkOptimizationSagsRequest &request)const; - void detachNetworkOptimizationSagsAsync(const Model::DetachNetworkOptimizationSagsRequest& request, const DetachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetachNetworkOptimizationSagsOutcomeCallable detachNetworkOptimizationSagsCallable(const Model::DetachNetworkOptimizationSagsRequest& request) const; DiagnoseSmartAccessGatewayOutcome diagnoseSmartAccessGateway(const Model::DiagnoseSmartAccessGatewayRequest &request)const; void diagnoseSmartAccessGatewayAsync(const Model::DiagnoseSmartAccessGatewayRequest& request, const DiagnoseSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DiagnoseSmartAccessGatewayOutcomeCallable diagnoseSmartAccessGatewayCallable(const Model::DiagnoseSmartAccessGatewayRequest& request) const; @@ -1454,9 +1291,6 @@ namespace AlibabaCloud ModifyHealthCheckOutcome modifyHealthCheck(const Model::ModifyHealthCheckRequest &request)const; void modifyHealthCheckAsync(const Model::ModifyHealthCheckRequest& request, const ModifyHealthCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyHealthCheckOutcomeCallable modifyHealthCheckCallable(const Model::ModifyHealthCheckRequest& request) const; - ModifyNetworkOptimizationOutcome modifyNetworkOptimization(const Model::ModifyNetworkOptimizationRequest &request)const; - void modifyNetworkOptimizationAsync(const Model::ModifyNetworkOptimizationRequest& request, const ModifyNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyNetworkOptimizationOutcomeCallable modifyNetworkOptimizationCallable(const Model::ModifyNetworkOptimizationRequest& request) const; ModifyQosOutcome modifyQos(const Model::ModifyQosRequest &request)const; void modifyQosAsync(const Model::ModifyQosRequest& request, const ModifyQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyQosOutcomeCallable modifyQosCallable(const Model::ModifyQosRequest& request) const; @@ -1472,12 +1306,6 @@ namespace AlibabaCloud ModifySAGAdminPasswordOutcome modifySAGAdminPassword(const Model::ModifySAGAdminPasswordRequest &request)const; void modifySAGAdminPasswordAsync(const Model::ModifySAGAdminPasswordRequest& request, const ModifySAGAdminPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySAGAdminPasswordOutcomeCallable modifySAGAdminPasswordCallable(const Model::ModifySAGAdminPasswordRequest& request) const; - ModifySagCidrOutcome modifySagCidr(const Model::ModifySagCidrRequest &request)const; - void modifySagCidrAsync(const Model::ModifySagCidrRequest& request, const ModifySagCidrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySagCidrOutcomeCallable modifySagCidrCallable(const Model::ModifySagCidrRequest& request) const; - ModifySagECRouteBackupOutcome modifySagECRouteBackup(const Model::ModifySagECRouteBackupRequest &request)const; - void modifySagECRouteBackupAsync(const Model::ModifySagECRouteBackupRequest& request, const ModifySagECRouteBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySagECRouteBackupOutcomeCallable modifySagECRouteBackupCallable(const Model::ModifySagECRouteBackupRequest& request) const; ModifySagExpressConnectInterfaceOutcome modifySagExpressConnectInterface(const Model::ModifySagExpressConnectInterfaceRequest &request)const; void modifySagExpressConnectInterfaceAsync(const Model::ModifySagExpressConnectInterfaceRequest& request, const ModifySagExpressConnectInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySagExpressConnectInterfaceOutcomeCallable modifySagExpressConnectInterfaceCallable(const Model::ModifySagExpressConnectInterfaceRequest& request) const; @@ -1535,9 +1363,6 @@ namespace AlibabaCloud MoveResourceGroupOutcome moveResourceGroup(const Model::MoveResourceGroupRequest &request)const; void moveResourceGroupAsync(const Model::MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MoveResourceGroupOutcomeCallable moveResourceGroupCallable(const Model::MoveResourceGroupRequest& request) const; - OrchestrateSagECRouteBackupOutcome orchestrateSagECRouteBackup(const Model::OrchestrateSagECRouteBackupRequest &request)const; - void orchestrateSagECRouteBackupAsync(const Model::OrchestrateSagECRouteBackupRequest& request, const OrchestrateSagECRouteBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - OrchestrateSagECRouteBackupOutcomeCallable orchestrateSagECRouteBackupCallable(const Model::OrchestrateSagECRouteBackupRequest& request) const; ProbeAccessPointNetworkQualityOutcome probeAccessPointNetworkQuality(const Model::ProbeAccessPointNetworkQualityRequest &request)const; void probeAccessPointNetworkQualityAsync(const Model::ProbeAccessPointNetworkQualityRequest& request, const ProbeAccessPointNetworkQualityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ProbeAccessPointNetworkQualityOutcomeCallable probeAccessPointNetworkQualityCallable(const Model::ProbeAccessPointNetworkQualityRequest& request) const; @@ -1559,9 +1384,6 @@ namespace AlibabaCloud RoamClientUserOutcome roamClientUser(const Model::RoamClientUserRequest &request)const; void roamClientUserAsync(const Model::RoamClientUserRequest& request, const RoamClientUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RoamClientUserOutcomeCallable roamClientUserCallable(const Model::RoamClientUserRequest& request) const; - SetSagRouteableAddressOutcome setSagRouteableAddress(const Model::SetSagRouteableAddressRequest &request)const; - void setSagRouteableAddressAsync(const Model::SetSagRouteableAddressRequest& request, const SetSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetSagRouteableAddressOutcomeCallable setSagRouteableAddressCallable(const Model::SetSagRouteableAddressRequest& request) const; SynchronizeSmartAGWebConfigOutcome synchronizeSmartAGWebConfig(const Model::SynchronizeSmartAGWebConfigRequest &request)const; void synchronizeSmartAGWebConfigAsync(const Model::SynchronizeSmartAGWebConfigRequest& request, const SynchronizeSmartAGWebConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SynchronizeSmartAGWebConfigOutcomeCallable synchronizeSmartAGWebConfigCallable(const Model::SynchronizeSmartAGWebConfigRequest& request) const; @@ -1574,12 +1396,6 @@ namespace AlibabaCloud UnbindVbrOutcome unbindVbr(const Model::UnbindVbrRequest &request)const; void unbindVbrAsync(const Model::UnbindVbrRequest& request, const UnbindVbrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindVbrOutcomeCallable unbindVbrCallable(const Model::UnbindVbrRequest& request) const; - UnicomOrderConfirmOutcome unicomOrderConfirm(const Model::UnicomOrderConfirmRequest &request)const; - void unicomOrderConfirmAsync(const Model::UnicomOrderConfirmRequest& request, const UnicomOrderConfirmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnicomOrderConfirmOutcomeCallable unicomOrderConfirmCallable(const Model::UnicomOrderConfirmRequest& request) const; - UnicomSignConfirmOutcome unicomSignConfirm(const Model::UnicomSignConfirmRequest &request)const; - void unicomSignConfirmAsync(const Model::UnicomSignConfirmRequest& request, const UnicomSignConfirmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UnicomSignConfirmOutcomeCallable unicomSignConfirmCallable(const Model::UnicomSignConfirmRequest& request) const; UnlockSmartAccessGatewayOutcome unlockSmartAccessGateway(const Model::UnlockSmartAccessGatewayRequest &request)const; void unlockSmartAccessGatewayAsync(const Model::UnlockSmartAccessGatewayRequest& request, const UnlockSmartAccessGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnlockSmartAccessGatewayOutcomeCallable unlockSmartAccessGatewayCallable(const Model::UnlockSmartAccessGatewayRequest& request) const; diff --git a/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h index be0714e6c..e03cfc329 100644 --- a/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ActivateSmartAccessGatewayRequest.h @@ -1,63 +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_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ActivateSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - ActivateSmartAccessGatewayRequest(); - ~ActivateSmartAccessGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ActivateSmartAccessGatewayRequest : public RpcServiceRequest { +public: + ActivateSmartAccessGatewayRequest(); + ~ActivateSmartAccessGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ACTIVATESMARTACCESSGATEWAYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ActiveFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/ActiveFlowLogRequest.h index fd72450a1..563b70d4b 100644 --- a/smartag/include/alibabacloud/smartag/model/ActiveFlowLogRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ActiveFlowLogRequest.h @@ -1,63 +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_SMARTAG_MODEL_ACTIVEFLOWLOGREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVEFLOWLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ActiveFlowLogRequest : public RpcServiceRequest - { - - public: - ActiveFlowLogRequest(); - ~ActiveFlowLogRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string flowLogId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ACTIVEFLOWLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ACTIVEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ACTIVEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ActiveFlowLogRequest : public RpcServiceRequest { +public: + ActiveFlowLogRequest(); + ~ActiveFlowLogRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ACTIVEFLOWLOGREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h b/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h index 7667836ee..29ade84cd 100644 --- a/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h +++ b/smartag/include/alibabacloud/smartag/model/AddACLRuleRequest.h @@ -1,102 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AddACLRuleRequest : public RpcServiceRequest - { - - public: - AddACLRuleRequest(); - ~AddACLRuleRequest(); - - std::vector getDpiGroupIds()const; - void setDpiGroupIds(const std::vector& dpiGroupIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourcePortRange()const; - void setSourcePortRange(const std::string& sourcePortRange); - std::string getSourceCidr()const; - void setSourceCidr(const std::string& sourceCidr); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getType()const; - void setType(const std::string& type); - std::string getDestCidr()const; - void setDestCidr(const std::string& destCidr); - std::vector getDpiSignatureIds()const; - void setDpiSignatureIds(const std::vector& dpiSignatureIds); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDirection()const; - void setDirection(const std::string& direction); - std::string getPolicy()const; - void setPolicy(const std::string& policy); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getDestPortRange()const; - void setDestPortRange(const std::string& destPortRange); - std::string getName()const; - void setName(const std::string& name); - - private: - std::vector dpiGroupIds_; - long resourceOwnerId_; - std::string sourcePortRange_; - std::string sourceCidr_; - std::string description_; - std::string type_; - std::string destCidr_; - std::vector dpiSignatureIds_; - std::string regionId_; - std::string direction_; - std::string policy_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - long ownerId_; - int priority_; - std::string destPortRange_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT AddACLRuleRequest : public RpcServiceRequest { +public: + AddACLRuleRequest(); + ~AddACLRuleRequest(); + std::vector getDpiGroupIds() const; + void setDpiGroupIds(const std::vector &dpiGroupIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getSourceCidr() const; + void setSourceCidr(const std::string &sourceCidr); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + std::string getDestCidr() const; + void setDestCidr(const std::string &destCidr); + std::vector getDpiSignatureIds() const; + void setDpiSignatureIds(const std::vector &dpiSignatureIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getDestPortRange() const; + void setDestPortRange(const std::string &destPortRange); + std::string getName() const; + void setName(const std::string &name); + +private: + std::vector dpiGroupIds_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string sourceCidr_; + std::string description_; + std::string type_; + std::string destCidr_; + std::vector dpiSignatureIds_; + std::string regionId_; + std::string direction_; + std::string policy_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + long ownerId_; + int priority_; + std::string destPortRange_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDACLRULEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h b/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h index 831c3587e..02ca98d93 100644 --- a/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h +++ b/smartag/include/alibabacloud/smartag/model/AddACLRuleResult.h @@ -48,8 +48,8 @@ namespace AlibabaCloud std::vector getDpiGroupIds()const; std::string getDirection()const; std::string getName()const; - long getGmtCreate()const; std::string getType()const; + long getGmtCreate()const; std::string getDestCidr()const; std::vector getDpiSignatureIds()const; std::string getIpProtocol()const; @@ -68,8 +68,8 @@ namespace AlibabaCloud std::vector dpiGroupIds_; std::string direction_; std::string name_; - long gmtCreate_; std::string type_; + long gmtCreate_; std::string destCidr_; std::vector dpiSignatureIds_; std::string ipProtocol_; diff --git a/smartag/include/alibabacloud/smartag/model/AddDnatEntryRequest.h b/smartag/include/alibabacloud/smartag/model/AddDnatEntryRequest.h index e58359aa4..6d8337d9a 100644 --- a/smartag/include/alibabacloud/smartag/model/AddDnatEntryRequest.h +++ b/smartag/include/alibabacloud/smartag/model/AddDnatEntryRequest.h @@ -1,81 +1,75 @@ /* * 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_SMARTAG_MODEL_ADDDNATENTRYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ADDDNATENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AddDnatEntryRequest : public RpcServiceRequest - { - - public: - AddDnatEntryRequest(); - ~AddDnatEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getType()const; - void setType(const std::string& type); - std::string getInternalIp()const; - void setInternalIp(const std::string& internalIp); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getExternalIp()const; - void setExternalIp(const std::string& externalIp); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSagId()const; - void setSagId(const std::string& sagId); - std::string getInternalPort()const; - void setInternalPort(const std::string& internalPort); - std::string getExternalPort()const; - void setExternalPort(const std::string& externalPort); - - private: - long resourceOwnerId_; - std::string type_; - std::string internalIp_; - std::string regionId_; - std::string externalIp_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - long ownerId_; - std::string sagId_; - std::string internalPort_; - std::string externalPort_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDDNATENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDDNATENTRYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDDNATENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT AddDnatEntryRequest : public RpcServiceRequest { +public: + AddDnatEntryRequest(); + ~AddDnatEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getType() const; + void setType(const std::string &type); + std::string getInternalIp() const; + void setInternalIp(const std::string &internalIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getExternalIp() const; + void setExternalIp(const std::string &externalIp); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSagId() const; + void setSagId(const std::string &sagId); + std::string getInternalPort() const; + void setInternalPort(const std::string &internalPort); + std::string getExternalPort() const; + void setExternalPort(const std::string &externalPort); + +private: + long resourceOwnerId_; + std::string type_; + std::string internalIp_; + std::string regionId_; + std::string externalIp_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + long ownerId_; + std::string sagId_; + std::string internalPort_; + std::string externalPort_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDDNATENTRYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.h b/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.h deleted file mode 100644 index b91c3c76a..000000000 --- a/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AddNetworkOptimizationSettingRequest : public RpcServiceRequest - { - - public: - AddNetworkOptimizationSettingRequest(); - ~AddNetworkOptimizationSettingRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getType()const; - void setType(const std::string& type); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkOptId()const; - void setNetworkOptId(const std::string& networkOptId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDomain()const; - void setDomain(const std::string& domain); - - private: - long resourceOwnerId_; - std::string type_; - std::string regionId_; - std::string networkOptId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string domain_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.h b/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.h deleted file mode 100644 index 2e3961a7b..000000000 --- a/smartag/include/alibabacloud/smartag/model/AddNetworkOptimizationSettingResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AddNetworkOptimizationSettingResult : public ServiceResult - { - public: - - - AddNetworkOptimizationSettingResult(); - explicit AddNetworkOptimizationSettingResult(const std::string &payload); - ~AddNetworkOptimizationSettingResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDNETWORKOPTIMIZATIONSETTINGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddSagCidrRequest.h b/smartag/include/alibabacloud/smartag/model/AddSagCidrRequest.h deleted file mode 100644 index d4b58de1e..000000000 --- a/smartag/include/alibabacloud/smartag/model/AddSagCidrRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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_SMARTAG_MODEL_ADDSAGCIDRREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ADDSAGCIDRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AddSagCidrRequest : public RpcServiceRequest - { - - public: - AddSagCidrRequest(); - ~AddSagCidrRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getCidr()const; - void setCidr(const std::string& cidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getEnableBackup()const; - void setEnableBackup(bool enableBackup); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string cidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool enableBackup_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDSAGCIDRREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddSagCidrResult.h b/smartag/include/alibabacloud/smartag/model/AddSagCidrResult.h deleted file mode 100644 index 9c6d25fa4..000000000 --- a/smartag/include/alibabacloud/smartag/model/AddSagCidrResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_ADDSAGCIDRRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ADDSAGCIDRRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AddSagCidrResult : public ServiceResult - { - public: - - - AddSagCidrResult(); - explicit AddSagCidrResult(const std::string &payload); - ~AddSagCidrResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDSAGCIDRRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AddSnatEntryRequest.h b/smartag/include/alibabacloud/smartag/model/AddSnatEntryRequest.h index 177f50008..ad9c09c08 100644 --- a/smartag/include/alibabacloud/smartag/model/AddSnatEntryRequest.h +++ b/smartag/include/alibabacloud/smartag/model/AddSnatEntryRequest.h @@ -1,69 +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_SMARTAG_MODEL_ADDSNATENTRYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ADDSNATENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AddSnatEntryRequest : public RpcServiceRequest - { - - public: - AddSnatEntryRequest(); - ~AddSnatEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSnatIp()const; - void setSnatIp(const std::string& snatIp); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getCidrBlock()const; - void setCidrBlock(const std::string& cidrBlock); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string snatIp_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string cidrBlock_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDSNATENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ADDSNATENTRYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ADDSNATENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT AddSnatEntryRequest : public RpcServiceRequest { +public: + AddSnatEntryRequest(); + ~AddSnatEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnatIp() const; + void setSnatIp(const std::string &snatIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string snatIp_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string cidrBlock_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ADDSNATENTRYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/AssociateACLRequest.h b/smartag/include/alibabacloud/smartag/model/AssociateACLRequest.h index a252cf99e..358f8ed35 100644 --- a/smartag/include/alibabacloud/smartag/model/AssociateACLRequest.h +++ b/smartag/include/alibabacloud/smartag/model/AssociateACLRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AssociateACLRequest : public RpcServiceRequest - { - - public: - AssociateACLRequest(); - ~AssociateACLRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT AssociateACLRequest : public RpcServiceRequest { +public: + AssociateACLRequest(); + ~AssociateACLRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEACLREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/AssociateFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/AssociateFlowLogRequest.h index af7327e92..4f06d7686 100644 --- a/smartag/include/alibabacloud/smartag/model/AssociateFlowLogRequest.h +++ b/smartag/include/alibabacloud/smartag/model/AssociateFlowLogRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_ASSOCIATEFLOWLOGREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEFLOWLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AssociateFlowLogRequest : public RpcServiceRequest - { - - public: - AssociateFlowLogRequest(); - ~AssociateFlowLogRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string flowLogId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEFLOWLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT AssociateFlowLogRequest : public RpcServiceRequest { +public: + AssociateFlowLogRequest(); + ~AssociateFlowLogRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string flowLogId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEFLOWLOGREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/AssociateQosRequest.h b/smartag/include/alibabacloud/smartag/model/AssociateQosRequest.h index 31fc90bcf..a2e19d9cb 100644 --- a/smartag/include/alibabacloud/smartag/model/AssociateQosRequest.h +++ b/smartag/include/alibabacloud/smartag/model/AssociateQosRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_ASSOCIATEQOSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEQOSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AssociateQosRequest : public RpcServiceRequest - { - - public: - AssociateQosRequest(); - ~AssociateQosRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getQosId()const; - void setQosId(const std::string& qosId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string qosId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEQOSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEQOSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEQOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT AssociateQosRequest : public RpcServiceRequest { +public: + AssociateQosRequest(); + ~AssociateQosRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ASSOCIATEQOSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.h b/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.h deleted file mode 100644 index 9f357cdef..000000000 --- a/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AttachNetworkOptimizationSagsRequest : public RpcServiceRequest - { - - public: - AttachNetworkOptimizationSagsRequest(); - ~AttachNetworkOptimizationSagsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkOptId()const; - void setNetworkOptId(const std::string& networkOptId); - std::vector getSmartAGIds()const; - void setSmartAGIds(const std::vector& smartAGIds); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string networkOptId_; - std::vector smartAGIds_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.h b/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.h deleted file mode 100644 index 1a58907a7..000000000 --- a/smartag/include/alibabacloud/smartag/model/AttachNetworkOptimizationSagsResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT AttachNetworkOptimizationSagsResult : public ServiceResult - { - public: - - - AttachNetworkOptimizationSagsResult(); - explicit AttachNetworkOptimizationSagsResult(const std::string &payload); - ~AttachNetworkOptimizationSagsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ATTACHNETWORKOPTIMIZATIONSAGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/BindSerialNumberRequest.h b/smartag/include/alibabacloud/smartag/model/BindSerialNumberRequest.h index 8426d8849..2e30d5122 100644 --- a/smartag/include/alibabacloud/smartag/model/BindSerialNumberRequest.h +++ b/smartag/include/alibabacloud/smartag/model/BindSerialNumberRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_BINDSERIALNUMBERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_BINDSERIALNUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT BindSerialNumberRequest : public RpcServiceRequest - { - - public: - BindSerialNumberRequest(); - ~BindSerialNumberRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string serialNumber_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDSERIALNUMBERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDSERIALNUMBERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_BINDSERIALNUMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT BindSerialNumberRequest : public RpcServiceRequest { +public: + BindSerialNumberRequest(); + ~BindSerialNumberRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDSERIALNUMBERREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h index 1bbc8a3ba..8fa275345 100644 --- a/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/BindSmartAccessGatewayRequest.h @@ -1,69 +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_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT BindSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - BindSmartAccessGatewayRequest(); - ~BindSmartAccessGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCcnId()const; - void setCcnId(const std::string& ccnId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getSmartAGUid()const; - void setSmartAGUid(long smartAGUid); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string ccnId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - long smartAGUid_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT BindSmartAccessGatewayRequest : public RpcServiceRequest { +public: + BindSmartAccessGatewayRequest(); + ~BindSmartAccessGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCcnId() const; + void setCcnId(const std::string &ccnId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getSmartAGUid() const; + void setSmartAGUid(long smartAGUid); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string ccnId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + long smartAGUid_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDSMARTACCESSGATEWAYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/BindVbrRequest.h b/smartag/include/alibabacloud/smartag/model/BindVbrRequest.h index d760dba91..0409f250a 100644 --- a/smartag/include/alibabacloud/smartag/model/BindVbrRequest.h +++ b/smartag/include/alibabacloud/smartag/model/BindVbrRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDVBRREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_BINDVBRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT BindVbrRequest : public RpcServiceRequest - { - - public: - BindVbrRequest(); - ~BindVbrRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVbrId()const; - void setVbrId(const std::string& vbrId); - std::string getVbrRegionId()const; - void setVbrRegionId(const std::string& vbrRegionId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getSmartAGUid()const; - void setSmartAGUid(long smartAGUid); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string vbrId_; - std::string vbrRegionId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - long smartAGUid_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDVBRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_BINDVBRREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_BINDVBRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT BindVbrRequest : public RpcServiceRequest { +public: + BindVbrRequest(); + ~BindVbrRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getVbrRegionId() const; + void setVbrRegionId(const std::string &vbrRegionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getSmartAGUid() const; + void setSmartAGUid(long smartAGUid); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string vbrId_; + std::string vbrRegionId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + long smartAGUid_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_BINDVBRREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ClearSagCipherRequest.h b/smartag/include/alibabacloud/smartag/model/ClearSagCipherRequest.h index cbecd3a98..30153d197 100644 --- a/smartag/include/alibabacloud/smartag/model/ClearSagCipherRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ClearSagCipherRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_CLEARSAGCIPHERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGCIPHERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ClearSagCipherRequest : public RpcServiceRequest - { - - public: - ClearSagCipherRequest(); - ~ClearSagCipherRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSnNumber()const; - void setSnNumber(const std::string& snNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSagId()const; - void setSagId(const std::string& sagId); - - private: - long resourceOwnerId_; - std::string snNumber_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string sagId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGCIPHERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGCIPHERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGCIPHERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ClearSagCipherRequest : public RpcServiceRequest { +public: + ClearSagCipherRequest(); + ~ClearSagCipherRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnNumber() const; + void setSnNumber(const std::string &snNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSagId() const; + void setSagId(const std::string &sagId); + +private: + long resourceOwnerId_; + std::string snNumber_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string sagId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGCIPHERREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h b/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h index 6601643b3..a96f760f6 100644 --- a/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ClearSagRouteableAddressRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ClearSagRouteableAddressRequest : public RpcServiceRequest - { - - public: - ClearSagRouteableAddressRequest(); - ~ClearSagRouteableAddressRequest(); - - std::string getAccess_key_id()const; - void setAccess_key_id(const std::string& access_key_id); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSagId()const; - void setSagId(const std::string& sagId); - - private: - std::string access_key_id_; - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string sagId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ClearSagRouteableAddressRequest : public RpcServiceRequest { +public: + ClearSagRouteableAddressRequest(); + ~ClearSagRouteableAddressRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSagId() const; + void setSagId(const std::string &sagId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string sagId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CLEARSAGROUTEABLEADDRESSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateACLRequest.h b/smartag/include/alibabacloud/smartag/model/CreateACLRequest.h index a60c130fa..53308964d 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateACLRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateACLRequest.h @@ -1,63 +1,60 @@ /* * 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_SMARTAG_MODEL_CREATEACLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateACLRequest : public RpcServiceRequest - { - - public: - CreateACLRequest(); - ~CreateACLRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateACLRequest : public RpcServiceRequest { +public: + CreateACLRequest(); + ~CreateACLRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string resourceGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEACLREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateACLResult.h b/smartag/include/alibabacloud/smartag/model/CreateACLResult.h index c49249e41..4e12e8c88 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateACLResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateACLResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud CreateACLResult(); explicit CreateACLResult(const std::string &payload); ~CreateACLResult(); + std::string getResourceGroupId()const; std::string getAclId()const; protected: void parse(const std::string &payload); private: + std::string resourceGroupId_; std::string aclId_; }; diff --git a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h index 46fc84135..cd4868713 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkRequest.h @@ -1,75 +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_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateCloudConnectNetworkRequest : public RpcServiceRequest - { - - public: - CreateCloudConnectNetworkRequest(); - ~CreateCloudConnectNetworkRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSnatCidrBlock()const; - void setSnatCidrBlock(const std::string& snatCidrBlock); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getIsDefault()const; - void setIsDefault(bool isDefault); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getCidrBlock()const; - void setCidrBlock(const std::string& cidrBlock); - - private: - long resourceOwnerId_; - std::string description_; - std::string snatCidrBlock_; - std::string regionId_; - bool isDefault_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string cidrBlock_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateCloudConnectNetworkRequest : public RpcServiceRequest { +public: + CreateCloudConnectNetworkRequest(); + ~CreateCloudConnectNetworkRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSnatCidrBlock() const; + void setSnatCidrBlock(const std::string &snatCidrBlock); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + +private: + long resourceOwnerId_; + std::string description_; + std::string snatCidrBlock_; + std::string resourceGroupId_; + std::string regionId_; + bool isDefault_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string cidrBlock_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATECLOUDCONNECTNETWORKREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h index 4535a336b..a7cc92431 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateCloudConnectNetworkResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud ~CreateCloudConnectNetworkResult(); std::string getStatus()const; std::string getDescription()const; + std::string getResourceGroupId()const; std::string getCcnId()const; std::string getCidrBlock()const; std::string getSnatCidrBlock()const; @@ -49,6 +50,7 @@ namespace AlibabaCloud private: std::string status_; std::string description_; + std::string resourceGroupId_; std::string ccnId_; std::string cidrBlock_; std::string snatCidrBlock_; diff --git a/smartag/include/alibabacloud/smartag/model/CreateEnterpriseCodeRequest.h b/smartag/include/alibabacloud/smartag/model/CreateEnterpriseCodeRequest.h index e1fdcb5cf..6dfb68786 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateEnterpriseCodeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateEnterpriseCodeRequest.h @@ -1,57 +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_SMARTAG_MODEL_CREATEENTERPRISECODEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEENTERPRISECODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateEnterpriseCodeRequest : public RpcServiceRequest - { - - public: - CreateEnterpriseCodeRequest(); - ~CreateEnterpriseCodeRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEnterpriseCode()const; - void setEnterpriseCode(const std::string& enterpriseCode); - bool getDryRun()const; - void setDryRun(bool dryRun); - - private: - std::string clientToken_; - std::string regionId_; - std::string enterpriseCode_; - bool dryRun_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEENTERPRISECODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEENTERPRISECODEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEENTERPRISECODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateEnterpriseCodeRequest : public RpcServiceRequest { +public: + CreateEnterpriseCodeRequest(); + ~CreateEnterpriseCodeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEnterpriseCode() const; + void setEnterpriseCode(const std::string &enterpriseCode); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string regionId_; + std::string enterpriseCode_; + bool dryRun_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEENTERPRISECODEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/CreateFlowLogRequest.h index 5965dcae8..1fa99365e 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateFlowLogRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateFlowLogRequest.h @@ -1,93 +1,90 @@ /* * 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_SMARTAG_MODEL_CREATEFLOWLOGREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEFLOWLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateFlowLogRequest : public RpcServiceRequest - { - - public: - CreateFlowLogRequest(); - ~CreateFlowLogRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNetflowVersion()const; - void setNetflowVersion(const std::string& netflowVersion); - std::string getDescription()const; - void setDescription(const std::string& description); - int getInactiveAging()const; - void setInactiveAging(int inactiveAging); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSlsRegionId()const; - void setSlsRegionId(const std::string& slsRegionId); - int getActiveAging()const; - void setActiveAging(int activeAging); - std::string getOutputType()const; - void setOutputType(const std::string& outputType); - std::string getProjectName()const; - void setProjectName(const std::string& projectName); - std::string getLogstoreName()const; - void setLogstoreName(const std::string& logstoreName); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getNetflowServerPort()const; - void setNetflowServerPort(int netflowServerPort); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getNetflowServerIp()const; - void setNetflowServerIp(const std::string& netflowServerIp); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string netflowVersion_; - std::string description_; - int inactiveAging_; - std::string regionId_; - std::string slsRegionId_; - int activeAging_; - std::string outputType_; - std::string projectName_; - std::string logstoreName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int netflowServerPort_; - long ownerId_; - std::string netflowServerIp_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEFLOWLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateFlowLogRequest : public RpcServiceRequest { +public: + CreateFlowLogRequest(); + ~CreateFlowLogRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNetflowVersion() const; + void setNetflowVersion(const std::string &netflowVersion); + std::string getDescription() const; + void setDescription(const std::string &description); + int getInactiveAging() const; + void setInactiveAging(int inactiveAging); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSlsRegionId() const; + void setSlsRegionId(const std::string &slsRegionId); + int getActiveAging() const; + void setActiveAging(int activeAging); + std::string getOutputType() const; + void setOutputType(const std::string &outputType); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::string getLogstoreName() const; + void setLogstoreName(const std::string &logstoreName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getNetflowServerPort() const; + void setNetflowServerPort(int netflowServerPort); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNetflowServerIp() const; + void setNetflowServerIp(const std::string &netflowServerIp); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string netflowVersion_; + std::string description_; + int inactiveAging_; + std::string resourceGroupId_; + std::string regionId_; + std::string slsRegionId_; + int activeAging_; + std::string outputType_; + std::string projectName_; + std::string logstoreName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int netflowServerPort_; + long ownerId_; + std::string netflowServerIp_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEFLOWLOGREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateFlowLogResult.h b/smartag/include/alibabacloud/smartag/model/CreateFlowLogResult.h index c97dfb9c0..67cd00414 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateFlowLogResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateFlowLogResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud CreateFlowLogResult(); explicit CreateFlowLogResult(const std::string &payload); ~CreateFlowLogResult(); + std::string getResourceGroupId()const; std::string getFlowLogId()const; protected: void parse(const std::string &payload); private: + std::string resourceGroupId_; std::string flowLogId_; }; diff --git a/smartag/include/alibabacloud/smartag/model/CreateHealthCheckRequest.h b/smartag/include/alibabacloud/smartag/model/CreateHealthCheckRequest.h index 5bf327dde..197058b0c 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateHealthCheckRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateHealthCheckRequest.h @@ -1,102 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEHEALTHCHECKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEHEALTHCHECKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateHealthCheckRequest : public RpcServiceRequest - { - - public: - CreateHealthCheckRequest(); - ~CreateHealthCheckRequest(); - - int getProbeInterval()const; - void setProbeInterval(int probeInterval); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getDstPort()const; - void setDstPort(int dstPort); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getType()const; - void setType(const std::string& type); - int getFailCountThreshold()const; - void setFailCountThreshold(int failCountThreshold); - int getProbeTimeout()const; - void setProbeTimeout(int probeTimeout); - int getRttFailThreshold()const; - void setRttFailThreshold(int rttFailThreshold); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getRttThreshold()const; - void setRttThreshold(int rttThreshold); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getDstIpAddr()const; - void setDstIpAddr(const std::string& dstIpAddr); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSrcIpAddr()const; - void setSrcIpAddr(const std::string& srcIpAddr); - std::string getName()const; - void setName(const std::string& name); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - int getSrcPort()const; - void setSrcPort(int srcPort); - int getProbeCount()const; - void setProbeCount(int probeCount); - - private: - int probeInterval_; - long resourceOwnerId_; - int dstPort_; - std::string description_; - std::string type_; - int failCountThreshold_; - int probeTimeout_; - int rttFailThreshold_; - std::string regionId_; - int rttThreshold_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string dstIpAddr_; - long ownerId_; - std::string srcIpAddr_; - std::string name_; - std::string smartAGId_; - int srcPort_; - int probeCount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEHEALTHCHECKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEHEALTHCHECKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEHEALTHCHECKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateHealthCheckRequest : public RpcServiceRequest { +public: + CreateHealthCheckRequest(); + ~CreateHealthCheckRequest(); + int getProbeInterval() const; + void setProbeInterval(int probeInterval); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getDstPort() const; + void setDstPort(int dstPort); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + int getFailCountThreshold() const; + void setFailCountThreshold(int failCountThreshold); + int getProbeTimeout() const; + void setProbeTimeout(int probeTimeout); + int getRttFailThreshold() const; + void setRttFailThreshold(int rttFailThreshold); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getRttThreshold() const; + void setRttThreshold(int rttThreshold); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDstIpAddr() const; + void setDstIpAddr(const std::string &dstIpAddr); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSrcIpAddr() const; + void setSrcIpAddr(const std::string &srcIpAddr); + std::string getName() const; + void setName(const std::string &name); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + int getSrcPort() const; + void setSrcPort(int srcPort); + int getProbeCount() const; + void setProbeCount(int probeCount); + +private: + int probeInterval_; + long resourceOwnerId_; + int dstPort_; + std::string description_; + std::string type_; + int failCountThreshold_; + int probeTimeout_; + int rttFailThreshold_; + std::string regionId_; + int rttThreshold_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dstIpAddr_; + long ownerId_; + std::string srcIpAddr_; + std::string name_; + std::string smartAGId_; + int srcPort_; + int probeCount_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEHEALTHCHECKREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateHealthCheckResult.h b/smartag/include/alibabacloud/smartag/model/CreateHealthCheckResult.h index 12528a648..47f14dd37 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateHealthCheckResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateHealthCheckResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud CreateHealthCheckResult(); explicit CreateHealthCheckResult(const std::string &payload); ~CreateHealthCheckResult(); - std::string getDescription()const; int getSrcPort()const; + std::string getDescription()const; std::string getInstanceId()const; std::string getSrcIpAddr()const; long getCreateTime()const; @@ -49,8 +49,8 @@ namespace AlibabaCloud std::string getType()const; int getProbeTimeout()const; int getRttThreshold()const; - int getProbeInterval()const; std::string getRegionId()const; + int getProbeInterval()const; std::string getSmartAGId()const; int getRttFailThreshold()const; std::string getDstIpAddr()const; @@ -58,8 +58,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string description_; int srcPort_; + std::string description_; std::string instanceId_; std::string srcIpAddr_; long createTime_; @@ -70,8 +70,8 @@ namespace AlibabaCloud std::string type_; int probeTimeout_; int rttThreshold_; - int probeInterval_; std::string regionId_; + int probeInterval_; std::string smartAGId_; int rttFailThreshold_; std::string dstIpAddr_; diff --git a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.h b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.h deleted file mode 100644 index 0dd3203ac..000000000 --- a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateNetworkOptimizationRequest : public RpcServiceRequest - { - - public: - CreateNetworkOptimizationRequest(); - ~CreateNetworkOptimizationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCcnId()const; - void setCcnId(const std::string& ccnId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string ccnId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h b/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h deleted file mode 100644 index bc5131743..000000000 --- a/smartag/include/alibabacloud/smartag/model/CreateNetworkOptimizationResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateNetworkOptimizationResult : public ServiceResult - { - public: - - - CreateNetworkOptimizationResult(); - explicit CreateNetworkOptimizationResult(const std::string &payload); - ~CreateNetworkOptimizationResult(); - std::string getState()const; - std::string getName()const; - std::string getNetworkOptId()const; - - protected: - void parse(const std::string &payload); - private: - std::string state_; - std::string name_; - std::string networkOptId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATENETWORKOPTIMIZATIONRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosCarRequest.h b/smartag/include/alibabacloud/smartag/model/CreateQosCarRequest.h index 2be065670..7ae56c2c7 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateQosCarRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateQosCarRequest.h @@ -1,90 +1,84 @@ /* * 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_SMARTAG_MODEL_CREATEQOSCARREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSCARREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateQosCarRequest : public RpcServiceRequest - { - - public: - CreateQosCarRequest(); - ~CreateQosCarRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getMinBandwidthAbs()const; - void setMinBandwidthAbs(int minBandwidthAbs); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPercentSourceType()const; - void setPercentSourceType(const std::string& percentSourceType); - std::string getQosId()const; - void setQosId(const std::string& qosId); - int getMaxBandwidthAbs()const; - void setMaxBandwidthAbs(int maxBandwidthAbs); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - int getMaxBandwidthPercent()const; - void setMaxBandwidthPercent(int maxBandwidthPercent); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - int getMinBandwidthPercent()const; - void setMinBandwidthPercent(int minBandwidthPercent); - std::string getLimitType()const; - void setLimitType(const std::string& limitType); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - int minBandwidthAbs_; - std::string description_; - std::string regionId_; - std::string percentSourceType_; - std::string qosId_; - int maxBandwidthAbs_; - std::string resourceOwnerAccount_; - int maxBandwidthPercent_; - std::string ownerAccount_; - long ownerId_; - int priority_; - int minBandwidthPercent_; - std::string limitType_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSCARREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSCARREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSCARREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateQosCarRequest : public RpcServiceRequest { +public: + CreateQosCarRequest(); + ~CreateQosCarRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getMinBandwidthAbs() const; + void setMinBandwidthAbs(int minBandwidthAbs); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPercentSourceType() const; + void setPercentSourceType(const std::string &percentSourceType); + std::string getQosId() const; + void setQosId(const std::string &qosId); + int getMaxBandwidthAbs() const; + void setMaxBandwidthAbs(int maxBandwidthAbs); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getMaxBandwidthPercent() const; + void setMaxBandwidthPercent(int maxBandwidthPercent); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + int getMinBandwidthPercent() const; + void setMinBandwidthPercent(int minBandwidthPercent); + std::string getLimitType() const; + void setLimitType(const std::string &limitType); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + int minBandwidthAbs_; + std::string description_; + std::string regionId_; + std::string percentSourceType_; + std::string qosId_; + int maxBandwidthAbs_; + std::string resourceOwnerAccount_; + int maxBandwidthPercent_; + std::string ownerAccount_; + long ownerId_; + int priority_; + int minBandwidthPercent_; + std::string limitType_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSCARREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosCarResult.h b/smartag/include/alibabacloud/smartag/model/CreateQosCarResult.h index fc8f6694e..ac9399d9b 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateQosCarResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateQosCarResult.h @@ -40,9 +40,9 @@ namespace AlibabaCloud int getMinBandwidthAbs()const; std::string getDescription()const; std::string getQosCarId()const; - int getPriority()const; - int getMaxBandwidthPercent()const; int getMaxBandwidthAbs()const; + int getMaxBandwidthPercent()const; + int getPriority()const; std::string getQosId()const; std::string getPercentSourceType()const; int getMinBandwidthPercent()const; @@ -54,9 +54,9 @@ namespace AlibabaCloud int minBandwidthAbs_; std::string description_; std::string qosCarId_; - int priority_; - int maxBandwidthPercent_; int maxBandwidthAbs_; + int maxBandwidthPercent_; + int priority_; std::string qosId_; std::string percentSourceType_; int minBandwidthPercent_; diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.h b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.h index f4a93cceb..7906210f1 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyRequest.h @@ -1,99 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSPOLICYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateQosPolicyRequest : public RpcServiceRequest - { - - public: - CreateQosPolicyRequest(); - ~CreateQosPolicyRequest(); - - std::vector getDpiGroupIds()const; - void setDpiGroupIds(const std::vector& dpiGroupIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourcePortRange()const; - void setSourcePortRange(const std::string& sourcePortRange); - std::string getSourceCidr()const; - void setSourceCidr(const std::string& sourceCidr); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getDestCidr()const; - void setDestCidr(const std::string& destCidr); - std::vector getDpiSignatureIds()const; - void setDpiSignatureIds(const std::vector& dpiSignatureIds); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getQosId()const; - void setQosId(const std::string& qosId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getDestPortRange()const; - void setDestPortRange(const std::string& destPortRange); - std::string getName()const; - void setName(const std::string& name); - - private: - std::vector dpiGroupIds_; - long resourceOwnerId_; - std::string sourcePortRange_; - std::string sourceCidr_; - std::string description_; - std::string startTime_; - std::string destCidr_; - std::vector dpiSignatureIds_; - std::string regionId_; - std::string qosId_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - int priority_; - std::string destPortRange_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSPOLICYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateQosPolicyRequest : public RpcServiceRequest { +public: + CreateQosPolicyRequest(); + ~CreateQosPolicyRequest(); + std::vector getDpiGroupIds() const; + void setDpiGroupIds(const std::vector &dpiGroupIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getSourceCidr() const; + void setSourceCidr(const std::string &sourceCidr); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getDestCidr() const; + void setDestCidr(const std::string &destCidr); + std::vector getDpiSignatureIds() const; + void setDpiSignatureIds(const std::vector &dpiSignatureIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getDestPortRange() const; + void setDestPortRange(const std::string &destPortRange); + std::string getName() const; + void setName(const std::string &name); + +private: + std::vector dpiGroupIds_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string sourceCidr_; + std::string description_; + std::string startTime_; + std::string destCidr_; + std::vector dpiSignatureIds_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + int priority_; + std::string destPortRange_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSPOLICYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.h b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.h index 0327a52f5..8f667db95 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateQosPolicyResult.h @@ -38,9 +38,9 @@ namespace AlibabaCloud explicit CreateQosPolicyResult(const std::string &payload); ~CreateQosPolicyResult(); std::string getDescription()const; - std::string getSourcePortRange()const; - std::string getQosPolicyId()const; std::string getEndTime()const; + std::string getQosPolicyId()const; + std::string getSourcePortRange()const; std::string getSourceCidr()const; int getPriority()const; std::string getStartTime()const; @@ -49,16 +49,16 @@ namespace AlibabaCloud std::string getName()const; std::string getDestCidr()const; std::vector getDpiSignatureIds()const; - std::string getIpProtocol()const; std::string getQosId()const; + std::string getIpProtocol()const; protected: void parse(const std::string &payload); private: std::string description_; - std::string sourcePortRange_; - std::string qosPolicyId_; std::string endTime_; + std::string qosPolicyId_; + std::string sourcePortRange_; std::string sourceCidr_; int priority_; std::string startTime_; @@ -67,8 +67,8 @@ namespace AlibabaCloud std::string name_; std::string destCidr_; std::vector dpiSignatureIds_; - std::string ipProtocol_; std::string qosId_; + std::string ipProtocol_; }; } diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosRequest.h b/smartag/include/alibabacloud/smartag/model/CreateQosRequest.h index 92451c4f5..e835eb777 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateQosRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateQosRequest.h @@ -1,66 +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_SMARTAG_MODEL_CREATEQOSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateQosRequest : public RpcServiceRequest - { - - public: - CreateQosRequest(); - ~CreateQosRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getQosName()const; - void setQosName(const std::string& qosName); - std::string getQosDescription()const; - void setQosDescription(const std::string& qosDescription); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string qosName_; - std::string qosDescription_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateQosRequest : public RpcServiceRequest { +public: + CreateQosRequest(); + ~CreateQosRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getQosName() const; + void setQosName(const std::string &qosName); + std::string getQosDescription() const; + void setQosDescription(const std::string &qosDescription); + +private: + long resourceOwnerId_; + std::string resourceGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string qosName_; + std::string qosDescription_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATEQOSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateQosResult.h b/smartag/include/alibabacloud/smartag/model/CreateQosResult.h index af957676f..76b1bacbc 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateQosResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateQosResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud CreateQosResult(); explicit CreateQosResult(const std::string &payload); ~CreateQosResult(); + std::string getResourceGroupId()const; std::string getQosId()const; protected: void parse(const std::string &payload); private: + std::string resourceGroupId_; std::string qosId_; }; diff --git a/smartag/include/alibabacloud/smartag/model/CreateSagExpressConnectInterfaceRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSagExpressConnectInterfaceRequest.h index 2afdb54d4..b90d34e7f 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSagExpressConnectInterfaceRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSagExpressConnectInterfaceRequest.h @@ -1,78 +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_SMARTAG_MODEL_CREATESAGEXPRESSCONNECTINTERFACEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGEXPRESSCONNECTINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSagExpressConnectInterfaceRequest : public RpcServiceRequest - { - - public: - CreateSagExpressConnectInterfaceRequest(); - ~CreateSagExpressConnectInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVlan()const; - void setVlan(const std::string& vlan); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getMask()const; - void setMask(const std::string& mask); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getIP()const; - void setIP(const std::string& iP); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - - private: - long resourceOwnerId_; - std::string vlan_; - std::string regionId_; - std::string mask_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string iP_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESAGEXPRESSCONNECTINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESAGEXPRESSCONNECTINTERFACEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGEXPRESSCONNECTINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateSagExpressConnectInterfaceRequest : public RpcServiceRequest { +public: + CreateSagExpressConnectInterfaceRequest(); + ~CreateSagExpressConnectInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVlan() const; + void setVlan(const std::string &vlan); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getIP() const; + void setIP(const std::string &iP); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + +private: + long resourceOwnerId_; + std::string vlan_; + std::string regionId_; + std::string mask_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string iP_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESAGEXPRESSCONNECTINTERFACEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateSagStaticRouteRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSagStaticRouteRequest.h index c77b438d4..4315ebd15 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSagStaticRouteRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSagStaticRouteRequest.h @@ -1,78 +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_SMARTAG_MODEL_CREATESAGSTATICROUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGSTATICROUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSagStaticRouteRequest : public RpcServiceRequest - { - - public: - CreateSagStaticRouteRequest(); - ~CreateSagStaticRouteRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVlan()const; - void setVlan(const std::string& vlan); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getNextHop()const; - void setNextHop(const std::string& nextHop); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - std::string getDestinationCidr()const; - void setDestinationCidr(const std::string& destinationCidr); - - private: - long resourceOwnerId_; - std::string vlan_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string nextHop_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - std::string destinationCidr_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESAGSTATICROUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESAGSTATICROUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESAGSTATICROUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateSagStaticRouteRequest : public RpcServiceRequest { +public: + CreateSagStaticRouteRequest(); + ~CreateSagStaticRouteRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVlan() const; + void setVlan(const std::string &vlan); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + std::string getDestinationCidr() const; + void setDestinationCidr(const std::string &destinationCidr); + +private: + long resourceOwnerId_; + std::string vlan_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string nextHop_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; + std::string destinationCidr_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESAGSTATICROUTEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.h index 4e2a4bd29..126ee78ff 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayClientUserRequest.h @@ -1,78 +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_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayClientUserRequest : public RpcServiceRequest - { - - public: - CreateSmartAccessGatewayClientUserRequest(); - ~CreateSmartAccessGatewayClientUserRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPassword()const; - void setPassword(const std::string& password); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getClientIp()const; - void setClientIp(const std::string& clientIp); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getBandwidth()const; - void setBandwidth(long bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getUserMail()const; - void setUserMail(const std::string& userMail); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - long resourceOwnerId_; - std::string password_; - std::string regionId_; - std::string clientIp_; - std::string resourceOwnerAccount_; - long bandwidth_; - std::string ownerAccount_; - std::string userMail_; - long ownerId_; - std::string smartAGId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayClientUserRequest : public RpcServiceRequest { +public: + CreateSmartAccessGatewayClientUserRequest(); + ~CreateSmartAccessGatewayClientUserRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getClientIp() const; + void setClientIp(const std::string &clientIp); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getBandwidth() const; + void setBandwidth(long bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getUserMail() const; + void setUserMail(const std::string &userMail); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long resourceOwnerId_; + std::string password_; + std::string regionId_; + std::string clientIp_; + std::string resourceOwnerAccount_; + long bandwidth_; + std::string ownerAccount_; + std::string userMail_; + long ownerId_; + std::string smartAGId_; + std::string userName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h index 66865ca75..4724eab3e 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayRequest.h @@ -1,135 +1,132 @@ /* * 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_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - CreateSmartAccessGatewayRequest(); - ~CreateSmartAccessGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getReceiverTown()const; - void setReceiverTown(const std::string& receiverTown); - std::string getReceiverDistrict()const; - void setReceiverDistrict(const std::string& receiverDistrict); - std::string getBuyerMessage()const; - void setBuyerMessage(const std::string& buyerMessage); - std::string getReceiverState()const; - void setReceiverState(const std::string& receiverState); - int getPeriod()const; - void setPeriod(int period); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getReceiverPhone()const; - void setReceiverPhone(const std::string& receiverPhone); - std::string getHaType()const; - void setHaType(const std::string& haType); - std::string getName()const; - void setName(const std::string& name); - std::string getReceiverCountry()const; - void setReceiverCountry(const std::string& receiverCountry); - int getMaxBandWidth()const; - void setMaxBandWidth(int maxBandWidth); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getUserCount()const; - void setUserCount(int userCount); - std::string getReceiverAddress()const; - void setReceiverAddress(const std::string& receiverAddress); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getHardWareSpec()const; - void setHardWareSpec(const std::string& hardWareSpec); - std::string getReceiverEmail()const; - void setReceiverEmail(const std::string& receiverEmail); - std::string getReceiverCity()const; - void setReceiverCity(const std::string& receiverCity); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getCPEVersion()const; - void setCPEVersion(const std::string& cPEVersion); - std::string getReceiverMobile()const; - void setReceiverMobile(const std::string& receiverMobile); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getReceiverName()const; - void setReceiverName(const std::string& receiverName); - bool getAlreadyHaveSag()const; - void setAlreadyHaveSag(bool alreadyHaveSag); - std::string getChargeType()const; - void setChargeType(const std::string& chargeType); - long getDataPlan()const; - void setDataPlan(long dataPlan); - std::string getReceiverZip()const; - void setReceiverZip(const std::string& receiverZip); - - private: - long resourceOwnerId_; - std::string receiverTown_; - std::string receiverDistrict_; - std::string buyerMessage_; - std::string receiverState_; - int period_; - long ownerId_; - std::string receiverPhone_; - std::string haType_; - std::string name_; - std::string receiverCountry_; - int maxBandWidth_; - std::string description_; - std::string regionId_; - int userCount_; - std::string receiverAddress_; - std::string instanceType_; - std::string hardWareSpec_; - std::string receiverEmail_; - std::string receiverCity_; - bool autoPay_; - std::string cPEVersion_; - std::string receiverMobile_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string receiverName_; - bool alreadyHaveSag_; - std::string chargeType_; - long dataPlan_; - std::string receiverZip_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewayRequest : public RpcServiceRequest { +public: + CreateSmartAccessGatewayRequest(); + ~CreateSmartAccessGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getReceiverTown() const; + void setReceiverTown(const std::string &receiverTown); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getReceiverDistrict() const; + void setReceiverDistrict(const std::string &receiverDistrict); + std::string getBuyerMessage() const; + void setBuyerMessage(const std::string &buyerMessage); + std::string getReceiverState() const; + void setReceiverState(const std::string &receiverState); + int getPeriod() const; + void setPeriod(int period); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getReceiverPhone() const; + void setReceiverPhone(const std::string &receiverPhone); + std::string getHaType() const; + void setHaType(const std::string &haType); + std::string getName() const; + void setName(const std::string &name); + std::string getReceiverCountry() const; + void setReceiverCountry(const std::string &receiverCountry); + int getMaxBandWidth() const; + void setMaxBandWidth(int maxBandWidth); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getUserCount() const; + void setUserCount(int userCount); + std::string getReceiverAddress() const; + void setReceiverAddress(const std::string &receiverAddress); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getHardWareSpec() const; + void setHardWareSpec(const std::string &hardWareSpec); + std::string getReceiverEmail() const; + void setReceiverEmail(const std::string &receiverEmail); + std::string getReceiverCity() const; + void setReceiverCity(const std::string &receiverCity); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getCPEVersion() const; + void setCPEVersion(const std::string &cPEVersion); + std::string getReceiverMobile() const; + void setReceiverMobile(const std::string &receiverMobile); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getReceiverName() const; + void setReceiverName(const std::string &receiverName); + bool getAlreadyHaveSag() const; + void setAlreadyHaveSag(bool alreadyHaveSag); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + long getDataPlan() const; + void setDataPlan(long dataPlan); + std::string getReceiverZip() const; + void setReceiverZip(const std::string &receiverZip); + +private: + long resourceOwnerId_; + std::string receiverTown_; + std::string resourceGroupId_; + std::string receiverDistrict_; + std::string buyerMessage_; + std::string receiverState_; + int period_; + long ownerId_; + std::string receiverPhone_; + std::string haType_; + std::string name_; + std::string receiverCountry_; + int maxBandWidth_; + std::string description_; + std::string regionId_; + int userCount_; + std::string receiverAddress_; + std::string instanceType_; + std::string hardWareSpec_; + std::string receiverEmail_; + std::string receiverCity_; + bool autoPay_; + std::string cPEVersion_; + std::string receiverMobile_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string receiverName_; + bool alreadyHaveSag_; + std::string chargeType_; + long dataPlan_; + std::string receiverZip_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h index 08feea37b..1fa30a3c0 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewayResult.h @@ -38,16 +38,18 @@ namespace AlibabaCloud explicit CreateSmartAccessGatewayResult(const std::string &payload); ~CreateSmartAccessGatewayResult(); std::string getDescription()const; - std::string getSmartAGId()const; + std::string getResourceGroupId()const; std::string getOrderId()const; + std::string getSmartAGId()const; std::string getName()const; protected: void parse(const std::string &payload); private: std::string description_; - std::string smartAGId_; + std::string resourceGroupId_; std::string orderId_; + std::string smartAGId_; std::string name_; }; diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.h index 15aa5d500..87dbe88b2 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareRequest.h @@ -1,75 +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_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewaySoftwareRequest : public RpcServiceRequest - { - - public: - CreateSmartAccessGatewaySoftwareRequest(); - ~CreateSmartAccessGatewaySoftwareRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getUserCount()const; - void setUserCount(int userCount); - int getPeriod()const; - void setPeriod(int period); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getChargeType()const; - void setChargeType(const std::string& chargeType); - long getDataPlan()const; - void setDataPlan(long dataPlan); - - private: - long resourceOwnerId_; - std::string regionId_; - int userCount_; - int period_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string chargeType_; - long dataPlan_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT CreateSmartAccessGatewaySoftwareRequest : public RpcServiceRequest { +public: + CreateSmartAccessGatewaySoftwareRequest(); + ~CreateSmartAccessGatewaySoftwareRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getUserCount() const; + void setUserCount(int userCount); + int getPeriod() const; + void setPeriod(int period); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + long getDataPlan() const; + void setDataPlan(long dataPlan); + +private: + long resourceOwnerId_; + std::string resourceGroupId_; + std::string regionId_; + int userCount_; + int period_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string chargeType_; + long dataPlan_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_CREATESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h index 0782e5574..a159ec43f 100644 --- a/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h +++ b/smartag/include/alibabacloud/smartag/model/CreateSmartAccessGatewaySoftwareResult.h @@ -37,14 +37,16 @@ namespace AlibabaCloud CreateSmartAccessGatewaySoftwareResult(); explicit CreateSmartAccessGatewaySoftwareResult(const std::string &payload); ~CreateSmartAccessGatewaySoftwareResult(); - std::string getSmartAGId()const; + std::string getResourceGroupId()const; std::string getOrderId()const; + std::string getSmartAGId()const; protected: void parse(const std::string &payload); private: - std::string smartAGId_; + std::string resourceGroupId_; std::string orderId_; + std::string smartAGId_; }; } diff --git a/smartag/include/alibabacloud/smartag/model/DeactiveFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/DeactiveFlowLogRequest.h index fdb327b8c..61862e0c4 100644 --- a/smartag/include/alibabacloud/smartag/model/DeactiveFlowLogRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeactiveFlowLogRequest.h @@ -1,63 +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_SMARTAG_MODEL_DEACTIVEFLOWLOGREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DEACTIVEFLOWLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeactiveFlowLogRequest : public RpcServiceRequest - { - - public: - DeactiveFlowLogRequest(); - ~DeactiveFlowLogRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string flowLogId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DEACTIVEFLOWLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DEACTIVEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DEACTIVEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeactiveFlowLogRequest : public RpcServiceRequest { +public: + DeactiveFlowLogRequest(); + ~DeactiveFlowLogRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DEACTIVEFLOWLOGREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteACLRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteACLRequest.h index 2fb4152e7..84a66f39e 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteACLRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteACLRequest.h @@ -1,63 +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_SMARTAG_MODEL_DELETEACLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRequest : public RpcServiceRequest - { - - public: - DeleteACLRequest(); - ~DeleteACLRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRequest : public RpcServiceRequest { +public: + DeleteACLRequest(); + ~DeleteACLRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteACLRuleRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteACLRuleRequest.h index a0602f274..bb90454a8 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteACLRuleRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteACLRuleRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRuleRequest : public RpcServiceRequest - { - - public: - DeleteACLRuleRequest(); - ~DeleteACLRuleRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAcrId()const; - void setAcrId(const std::string& acrId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string acrId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteACLRuleRequest : public RpcServiceRequest { +public: + DeleteACLRuleRequest(); + ~DeleteACLRuleRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAcrId() const; + void setAcrId(const std::string &acrId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string acrId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEACLRULEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h index 1ba3467fe..9406fa5e8 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteCloudConnectNetworkRequest.h @@ -1,63 +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_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteCloudConnectNetworkRequest : public RpcServiceRequest - { - - public: - DeleteCloudConnectNetworkRequest(); - ~DeleteCloudConnectNetworkRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCcnId()const; - void setCcnId(const std::string& ccnId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string ccnId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteCloudConnectNetworkRequest : public RpcServiceRequest { +public: + DeleteCloudConnectNetworkRequest(); + ~DeleteCloudConnectNetworkRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCcnId() const; + void setCcnId(const std::string &ccnId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string ccnId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETECLOUDCONNECTNETWORKREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteDnatEntryRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteDnatEntryRequest.h index 030e79455..3ff6ab0e4 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteDnatEntryRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteDnatEntryRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DELETEDNATENTRYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDNATENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteDnatEntryRequest : public RpcServiceRequest - { - - public: - DeleteDnatEntryRequest(); - ~DeleteDnatEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDnatEntryId()const; - void setDnatEntryId(const std::string& dnatEntryId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSagId()const; - void setSagId(const std::string& sagId); - - private: - long resourceOwnerId_; - std::string dnatEntryId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string sagId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEDNATENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEDNATENTRYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEDNATENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteDnatEntryRequest : public RpcServiceRequest { +public: + DeleteDnatEntryRequest(); + ~DeleteDnatEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDnatEntryId() const; + void setDnatEntryId(const std::string &dnatEntryId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSagId() const; + void setSagId(const std::string &sagId); + +private: + long resourceOwnerId_; + std::string dnatEntryId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string sagId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEDNATENTRYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteEnterpriseCodeRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteEnterpriseCodeRequest.h index df93e5538..5622cce1e 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteEnterpriseCodeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteEnterpriseCodeRequest.h @@ -1,57 +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_SMARTAG_MODEL_DELETEENTERPRISECODEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEENTERPRISECODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteEnterpriseCodeRequest : public RpcServiceRequest - { - - public: - DeleteEnterpriseCodeRequest(); - ~DeleteEnterpriseCodeRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEnterpriseCode()const; - void setEnterpriseCode(const std::string& enterpriseCode); - bool getDryRun()const; - void setDryRun(bool dryRun); - - private: - std::string clientToken_; - std::string regionId_; - std::string enterpriseCode_; - bool dryRun_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEENTERPRISECODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEENTERPRISECODEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEENTERPRISECODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteEnterpriseCodeRequest : public RpcServiceRequest { +public: + DeleteEnterpriseCodeRequest(); + ~DeleteEnterpriseCodeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEnterpriseCode() const; + void setEnterpriseCode(const std::string &enterpriseCode); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string regionId_; + std::string enterpriseCode_; + bool dryRun_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEENTERPRISECODEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteFlowLogRequest.h index e288c9ddd..e8df70de4 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteFlowLogRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteFlowLogRequest.h @@ -1,63 +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_SMARTAG_MODEL_DELETEFLOWLOGREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEFLOWLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteFlowLogRequest : public RpcServiceRequest - { - - public: - DeleteFlowLogRequest(); - ~DeleteFlowLogRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string flowLogId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEFLOWLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteFlowLogRequest : public RpcServiceRequest { +public: + DeleteFlowLogRequest(); + ~DeleteFlowLogRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEFLOWLOGREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteHealthCheckRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteHealthCheckRequest.h index ecb3903a6..2910f5436 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteHealthCheckRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteHealthCheckRequest.h @@ -1,63 +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_SMARTAG_MODEL_DELETEHEALTHCHECKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEHEALTHCHECKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteHealthCheckRequest : public RpcServiceRequest - { - - public: - DeleteHealthCheckRequest(); - ~DeleteHealthCheckRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getHcInstanceId()const; - void setHcInstanceId(const std::string& hcInstanceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string hcInstanceId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEHEALTHCHECKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEHEALTHCHECKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEHEALTHCHECKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteHealthCheckRequest : public RpcServiceRequest { +public: + DeleteHealthCheckRequest(); + ~DeleteHealthCheckRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHcInstanceId() const; + void setHcInstanceId(const std::string &hcInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string hcInstanceId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEHEALTHCHECKREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.h deleted file mode 100644 index 36da3106a..000000000 --- a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationRequest : public RpcServiceRequest - { - - public: - DeleteNetworkOptimizationRequest(); - ~DeleteNetworkOptimizationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkOptId()const; - void setNetworkOptId(const std::string& networkOptId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string networkOptId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.h deleted file mode 100644 index 30315796f..000000000 --- a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationResult : public ServiceResult - { - public: - - - DeleteNetworkOptimizationResult(); - explicit DeleteNetworkOptimizationResult(const std::string &payload); - ~DeleteNetworkOptimizationResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.h deleted file mode 100644 index d45e1a08a..000000000 --- a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationSettingRequest : public RpcServiceRequest - { - - public: - DeleteNetworkOptimizationSettingRequest(); - ~DeleteNetworkOptimizationSettingRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getType()const; - void setType(const std::string& type); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkOptId()const; - void setNetworkOptId(const std::string& networkOptId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDomain()const; - void setDomain(const std::string& domain); - - private: - long resourceOwnerId_; - std::string type_; - std::string regionId_; - std::string networkOptId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string domain_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.h b/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.h deleted file mode 100644 index 19ca1b062..000000000 --- a/smartag/include/alibabacloud/smartag/model/DeleteNetworkOptimizationSettingResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteNetworkOptimizationSettingResult : public ServiceResult - { - public: - - - DeleteNetworkOptimizationSettingResult(); - explicit DeleteNetworkOptimizationSettingResult(const std::string &payload); - ~DeleteNetworkOptimizationSettingResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETENETWORKOPTIMIZATIONSETTINGRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteQosCarRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteQosCarRequest.h index 7fca58c3d..fcc8c1370 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteQosCarRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteQosCarRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DELETEQOSCARREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSCARREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosCarRequest : public RpcServiceRequest - { - - public: - DeleteQosCarRequest(); - ~DeleteQosCarRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getQosId()const; - void setQosId(const std::string& qosId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getQosCarId()const; - void setQosCarId(const std::string& qosCarId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string qosId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string qosCarId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSCARREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSCARREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSCARREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosCarRequest : public RpcServiceRequest { +public: + DeleteQosCarRequest(); + ~DeleteQosCarRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getQosCarId() const; + void setQosCarId(const std::string &qosCarId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string qosCarId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSCARREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteQosPolicyRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteQosPolicyRequest.h index 3dc075169..ba32fc0b8 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteQosPolicyRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteQosPolicyRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DELETEQOSPOLICYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosPolicyRequest : public RpcServiceRequest - { - - public: - DeleteQosPolicyRequest(); - ~DeleteQosPolicyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getQosPolicyId()const; - void setQosPolicyId(const std::string& qosPolicyId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getQosId()const; - void setQosId(const std::string& qosId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string qosPolicyId_; - std::string regionId_; - std::string qosId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSPOLICYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosPolicyRequest : public RpcServiceRequest { +public: + DeleteQosPolicyRequest(); + ~DeleteQosPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getQosPolicyId() const; + void setQosPolicyId(const std::string &qosPolicyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string qosPolicyId_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSPOLICYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteQosRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteQosRequest.h index 76651fd63..9274a5eba 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteQosRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteQosRequest.h @@ -1,63 +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_SMARTAG_MODEL_DELETEQOSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosRequest : public RpcServiceRequest - { - - public: - DeleteQosRequest(); - ~DeleteQosRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getQosId()const; - void setQosId(const std::string& qosId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string qosId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteQosRequest : public RpcServiceRequest { +public: + DeleteQosRequest(); + ~DeleteQosRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEQOSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteRouteDistributionStrategyRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteRouteDistributionStrategyRequest.h index 0cbac35ee..e6fc0d521 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteRouteDistributionStrategyRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteRouteDistributionStrategyRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETEROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteRouteDistributionStrategyRequest : public RpcServiceRequest - { - - public: - DeleteRouteDistributionStrategyRequest(); - ~DeleteRouteDistributionStrategyRequest(); - - std::string getRouteSource()const; - void setRouteSource(const std::string& routeSource); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSourceType()const; - void setSourceType(const std::string& sourceType); - std::string getDestCidrBlock()const; - void setDestCidrBlock(const std::string& destCidrBlock); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - std::string routeSource_; - long resourceOwnerId_; - std::string regionId_; - std::string sourceType_; - std::string destCidrBlock_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETEROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETEROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteRouteDistributionStrategyRequest : public RpcServiceRequest { +public: + DeleteRouteDistributionStrategyRequest(); + ~DeleteRouteDistributionStrategyRequest(); + std::string getRouteSource() const; + void setRouteSource(const std::string &routeSource); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getDestCidrBlock() const; + void setDestCidrBlock(const std::string &destCidrBlock); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + std::string routeSource_; + long resourceOwnerId_; + std::string regionId_; + std::string sourceType_; + std::string destCidrBlock_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETEROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSagCidrRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSagCidrRequest.h deleted file mode 100644 index e51868888..000000000 --- a/smartag/include/alibabacloud/smartag/model/DeleteSagCidrRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DELETESAGCIDRREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGCIDRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSagCidrRequest : public RpcServiceRequest - { - - public: - DeleteSagCidrRequest(); - ~DeleteSagCidrRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getCidr()const; - void setCidr(const std::string& cidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string cidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGCIDRREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSagCidrResult.h b/smartag/include/alibabacloud/smartag/model/DeleteSagCidrResult.h deleted file mode 100644 index fafbb08fc..000000000 --- a/smartag/include/alibabacloud/smartag/model/DeleteSagCidrResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DELETESAGCIDRRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGCIDRRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSagCidrResult : public ServiceResult - { - public: - - - DeleteSagCidrResult(); - explicit DeleteSagCidrResult(const std::string &payload); - ~DeleteSagCidrResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGCIDRRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSagExpressConnectInterfaceRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSagExpressConnectInterfaceRequest.h index b5fa6f04d..7c8542f8d 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSagExpressConnectInterfaceRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteSagExpressConnectInterfaceRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESAGEXPRESSCONNECTINTERFACEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGEXPRESSCONNECTINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSagExpressConnectInterfaceRequest : public RpcServiceRequest - { - - public: - DeleteSagExpressConnectInterfaceRequest(); - ~DeleteSagExpressConnectInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVlan()const; - void setVlan(const std::string& vlan); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - - private: - long resourceOwnerId_; - std::string vlan_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGEXPRESSCONNECTINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESAGEXPRESSCONNECTINTERFACEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGEXPRESSCONNECTINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteSagExpressConnectInterfaceRequest : public RpcServiceRequest { +public: + DeleteSagExpressConnectInterfaceRequest(); + ~DeleteSagExpressConnectInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVlan() const; + void setVlan(const std::string &vlan); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + +private: + long resourceOwnerId_; + std::string vlan_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGEXPRESSCONNECTINTERFACEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSagStaticRouteRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSagStaticRouteRequest.h index fb2ffed41..56bfcd4be 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSagStaticRouteRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteSagStaticRouteRequest.h @@ -1,75 +1,69 @@ /* * 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_SMARTAG_MODEL_DELETESAGSTATICROUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGSTATICROUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSagStaticRouteRequest : public RpcServiceRequest - { - - public: - DeleteSagStaticRouteRequest(); - ~DeleteSagStaticRouteRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVlan()const; - void setVlan(const std::string& vlan); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - std::string getDestinationCidr()const; - void setDestinationCidr(const std::string& destinationCidr); - - private: - long resourceOwnerId_; - std::string vlan_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - std::string destinationCidr_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGSTATICROUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESAGSTATICROUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESAGSTATICROUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteSagStaticRouteRequest : public RpcServiceRequest { +public: + DeleteSagStaticRouteRequest(); + ~DeleteSagStaticRouteRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVlan() const; + void setVlan(const std::string &vlan); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + std::string getDestinationCidr() const; + void setDestinationCidr(const std::string &destinationCidr); + +private: + long resourceOwnerId_; + std::string vlan_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; + std::string destinationCidr_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESAGSTATICROUTEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.h index 20f3afded..47842b7bb 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayClientUserRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSmartAccessGatewayClientUserRequest : public RpcServiceRequest - { - - public: - DeleteSmartAccessGatewayClientUserRequest(); - ~DeleteSmartAccessGatewayClientUserRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteSmartAccessGatewayClientUserRequest : public RpcServiceRequest { +public: + DeleteSmartAccessGatewayClientUserRequest(); + ~DeleteSmartAccessGatewayClientUserRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string userName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayRequest.h index 068751dd7..ea592eb3d 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteSmartAccessGatewayRequest.h @@ -1,54 +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_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - DeleteSmartAccessGatewayRequest(); - ~DeleteSmartAccessGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string instanceId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteSmartAccessGatewayRequest : public RpcServiceRequest { +public: + DeleteSmartAccessGatewayRequest(); + ~DeleteSmartAccessGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string instanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESMARTACCESSGATEWAYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DeleteSnatEntryRequest.h b/smartag/include/alibabacloud/smartag/model/DeleteSnatEntryRequest.h index cc27a9bc0..d0e032e33 100644 --- a/smartag/include/alibabacloud/smartag/model/DeleteSnatEntryRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DeleteSnatEntryRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DELETESNATENTRYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DELETESNATENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DeleteSnatEntryRequest : public RpcServiceRequest - { - - public: - DeleteSnatEntryRequest(); - ~DeleteSnatEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESNATENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DELETESNATENTRYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DELETESNATENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DeleteSnatEntryRequest : public RpcServiceRequest { +public: + DeleteSnatEntryRequest(); + ~DeleteSnatEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DELETESNATENTRYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeRequest.h index 0ecd1d126..d573c1c6f 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeRequest.h @@ -1,78 +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_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLAttributeRequest : public RpcServiceRequest - { - - public: - DescribeACLAttributeRequest(); - ~DescribeACLAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getDirection()const; - void setDirection(const std::string& direction); - std::string getOrder()const; - void setOrder(const std::string& order); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string direction_; - std::string order_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLAttributeRequest : public RpcServiceRequest { +public: + DescribeACLAttributeRequest(); + ~DescribeACLAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::string getOrder() const; + void setOrder(const std::string &order); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string direction_; + std::string order_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLATTRIBUTEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h index 2dd02edd7..ba89f09c4 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLAttributeResult.h @@ -45,8 +45,8 @@ namespace AlibabaCloud std::string direction; std::vector dpiGroupIds; std::string name; - long gmtCreate; std::string type; + long gmtCreate; std::string destCidr; std::vector dpiSignatureIds; std::string ipProtocol; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeACLsRequest.h index 2994752fb..fd2224410 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeACLsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLsRequest.h @@ -1,72 +1,69 @@ /* * 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_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLsRequest : public RpcServiceRequest - { - - public: - DescribeACLsRequest(); - ~DescribeACLsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAclIds()const; - void setAclIds(const std::string& aclIds); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string aclIds_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeACLsRequest : public RpcServiceRequest { +public: + DescribeACLsRequest(); + ~DescribeACLsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclIds() const; + void setAclIds(const std::string &aclIds); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string aclIds_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEACLSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeACLsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeACLsResult.h index f32d0a31b..a8205de22 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeACLsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeACLsResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct Acl { std::string sagCount; + std::string resourceGroupId; std::string aclId; std::string name; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysRequest.h index 969a493c0..266589d67 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeBindableSmartAccessGatewaysRequest.h @@ -1,78 +1,75 @@ /* * 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_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeBindableSmartAccessGatewaysRequest : public RpcServiceRequest - { - - public: - DescribeBindableSmartAccessGatewaysRequest(); - ~DescribeBindableSmartAccessGatewaysRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCcnId()const; - void setCcnId(const std::string& ccnId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getCrossAccount()const; - void setCrossAccount(bool crossAccount); - std::string getName()const; - void setName(const std::string& name); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string ccnId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool crossAccount_; - std::string name_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeBindableSmartAccessGatewaysRequest : public RpcServiceRequest { +public: + DescribeBindableSmartAccessGatewaysRequest(); + ~DescribeBindableSmartAccessGatewaysRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCcnId() const; + void setCcnId(const std::string &ccnId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getCrossAccount() const; + void setCrossAccount(bool crossAccount); + std::string getName() const; + void setName(const std::string &name); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string ccnId_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool crossAccount_; + std::string name_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEBINDABLESMARTACCESSGATEWAYSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeClientUserDNSRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeClientUserDNSRequest.h index 3502d7f79..65c0342a9 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeClientUserDNSRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeClientUserDNSRequest.h @@ -1,63 +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_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeClientUserDNSRequest : public RpcServiceRequest - { - - public: - DescribeClientUserDNSRequest(); - ~DescribeClientUserDNSRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeClientUserDNSRequest : public RpcServiceRequest { +public: + DescribeClientUserDNSRequest(); + ~DescribeClientUserDNSRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLIENTUSERDNSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h index c9eb03d32..872d72830 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksRequest.h @@ -1,81 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeCloudConnectNetworksRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeCloudConnectNetworksRequest(); - ~DescribeCloudConnectNetworksRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCcnId()const; - void setCcnId(const std::string& ccnId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string ccnId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeCloudConnectNetworksRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeCloudConnectNetworksRequest(); + ~DescribeCloudConnectNetworksRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCcnId() const; + void setCcnId(const std::string &ccnId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string ccnId_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBECLOUDCONNECTNETWORKSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h index 8eca918a5..2c43c49d7 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeCloudConnectNetworksResult.h @@ -40,16 +40,17 @@ namespace AlibabaCloud std::string key; }; bool isDefault; - std::string description; std::string interworkingStatus; - std::string availableCloudBoxCount; + std::string description; + std::string resourceGroupId; long createTime; - std::string cidrBlock; + std::string availableCloudBoxCount; std::string associatedCenOwnerId; + std::string cidrBlock; std::string name; std::string ccnId; - std::string associatedCenId; std::string snatCidrBlock; + std::string associatedCenId; std::vector tags; std::string associatedCloudBoxCount; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyRequest.h index b72d49127..f43c863c5 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeDeviceAutoUpgradePolicyRequest.h @@ -1,69 +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_SMARTAG_MODEL_DESCRIBEDEVICEAUTOUPGRADEPOLICYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDEVICEAUTOUPGRADEPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeDeviceAutoUpgradePolicyRequest : public RpcServiceRequest - { - - public: - DescribeDeviceAutoUpgradePolicyRequest(); - ~DescribeDeviceAutoUpgradePolicyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVersionType()const; - void setVersionType(const std::string& versionType); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string serialNumber_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string versionType_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDEVICEAUTOUPGRADEPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDEVICEAUTOUPGRADEPOLICYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDEVICEAUTOUPGRADEPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeDeviceAutoUpgradePolicyRequest : public RpcServiceRequest { +public: + DescribeDeviceAutoUpgradePolicyRequest(); + ~DescribeDeviceAutoUpgradePolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVersionType() const; + void setVersionType(const std::string &versionType); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string versionType_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDEVICEAUTOUPGRADEPOLICYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesRequest.h index f76f513f0..546def00b 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDNATENTRIESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDNATENTRIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeDnatEntriesRequest : public RpcServiceRequest - { - - public: - DescribeDnatEntriesRequest(); - ~DescribeDnatEntriesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getType()const; - void setType(const std::string& type); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSagId()const; - void setSagId(const std::string& sagId); - - private: - long resourceOwnerId_; - std::string type_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string sagId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDNATENTRIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDNATENTRIESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDNATENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeDnatEntriesRequest : public RpcServiceRequest { +public: + DescribeDnatEntriesRequest(); + ~DescribeDnatEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getType() const; + void setType(const std::string &type); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSagId() const; + void setSagId(const std::string &sagId); + +private: + long resourceOwnerId_; + std::string type_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string sagId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEDNATENTRIESREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h index 476a0584b..a382826f3 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeDnatEntriesResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud std::string type; std::string externalIp; std::string ipProtocol; - std::string internalPort; std::string sagId; + std::string internalPort; std::string internalIp; std::string dnatEntryId; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsRequest.h index f77ff7b0e..3d2d1e803 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogSagsRequest.h @@ -1,69 +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_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeFlowLogSagsRequest : public RpcServiceRequest - { - - public: - DescribeFlowLogSagsRequest(); - ~DescribeFlowLogSagsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string flowLogId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeFlowLogSagsRequest : public RpcServiceRequest { +public: + DescribeFlowLogSagsRequest(); + ~DescribeFlowLogSagsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSAGSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsRequest.h index c21792a1b..3826eeab9 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsRequest.h @@ -1,81 +1,78 @@ /* * 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_SMARTAG_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeFlowLogsRequest : public RpcServiceRequest - { - - public: - DescribeFlowLogsRequest(); - ~DescribeFlowLogsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getOutputType()const; - void setOutputType(const std::string& outputType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - std::string getFlowLogName()const; - void setFlowLogName(const std::string& flowLogName); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - long resourceOwnerId_; - std::string description_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string outputType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string flowLogId_; - std::string flowLogName_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeFlowLogsRequest : public RpcServiceRequest { +public: + DescribeFlowLogsRequest(); + ~DescribeFlowLogsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getOutputType() const; + void setOutputType(const std::string &outputType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + std::string getFlowLogName() const; + void setFlowLogName(const std::string &flowLogName); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string description_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string outputType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string flowLogId_; + std::string flowLogName_; + std::string status_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEFLOWLOGSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsResult.h index 7253b171e..b139ba712 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeFlowLogsResult.h @@ -34,11 +34,12 @@ namespace AlibabaCloud public: struct FlowLogSetType { - std::string netflowServerPort; std::string status; + std::string netflowServerPort; std::string logstoreName; std::string description; int activeAging; + std::string resourceGroupId; std::string projectName; std::string netflowServerIp; std::string netflowVersion; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesRequest.h index addf17ab8..ddfc757a4 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesRequest.h @@ -1,69 +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_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantRulesRequest : public RpcServiceRequest - { - - public: - DescribeGrantRulesRequest(); - ~DescribeGrantRulesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getAssociatedCcnId()const; - void setAssociatedCcnId(const std::string& associatedCcnId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string associatedCcnId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantRulesRequest : public RpcServiceRequest { +public: + DescribeGrantRulesRequest(); + ~DescribeGrantRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getAssociatedCcnId() const; + void setAssociatedCcnId(const std::string &associatedCcnId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string associatedCcnId_; + long ownerId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTRULESREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h index 50cf55b68..1c4a55ca4 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantRulesResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud long cenUid; bool grantTrafficService; std::string ccnInstanceId; - std::string grantRuleId; std::string cenInstanceId; + std::string grantRuleId; long gmtModified; long ccnUid; std::string regionId; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesRequest.h index 7d553297a..de2e95dca 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesRequest.h @@ -1,69 +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_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantSagRulesRequest : public RpcServiceRequest - { - - public: - DescribeGrantSagRulesRequest(); - ~DescribeGrantSagRulesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantSagRulesRequest : public RpcServiceRequest { +public: + DescribeGrantSagRulesRequest(); + ~DescribeGrantSagRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGRULESREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h index 6d36b6447..65f1f078a 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagRulesResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct GrantRule { - std::string instanceId; bool grantTrafficService; + std::string instanceId; std::string ccnInstanceId; long createTime; long ccnUid; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeGrantSagVbrRulesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagVbrRulesRequest.h index 490b46593..99b4c8527 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeGrantSagVbrRulesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeGrantSagVbrRulesRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGVBRRULESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGVBRRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantSagVbrRulesRequest : public RpcServiceRequest - { - - public: - DescribeGrantSagVbrRulesRequest(); - ~DescribeGrantSagVbrRulesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVbrInstanceId()const; - void setVbrInstanceId(const std::string& vbrInstanceId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vbrInstanceId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGVBRRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGVBRRULESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGVBRRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeGrantSagVbrRulesRequest : public RpcServiceRequest { +public: + DescribeGrantSagVbrRulesRequest(); + ~DescribeGrantSagVbrRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVbrInstanceId() const; + void setVbrInstanceId(const std::string &vbrInstanceId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vbrInstanceId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEGRANTSAGVBRRULESREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeHealthCheckAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeHealthCheckAttributeRequest.h index 2a403a017..d519e5322 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeHealthCheckAttributeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeHealthCheckAttributeRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBEHEALTHCHECKATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEHEALTHCHECKATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeHealthCheckAttributeRequest : public RpcServiceRequest - { - - public: - DescribeHealthCheckAttributeRequest(); - ~DescribeHealthCheckAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getHcInstanceId()const; - void setHcInstanceId(const std::string& hcInstanceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string hcInstanceId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEHEALTHCHECKATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEHEALTHCHECKATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEHEALTHCHECKATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeHealthCheckAttributeRequest : public RpcServiceRequest { +public: + DescribeHealthCheckAttributeRequest(); + ~DescribeHealthCheckAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHcInstanceId() const; + void setHcInstanceId(const std::string &hcInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string hcInstanceId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEHEALTHCHECKATTRIBUTEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeHealthCheckAttributeResult.h b/smartag/include/alibabacloud/smartag/model/DescribeHealthCheckAttributeResult.h index 87e78b2cd..2e99303d4 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeHealthCheckAttributeResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeHealthCheckAttributeResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud DescribeHealthCheckAttributeResult(); explicit DescribeHealthCheckAttributeResult(const std::string &payload); ~DescribeHealthCheckAttributeResult(); - std::string getDescription()const; int getSrcPort()const; + std::string getDescription()const; std::string getSrcIpAddr()const; long getCreateTime()const; int getFailCountThreshold()const; @@ -57,8 +57,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string description_; int srcPort_; + std::string description_; std::string srcIpAddr_; long createTime_; int failCountThreshold_; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeHealthChecksRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeHealthChecksRequest.h index 51feb803a..00c9ec1d8 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeHealthChecksRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeHealthChecksRequest.h @@ -1,75 +1,69 @@ /* * 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_SMARTAG_MODEL_DESCRIBEHEALTHCHECKSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEHEALTHCHECKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeHealthChecksRequest : public RpcServiceRequest - { - - public: - DescribeHealthChecksRequest(); - ~DescribeHealthChecksRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getHcInstanceId()const; - void setHcInstanceId(const std::string& hcInstanceId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string hcInstanceId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEHEALTHCHECKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEHEALTHCHECKSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEHEALTHCHECKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeHealthChecksRequest : public RpcServiceRequest { +public: + DescribeHealthChecksRequest(); + ~DescribeHealthChecksRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHcInstanceId() const; + void setHcInstanceId(const std::string &hcInstanceId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string hcInstanceId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEHEALTHCHECKSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeHealthChecksResult.h b/smartag/include/alibabacloud/smartag/model/DescribeHealthChecksResult.h index 9da393304..6e0ded8b4 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeHealthChecksResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeHealthChecksResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct HealthCheck { std::string status; - std::string description; int srcPort; + std::string description; std::string srcIpAddr; int failCountThreshold; int dstPort; @@ -46,8 +46,8 @@ namespace AlibabaCloud int probeTimeout; std::string hcInstanceId; int rttThreshold; - int probeInterval; int relationCount; + int probeInterval; std::string smartAGId; int rttFailThreshold; std::string dstIpAddr; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.h deleted file mode 100644 index 38a242811..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSagsRequest : public RpcServiceRequest - { - - public: - DescribeNetworkOptimizationSagsRequest(); - ~DescribeNetworkOptimizationSagsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkOptId()const; - void setNetworkOptId(const std::string& networkOptId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - std::string networkOptId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h deleted file mode 100644 index 381934f40..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSagsResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSagsResult : public ServiceResult - { - public: - struct SmartAccessGateway - { - long endTime; - std::string instanceId; - std::string state; - std::string maxBandwidth; - long createTime; - std::string name; - }; - - - DescribeNetworkOptimizationSagsResult(); - explicit DescribeNetworkOptimizationSagsResult(const std::string &payload); - ~DescribeNetworkOptimizationSagsResult(); - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getSmartAccessGateways()const; - - protected: - void parse(const std::string &payload); - private: - int totalCount_; - int pageSize_; - int pageNumber_; - std::vector smartAccessGateways_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSAGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.h deleted file mode 100644 index 24eb3ff81..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSettingsRequest : public RpcServiceRequest - { - - public: - DescribeNetworkOptimizationSettingsRequest(); - ~DescribeNetworkOptimizationSettingsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkOptId()const; - void setNetworkOptId(const std::string& networkOptId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - std::string networkOptId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h deleted file mode 100644 index 635d01b74..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationSettingsResult.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationSettingsResult : public ServiceResult - { - public: - struct Setting - { - std::string type; - std::string domain; - }; - - - DescribeNetworkOptimizationSettingsResult(); - explicit DescribeNetworkOptimizationSettingsResult(const std::string &payload); - ~DescribeNetworkOptimizationSettingsResult(); - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getSettings()const; - - protected: - void parse(const std::string &payload); - private: - int totalCount_; - int pageSize_; - int pageNumber_; - std::vector settings_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSETTINGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.h deleted file mode 100644 index 37720e83b..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationsRequest : public RpcServiceRequest - { - - public: - DescribeNetworkOptimizationsRequest(); - ~DescribeNetworkOptimizationsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCcnId()const; - void setCcnId(const std::string& ccnId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkOptId()const; - void setNetworkOptId(const std::string& networkOptId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string ccnId_; - int pageNumber_; - std::string regionId_; - std::string networkOptId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h deleted file mode 100644 index 727ecd452..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribeNetworkOptimizationsResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeNetworkOptimizationsResult : public ServiceResult - { - public: - struct NetworkOptimization - { - int sagCount; - std::string instanceId; - std::string state; - std::string ccnId; - long createTime; - std::string name; - }; - - - DescribeNetworkOptimizationsResult(); - explicit DescribeNetworkOptimizationsResult(const std::string &payload); - ~DescribeNetworkOptimizationsResult(); - std::vector getNetworkOptimizations()const; - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: - std::vector networkOptimizations_; - int totalCount_; - int pageSize_; - int pageNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBENETWORKOPTIMIZATIONSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribePbrInterfacesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribePbrInterfacesRequest.h deleted file mode 100644 index b644cff82..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribePbrInterfacesRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBEPBRINTERFACESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPBRINTERFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribePbrInterfacesRequest : public RpcServiceRequest - { - - public: - DescribePbrInterfacesRequest(); - ~DescribePbrInterfacesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPbrInstanceId()const; - void setPbrInstanceId(const std::string& pbrInstanceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string pbrInstanceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPBRINTERFACESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribePbrInterfacesResult.h b/smartag/include/alibabacloud/smartag/model/DescribePbrInterfacesResult.h deleted file mode 100644 index d9eacc025..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribePbrInterfacesResult.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBEPBRINTERFACESRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPBRINTERFACESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribePbrInterfacesResult : public ServiceResult - { - public: - struct PbrInterface - { - std::string action; - int priority; - std::string healthCheckInstanceId; - std::string interfaceName; - }; - - - DescribePbrInterfacesResult(); - explicit DescribePbrInterfacesResult(const std::string &payload); - ~DescribePbrInterfacesResult(); - int getTotalCount()const; - std::vector getPbrInterfaces()const; - - protected: - void parse(const std::string &payload); - private: - int totalCount_; - std::vector pbrInterfaces_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPBRINTERFACESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribePbrRulesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribePbrRulesRequest.h deleted file mode 100644 index 5efc7485d..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribePbrRulesRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBEPBRRULESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPBRRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribePbrRulesRequest : public RpcServiceRequest - { - - public: - DescribePbrRulesRequest(); - ~DescribePbrRulesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPageNumber()const; - void setPageNumber(const std::string& pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPageSize()const; - void setPageSize(const std::string& pageSize); - std::string getPbrInstanceId()const; - void setPbrInstanceId(const std::string& pbrInstanceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string pageNumber_; - std::string regionId_; - std::string pageSize_; - std::string pbrInstanceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPBRRULESREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribePbrRulesResult.h b/smartag/include/alibabacloud/smartag/model/DescribePbrRulesResult.h deleted file mode 100644 index 0878e4625..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribePbrRulesResult.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBEPBRRULESRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPBRRULESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribePbrRulesResult : public ServiceResult - { - public: - struct PbrRule - { - std::string srcPort; - std::string description; - std::string srcCidr; - std::string dstPort; - std::string pbrRuleId; - std::string protocol; - std::string dstCidr; - std::string name; - }; - - - DescribePbrRulesResult(); - explicit DescribePbrRulesResult(const std::string &payload); - ~DescribePbrRulesResult(); - int getTotalCount()const; - std::vector getPbrRules()const; - int getPageSize()const; - int getPageNumber()const; - - protected: - void parse(const std::string &payload); - private: - int totalCount_; - std::vector pbrRules_; - int pageSize_; - int pageNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPBRRULESRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribePolicyBasedRoutingsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribePolicyBasedRoutingsRequest.h deleted file mode 100644 index 64d566a00..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribePolicyBasedRoutingsRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBEPOLICYBASEDROUTINGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPOLICYBASEDROUTINGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribePolicyBasedRoutingsRequest : public RpcServiceRequest - { - - public: - DescribePolicyBasedRoutingsRequest(); - ~DescribePolicyBasedRoutingsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getPbrInstanceId()const; - void setPbrInstanceId(const std::string& pbrInstanceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string pbrInstanceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPOLICYBASEDROUTINGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribePolicyBasedRoutingsResult.h b/smartag/include/alibabacloud/smartag/model/DescribePolicyBasedRoutingsResult.h deleted file mode 100644 index f3c70e137..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribePolicyBasedRoutingsResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBEPOLICYBASEDROUTINGSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPOLICYBASEDROUTINGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribePolicyBasedRoutingsResult : public ServiceResult - { - public: - struct PolicyBasedRouting - { - std::string pbrInstanceId; - std::string description; - int priority; - std::string name; - }; - - - DescribePolicyBasedRoutingsResult(); - explicit DescribePolicyBasedRoutingsResult(const std::string &payload); - ~DescribePolicyBasedRoutingsResult(); - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getPolicyBasedRoutings()const; - - protected: - void parse(const std::string &payload); - private: - int totalCount_; - int pageSize_; - int pageNumber_; - std::vector policyBasedRoutings_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEPOLICYBASEDROUTINGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosCarsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeQosCarsRequest.h index b21537f97..a719676a4 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeQosCarsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosCarsRequest.h @@ -1,78 +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_SMARTAG_MODEL_DESCRIBEQOSCARSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSCARSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosCarsRequest : public RpcServiceRequest - { - - public: - DescribeQosCarsRequest(); - ~DescribeQosCarsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getQosId()const; - void setQosId(const std::string& qosId); - std::string getOrder()const; - void setOrder(const std::string& order); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getQosCarId()const; - void setQosCarId(const std::string& qosCarId); - - private: - long resourceOwnerId_; - std::string description_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string qosId_; - std::string order_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string qosCarId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSCARSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSCARSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSCARSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosCarsRequest : public RpcServiceRequest { +public: + DescribeQosCarsRequest(); + ~DescribeQosCarsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getOrder() const; + void setOrder(const std::string &order); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getQosCarId() const; + void setQosCarId(const std::string &qosCarId); + +private: + long resourceOwnerId_; + std::string description_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string qosId_; + std::string order_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string qosCarId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSCARSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.h b/smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.h index a59211e4f..4bb418bee 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosCarsResult.h @@ -37,9 +37,9 @@ namespace AlibabaCloud int minBandwidthAbs; std::string description; std::string qosCarId; - int priority; - int maxBandwidthPercent; int maxBandwidthAbs; + int maxBandwidthPercent; + int priority; std::string qosId; std::string percentSourceType; int minBandwidthPercent; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesRequest.h index bd1f3dce0..998850192 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesRequest.h @@ -1,78 +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_SMARTAG_MODEL_DESCRIBEQOSPOLICIESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSPOLICIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosPoliciesRequest : public RpcServiceRequest - { - - public: - DescribeQosPoliciesRequest(); - ~DescribeQosPoliciesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getQosPolicyId()const; - void setQosPolicyId(const std::string& qosPolicyId); - std::string getDescription()const; - void setDescription(const std::string& description); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getQosId()const; - void setQosId(const std::string& qosId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - - private: - long resourceOwnerId_; - std::string qosPolicyId_; - std::string description_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string qosId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int priority_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSPOLICIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSPOLICIESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosPoliciesRequest : public RpcServiceRequest { +public: + DescribeQosPoliciesRequest(); + ~DescribeQosPoliciesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getQosPolicyId() const; + void setQosPolicyId(const std::string &qosPolicyId); + std::string getDescription() const; + void setDescription(const std::string &description); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + +private: + long resourceOwnerId_; + std::string qosPolicyId_; + std::string description_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int priority_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSPOLICIESREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h index 198d9701f..f542843aa 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosPoliciesResult.h @@ -35,9 +35,9 @@ namespace AlibabaCloud struct QosPolicy { std::string description; - std::string sourcePortRange; - std::string qosPolicyId; std::string endTime; + std::string qosPolicyId; + std::string sourcePortRange; std::string sourceCidr; int priority; std::string startTime; @@ -46,8 +46,8 @@ namespace AlibabaCloud std::string name; std::string destCidr; std::vector dpiSignatureIds; - std::string qosId; std::string ipProtocol; + std::string qosId; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeQosesRequest.h index 9902697d0..192bb4bb9 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeQosesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosesRequest.h @@ -1,72 +1,69 @@ /* * 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_SMARTAG_MODEL_DESCRIBEQOSESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosesRequest : public RpcServiceRequest - { - - public: - DescribeQosesRequest(); - ~DescribeQosesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getQosIds()const; - void setQosIds(const std::string& qosIds); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getQosName()const; - void setQosName(const std::string& qosName); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string qosIds_; - std::string ownerAccount_; - long ownerId_; - std::string qosName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeQosesRequest : public RpcServiceRequest { +public: + DescribeQosesRequest(); + ~DescribeQosesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getQosIds() const; + void setQosIds(const std::string &qosIds); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getQosName() const; + void setQosName(const std::string &qosName); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string qosIds_; + std::string ownerAccount_; + long ownerId_; + std::string qosName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEQOSESREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeQosesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeQosesResult.h index 534e45414..c6f300b21 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeQosesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeQosesResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct Qos { std::string sagCount; + std::string resourceGroupId; std::string qosId; std::string smartAGIds; std::string qosName; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h index cb91a8454..b74e5b7a0 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeRegionsRequest.h @@ -1,60 +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_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAcceptLanguage()const; - void setAcceptLanguage(const std::string& acceptLanguage); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string acceptLanguage_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeRegionsRequest : public RpcServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesRequest.h index faa635bb0..48d93d27b 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEROUTEDISTRIBUTIONSTRATEGIESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEROUTEDISTRIBUTIONSTRATEGIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeRouteDistributionStrategiesRequest : public RpcServiceRequest - { - - public: - DescribeRouteDistributionStrategiesRequest(); - ~DescribeRouteDistributionStrategiesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getSourceType()const; - void setSourceType(const std::string& sourceType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string sourceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEROUTEDISTRIBUTIONSTRATEGIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEROUTEDISTRIBUTIONSTRATEGIESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEROUTEDISTRIBUTIONSTRATEGIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeRouteDistributionStrategiesRequest : public RpcServiceRequest { +public: + DescribeRouteDistributionStrategiesRequest(); + ~DescribeRouteDistributionStrategiesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string sourceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEROUTEDISTRIBUTIONSTRATEGIESREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesResult.h b/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesResult.h index c28d2d016..2dd88f706 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeRouteDistributionStrategiesResult.h @@ -37,13 +37,13 @@ namespace AlibabaCloud std::string status; std::string instanceId; std::string hcInstanceId; - std::string routeSource; - std::string sourceType; long createTime; + std::string sourceType; + std::string routeSource; std::string routeDistribution; bool isConflict; - std::string smartAGId; std::string strategyPublishStatus; + std::string smartAGId; std::string conflictInfo; std::string destCidrBlock; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSAGDeviceInfoRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSAGDeviceInfoRequest.h index 1c7c9e250..b09290027 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSAGDeviceInfoRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSAGDeviceInfoRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGDEVICEINFOREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDEVICEINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSAGDeviceInfoRequest : public RpcServiceRequest - { - - public: - DescribeSAGDeviceInfoRequest(); - ~DescribeSAGDeviceInfoRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDEVICEINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDEVICEINFOREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDEVICEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSAGDeviceInfoRequest : public RpcServiceRequest { +public: + DescribeSAGDeviceInfoRequest(); + ~DescribeSAGDeviceInfoRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDEVICEINFOREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSAGDeviceInfoResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSAGDeviceInfoResult.h index e2af10753..3d92d8def 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSAGDeviceInfoResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSAGDeviceInfoResult.h @@ -37,25 +37,27 @@ namespace AlibabaCloud DescribeSAGDeviceInfoResult(); explicit DescribeSAGDeviceInfoResult(const std::string &payload); ~DescribeSAGDeviceInfoResult(); - std::string getControllerState()const; std::string getServiceIP()const; - std::string getSmartAGType()const; + std::string getControllerState()const; std::string getSynStatus()const; + std::string getSmartAGType()const; std::string getVersion()const; std::string getVpnState()const; std::string getStartupTime()const; + std::string getResettableStatus()const; std::string getLastConnectedControllerTime()const; protected: void parse(const std::string &payload); private: - std::string controllerState_; std::string serviceIP_; - std::string smartAGType_; + std::string controllerState_; std::string synStatus_; + std::string smartAGType_; std::string version_; std::string vpnState_; std::string startupTime_; + std::string resettableStatus_; std::string lastConnectedControllerTime_; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagCurrentDnsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagCurrentDnsRequest.h index 99ca99260..611f77fd1 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagCurrentDnsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagCurrentDnsRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGCURRENTDNSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGCURRENTDNSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagCurrentDnsRequest : public RpcServiceRequest - { - - public: - DescribeSagCurrentDnsRequest(); - ~DescribeSagCurrentDnsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGCURRENTDNSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGCURRENTDNSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGCURRENTDNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagCurrentDnsRequest : public RpcServiceRequest { +public: + DescribeSagCurrentDnsRequest(); + ~DescribeSagCurrentDnsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGCURRENTDNSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagDropTopNRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagDropTopNRequest.h index f5ba01978..64b1a32e4 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagDropTopNRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagDropTopNRequest.h @@ -1,63 +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_SMARTAG_MODEL_DESCRIBESAGDROPTOPNREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDROPTOPNREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagDropTopNRequest : public RpcServiceRequest - { - - public: - DescribeSagDropTopNRequest(); - ~DescribeSagDropTopNRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getSize()const; - void setSize(int size); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int size_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDROPTOPNREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDROPTOPNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDROPTOPNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagDropTopNRequest : public RpcServiceRequest { +public: + DescribeSagDropTopNRequest(); + ~DescribeSagDropTopNRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getSize() const; + void setSize(int size); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int size_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGDROPTOPNREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagECRouteBackupAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagECRouteBackupAttributeRequest.h deleted file mode 100644 index 8f682cf44..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagECRouteBackupAttributeRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBESAGECROUTEBACKUPATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGECROUTEBACKUPATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagECRouteBackupAttributeRequest : public RpcServiceRequest - { - - public: - DescribeSagECRouteBackupAttributeRequest(); - ~DescribeSagECRouteBackupAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGECROUTEBACKUPATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagECRouteBackupAttributeResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagECRouteBackupAttributeResult.h deleted file mode 100644 index 6a90745b4..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagECRouteBackupAttributeResult.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBESAGECROUTEBACKUPATTRIBUTERESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGECROUTEBACKUPATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagECRouteBackupAttributeResult : public ServiceResult - { - public: - struct Cidr - { - bool enableBackup; - std::string cidr; - }; - - - DescribeSagECRouteBackupAttributeResult(); - explicit DescribeSagECRouteBackupAttributeResult(const std::string &payload); - ~DescribeSagECRouteBackupAttributeResult(); - std::string getHcIp()const; - std::string getStatus()const; - std::string getExpressConnectionInterface()const; - bool getRouteBackup()const; - std::string getExpressConnectionNexthop()const; - std::string getSagId()const; - std::vector getCidrs()const; - - protected: - void parse(const std::string &payload); - private: - std::string hcIp_; - std::string status_; - std::string expressConnectionInterface_; - bool routeBackup_; - std::string expressConnectionNexthop_; - std::string sagId_; - std::vector cidrs_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGECROUTEBACKUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagExpressConnectInterfaceListRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagExpressConnectInterfaceListRequest.h index 205935ea9..dadcc0100 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagExpressConnectInterfaceListRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagExpressConnectInterfaceListRequest.h @@ -1,69 +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_SMARTAG_MODEL_DESCRIBESAGEXPRESSCONNECTINTERFACELISTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGEXPRESSCONNECTINTERFACELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagExpressConnectInterfaceListRequest : public RpcServiceRequest - { - - public: - DescribeSagExpressConnectInterfaceListRequest(); - ~DescribeSagExpressConnectInterfaceListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGEXPRESSCONNECTINTERFACELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGEXPRESSCONNECTINTERFACELISTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGEXPRESSCONNECTINTERFACELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagExpressConnectInterfaceListRequest : public RpcServiceRequest { +public: + DescribeSagExpressConnectInterfaceListRequest(); + ~DescribeSagExpressConnectInterfaceListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGEXPRESSCONNECTINTERFACELISTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagGlobalRouteProtocolRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagGlobalRouteProtocolRequest.h index 2464d26c2..42a2801cb 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagGlobalRouteProtocolRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagGlobalRouteProtocolRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGGLOBALROUTEPROTOCOLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGGLOBALROUTEPROTOCOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagGlobalRouteProtocolRequest : public RpcServiceRequest - { - - public: - DescribeSagGlobalRouteProtocolRequest(); - ~DescribeSagGlobalRouteProtocolRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGGLOBALROUTEPROTOCOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGGLOBALROUTEPROTOCOLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGGLOBALROUTEPROTOCOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagGlobalRouteProtocolRequest : public RpcServiceRequest { +public: + DescribeSagGlobalRouteProtocolRequest(); + ~DescribeSagGlobalRouteProtocolRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGGLOBALROUTEPROTOCOLREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagHaRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagHaRequest.h index 83828059f..7cf7e2cda 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagHaRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagHaRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGHAREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGHAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagHaRequest : public RpcServiceRequest - { - - public: - DescribeSagHaRequest(); - ~DescribeSagHaRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGHAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGHAREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGHAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagHaRequest : public RpcServiceRequest { +public: + DescribeSagHaRequest(); + ~DescribeSagHaRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGHAREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagHaResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagHaResult.h index 4693677af..72a40461c 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagHaResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagHaResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Port { - std::string virtualIp; std::string portName; + std::string virtualIp; }; struct TaskState { diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagLanListRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagLanListRequest.h index f1bcf651a..6713f4134 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagLanListRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagLanListRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGLANLISTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGLANLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagLanListRequest : public RpcServiceRequest - { - - public: - DescribeSagLanListRequest(); - ~DescribeSagLanListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGLANLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGLANLISTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGLANLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagLanListRequest : public RpcServiceRequest { +public: + DescribeSagLanListRequest(); + ~DescribeSagLanListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGLANLISTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagLanListResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagLanListResult.h index af7c43d12..57815ab60 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagLanListResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagLanListResult.h @@ -46,8 +46,8 @@ namespace AlibabaCloud std::string iP; std::string mask; std::string startIp; - std::string portName; std::string endIp; + std::string portName; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagManagementPortRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagManagementPortRequest.h index cfd29060d..9efe4c9b3 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagManagementPortRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagManagementPortRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGMANAGEMENTPORTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGMANAGEMENTPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagManagementPortRequest : public RpcServiceRequest - { - - public: - DescribeSagManagementPortRequest(); - ~DescribeSagManagementPortRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGMANAGEMENTPORTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGMANAGEMENTPORTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGMANAGEMENTPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagManagementPortRequest : public RpcServiceRequest { +public: + DescribeSagManagementPortRequest(); + ~DescribeSagManagementPortRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGMANAGEMENTPORTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.h index 33babbf4a..99d1447a7 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagOnlineClientStatisticsRequest.h @@ -1,63 +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_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagOnlineClientStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeSagOnlineClientStatisticsRequest(); - ~DescribeSagOnlineClientStatisticsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getSmartAGIds()const; - void setSmartAGIds(const std::vector& smartAGIds); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::vector smartAGIds_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagOnlineClientStatisticsRequest : public RpcServiceRequest { +public: + DescribeSagOnlineClientStatisticsRequest(); + ~DescribeSagOnlineClientStatisticsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getSmartAGIds() const; + void setSmartAGIds(const std::vector &smartAGIds); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::vector smartAGIds_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGONLINECLIENTSTATISTICSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagPortListRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagPortListRequest.h index b1699a7ea..e165f676d 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagPortListRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagPortListRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGPORTLISTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGPORTLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagPortListRequest : public RpcServiceRequest - { - - public: - DescribeSagPortListRequest(); - ~DescribeSagPortListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGPORTLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGPORTLISTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGPORTLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagPortListRequest : public RpcServiceRequest { +public: + DescribeSagPortListRequest(); + ~DescribeSagPortListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGPORTLISTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagPortListResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagPortListResult.h index ccd393683..44f2b6dd0 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagPortListResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagPortListResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Port { - std::string role; std::string status; + std::string role; std::string vlan; std::string portName; std::string mac; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagPortRouteProtocolListRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagPortRouteProtocolListRequest.h index 70d2323d1..0accd1ad1 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagPortRouteProtocolListRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagPortRouteProtocolListRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGPORTROUTEPROTOCOLLISTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGPORTROUTEPROTOCOLLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagPortRouteProtocolListRequest : public RpcServiceRequest - { - - public: - DescribeSagPortRouteProtocolListRequest(); - ~DescribeSagPortRouteProtocolListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGPORTROUTEPROTOCOLLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGPORTROUTEPROTOCOLLISTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGPORTROUTEPROTOCOLLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagPortRouteProtocolListRequest : public RpcServiceRequest { +public: + DescribeSagPortRouteProtocolListRequest(); + ~DescribeSagPortRouteProtocolListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGPORTROUTEPROTOCOLLISTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagPortRouteProtocolListResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagPortRouteProtocolListResult.h index 677034b94..b57e0b823 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagPortRouteProtocolListResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagPortRouteProtocolListResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Port { - std::string remoteAs; std::string status; + std::string remoteAs; std::string routeProtocol; std::string remoteIp; std::string neighborIp; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRemoteAccessRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRemoteAccessRequest.h index 020d395dc..18502f3c1 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRemoteAccessRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRemoteAccessRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGREMOTEACCESSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGREMOTEACCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRemoteAccessRequest : public RpcServiceRequest - { - - public: - DescribeSagRemoteAccessRequest(); - ~DescribeSagRemoteAccessRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string serialNumber_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGREMOTEACCESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGREMOTEACCESSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGREMOTEACCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRemoteAccessRequest : public RpcServiceRequest { +public: + DescribeSagRemoteAccessRequest(); + ~DescribeSagRemoteAccessRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGREMOTEACCESSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteListRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteListRequest.h index 5ca5589dd..bc1b57527 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteListRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteListRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGROUTELISTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteListRequest : public RpcServiceRequest - { - - public: - DescribeSagRouteListRequest(); - ~DescribeSagRouteListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTELISTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteListRequest : public RpcServiceRequest { +public: + DescribeSagRouteListRequest(); + ~DescribeSagRouteListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTELISTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteListResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteListResult.h index b86bbcc06..d6af87e39 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteListResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteListResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string routeProtocol; std::vector conflictCidrs; std::string nextHop; - std::string portName; std::string cost; + std::string portName; std::string destinationCidr; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpRequest.h index 12756c59e..c4ffeff72 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLBGPREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLBGPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteProtocolBgpRequest : public RpcServiceRequest - { - - public: - DescribeSagRouteProtocolBgpRequest(); - ~DescribeSagRouteProtocolBgpRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLBGPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLBGPREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLBGPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteProtocolBgpRequest : public RpcServiceRequest { +public: + DescribeSagRouteProtocolBgpRequest(); + ~DescribeSagRouteProtocolBgpRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLBGPREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpResult.h index b52c2aa13..6369b9e81 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolBgpResult.h @@ -47,8 +47,8 @@ namespace AlibabaCloud int getHoldTime()const; std::string getAdvertiseIps()const; int getKeepAlive()const; - std::string getRouterId()const; int getLocalAs()const; + std::string getRouterId()const; std::vector getTaskStates()const; protected: @@ -57,8 +57,8 @@ namespace AlibabaCloud int holdTime_; std::string advertiseIps_; int keepAlive_; - std::string routerId_; int localAs_; + std::string routerId_; std::vector taskStates_; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfRequest.h index f4e3d55f1..f0649f77d 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLOSPFREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLOSPFREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteProtocolOspfRequest : public RpcServiceRequest - { - - public: - DescribeSagRouteProtocolOspfRequest(); - ~DescribeSagRouteProtocolOspfRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLOSPFREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLOSPFREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLOSPFREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteProtocolOspfRequest : public RpcServiceRequest { +public: + DescribeSagRouteProtocolOspfRequest(); + ~DescribeSagRouteProtocolOspfRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEPROTOCOLOSPFREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfResult.h index d8f44ddd3..6caa22bd2 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteProtocolOspfResult.h @@ -47,8 +47,8 @@ namespace AlibabaCloud int getDeadTime()const; int getMd5KeyId()const; std::string getAreaId()const; - int getHelloTime()const; std::string getRouterId()const; + int getHelloTime()const; std::vector getTaskStates()const; std::string getAreaType()const; std::string getMd5Key()const; @@ -60,8 +60,8 @@ namespace AlibabaCloud int deadTime_; int md5KeyId_; std::string areaId_; - int helloTime_; std::string routerId_; + int helloTime_; std::vector taskStates_; std::string areaType_; std::string md5Key_; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.h deleted file mode 100644 index fab17c315..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteableAddressRequest : public RpcServiceRequest - { - - public: - DescribeSagRouteableAddressRequest(); - ~DescribeSagRouteableAddressRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSagId()const; - void setSagId(const std::string& sagId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string regionId_; - std::string sagId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h deleted file mode 100644 index 5c34a32f3..000000000 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagRouteableAddressResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagRouteableAddressResult : public ServiceResult - { - public: - - - DescribeSagRouteableAddressResult(); - explicit DescribeSagRouteableAddressResult(const std::string &payload); - ~DescribeSagRouteableAddressResult(); - std::string getOrigin()const; - std::string getRouteableAddress()const; - - protected: - void parse(const std::string &payload); - private: - std::string origin_; - std::string routeableAddress_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGROUTEABLEADDRESSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListRequest.h index 16c2482c2..2728d110e 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGSTATICROUTELISTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGSTATICROUTELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagStaticRouteListRequest : public RpcServiceRequest - { - - public: - DescribeSagStaticRouteListRequest(); - ~DescribeSagStaticRouteListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGSTATICROUTELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGSTATICROUTELISTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGSTATICROUTELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagStaticRouteListRequest : public RpcServiceRequest { +public: + DescribeSagStaticRouteListRequest(); + ~DescribeSagStaticRouteListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGSTATICROUTELISTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListResult.h index 935d0c08d..8baebe5ca 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagStaticRouteListResult.h @@ -32,13 +32,6 @@ namespace AlibabaCloud class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagStaticRouteListResult : public ServiceResult { public: - struct TaskState - { - std::string state; - std::string createTime; - std::string errorCode; - std::string errorMessage; - }; struct StaticRoute { std::string nextHop; @@ -46,19 +39,26 @@ namespace AlibabaCloud std::string portName; std::string destinationCidr; }; + struct TaskState + { + std::string state; + std::string createTime; + std::string errorCode; + std::string errorMessage; + }; DescribeSagStaticRouteListResult(); explicit DescribeSagStaticRouteListResult(const std::string &payload); ~DescribeSagStaticRouteListResult(); - std::vector getTaskStates()const; std::vector getStaticRoutes()const; + std::vector getTaskStates()const; protected: void parse(const std::string &payload); private: - std::vector taskStates_; std::vector staticRoutes_; + std::vector taskStates_; }; } diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagTrafficTopNRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagTrafficTopNRequest.h index 6b6a734cf..512ff6290 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagTrafficTopNRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagTrafficTopNRequest.h @@ -1,63 +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_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagTrafficTopNRequest : public RpcServiceRequest - { - - public: - DescribeSagTrafficTopNRequest(); - ~DescribeSagTrafficTopNRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getSize()const; - void setSize(int size); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int size_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagTrafficTopNRequest : public RpcServiceRequest { +public: + DescribeSagTrafficTopNRequest(); + ~DescribeSagTrafficTopNRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getSize() const; + void setSize(int size); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int size_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGTRAFFICTOPNREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagUserDnsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagUserDnsRequest.h index 10e1e7800..8832ef142 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagUserDnsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagUserDnsRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGUSERDNSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGUSERDNSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagUserDnsRequest : public RpcServiceRequest - { - - public: - DescribeSagUserDnsRequest(); - ~DescribeSagUserDnsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGUSERDNSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGUSERDNSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGUSERDNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagUserDnsRequest : public RpcServiceRequest { +public: + DescribeSagUserDnsRequest(); + ~DescribeSagUserDnsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGUSERDNSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagVbrRelationsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagVbrRelationsRequest.h index d6c0fa900..3a9fa3464 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagVbrRelationsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagVbrRelationsRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGVBRRELATIONSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGVBRRELATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagVbrRelationsRequest : public RpcServiceRequest - { - - public: - DescribeSagVbrRelationsRequest(); - ~DescribeSagVbrRelationsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getVbrInstanceIds()const; - void setVbrInstanceIds(const std::vector& vbrInstanceIds); - std::string getVbrRegionId()const; - void setVbrRegionId(const std::string& vbrRegionId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::vector vbrInstanceIds_; - std::string vbrRegionId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGVBRRELATIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGVBRRELATIONSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGVBRRELATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagVbrRelationsRequest : public RpcServiceRequest { +public: + DescribeSagVbrRelationsRequest(); + ~DescribeSagVbrRelationsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getVbrInstanceIds() const; + void setVbrInstanceIds(const std::vector &vbrInstanceIds); + std::string getVbrRegionId() const; + void setVbrRegionId(const std::string &vbrRegionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::vector vbrInstanceIds_; + std::string vbrRegionId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGVBRRELATIONSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GRequest.h index c6257711b..954888ffe 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGWAN4GREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWAN4GREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagWan4GRequest : public RpcServiceRequest - { - - public: - DescribeSagWan4GRequest(); - ~DescribeSagWan4GRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWAN4GREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWAN4GREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWAN4GREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagWan4GRequest : public RpcServiceRequest { +public: + DescribeSagWan4GRequest(); + ~DescribeSagWan4GRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWAN4GREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GResult.h index 6a3fe4570..d5b4acd1d 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagWan4GResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud std::string getTrafficState()const; int getPriority()const; std::string getIp()const; - std::string getMac()const; std::string getStrength()const; + std::string getMac()const; protected: void parse(const std::string &payload); @@ -51,8 +51,8 @@ namespace AlibabaCloud std::string trafficState_; int priority_; std::string ip_; - std::string mac_; std::string strength_; + std::string mac_; }; } diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagWanListRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagWanListRequest.h index bc42ffaba..f9a6c5757 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagWanListRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagWanListRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGWANLISTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWANLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagWanListRequest : public RpcServiceRequest - { - - public: - DescribeSagWanListRequest(); - ~DescribeSagWanListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWANLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWANLISTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWANLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagWanListRequest : public RpcServiceRequest { +public: + DescribeSagWanListRequest(); + ~DescribeSagWanListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWANLISTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagWanListResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagWanListResult.h index 09907f853..b3dd905e3 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagWanListResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagWanListResult.h @@ -37,9 +37,9 @@ namespace AlibabaCloud std::string iPType; std::string trafficState; int priority; - std::string sourceIps; - std::string iSP; std::string iP; + std::string iSP; + std::string sourceIps; std::string mask; std::string startIp; std::string vlan; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagWanSnatRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagWanSnatRequest.h index 537619885..994add699 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagWanSnatRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagWanSnatRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGWANSNATREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWANSNATREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagWanSnatRequest : public RpcServiceRequest - { - - public: - DescribeSagWanSnatRequest(); - ~DescribeSagWanSnatRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWANSNATREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWANSNATREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWANSNATREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagWanSnatRequest : public RpcServiceRequest { +public: + DescribeSagWanSnatRequest(); + ~DescribeSagWanSnatRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWANSNATREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagWifiRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSagWifiRequest.h index 57fe7fed2..bb26dbbe5 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagWifiRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagWifiRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBESAGWIFIREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWIFIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagWifiRequest : public RpcServiceRequest - { - - public: - DescribeSagWifiRequest(); - ~DescribeSagWifiRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWIFIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWIFIREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWIFIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSagWifiRequest : public RpcServiceRequest { +public: + DescribeSagWifiRequest(); + ~DescribeSagWifiRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESAGWIFIREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSagWifiResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSagWifiResult.h index c16f0a282..87e2ad6d5 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSagWifiResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSagWifiResult.h @@ -45,27 +45,27 @@ namespace AlibabaCloud explicit DescribeSagWifiResult(const std::string &payload); ~DescribeSagWifiResult(); std::string getIsEnable()const; - std::string getChannel()const; - std::string getBandwidth()const; std::string getIsAuth()const; + std::string getBandwidth()const; + std::string getChannel()const; std::vector getTaskStates()const; std::string getSsid()const; - std::string getIsBroadcast()const; - std::string getEncryptAlgorithm()const; std::string getAuthenticationType()const; + std::string getEncryptAlgorithm()const; + std::string getIsBroadcast()const; protected: void parse(const std::string &payload); private: std::string isEnable_; - std::string channel_; - std::string bandwidth_; std::string isAuth_; + std::string bandwidth_; + std::string channel_; std::vector taskStates_; std::string ssid_; - std::string isBroadcast_; - std::string encryptAlgorithm_; std::string authenticationType_; + std::string encryptAlgorithm_; + std::string isBroadcast_; }; } diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeRequest.h index b3432adc4..1bd36efb5 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeRequest.h @@ -1,63 +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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayAttributeRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewayAttributeRequest(); - ~DescribeSmartAccessGatewayAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayAttributeRequest : public RpcServiceRequest { +public: + DescribeSmartAccessGatewayAttributeRequest(); + ~DescribeSmartAccessGatewayAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYATTRIBUTEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h index af20280e3..234c447be 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayAttributeResult.h @@ -32,6 +32,22 @@ namespace AlibabaCloud class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayAttributeResult : public ServiceResult { public: + struct ApplicationBandwidthPackageOperationLocks + { + std::string lockReason; + std::string lockType; + }; + struct Device + { + std::string monitorVersion; + std::string secretKey; + std::string softwareVersion; + std::string serialNumber; + std::string haState; + std::string dpiSignatureDbVersion; + int distributeSkStatus; + std::string hcState; + }; struct Link { std::string status; @@ -40,57 +56,51 @@ namespace AlibabaCloud std::string instanceId; std::string relateInstanceId; std::string bandwidth; - std::string commodityType; - std::string relateInstanceRegionId; std::string healthCheckTargetIp; - }; - struct Device - { - std::string monitorVersion; - std::string secretKey; - std::string softwareVersion; - std::string serialNumber; - int distributeSkStatus; - std::string dpiSignatureDbVersion; - std::string haState; - std::string hcState; + std::string relateInstanceRegionId; + std::string commodityType; }; DescribeSmartAccessGatewayAttributeResult(); explicit DescribeSmartAccessGatewayAttributeResult(const std::string &payload); ~DescribeSmartAccessGatewayAttributeResult(); - std::string getDescription()const; int getUpBandwidth4G()const; - std::string getResourceGroupId()const; + std::string getDescription()const; long getEndTime()const; + std::string getResourceGroupId()const; int getUserCount()const; - std::string getVpnStatus()const; - std::string getMaxBandwidth()const; std::string getAssociatedCcnName()const; + std::string getMaxBandwidth()const; + std::string getVpnStatus()const; std::string getBoxControllerIp()const; std::vector getQosIds()const; - std::string getCidrBlock()const; int getUpBandwidthWan()const; + std::string getCidrBlock()const; std::vector getDevices()const; std::string getName()const; bool getOptimizationType()const; + std::string getApplicationBandwidthPackageName()const; std::string getIpsecStatus()const; std::string getRoutingStrategy()const; + std::string getApplicationBandwidthPackageId()const; std::vector getFlowLogIds()const; std::string getAssociatedCcnId()const; - std::string getInstanceType()const; std::string getSmartAGId()const; - int getSecurityLockThreshold()const; + std::string getInstanceType()const; std::string getResellerUid()const; + int getSecurityLockThreshold()const; std::string getStatus()const; long getCreateTime()const; long getDataPlan()const; bool getEnableOptimization()const; + std::string getApplicationBandwidthPackageBussinessStatus()const; std::string getCity()const; + ApplicationBandwidthPackageOperationLocks getApplicationBandwidthPackageOperationLocks()const; + long getAccelerateBandwidth()const; std::string getResellerInstanceId()const; - std::string getBackupBoxControllerIp()const; std::string getSerialNumber()const; + std::string getBackupBoxControllerIp()const; std::string getTrafficMasterSn()const; std::string getAccessPointId()const; std::vector getLinks()const; @@ -99,37 +109,42 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string description_; int upBandwidth4G_; - std::string resourceGroupId_; + std::string description_; long endTime_; + std::string resourceGroupId_; int userCount_; - std::string vpnStatus_; - std::string maxBandwidth_; std::string associatedCcnName_; + std::string maxBandwidth_; + std::string vpnStatus_; std::string boxControllerIp_; std::vector qosIds_; - std::string cidrBlock_; int upBandwidthWan_; + std::string cidrBlock_; std::vector devices_; std::string name_; bool optimizationType_; + std::string applicationBandwidthPackageName_; std::string ipsecStatus_; std::string routingStrategy_; + std::string applicationBandwidthPackageId_; std::vector flowLogIds_; std::string associatedCcnId_; - std::string instanceType_; std::string smartAGId_; - int securityLockThreshold_; + std::string instanceType_; std::string resellerUid_; + int securityLockThreshold_; std::string status_; long createTime_; long dataPlan_; bool enableOptimization_; + std::string applicationBandwidthPackageBussinessStatus_; std::string city_; + ApplicationBandwidthPackageOperationLocks applicationBandwidthPackageOperationLocks_; + long accelerateBandwidth_; std::string resellerInstanceId_; - std::string backupBoxControllerIp_; std::string serialNumber_; + std::string backupBoxControllerIp_; std::string trafficMasterSn_; std::string accessPointId_; std::vector links_; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h index 9867c55b0..4b4d0194f 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersRequest.h @@ -1,75 +1,75 @@ /* * 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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayClientUsersRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewayClientUsersRequest(); - ~DescribeSmartAccessGatewayClientUsersRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getUserMail()const; - void setUserMail(const std::string& userMail); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string userMail_; - long ownerId_; - std::string smartAGId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayClientUsersRequest : public RpcServiceRequest { +public: + DescribeSmartAccessGatewayClientUsersRequest(); + ~DescribeSmartAccessGatewayClientUsersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + long getEndLoginTime() const; + void setEndLoginTime(long endLoginTime); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getUserMail() const; + void setUserMail(const std::string &userMail); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getBeginLoginTime() const; + void setBeginLoginTime(long beginLoginTime); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + long endLoginTime_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string userMail_; + long ownerId_; + long beginLoginTime_; + std::string smartAGId_; + std::string userName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYCLIENTUSERSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h index 474840980..300a092bd 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayClientUsersResult.h @@ -34,9 +34,10 @@ namespace AlibabaCloud public: struct User { + long accelerateBandwidth; std::string userName; - std::string userMail; int state; + std::string userMail; int bandwidth; std::string clientIp; }; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h index a094dfa63..2cfca8dac 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayHaRequest.h @@ -1,63 +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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayHaRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewayHaRequest(); - ~DescribeSmartAccessGatewayHaRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayHaRequest : public RpcServiceRequest { +public: + DescribeSmartAccessGatewayHaRequest(); + ~DescribeSmartAccessGatewayHaRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYHAREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h index 9fe4cd9d9..00e556a5a 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewayVersionsRequest.h @@ -1,69 +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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayVersionsRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewayVersionsRequest(); - ~DescribeSmartAccessGatewayVersionsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVersionType()const; - void setVersionType(const std::string& versionType); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string versionType_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewayVersionsRequest : public RpcServiceRequest { +public: + DescribeSmartAccessGatewayVersionsRequest(); + ~DescribeSmartAccessGatewayVersionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVersionType() const; + void setVersionType(const std::string &versionType); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string versionType_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYVERSIONSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h index 545dda508..4d2ea6a85 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysRequest.h @@ -1,111 +1,108 @@ /* * 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_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewaysRequest : public RpcServiceRequest - { - - public: - DescribeSmartAccessGatewaysRequest(); - ~DescribeSmartAccessGatewaysRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAclIds()const; - void setAclIds(const std::string& aclIds); - bool getCanAssociateQos()const; - void setCanAssociateQos(bool canAssociateQos); - std::string getSoftwareVersion()const; - void setSoftwareVersion(const std::string& softwareVersion); - std::string getUnboundAclIds()const; - void setUnboundAclIds(const std::string& unboundAclIds); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getVersionComparator()const; - void setVersionComparator(const std::string& versionComparator); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getHardwareType()const; - void setHardwareType(const std::string& hardwareType); - std::vector getSmartAGIds()const; - void setSmartAGIds(const std::vector& smartAGIds); - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getAssociatedCcnId()const; - void setAssociatedCcnId(const std::string& associatedCcnId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getBusinessState()const; - void setBusinessState(const std::string& businessState); - std::string getName()const; - void setName(const std::string& name); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - long resourceOwnerId_; - std::string aclIds_; - bool canAssociateQos_; - std::string softwareVersion_; - std::string unboundAclIds_; - int pageNumber_; - std::string versionComparator_; - std::string resourceGroupId_; - std::string regionId_; - int pageSize_; - std::string instanceType_; - std::string hardwareType_; - std::vector smartAGIds_; - std::string serialNumber_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string associatedCcnId_; - long ownerId_; - std::string businessState_; - std::string name_; - std::string smartAGId_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSmartAccessGatewaysRequest : public RpcServiceRequest { +public: + DescribeSmartAccessGatewaysRequest(); + ~DescribeSmartAccessGatewaysRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclIds() const; + void setAclIds(const std::string &aclIds); + bool getCanAssociateQos() const; + void setCanAssociateQos(bool canAssociateQos); + std::string getSoftwareVersion() const; + void setSoftwareVersion(const std::string &softwareVersion); + std::string getUnboundAclIds() const; + void setUnboundAclIds(const std::string &unboundAclIds); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getVersionComparator() const; + void setVersionComparator(const std::string &versionComparator); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getHardwareType() const; + void setHardwareType(const std::string &hardwareType); + std::vector getSmartAGIds() const; + void setSmartAGIds(const std::vector &smartAGIds); + std::string getApplicationBandwidthPackageId() const; + void setApplicationBandwidthPackageId(const std::string &applicationBandwidthPackageId); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getAssociatedCcnId() const; + void setAssociatedCcnId(const std::string &associatedCcnId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getBusinessState() const; + void setBusinessState(const std::string &businessState); + std::string getName() const; + void setName(const std::string &name); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string aclIds_; + bool canAssociateQos_; + std::string softwareVersion_; + std::string unboundAclIds_; + int pageNumber_; + std::string versionComparator_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string instanceType_; + std::string hardwareType_; + std::vector smartAGIds_; + std::string applicationBandwidthPackageId_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string associatedCcnId_; + long ownerId_; + std::string businessState_; + std::string name_; + std::string smartAGId_; + std::string status_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESMARTACCESSGATEWAYSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h index 6b4c84233..4679aa0be 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSmartAccessGatewaysResult.h @@ -42,31 +42,32 @@ namespace AlibabaCloud std::string instanceId; std::string relateInstanceId; std::string bandwidth; - std::string commodityType; std::string relateInstanceRegionId; + std::string commodityType; }; - std::string description; int upBandwidth4G; - std::string resourceGroupId; + std::string description; long endTime; + std::string resourceGroupId; int userCount; - std::string vpnStatus; - std::string maxBandwidth; std::string associatedCcnName; - std::string dpiMonitorStatus; - std::string cidrBlock; - std::string qosIds; + std::string maxBandwidth; + std::string vpnStatus; int upBandwidthWan; + std::string qosIds; + std::string cidrBlock; + std::string dpiMonitorStatus; std::string name; std::string ipsecStatus; std::string routingStrategy; + std::string applicationBandwidthPackageId; std::string associatedCcnId; std::string backupSoftwareVersion; std::string smartAGId; - std::string dpiStatus; std::string enterpriseCode; - int securityLockThreshold; + std::string dpiStatus; std::string resellerUid; + int securityLockThreshold; std::string status; std::string idaasId; std::string idaasApplicationId; @@ -75,8 +76,9 @@ namespace AlibabaCloud std::string city; std::string hardwareVersion; long smartAGUid; - std::string resellerInstanceId; + long accelerateBandwidth; std::string softwareVersion; + std::string resellerInstanceId; std::string serialNumber; std::string accessPointId; std::vector links; diff --git a/smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesRequest.h index 3c82c1fb3..294a5eeb9 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeSnatEntriesRequest.h @@ -1,69 +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_SMARTAG_MODEL_DESCRIBESNATENTRIESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESNATENTRIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeSnatEntriesRequest : public RpcServiceRequest - { - - public: - DescribeSnatEntriesRequest(); - ~DescribeSnatEntriesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESNATENTRIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESNATENTRIESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESNATENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeSnatEntriesRequest : public RpcServiceRequest { +public: + DescribeSnatEntriesRequest(); + ~DescribeSnatEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBESNATENTRIESREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsRequest.h index 6862f5058..d60e6610c 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeUnbindFlowLogSagsRequest.h @@ -1,60 +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_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeUnbindFlowLogSagsRequest : public RpcServiceRequest - { - - public: - DescribeUnbindFlowLogSagsRequest(); - ~DescribeUnbindFlowLogSagsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeUnbindFlowLogSagsRequest : public RpcServiceRequest { +public: + DescribeUnbindFlowLogSagsRequest(); + ~DescribeUnbindFlowLogSagsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string resourceGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUNBINDFLOWLOGSAGSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.h index c2397f900..2e45be6cb 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserFlowStatisticsRequest.h @@ -1,69 +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_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserFlowStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeUserFlowStatisticsRequest(); - ~DescribeUserFlowStatisticsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getUserNames()const; - void setUserNames(const std::vector& userNames); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getStatisticsDate()const; - void setStatisticsDate(const std::string& statisticsDate); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::vector userNames_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string statisticsDate_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserFlowStatisticsRequest : public RpcServiceRequest { +public: + DescribeUserFlowStatisticsRequest(); + ~DescribeUserFlowStatisticsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getUserNames() const; + void setUserNames(const std::vector &userNames); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getStatisticsDate() const; + void setStatisticsDate(const std::string &statisticsDate); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::vector userNames_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string statisticsDate_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERFLOWSTATISTICSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.h index 71da1d91d..bd7a6d528 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientStatisticsRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeUserOnlineClientStatisticsRequest(); - ~DescribeUserOnlineClientStatisticsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getUserNames()const; - void setUserNames(const std::vector& userNames); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::vector userNames_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientStatisticsRequest : public RpcServiceRequest { +public: + DescribeUserOnlineClientStatisticsRequest(); + ~DescribeUserOnlineClientStatisticsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getUserNames() const; + void setUserNames(const std::vector &userNames); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::vector userNames_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSTATISTICSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h index 031438c79..5c1e134c6 100644 --- a/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DescribeUserOnlineClientsRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientsRequest : public RpcServiceRequest - { - - public: - DescribeUserOnlineClientsRequest(); - ~DescribeUserOnlineClientsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DescribeUserOnlineClientsRequest : public RpcServiceRequest { +public: + DescribeUserOnlineClientsRequest(); + ~DescribeUserOnlineClientsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string userName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DESCRIBEUSERONLINECLIENTSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h b/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h deleted file mode 100644 index ac9b929f7..000000000 --- a/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DetachNetworkOptimizationSagsRequest : public RpcServiceRequest - { - - public: - DetachNetworkOptimizationSagsRequest(); - ~DetachNetworkOptimizationSagsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkOptId()const; - void setNetworkOptId(const std::string& networkOptId); - std::vector getSmartAGIds()const; - void setSmartAGIds(const std::vector& smartAGIds); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string networkOptId_; - std::vector smartAGIds_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h b/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h deleted file mode 100644 index 71e218e6a..000000000 --- a/smartag/include/alibabacloud/smartag/model/DetachNetworkOptimizationSagsResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DetachNetworkOptimizationSagsResult : public ServiceResult - { - public: - - - DetachNetworkOptimizationSagsResult(); - explicit DetachNetworkOptimizationSagsResult(const std::string &payload); - ~DetachNetworkOptimizationSagsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DETACHNETWORKOPTIMIZATIONSAGSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayRequest.h index 7e87761e3..b3485995e 100644 --- a/smartag/include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DiagnoseSmartAccessGatewayRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DiagnoseSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - DiagnoseSmartAccessGatewayRequest(); - ~DiagnoseSmartAccessGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string regionId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DiagnoseSmartAccessGatewayRequest : public RpcServiceRequest { +public: + DiagnoseSmartAccessGatewayRequest(); + ~DiagnoseSmartAccessGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DIAGNOSESMARTACCESSGATEWAYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorRequest.h b/smartag/include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorRequest.h index 2df39e17a..51677a10d 100644 --- a/smartag/include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DisableSmartAGDpiMonitorRequest.h @@ -1,69 +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_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DisableSmartAGDpiMonitorRequest : public RpcServiceRequest - { - - public: - DisableSmartAGDpiMonitorRequest(); - ~DisableSmartAGDpiMonitorRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DisableSmartAGDpiMonitorRequest : public RpcServiceRequest { +public: + DisableSmartAGDpiMonitorRequest(); + ~DisableSmartAGDpiMonitorRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTAGDPIMONITORREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserRequest.h b/smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserRequest.h index 93506a7f9..6805ff759 100644 --- a/smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DisableSmartAccessGatewayUserRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DisableSmartAccessGatewayUserRequest : public RpcServiceRequest - { - - public: - DisableSmartAccessGatewayUserRequest(); - ~DisableSmartAccessGatewayUserRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DisableSmartAccessGatewayUserRequest : public RpcServiceRequest { +public: + DisableSmartAccessGatewayUserRequest(); + ~DisableSmartAccessGatewayUserRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string userName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISABLESMARTACCESSGATEWAYUSERREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DisassociateACLRequest.h b/smartag/include/alibabacloud/smartag/model/DisassociateACLRequest.h index a3a724768..1171c6bd1 100644 --- a/smartag/include/alibabacloud/smartag/model/DisassociateACLRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DisassociateACLRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DisassociateACLRequest : public RpcServiceRequest - { - - public: - DisassociateACLRequest(); - ~DisassociateACLRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DisassociateACLRequest : public RpcServiceRequest { +public: + DisassociateACLRequest(); + ~DisassociateACLRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEACLREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DisassociateFlowLogRequest.h b/smartag/include/alibabacloud/smartag/model/DisassociateFlowLogRequest.h index 729db16ae..681aa9453 100644 --- a/smartag/include/alibabacloud/smartag/model/DisassociateFlowLogRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DisassociateFlowLogRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DISASSOCIATEFLOWLOGREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEFLOWLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DisassociateFlowLogRequest : public RpcServiceRequest - { - - public: - DisassociateFlowLogRequest(); - ~DisassociateFlowLogRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string flowLogId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEFLOWLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEFLOWLOGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEFLOWLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DisassociateFlowLogRequest : public RpcServiceRequest { +public: + DisassociateFlowLogRequest(); + ~DisassociateFlowLogRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string flowLogId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEFLOWLOGREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DisassociateQosRequest.h b/smartag/include/alibabacloud/smartag/model/DisassociateQosRequest.h index f49bc053e..8c6e2ba4c 100644 --- a/smartag/include/alibabacloud/smartag/model/DisassociateQosRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DisassociateQosRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DISASSOCIATEQOSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEQOSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DisassociateQosRequest : public RpcServiceRequest - { - - public: - DisassociateQosRequest(); - ~DisassociateQosRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getQosId()const; - void setQosId(const std::string& qosId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string qosId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEQOSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEQOSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEQOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DisassociateQosRequest : public RpcServiceRequest { +public: + DisassociateQosRequest(); + ~DisassociateQosRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISASSOCIATEQOSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.h b/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.h index 9fab860d7..72c4b4e0b 100644 --- a/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DiscribeSmartAccessGatewayDiagnosisReportRequest : public RpcServiceRequest - { - - public: - DiscribeSmartAccessGatewayDiagnosisReportRequest(); - ~DiscribeSmartAccessGatewayDiagnosisReportRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string regionId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DiscribeSmartAccessGatewayDiagnosisReportRequest : public RpcServiceRequest { +public: + DiscribeSmartAccessGatewayDiagnosisReportRequest(); + ~DiscribeSmartAccessGatewayDiagnosisReportRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DISCRIBESMARTACCESSGATEWAYDIAGNOSISREPORTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportResult.h b/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportResult.h index 91b93bf57..ed3944e41 100644 --- a/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportResult.h +++ b/smartag/include/alibabacloud/smartag/model/DiscribeSmartAccessGatewayDiagnosisReportResult.h @@ -58,7 +58,7 @@ namespace AlibabaCloud }; struct Item { - struct EN + struct CN { std::string itemLevel; std::string itemType; @@ -66,13 +66,13 @@ namespace AlibabaCloud std::vector advice; std::vector details2; }; - struct CN + struct EN { std::string itemLevel; - std::vector advice4; + std::vector advice3; std::string itemType; std::string itemName; - std::vector details3; + std::vector details4; }; std::string type; long endTime; @@ -88,15 +88,15 @@ namespace AlibabaCloud }; std::string parameters; int endTime; - std::string instanceId; - std::string userLevel; int percent; - int startTime; + std::string userLevel; + std::string instanceId; int finishedNumber; + int startTime; Statistics statistics; std::string boxType; - std::string storeType; std::string monitorVersion; + std::string storeType; std::string uId; std::vector details; int reportSLSSuccess; @@ -104,8 +104,8 @@ namespace AlibabaCloud std::string diagnoseId; int totalNumber; Level level; - std::string boxVersion; std::string sN; + std::string boxVersion; }; diff --git a/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h index 151930b8b..25b7c6660 100644 --- a/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewayRequest.h @@ -1,75 +1,69 @@ /* * 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_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DowngradeSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - DowngradeSmartAccessGatewayRequest(); - ~DowngradeSmartAccessGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getBandWidthSpec()const; - void setBandWidthSpec(long bandWidthSpec); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getUserCount()const; - void setUserCount(int userCount); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - long getDataPlan()const; - void setDataPlan(long dataPlan); - - private: - long resourceOwnerId_; - long bandWidthSpec_; - std::string regionId_; - int userCount_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - long dataPlan_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DowngradeSmartAccessGatewayRequest : public RpcServiceRequest { +public: + DowngradeSmartAccessGatewayRequest(); + ~DowngradeSmartAccessGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getBandWidthSpec() const; + void setBandWidthSpec(long bandWidthSpec); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getUserCount() const; + void setUserCount(int userCount); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + long getDataPlan() const; + void setDataPlan(long dataPlan); + +private: + long resourceOwnerId_; + long bandWidthSpec_; + std::string regionId_; + int userCount_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + long dataPlan_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewaySoftwareRequest.h b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewaySoftwareRequest.h index bb68d6442..a22ec1ee6 100644 --- a/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewaySoftwareRequest.h +++ b/smartag/include/alibabacloud/smartag/model/DowngradeSmartAccessGatewaySoftwareRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT DowngradeSmartAccessGatewaySoftwareRequest : public RpcServiceRequest - { - - public: - DowngradeSmartAccessGatewaySoftwareRequest(); - ~DowngradeSmartAccessGatewaySoftwareRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getUserCount()const; - void setUserCount(int userCount); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - long getDataPlan()const; - void setDataPlan(long dataPlan); - - private: - long resourceOwnerId_; - std::string regionId_; - int userCount_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - long dataPlan_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT DowngradeSmartAccessGatewaySoftwareRequest : public RpcServiceRequest { +public: + DowngradeSmartAccessGatewaySoftwareRequest(); + ~DowngradeSmartAccessGatewaySoftwareRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getUserCount() const; + void setUserCount(int userCount); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + long getDataPlan() const; + void setDataPlan(long dataPlan); + +private: + long resourceOwnerId_; + std::string regionId_; + int userCount_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + long dataPlan_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_DOWNGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorRequest.h b/smartag/include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorRequest.h index a2e5be58f..97272cd35 100644 --- a/smartag/include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorRequest.h +++ b/smartag/include/alibabacloud/smartag/model/EnableSmartAGDpiMonitorRequest.h @@ -1,75 +1,69 @@ /* * 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_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT EnableSmartAGDpiMonitorRequest : public RpcServiceRequest - { - - public: - EnableSmartAGDpiMonitorRequest(); - ~EnableSmartAGDpiMonitorRequest(); - - std::string getSlsLogStore()const; - void setSlsLogStore(const std::string& slsLogStore); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSlsProjectName()const; - void setSlsProjectName(const std::string& slsProjectName); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - std::string slsLogStore_; - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string slsProjectName_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT EnableSmartAGDpiMonitorRequest : public RpcServiceRequest { +public: + EnableSmartAGDpiMonitorRequest(); + ~EnableSmartAGDpiMonitorRequest(); + std::string getSlsLogStore() const; + void setSlsLogStore(const std::string &slsLogStore); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSlsProjectName() const; + void setSlsProjectName(const std::string &slsProjectName); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + std::string slsLogStore_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string slsProjectName_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTAGDPIMONITORREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserRequest.h b/smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserRequest.h index 305a1c1f1..647824432 100644 --- a/smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserRequest.h +++ b/smartag/include/alibabacloud/smartag/model/EnableSmartAccessGatewayUserRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT EnableSmartAccessGatewayUserRequest : public RpcServiceRequest - { - - public: - EnableSmartAccessGatewayUserRequest(); - ~EnableSmartAccessGatewayUserRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT EnableSmartAccessGatewayUserRequest : public RpcServiceRequest { +public: + EnableSmartAccessGatewayUserRequest(); + ~EnableSmartAccessGatewayUserRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string userName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ENABLESMARTACCESSGATEWAYUSERREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/GetAclAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/GetAclAttributeRequest.h index 29fdc4ccb..b3d2e1fee 100644 --- a/smartag/include/alibabacloud/smartag/model/GetAclAttributeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GetAclAttributeRequest.h @@ -1,51 +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_SMARTAG_MODEL_GETACLATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETACLATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetAclAttributeRequest : public RpcServiceRequest - { - - public: - GetAclAttributeRequest(); - ~GetAclAttributeRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAclId()const; - void setAclId(const std::string& aclId); - - private: - std::string regionId_; - std::string aclId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETACLATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETACLATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETACLATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT GetAclAttributeRequest : public RpcServiceRequest { +public: + GetAclAttributeRequest(); + ~GetAclAttributeRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + +private: + std::string regionId_; + std::string aclId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETACLATTRIBUTEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h b/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h index e67dbd1ae..9057015d0 100644 --- a/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GetCloudConnectNetworkUseLimitRequest.h @@ -1,60 +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_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetCloudConnectNetworkUseLimitRequest : public RpcServiceRequest - { - - public: - GetCloudConnectNetworkUseLimitRequest(); - ~GetCloudConnectNetworkUseLimitRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT GetCloudConnectNetworkUseLimitRequest : public RpcServiceRequest { +public: + GetCloudConnectNetworkUseLimitRequest(); + ~GetCloudConnectNetworkUseLimitRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETCLOUDCONNECTNETWORKUSELIMITREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/GetQosAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/GetQosAttributeRequest.h index c161606eb..05a17689c 100644 --- a/smartag/include/alibabacloud/smartag/model/GetQosAttributeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GetQosAttributeRequest.h @@ -1,51 +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_SMARTAG_MODEL_GETQOSATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETQOSATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetQosAttributeRequest : public RpcServiceRequest - { - - public: - GetQosAttributeRequest(); - ~GetQosAttributeRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getQosId()const; - void setQosId(const std::string& qosId); - - private: - std::string regionId_; - std::string qosId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETQOSATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETQOSATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETQOSATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT GetQosAttributeRequest : public RpcServiceRequest { +public: + GetQosAttributeRequest(); + ~GetQosAttributeRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + +private: + std::string regionId_; + std::string qosId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETQOSATTRIBUTEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/GetQosAttributeResult.h b/smartag/include/alibabacloud/smartag/model/GetQosAttributeResult.h index b95cd8af0..4c3c20436 100644 --- a/smartag/include/alibabacloud/smartag/model/GetQosAttributeResult.h +++ b/smartag/include/alibabacloud/smartag/model/GetQosAttributeResult.h @@ -35,12 +35,12 @@ namespace AlibabaCloud struct QosPolicy { std::string destCidr; - std::string sourcePortRange; long endTime; + std::string sourcePortRange; std::string sourceCidr; int priority; - std::string qosPolicieName; std::string qosPolicieDescription; + std::string qosPolicieName; long startTime; std::string ipProtocol; std::string destPortRange; @@ -49,10 +49,10 @@ namespace AlibabaCloud { int minBandwidthAbs; std::string qosCarId; - int priority; - std::string qosCarDescription; - int maxBandwidthPercent; int maxBandwidthAbs; + int maxBandwidthPercent; + std::string qosCarDescription; + int priority; std::string qosCarName; std::string percentSourceType; int minBandwidthPercent; diff --git a/smartag/include/alibabacloud/smartag/model/GetSmartAGDpiAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/GetSmartAGDpiAttributeRequest.h index c4b7c3ede..170e5cb06 100644 --- a/smartag/include/alibabacloud/smartag/model/GetSmartAGDpiAttributeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GetSmartAGDpiAttributeRequest.h @@ -1,63 +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_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAGDpiAttributeRequest : public RpcServiceRequest - { - - public: - GetSmartAGDpiAttributeRequest(); - ~GetSmartAGDpiAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAGDpiAttributeRequest : public RpcServiceRequest { +public: + GetSmartAGDpiAttributeRequest(); + ~GetSmartAGDpiAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETSMARTAGDPIATTRIBUTEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h b/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h index 2a0b87c38..7c6fa3925 100644 --- a/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GetSmartAccessGatewayUseLimitRequest.h @@ -1,60 +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_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAccessGatewayUseLimitRequest : public RpcServiceRequest - { - - public: - GetSmartAccessGatewayUseLimitRequest(); - ~GetSmartAccessGatewayUseLimitRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT GetSmartAccessGatewayUseLimitRequest : public RpcServiceRequest { +public: + GetSmartAccessGatewayUseLimitRequest(); + ~GetSmartAccessGatewayUseLimitRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GETSMARTACCESSGATEWAYUSELIMITREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h index c4c5f7d7f..84a840b14 100644 --- a/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GrantInstanceToCbnRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GrantInstanceToCbnRequest : public RpcServiceRequest - { - - public: - GrantInstanceToCbnRequest(); - ~GrantInstanceToCbnRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getCcnInstanceId()const; - void setCcnInstanceId(const std::string& ccnInstanceId); - bool getGrantTrafficService()const; - void setGrantTrafficService(bool grantTrafficService); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getCenUid()const; - void setCenUid(long cenUid); - std::string getCenInstanceId()const; - void setCenInstanceId(const std::string& cenInstanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string ccnInstanceId_; - bool grantTrafficService_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - long cenUid_; - std::string cenInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT GrantInstanceToCbnRequest : public RpcServiceRequest { +public: + GrantInstanceToCbnRequest(); + ~GrantInstanceToCbnRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getCcnInstanceId() const; + void setCcnInstanceId(const std::string &ccnInstanceId); + bool getGrantTrafficService() const; + void setGrantTrafficService(bool grantTrafficService); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getCenUid() const; + void setCenUid(long cenUid); + std::string getCenInstanceId() const; + void setCenInstanceId(const std::string &cenInstanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string ccnInstanceId_; + bool grantTrafficService_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + long cenUid_; + std::string cenInstanceId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTINSTANCETOCBNREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h b/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h index 6871c4532..32e7a14ff 100644 --- a/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToCcnRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GrantSagInstanceToCcnRequest : public RpcServiceRequest - { - - public: - GrantSagInstanceToCcnRequest(); - ~GrantSagInstanceToCcnRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getCcnUid()const; - void setCcnUid(long ccnUid); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getCcnInstanceId()const; - void setCcnInstanceId(const std::string& ccnInstanceId); - bool getGrantTrafficService()const; - void setGrantTrafficService(bool grantTrafficService); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - long ccnUid_; - std::string regionId_; - std::string ccnInstanceId_; - bool grantTrafficService_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT GrantSagInstanceToCcnRequest : public RpcServiceRequest { +public: + GrantSagInstanceToCcnRequest(); + ~GrantSagInstanceToCcnRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getCcnUid() const; + void setCcnUid(long ccnUid); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getCcnInstanceId() const; + void setCcnInstanceId(const std::string &ccnInstanceId); + bool getGrantTrafficService() const; + void setGrantTrafficService(bool grantTrafficService); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + long ccnUid_; + std::string regionId_; + std::string ccnInstanceId_; + bool grantTrafficService_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOCCNREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToVbrRequest.h b/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToVbrRequest.h index 393854fc4..5ad7c6749 100644 --- a/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToVbrRequest.h +++ b/smartag/include/alibabacloud/smartag/model/GrantSagInstanceToVbrRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOVBRREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOVBRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT GrantSagInstanceToVbrRequest : public RpcServiceRequest - { - - public: - GrantSagInstanceToVbrRequest(); - ~GrantSagInstanceToVbrRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVbrRegionId()const; - void setVbrRegionId(const std::string& vbrRegionId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVbrInstanceId()const; - void setVbrInstanceId(const std::string& vbrInstanceId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - long getVbrUid()const; - void setVbrUid(long vbrUid); - - private: - long resourceOwnerId_; - std::string vbrRegionId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vbrInstanceId_; - std::string smartAGId_; - long vbrUid_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOVBRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOVBRREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOVBRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT GrantSagInstanceToVbrRequest : public RpcServiceRequest { +public: + GrantSagInstanceToVbrRequest(); + ~GrantSagInstanceToVbrRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVbrRegionId() const; + void setVbrRegionId(const std::string &vbrRegionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVbrInstanceId() const; + void setVbrInstanceId(const std::string &vbrInstanceId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + long getVbrUid() const; + void setVbrUid(long vbrUid); + +private: + long resourceOwnerId_; + std::string vbrRegionId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vbrInstanceId_; + std::string smartAGId_; + long vbrUid_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_GRANTSAGINSTANCETOVBRREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/KickOutClientsRequest.h b/smartag/include/alibabacloud/smartag/model/KickOutClientsRequest.h index e89798466..6bd51c903 100644 --- a/smartag/include/alibabacloud/smartag/model/KickOutClientsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/KickOutClientsRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT KickOutClientsRequest : public RpcServiceRequest - { - - public: - KickOutClientsRequest(); - ~KickOutClientsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getUsername()const; - void setUsername(const std::string& username); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string username_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT KickOutClientsRequest : public RpcServiceRequest { +public: + KickOutClientsRequest(); + ~KickOutClientsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getUsername() const; + void setUsername(const std::string &username); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string username_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_KICKOUTCLIENTSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesRequest.h b/smartag/include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesRequest.h index 7392063c6..033f2ee50 100644 --- a/smartag/include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ListAccessPointNetworkQualitiesRequest.h @@ -1,63 +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_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ListAccessPointNetworkQualitiesRequest : public RpcServiceRequest - { - - public: - ListAccessPointNetworkQualitiesRequest(); - ~ListAccessPointNetworkQualitiesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ListAccessPointNetworkQualitiesRequest : public RpcServiceRequest { +public: + ListAccessPointNetworkQualitiesRequest(); + ~ListAccessPointNetworkQualitiesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTNETWORKQUALITIESREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ListAccessPointsRequest.h b/smartag/include/alibabacloud/smartag/model/ListAccessPointsRequest.h index 89ea38ed8..a4c72d37d 100644 --- a/smartag/include/alibabacloud/smartag/model/ListAccessPointsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ListAccessPointsRequest.h @@ -1,69 +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_SMARTAG_MODEL_LISTACCESSPOINTSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ListAccessPointsRequest : public RpcServiceRequest - { - - public: - ListAccessPointsRequest(); - ~ListAccessPointsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ListAccessPointsRequest : public RpcServiceRequest { +public: + ListAccessPointsRequest(); + ~ListAccessPointsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTACCESSPOINTSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ListAccessPointsResult.h b/smartag/include/alibabacloud/smartag/model/ListAccessPointsResult.h index b558f314d..e306bfe3e 100644 --- a/smartag/include/alibabacloud/smartag/model/ListAccessPointsResult.h +++ b/smartag/include/alibabacloud/smartag/model/ListAccessPointsResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct AccessPoint { - int accessPointId; int activeSmartAGCount; + int accessPointId; std::string latitude; int inactiveSmartAGCount; std::string longitude; diff --git a/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorRequest.h b/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorRequest.h index 314903e85..e918afe9f 100644 --- a/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorRequest.h @@ -1,63 +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_SMARTAG_MODEL_LISTDPICONFIGERRORREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPICONFIGERRORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ListDpiConfigErrorRequest : public RpcServiceRequest - { - - public: - ListDpiConfigErrorRequest(); - ~ListDpiConfigErrorRequest(); - - std::string getDpiConfigType()const; - void setDpiConfigType(const std::string& dpiConfigType); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getRuleInstanceId()const; - void setRuleInstanceId(const std::string& ruleInstanceId); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::string dpiConfigType_; - std::string regionId_; - std::string nextToken_; - std::string smartAGId_; - std::string ruleInstanceId_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPICONFIGERRORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTDPICONFIGERRORREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPICONFIGERRORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ListDpiConfigErrorRequest : public RpcServiceRequest { +public: + ListDpiConfigErrorRequest(); + ~ListDpiConfigErrorRequest(); + std::string getDpiConfigType() const; + void setDpiConfigType(const std::string &dpiConfigType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getRuleInstanceId() const; + void setRuleInstanceId(const std::string &ruleInstanceId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string dpiConfigType_; + std::string regionId_; + std::string nextToken_; + std::string smartAGId_; + std::string ruleInstanceId_; + int maxResults_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPICONFIGERRORREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorResult.h b/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorResult.h index cfed06cd8..9a6a25c97 100644 --- a/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorResult.h +++ b/smartag/include/alibabacloud/smartag/model/ListDpiConfigErrorResult.h @@ -52,16 +52,16 @@ namespace AlibabaCloud ~ListDpiConfigErrorResult(); std::string getNextToken()const; std::vector getDpiConfigError()const; - int getMaxResults()const; int getTotal()const; + int getMaxResults()const; protected: void parse(const std::string &payload); private: std::string nextToken_; std::vector dpiConfigError_; - int maxResults_; int total_; + int maxResults_; }; } diff --git a/smartag/include/alibabacloud/smartag/model/ListDpiGroupsRequest.h b/smartag/include/alibabacloud/smartag/model/ListDpiGroupsRequest.h index c67166734..68a593f93 100644 --- a/smartag/include/alibabacloud/smartag/model/ListDpiGroupsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ListDpiGroupsRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTDPIGROUPSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPIGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ListDpiGroupsRequest : public RpcServiceRequest - { - - public: - ListDpiGroupsRequest(); - ~ListDpiGroupsRequest(); - - std::vector getDpiGroupIds()const; - void setDpiGroupIds(const std::vector& dpiGroupIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getDpiGroupNames()const; - void setDpiGroupNames(const std::vector& dpiGroupNames); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::vector dpiGroupIds_; - long resourceOwnerId_; - std::string regionId_; - std::string nextToken_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector dpiGroupNames_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPIGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTDPIGROUPSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPIGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ListDpiGroupsRequest : public RpcServiceRequest { +public: + ListDpiGroupsRequest(); + ~ListDpiGroupsRequest(); + std::vector getDpiGroupIds() const; + void setDpiGroupIds(const std::vector &dpiGroupIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getDpiGroupNames() const; + void setDpiGroupNames(const std::vector &dpiGroupNames); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::vector dpiGroupIds_; + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector dpiGroupNames_; + int maxResults_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPIGROUPSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ListDpiGroupsResult.h b/smartag/include/alibabacloud/smartag/model/ListDpiGroupsResult.h index adc0e8bc5..cddb0f019 100644 --- a/smartag/include/alibabacloud/smartag/model/ListDpiGroupsResult.h +++ b/smartag/include/alibabacloud/smartag/model/ListDpiGroupsResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct DpiGroupItem { std::string minEngineVersion; - std::string dpiGroupName; std::string minSignatureDbVersion; + std::string dpiGroupName; std::string dpiGroupId; }; diff --git a/smartag/include/alibabacloud/smartag/model/ListDpiSignaturesRequest.h b/smartag/include/alibabacloud/smartag/model/ListDpiSignaturesRequest.h index 7f181a006..846c60ffd 100644 --- a/smartag/include/alibabacloud/smartag/model/ListDpiSignaturesRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ListDpiSignaturesRequest.h @@ -1,75 +1,69 @@ /* * 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_SMARTAG_MODEL_LISTDPISIGNATURESREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPISIGNATURESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ListDpiSignaturesRequest : public RpcServiceRequest - { - - public: - ListDpiSignaturesRequest(); - ~ListDpiSignaturesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getDpiSignatureNames()const; - void setDpiSignatureNames(const std::vector& dpiSignatureNames); - std::vector getDpiSignatureIds()const; - void setDpiSignatureIds(const std::vector& dpiSignatureIds); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getDpiGroupId()const; - void setDpiGroupId(const std::string& dpiGroupId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - long resourceOwnerId_; - std::vector dpiSignatureNames_; - std::vector dpiSignatureIds_; - std::string regionId_; - std::string nextToken_; - std::string dpiGroupId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPISIGNATURESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTDPISIGNATURESREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTDPISIGNATURESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ListDpiSignaturesRequest : public RpcServiceRequest { +public: + ListDpiSignaturesRequest(); + ~ListDpiSignaturesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getDpiSignatureNames() const; + void setDpiSignatureNames(const std::vector &dpiSignatureNames); + std::vector getDpiSignatureIds() const; + void setDpiSignatureIds(const std::vector &dpiSignatureIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getDpiGroupId() const; + void setDpiGroupId(const std::string &dpiGroupId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::vector dpiSignatureNames_; + std::vector dpiSignatureIds_; + std::string regionId_; + std::string nextToken_; + std::string dpiGroupId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResults_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTDPISIGNATURESREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ListEnterpriseCodeRequest.h b/smartag/include/alibabacloud/smartag/model/ListEnterpriseCodeRequest.h index 6a38a0d40..7741ddc4b 100644 --- a/smartag/include/alibabacloud/smartag/model/ListEnterpriseCodeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ListEnterpriseCodeRequest.h @@ -1,60 +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_SMARTAG_MODEL_LISTENTERPRISECODEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_LISTENTERPRISECODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ListEnterpriseCodeRequest : public RpcServiceRequest - { - - public: - ListEnterpriseCodeRequest(); - ~ListEnterpriseCodeRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEnterpriseCode()const; - void setEnterpriseCode(const std::string& enterpriseCode); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - bool getIsDefault()const; - void setIsDefault(bool isDefault); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::string regionId_; - std::string enterpriseCode_; - std::string nextToken_; - bool isDefault_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTENTERPRISECODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTENTERPRISECODEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTENTERPRISECODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ListEnterpriseCodeRequest : public RpcServiceRequest { +public: + ListEnterpriseCodeRequest(); + ~ListEnterpriseCodeRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEnterpriseCode() const; + void setEnterpriseCode(const std::string &enterpriseCode); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string regionId_; + std::string enterpriseCode_; + std::string nextToken_; + bool isDefault_; + int maxResults_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTENTERPRISECODEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureRequest.h b/smartag/include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureRequest.h index 5286370cd..28054c61d 100644 --- a/smartag/include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ListSmartAGApiUnsupportedFeatureRequest.h @@ -1,69 +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_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATUREREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ListSmartAGApiUnsupportedFeatureRequest : public RpcServiceRequest - { - - public: - ListSmartAGApiUnsupportedFeatureRequest(); - ~ListSmartAGApiUnsupportedFeatureRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getOpenApiName()const; - void setOpenApiName(const std::string& openApiName); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string serialNumber_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string openApiName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATUREREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATUREREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATUREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ListSmartAGApiUnsupportedFeatureRequest : public RpcServiceRequest { +public: + ListSmartAGApiUnsupportedFeatureRequest(); + ~ListSmartAGApiUnsupportedFeatureRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getOpenApiName() const; + void setOpenApiName(const std::string &openApiName); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string openApiName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGAPIUNSUPPORTEDFEATUREREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ListSmartAGByAccessPointRequest.h b/smartag/include/alibabacloud/smartag/model/ListSmartAGByAccessPointRequest.h index de786cd16..067975d1d 100644 --- a/smartag/include/alibabacloud/smartag/model/ListSmartAGByAccessPointRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ListSmartAGByAccessPointRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ListSmartAGByAccessPointRequest : public RpcServiceRequest - { - - public: - ListSmartAGByAccessPointRequest(); - ~ListSmartAGByAccessPointRequest(); - - int getAccessPointId()const; - void setAccessPointId(int accessPointId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGStatus()const; - void setSmartAGStatus(const std::string& smartAGStatus); - - private: - int accessPointId_; - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGStatus_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ListSmartAGByAccessPointRequest : public RpcServiceRequest { +public: + ListSmartAGByAccessPointRequest(); + ~ListSmartAGByAccessPointRequest(); + int getAccessPointId() const; + void setAccessPointId(int accessPointId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGStatus() const; + void setSmartAGStatus(const std::string &smartAGStatus); + +private: + int accessPointId_; + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGStatus_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_LISTSMARTAGBYACCESSPOINTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyACLRequest.h index 155728393..88ba2e2a6 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyACLRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_MODIFYACLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRequest : public RpcServiceRequest - { - - public: - ModifyACLRequest(); - ~ModifyACLRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRequest : public RpcServiceRequest { +public: + ModifyACLRequest(); + ~ModifyACLRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h index 251866c57..11944b1a9 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyACLRuleRequest.h @@ -1,105 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRuleRequest : public RpcServiceRequest - { - - public: - ModifyACLRuleRequest(); - ~ModifyACLRuleRequest(); - - std::vector getDpiGroupIds()const; - void setDpiGroupIds(const std::vector& dpiGroupIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourcePortRange()const; - void setSourcePortRange(const std::string& sourcePortRange); - std::string getSourceCidr()const; - void setSourceCidr(const std::string& sourceCidr); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getType()const; - void setType(const std::string& type); - std::string getDestCidr()const; - void setDestCidr(const std::string& destCidr); - std::vector getDpiSignatureIds()const; - void setDpiSignatureIds(const std::vector& dpiSignatureIds); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDirection()const; - void setDirection(const std::string& direction); - std::string getPolicy()const; - void setPolicy(const std::string& policy); - std::string getAclId()const; - void setAclId(const std::string& aclId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getAcrId()const; - void setAcrId(const std::string& acrId); - std::string getDestPortRange()const; - void setDestPortRange(const std::string& destPortRange); - std::string getName()const; - void setName(const std::string& name); - - private: - std::vector dpiGroupIds_; - long resourceOwnerId_; - std::string sourcePortRange_; - std::string sourceCidr_; - std::string description_; - std::string type_; - std::string destCidr_; - std::vector dpiSignatureIds_; - std::string regionId_; - std::string direction_; - std::string policy_; - std::string aclId_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - long ownerId_; - int priority_; - std::string acrId_; - std::string destPortRange_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifyACLRuleRequest : public RpcServiceRequest { +public: + ModifyACLRuleRequest(); + ~ModifyACLRuleRequest(); + std::vector getDpiGroupIds() const; + void setDpiGroupIds(const std::vector &dpiGroupIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getSourceCidr() const; + void setSourceCidr(const std::string &sourceCidr); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + std::string getDestCidr() const; + void setDestCidr(const std::string &destCidr); + std::vector getDpiSignatureIds() const; + void setDpiSignatureIds(const std::vector &dpiSignatureIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getAcrId() const; + void setAcrId(const std::string &acrId); + std::string getDestPortRange() const; + void setDestPortRange(const std::string &destPortRange); + std::string getName() const; + void setName(const std::string &name); + +private: + std::vector dpiGroupIds_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string sourceCidr_; + std::string description_; + std::string type_; + std::string destCidr_; + std::vector dpiSignatureIds_; + std::string regionId_; + std::string direction_; + std::string policy_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + long ownerId_; + int priority_; + std::string acrId_; + std::string destPortRange_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYACLRULEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifyClientUserDNSRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyClientUserDNSRequest.h index b4369f811..8b77c9a32 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyClientUserDNSRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyClientUserDNSRequest.h @@ -1,69 +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_SMARTAG_MODEL_MODIFYCLIENTUSERDNSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLIENTUSERDNSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyClientUserDNSRequest : public RpcServiceRequest - { - - public: - ModifyClientUserDNSRequest(); - ~ModifyClientUserDNSRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getRecoveredDNS()const; - void setRecoveredDNS(const std::vector& recoveredDNS); - std::vector getAppDNS()const; - void setAppDNS(const std::vector& appDNS); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::vector recoveredDNS_; - std::vector appDNS_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLIENTUSERDNSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLIENTUSERDNSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLIENTUSERDNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifyClientUserDNSRequest : public RpcServiceRequest { +public: + ModifyClientUserDNSRequest(); + ~ModifyClientUserDNSRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getRecoveredDNS() const; + void setRecoveredDNS(const std::vector &recoveredDNS); + std::vector getAppDNS() const; + void setAppDNS(const std::vector &appDNS); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::vector recoveredDNS_; + std::vector appDNS_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLIENTUSERDNSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h index 14edf1299..1bcd244fd 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyCloudConnectNetworkRequest.h @@ -1,75 +1,69 @@ /* * 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_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyCloudConnectNetworkRequest : public RpcServiceRequest - { - - public: - ModifyCloudConnectNetworkRequest(); - ~ModifyCloudConnectNetworkRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCcnId()const; - void setCcnId(const std::string& ccnId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getCidrBlock()const; - void setCidrBlock(const std::string& cidrBlock); - std::string getInterworkingStatus()const; - void setInterworkingStatus(const std::string& interworkingStatus); - - private: - long resourceOwnerId_; - std::string ccnId_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string cidrBlock_; - std::string interworkingStatus_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifyCloudConnectNetworkRequest : public RpcServiceRequest { +public: + ModifyCloudConnectNetworkRequest(); + ~ModifyCloudConnectNetworkRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCcnId() const; + void setCcnId(const std::string &ccnId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + std::string getInterworkingStatus() const; + void setInterworkingStatus(const std::string &interworkingStatus); + +private: + long resourceOwnerId_; + std::string ccnId_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string cidrBlock_; + std::string interworkingStatus_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYCLOUDCONNECTNETWORKREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifyDeviceAutoUpgradePolicyRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyDeviceAutoUpgradePolicyRequest.h index 3acefe553..45fb12b85 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyDeviceAutoUpgradePolicyRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyDeviceAutoUpgradePolicyRequest.h @@ -1,81 +1,75 @@ /* * 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_SMARTAG_MODEL_MODIFYDEVICEAUTOUPGRADEPOLICYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYDEVICEAUTOUPGRADEPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyDeviceAutoUpgradePolicyRequest : public RpcServiceRequest - { - - public: - ModifyDeviceAutoUpgradePolicyRequest(); - ~ModifyDeviceAutoUpgradePolicyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCronExpression()const; - void setCronExpression(const std::string& cronExpression); - std::string getTimeZone()const; - void setTimeZone(const std::string& timeZone); - std::string getUpgradeType()const; - void setUpgradeType(const std::string& upgradeType); - int getDuration()const; - void setDuration(int duration); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVersionType()const; - void setVersionType(const std::string& versionType); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string cronExpression_; - std::string timeZone_; - std::string upgradeType_; - int duration_; - std::string regionId_; - std::string serialNumber_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string versionType_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYDEVICEAUTOUPGRADEPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYDEVICEAUTOUPGRADEPOLICYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYDEVICEAUTOUPGRADEPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifyDeviceAutoUpgradePolicyRequest : public RpcServiceRequest { +public: + ModifyDeviceAutoUpgradePolicyRequest(); + ~ModifyDeviceAutoUpgradePolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCronExpression() const; + void setCronExpression(const std::string &cronExpression); + std::string getTimeZone() const; + void setTimeZone(const std::string &timeZone); + std::string getUpgradeType() const; + void setUpgradeType(const std::string &upgradeType); + int getDuration() const; + void setDuration(int duration); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVersionType() const; + void setVersionType(const std::string &versionType); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string cronExpression_; + std::string timeZone_; + std::string upgradeType_; + int duration_; + std::string regionId_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string versionType_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYDEVICEAUTOUPGRADEPOLICYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeRequest.h index d3e0063ec..074cdf355 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyFlowLogAttributeRequest.h @@ -1,96 +1,90 @@ /* * 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_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyFlowLogAttributeRequest : public RpcServiceRequest - { - - public: - ModifyFlowLogAttributeRequest(); - ~ModifyFlowLogAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNetflowVersion()const; - void setNetflowVersion(const std::string& netflowVersion); - std::string getDescription()const; - void setDescription(const std::string& description); - int getInactiveAging()const; - void setInactiveAging(int inactiveAging); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSlsRegionId()const; - void setSlsRegionId(const std::string& slsRegionId); - int getActiveAging()const; - void setActiveAging(int activeAging); - std::string getOutputType()const; - void setOutputType(const std::string& outputType); - std::string getProjectName()const; - void setProjectName(const std::string& projectName); - std::string getLogstoreName()const; - void setLogstoreName(const std::string& logstoreName); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getNetflowServerPort()const; - void setNetflowServerPort(int netflowServerPort); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getNetflowServerIp()const; - void setNetflowServerIp(const std::string& netflowServerIp); - std::string getName()const; - void setName(const std::string& name); - std::string getFlowLogId()const; - void setFlowLogId(const std::string& flowLogId); - - private: - long resourceOwnerId_; - std::string netflowVersion_; - std::string description_; - int inactiveAging_; - std::string regionId_; - std::string slsRegionId_; - int activeAging_; - std::string outputType_; - std::string projectName_; - std::string logstoreName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int netflowServerPort_; - long ownerId_; - std::string netflowServerIp_; - std::string name_; - std::string flowLogId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifyFlowLogAttributeRequest : public RpcServiceRequest { +public: + ModifyFlowLogAttributeRequest(); + ~ModifyFlowLogAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNetflowVersion() const; + void setNetflowVersion(const std::string &netflowVersion); + std::string getDescription() const; + void setDescription(const std::string &description); + int getInactiveAging() const; + void setInactiveAging(int inactiveAging); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSlsRegionId() const; + void setSlsRegionId(const std::string &slsRegionId); + int getActiveAging() const; + void setActiveAging(int activeAging); + std::string getOutputType() const; + void setOutputType(const std::string &outputType); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::string getLogstoreName() const; + void setLogstoreName(const std::string &logstoreName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getNetflowServerPort() const; + void setNetflowServerPort(int netflowServerPort); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNetflowServerIp() const; + void setNetflowServerIp(const std::string &netflowServerIp); + std::string getName() const; + void setName(const std::string &name); + std::string getFlowLogId() const; + void setFlowLogId(const std::string &flowLogId); + +private: + long resourceOwnerId_; + std::string netflowVersion_; + std::string description_; + int inactiveAging_; + std::string regionId_; + std::string slsRegionId_; + int activeAging_; + std::string outputType_; + std::string projectName_; + std::string logstoreName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int netflowServerPort_; + long ownerId_; + std::string netflowServerIp_; + std::string name_; + std::string flowLogId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYFLOWLOGATTRIBUTEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifyHealthCheckRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyHealthCheckRequest.h index 6acd5a222..f04d69708 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyHealthCheckRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyHealthCheckRequest.h @@ -1,105 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYHEALTHCHECKREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYHEALTHCHECKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyHealthCheckRequest : public RpcServiceRequest - { - - public: - ModifyHealthCheckRequest(); - ~ModifyHealthCheckRequest(); - - int getProbeInterval()const; - void setProbeInterval(int probeInterval); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getDstPort()const; - void setDstPort(int dstPort); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getHcInstanceId()const; - void setHcInstanceId(const std::string& hcInstanceId); - std::string getType()const; - void setType(const std::string& type); - int getFailCountThreshold()const; - void setFailCountThreshold(int failCountThreshold); - int getProbeTimeout()const; - void setProbeTimeout(int probeTimeout); - int getRttFailThreshold()const; - void setRttFailThreshold(int rttFailThreshold); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getRttThreshold()const; - void setRttThreshold(int rttThreshold); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getDstIpAddr()const; - void setDstIpAddr(const std::string& dstIpAddr); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSrcIpAddr()const; - void setSrcIpAddr(const std::string& srcIpAddr); - std::string getName()const; - void setName(const std::string& name); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - int getSrcPort()const; - void setSrcPort(int srcPort); - int getProbeCount()const; - void setProbeCount(int probeCount); - - private: - int probeInterval_; - long resourceOwnerId_; - int dstPort_; - std::string description_; - std::string hcInstanceId_; - std::string type_; - int failCountThreshold_; - int probeTimeout_; - int rttFailThreshold_; - std::string regionId_; - int rttThreshold_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string dstIpAddr_; - long ownerId_; - std::string srcIpAddr_; - std::string name_; - std::string smartAGId_; - int srcPort_; - int probeCount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYHEALTHCHECKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYHEALTHCHECKREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYHEALTHCHECKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifyHealthCheckRequest : public RpcServiceRequest { +public: + ModifyHealthCheckRequest(); + ~ModifyHealthCheckRequest(); + int getProbeInterval() const; + void setProbeInterval(int probeInterval); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getDstPort() const; + void setDstPort(int dstPort); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getHcInstanceId() const; + void setHcInstanceId(const std::string &hcInstanceId); + std::string getType() const; + void setType(const std::string &type); + int getFailCountThreshold() const; + void setFailCountThreshold(int failCountThreshold); + int getProbeTimeout() const; + void setProbeTimeout(int probeTimeout); + int getRttFailThreshold() const; + void setRttFailThreshold(int rttFailThreshold); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getRttThreshold() const; + void setRttThreshold(int rttThreshold); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDstIpAddr() const; + void setDstIpAddr(const std::string &dstIpAddr); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSrcIpAddr() const; + void setSrcIpAddr(const std::string &srcIpAddr); + std::string getName() const; + void setName(const std::string &name); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + int getSrcPort() const; + void setSrcPort(int srcPort); + int getProbeCount() const; + void setProbeCount(int probeCount); + +private: + int probeInterval_; + long resourceOwnerId_; + int dstPort_; + std::string description_; + std::string hcInstanceId_; + std::string type_; + int failCountThreshold_; + int probeTimeout_; + int rttFailThreshold_; + std::string regionId_; + int rttThreshold_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dstIpAddr_; + long ownerId_; + std::string srcIpAddr_; + std::string name_; + std::string smartAGId_; + int srcPort_; + int probeCount_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYHEALTHCHECKREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.h deleted file mode 100644 index 83f84006a..000000000 --- a/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyNetworkOptimizationRequest : public RpcServiceRequest - { - - public: - ModifyNetworkOptimizationRequest(); - ~ModifyNetworkOptimizationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkOptId()const; - void setNetworkOptId(const std::string& networkOptId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string networkOptId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.h b/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.h deleted file mode 100644 index affa3f483..000000000 --- a/smartag/include/alibabacloud/smartag/model/ModifyNetworkOptimizationResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyNetworkOptimizationResult : public ServiceResult - { - public: - - - ModifyNetworkOptimizationResult(); - explicit ModifyNetworkOptimizationResult(const std::string &payload); - ~ModifyNetworkOptimizationResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYNETWORKOPTIMIZATIONRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifyQosCarRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyQosCarRequest.h index 71b0dbbe7..e93f35471 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyQosCarRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyQosCarRequest.h @@ -1,93 +1,87 @@ /* * 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_SMARTAG_MODEL_MODIFYQOSCARREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSCARREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosCarRequest : public RpcServiceRequest - { - - public: - ModifyQosCarRequest(); - ~ModifyQosCarRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getMinBandwidthAbs()const; - void setMinBandwidthAbs(int minBandwidthAbs); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPercentSourceType()const; - void setPercentSourceType(const std::string& percentSourceType); - std::string getQosId()const; - void setQosId(const std::string& qosId); - int getMaxBandwidthAbs()const; - void setMaxBandwidthAbs(int maxBandwidthAbs); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - int getMaxBandwidthPercent()const; - void setMaxBandwidthPercent(int maxBandwidthPercent); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getQosCarId()const; - void setQosCarId(const std::string& qosCarId); - int getPriority()const; - void setPriority(int priority); - int getMinBandwidthPercent()const; - void setMinBandwidthPercent(int minBandwidthPercent); - std::string getLimitType()const; - void setLimitType(const std::string& limitType); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - int minBandwidthAbs_; - std::string description_; - std::string regionId_; - std::string percentSourceType_; - std::string qosId_; - int maxBandwidthAbs_; - std::string resourceOwnerAccount_; - int maxBandwidthPercent_; - std::string ownerAccount_; - long ownerId_; - std::string qosCarId_; - int priority_; - int minBandwidthPercent_; - std::string limitType_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSCARREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSCARREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSCARREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosCarRequest : public RpcServiceRequest { +public: + ModifyQosCarRequest(); + ~ModifyQosCarRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getMinBandwidthAbs() const; + void setMinBandwidthAbs(int minBandwidthAbs); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPercentSourceType() const; + void setPercentSourceType(const std::string &percentSourceType); + std::string getQosId() const; + void setQosId(const std::string &qosId); + int getMaxBandwidthAbs() const; + void setMaxBandwidthAbs(int maxBandwidthAbs); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getMaxBandwidthPercent() const; + void setMaxBandwidthPercent(int maxBandwidthPercent); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getQosCarId() const; + void setQosCarId(const std::string &qosCarId); + int getPriority() const; + void setPriority(int priority); + int getMinBandwidthPercent() const; + void setMinBandwidthPercent(int minBandwidthPercent); + std::string getLimitType() const; + void setLimitType(const std::string &limitType); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + int minBandwidthAbs_; + std::string description_; + std::string regionId_; + std::string percentSourceType_; + std::string qosId_; + int maxBandwidthAbs_; + std::string resourceOwnerAccount_; + int maxBandwidthPercent_; + std::string ownerAccount_; + long ownerId_; + std::string qosCarId_; + int priority_; + int minBandwidthPercent_; + std::string limitType_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSCARREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h index 3169f4e70..10955a4ee 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyQosPolicyRequest.h @@ -1,102 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosPolicyRequest : public RpcServiceRequest - { - - public: - ModifyQosPolicyRequest(); - ~ModifyQosPolicyRequest(); - - std::vector getDpiGroupIds()const; - void setDpiGroupIds(const std::vector& dpiGroupIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourcePortRange()const; - void setSourcePortRange(const std::string& sourcePortRange); - std::string getQosPolicyId()const; - void setQosPolicyId(const std::string& qosPolicyId); - std::string getSourceCidr()const; - void setSourceCidr(const std::string& sourceCidr); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getDestCidr()const; - void setDestCidr(const std::string& destCidr); - std::vector getDpiSignatureIds()const; - void setDpiSignatureIds(const std::vector& dpiSignatureIds); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getQosId()const; - void setQosId(const std::string& qosId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getDestPortRange()const; - void setDestPortRange(const std::string& destPortRange); - std::string getName()const; - void setName(const std::string& name); - - private: - std::vector dpiGroupIds_; - long resourceOwnerId_; - std::string sourcePortRange_; - std::string qosPolicyId_; - std::string sourceCidr_; - std::string description_; - std::string startTime_; - std::string destCidr_; - std::vector dpiSignatureIds_; - std::string regionId_; - std::string qosId_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - int priority_; - std::string destPortRange_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosPolicyRequest : public RpcServiceRequest { +public: + ModifyQosPolicyRequest(); + ~ModifyQosPolicyRequest(); + std::vector getDpiGroupIds() const; + void setDpiGroupIds(const std::vector &dpiGroupIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getQosPolicyId() const; + void setQosPolicyId(const std::string &qosPolicyId); + std::string getSourceCidr() const; + void setSourceCidr(const std::string &sourceCidr); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getDestCidr() const; + void setDestCidr(const std::string &destCidr); + std::vector getDpiSignatureIds() const; + void setDpiSignatureIds(const std::vector &dpiSignatureIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getDestPortRange() const; + void setDestPortRange(const std::string &destPortRange); + std::string getName() const; + void setName(const std::string &name); + +private: + std::vector dpiGroupIds_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string qosPolicyId_; + std::string sourceCidr_; + std::string description_; + std::string startTime_; + std::string destCidr_; + std::vector dpiSignatureIds_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + int priority_; + std::string destPortRange_; + std::string name_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSPOLICYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifyQosRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyQosRequest.h index 9fc48ac06..b53d28275 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyQosRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyQosRequest.h @@ -1,69 +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_SMARTAG_MODEL_MODIFYQOSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosRequest : public RpcServiceRequest - { - - public: - ModifyQosRequest(); - ~ModifyQosRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getQosId()const; - void setQosId(const std::string& qosId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getQosName()const; - void setQosName(const std::string& qosName); - std::string getQosDescription()const; - void setQosDescription(const std::string& qosDescription); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string qosId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string qosName_; - std::string qosDescription_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifyQosRequest : public RpcServiceRequest { +public: + ModifyQosRequest(); + ~ModifyQosRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getQosName() const; + void setQosName(const std::string &qosName); + std::string getQosDescription() const; + void setQosDescription(const std::string &qosDescription); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string qosName_; + std::string qosDescription_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYQOSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifyRouteDistributionStrategyRequest.h b/smartag/include/alibabacloud/smartag/model/ModifyRouteDistributionStrategyRequest.h index 43a4fe5e2..49812571b 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifyRouteDistributionStrategyRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifyRouteDistributionStrategyRequest.h @@ -1,78 +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_SMARTAG_MODEL_MODIFYROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifyRouteDistributionStrategyRequest : public RpcServiceRequest - { - - public: - ModifyRouteDistributionStrategyRequest(); - ~ModifyRouteDistributionStrategyRequest(); - - std::string getRouteSource()const; - void setRouteSource(const std::string& routeSource); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getHcInstanceId()const; - void setHcInstanceId(const std::string& hcInstanceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSourceType()const; - void setSourceType(const std::string& sourceType); - std::string getDestCidrBlock()const; - void setDestCidrBlock(const std::string& destCidrBlock); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getRouteDistribution()const; - void setRouteDistribution(const std::string& routeDistribution); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - std::string routeSource_; - long resourceOwnerId_; - std::string hcInstanceId_; - std::string regionId_; - std::string sourceType_; - std::string destCidrBlock_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string routeDistribution_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifyRouteDistributionStrategyRequest : public RpcServiceRequest { +public: + ModifyRouteDistributionStrategyRequest(); + ~ModifyRouteDistributionStrategyRequest(); + std::string getRouteSource() const; + void setRouteSource(const std::string &routeSource); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHcInstanceId() const; + void setHcInstanceId(const std::string &hcInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getDestCidrBlock() const; + void setDestCidrBlock(const std::string &destCidrBlock); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getRouteDistribution() const; + void setRouteDistribution(const std::string &routeDistribution); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + std::string routeSource_; + long resourceOwnerId_; + std::string hcInstanceId_; + std::string regionId_; + std::string sourceType_; + std::string destCidrBlock_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string routeDistribution_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYROUTEDISTRIBUTIONSTRATEGYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySAGAdminPasswordRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySAGAdminPasswordRequest.h index 539918b04..8a20250e2 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySAGAdminPasswordRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySAGAdminPasswordRequest.h @@ -1,69 +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_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySAGAdminPasswordRequest : public RpcServiceRequest - { - - public: - ModifySAGAdminPasswordRequest(); - ~ModifySAGAdminPasswordRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPassword()const; - void setPassword(const std::string& password); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string password_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySAGAdminPasswordRequest : public RpcServiceRequest { +public: + ModifySAGAdminPasswordRequest(); + ~ModifySAGAdminPasswordRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string password_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGADMINPASSWORDREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagCidrRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagCidrRequest.h deleted file mode 100644 index 9c9d193db..000000000 --- a/smartag/include/alibabacloud/smartag/model/ModifySagCidrRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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_SMARTAG_MODEL_MODIFYSAGCIDRREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGCIDRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagCidrRequest : public RpcServiceRequest - { - - public: - ModifySagCidrRequest(); - ~ModifySagCidrRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getCidr()const; - void setCidr(const std::string& cidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getEnableBackup()const; - void setEnableBackup(bool enableBackup); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string cidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool enableBackup_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGCIDRREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagCidrResult.h b/smartag/include/alibabacloud/smartag/model/ModifySagCidrResult.h deleted file mode 100644 index 8fdaf5194..000000000 --- a/smartag/include/alibabacloud/smartag/model/ModifySagCidrResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_MODIFYSAGCIDRRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGCIDRRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagCidrResult : public ServiceResult - { - public: - - - ModifySagCidrResult(); - explicit ModifySagCidrResult(const std::string &payload); - ~ModifySagCidrResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGCIDRRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagECRouteBackupRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagECRouteBackupRequest.h deleted file mode 100644 index cfe3778e3..000000000 --- a/smartag/include/alibabacloud/smartag/model/ModifySagECRouteBackupRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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_SMARTAG_MODEL_MODIFYSAGECROUTEBACKUPREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGECROUTEBACKUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagECRouteBackupRequest : public RpcServiceRequest - { - - public: - ModifySagECRouteBackupRequest(); - ~ModifySagECRouteBackupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getExpressConnectionInterface()const; - void setExpressConnectionInterface(const std::string& expressConnectionInterface); - std::string getHcIp()const; - void setHcIp(const std::string& hcIp); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getRouteBackup()const; - void setRouteBackup(bool routeBackup); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getExpressConnectionNexthop()const; - void setExpressConnectionNexthop(const std::string& expressConnectionNexthop); - - private: - long resourceOwnerId_; - std::string expressConnectionInterface_; - std::string hcIp_; - std::string regionId_; - bool routeBackup_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string expressConnectionNexthop_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGECROUTEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagECRouteBackupResult.h b/smartag/include/alibabacloud/smartag/model/ModifySagECRouteBackupResult.h deleted file mode 100644 index d55b26568..000000000 --- a/smartag/include/alibabacloud/smartag/model/ModifySagECRouteBackupResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_MODIFYSAGECROUTEBACKUPRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGECROUTEBACKUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagECRouteBackupResult : public ServiceResult - { - public: - - - ModifySagECRouteBackupResult(); - explicit ModifySagECRouteBackupResult(const std::string &payload); - ~ModifySagECRouteBackupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGECROUTEBACKUPRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagExpressConnectInterfaceRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagExpressConnectInterfaceRequest.h index a52422c8b..c1ba773d1 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagExpressConnectInterfaceRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagExpressConnectInterfaceRequest.h @@ -1,78 +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_SMARTAG_MODEL_MODIFYSAGEXPRESSCONNECTINTERFACEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGEXPRESSCONNECTINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagExpressConnectInterfaceRequest : public RpcServiceRequest - { - - public: - ModifySagExpressConnectInterfaceRequest(); - ~ModifySagExpressConnectInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVlan()const; - void setVlan(const std::string& vlan); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getMask()const; - void setMask(const std::string& mask); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getIP()const; - void setIP(const std::string& iP); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - - private: - long resourceOwnerId_; - std::string vlan_; - std::string regionId_; - std::string mask_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string iP_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGEXPRESSCONNECTINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGEXPRESSCONNECTINTERFACEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGEXPRESSCONNECTINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagExpressConnectInterfaceRequest : public RpcServiceRequest { +public: + ModifySagExpressConnectInterfaceRequest(); + ~ModifySagExpressConnectInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVlan() const; + void setVlan(const std::string &vlan); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getIP() const; + void setIP(const std::string &iP); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + +private: + long resourceOwnerId_; + std::string vlan_; + std::string regionId_; + std::string mask_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string iP_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGEXPRESSCONNECTINTERFACEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagGlobalRouteProtocolRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagGlobalRouteProtocolRequest.h index 608c601eb..ab9bfc883 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagGlobalRouteProtocolRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagGlobalRouteProtocolRequest.h @@ -1,69 +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_SMARTAG_MODEL_MODIFYSAGGLOBALROUTEPROTOCOLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGGLOBALROUTEPROTOCOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagGlobalRouteProtocolRequest : public RpcServiceRequest - { - - public: - ModifySagGlobalRouteProtocolRequest(); - ~ModifySagGlobalRouteProtocolRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRouteProtocol()const; - void setRouteProtocol(const std::string& routeProtocol); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string routeProtocol_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGGLOBALROUTEPROTOCOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGGLOBALROUTEPROTOCOLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGGLOBALROUTEPROTOCOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagGlobalRouteProtocolRequest : public RpcServiceRequest { +public: + ModifySagGlobalRouteProtocolRequest(); + ~ModifySagGlobalRouteProtocolRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRouteProtocol() const; + void setRouteProtocol(const std::string &routeProtocol); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string routeProtocol_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGGLOBALROUTEPROTOCOLREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagHaRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagHaRequest.h index d4501a657..1c2ac5ebf 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagHaRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagHaRequest.h @@ -1,75 +1,69 @@ /* * 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_SMARTAG_MODEL_MODIFYSAGHAREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGHAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagHaRequest : public RpcServiceRequest - { - - public: - ModifySagHaRequest(); - ~ModifySagHaRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVirtualIp()const; - void setVirtualIp(const std::string& virtualIp); - std::string getMode()const; - void setMode(const std::string& mode); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - - private: - long resourceOwnerId_; - std::string virtualIp_; - std::string mode_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGHAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGHAREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGHAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagHaRequest : public RpcServiceRequest { +public: + ModifySagHaRequest(); + ~ModifySagHaRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVirtualIp() const; + void setVirtualIp(const std::string &virtualIp); + std::string getMode() const; + void setMode(const std::string &mode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + +private: + long resourceOwnerId_; + std::string virtualIp_; + std::string mode_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGHAREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagLanRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagLanRequest.h index 6c945cc20..5845fce08 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagLanRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagLanRequest.h @@ -1,87 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGLANREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagLanRequest : public RpcServiceRequest - { - - public: - ModifySagLanRequest(); - ~ModifySagLanRequest(); - - std::string getEndIp()const; - void setEndIp(const std::string& endIp); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getMask()const; - void setMask(const std::string& mask); - std::string getStartIp()const; - void setStartIp(const std::string& startIp); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getIP()const; - void setIP(const std::string& iP); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIPType()const; - void setIPType(const std::string& iPType); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - std::string getLease()const; - void setLease(const std::string& lease); - - private: - std::string endIp_; - long resourceOwnerId_; - std::string regionId_; - std::string mask_; - std::string startIp_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string iP_; - long ownerId_; - std::string iPType_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - std::string lease_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGLANREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagLanRequest : public RpcServiceRequest { +public: + ModifySagLanRequest(); + ~ModifySagLanRequest(); + std::string getEndIp() const; + void setEndIp(const std::string &endIp); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getStartIp() const; + void setStartIp(const std::string &startIp); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getIP() const; + void setIP(const std::string &iP); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getIPType() const; + void setIPType(const std::string &iPType); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + std::string getLease() const; + void setLease(const std::string &lease); + +private: + std::string endIp_; + long resourceOwnerId_; + std::string regionId_; + std::string mask_; + std::string startIp_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string iP_; + long ownerId_; + std::string iPType_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; + std::string lease_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGLANREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagManagementPortRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagManagementPortRequest.h index b0113890f..1eea4411f 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagManagementPortRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagManagementPortRequest.h @@ -1,75 +1,69 @@ /* * 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_SMARTAG_MODEL_MODIFYSAGMANAGEMENTPORTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGMANAGEMENTPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagManagementPortRequest : public RpcServiceRequest - { - - public: - ModifySagManagementPortRequest(); - ~ModifySagManagementPortRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getMask()const; - void setMask(const std::string& mask); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getIP()const; - void setIP(const std::string& iP); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getGateway()const; - void setGateway(const std::string& gateway); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string mask_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string iP_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - std::string gateway_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGMANAGEMENTPORTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGMANAGEMENTPORTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGMANAGEMENTPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagManagementPortRequest : public RpcServiceRequest { +public: + ModifySagManagementPortRequest(); + ~ModifySagManagementPortRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getIP() const; + void setIP(const std::string &iP); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getGateway() const; + void setGateway(const std::string &gateway); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string mask_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string iP_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; + std::string gateway_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGMANAGEMENTPORTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagPortRoleRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagPortRoleRequest.h index c7c68d408..861099e38 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagPortRoleRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagPortRoleRequest.h @@ -1,75 +1,69 @@ /* * 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_SMARTAG_MODEL_MODIFYSAGPORTROLEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGPORTROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagPortRoleRequest : public RpcServiceRequest - { - - public: - ModifySagPortRoleRequest(); - ~ModifySagPortRoleRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRole()const; - void setRole(const std::string& role); - std::string getVlan()const; - void setVlan(const std::string& vlan); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - - private: - long resourceOwnerId_; - std::string role_; - std::string vlan_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGPORTROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGPORTROLEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGPORTROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagPortRoleRequest : public RpcServiceRequest { +public: + ModifySagPortRoleRequest(); + ~ModifySagPortRoleRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRole() const; + void setRole(const std::string &role); + std::string getVlan() const; + void setVlan(const std::string &vlan); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + +private: + long resourceOwnerId_; + std::string role_; + std::string vlan_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGPORTROLEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagPortRouteProtocolRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagPortRouteProtocolRequest.h index aa7f06ecf..4794b68fc 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagPortRouteProtocolRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagPortRouteProtocolRequest.h @@ -1,81 +1,75 @@ /* * 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_SMARTAG_MODEL_MODIFYSAGPORTROUTEPROTOCOLREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGPORTROUTEPROTOCOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagPortRouteProtocolRequest : public RpcServiceRequest - { - - public: - ModifySagPortRouteProtocolRequest(); - ~ModifySagPortRouteProtocolRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRemoteIp()const; - void setRemoteIp(const std::string& remoteIp); - std::string getVlan()const; - void setVlan(const std::string& vlan); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRemoteAs()const; - void setRemoteAs(const std::string& remoteAs); - std::string getRouteProtocol()const; - void setRouteProtocol(const std::string& routeProtocol); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - - private: - long resourceOwnerId_; - std::string remoteIp_; - std::string vlan_; - std::string regionId_; - std::string remoteAs_; - std::string routeProtocol_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGPORTROUTEPROTOCOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGPORTROUTEPROTOCOLREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGPORTROUTEPROTOCOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagPortRouteProtocolRequest : public RpcServiceRequest { +public: + ModifySagPortRouteProtocolRequest(); + ~ModifySagPortRouteProtocolRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRemoteIp() const; + void setRemoteIp(const std::string &remoteIp); + std::string getVlan() const; + void setVlan(const std::string &vlan); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRemoteAs() const; + void setRemoteAs(const std::string &remoteAs); + std::string getRouteProtocol() const; + void setRouteProtocol(const std::string &routeProtocol); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + +private: + long resourceOwnerId_; + std::string remoteIp_; + std::string vlan_; + std::string regionId_; + std::string remoteAs_; + std::string routeProtocol_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGPORTROUTEPROTOCOLREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessRequest.h index aed55dad9..7d8fe4a22 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagRemoteAccessRequest : public RpcServiceRequest - { - - public: - ModifySagRemoteAccessRequest(); - ~ModifySagRemoteAccessRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRemoteAccessIp()const; - void setRemoteAccessIp(const std::string& remoteAccessIp); - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string remoteAccessIp_; - std::string serialNumber_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagRemoteAccessRequest : public RpcServiceRequest { +public: + ModifySagRemoteAccessRequest(); + ~ModifySagRemoteAccessRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRemoteAccessIp() const; + void setRemoteAccessIp(const std::string &remoteAccessIp); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string remoteAccessIp_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGREMOTEACCESSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessResult.h b/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessResult.h index 2e609d6e0..edbf9b269 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessResult.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagRemoteAccessResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud ModifySagRemoteAccessResult(); explicit ModifySagRemoteAccessResult(const std::string &payload); ~ModifySagRemoteAccessResult(); - std::string getMessage()const; std::string getSerialNumber()const; + std::string getMessage()const; std::string getRemoteAccessIp()const; std::string getCode()const; bool getSuccess()const; @@ -46,8 +46,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string message_; std::string serialNumber_; + std::string message_; std::string remoteAccessIp_; std::string code_; bool success_; diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolBgpRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolBgpRequest.h index 1e9b3beb3..67821f2a4 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolBgpRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolBgpRequest.h @@ -1,81 +1,75 @@ /* * 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_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLBGPREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLBGPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagRouteProtocolBgpRequest : public RpcServiceRequest - { - - public: - ModifySagRouteProtocolBgpRequest(); - ~ModifySagRouteProtocolBgpRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getKeepAlive()const; - void setKeepAlive(int keepAlive); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getHoldTime()const; - void setHoldTime(int holdTime); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAdvertiseIps()const; - void setAdvertiseIps(const std::string& advertiseIps); - std::string getRouterId()const; - void setRouterId(const std::string& routerId); - int getLocalAs()const; - void setLocalAs(int localAs); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - int keepAlive_; - std::string regionId_; - int holdTime_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string advertiseIps_; - std::string routerId_; - int localAs_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLBGPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLBGPREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLBGPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagRouteProtocolBgpRequest : public RpcServiceRequest { +public: + ModifySagRouteProtocolBgpRequest(); + ~ModifySagRouteProtocolBgpRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getKeepAlive() const; + void setKeepAlive(int keepAlive); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getHoldTime() const; + void setHoldTime(int holdTime); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAdvertiseIps() const; + void setAdvertiseIps(const std::string &advertiseIps); + std::string getRouterId() const; + void setRouterId(const std::string &routerId); + int getLocalAs() const; + void setLocalAs(int localAs); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + int keepAlive_; + std::string regionId_; + int holdTime_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string advertiseIps_; + std::string routerId_; + int localAs_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLBGPREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolOspfRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolOspfRequest.h index 6bbc9c27f..baa1816c0 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolOspfRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagRouteProtocolOspfRequest.h @@ -1,90 +1,84 @@ /* * 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_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLOSPFREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLOSPFREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagRouteProtocolOspfRequest : public RpcServiceRequest - { - - public: - ModifySagRouteProtocolOspfRequest(); - ~ModifySagRouteProtocolOspfRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAuthenticationType()const; - void setAuthenticationType(const std::string& authenticationType); - std::string getPassword()const; - void setPassword(const std::string& password); - int getAreaId()const; - void setAreaId(int areaId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getMd5KeyId()const; - void setMd5KeyId(int md5KeyId); - std::string getRouterId()const; - void setRouterId(const std::string& routerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - int getDeadTime()const; - void setDeadTime(int deadTime); - std::string getMd5Key()const; - void setMd5Key(const std::string& md5Key); - int getHelloTime()const; - void setHelloTime(int helloTime); - - private: - long resourceOwnerId_; - std::string authenticationType_; - std::string password_; - int areaId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int md5KeyId_; - std::string routerId_; - std::string smartAGId_; - std::string smartAGSn_; - int deadTime_; - std::string md5Key_; - int helloTime_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLOSPFREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLOSPFREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLOSPFREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagRouteProtocolOspfRequest : public RpcServiceRequest { +public: + ModifySagRouteProtocolOspfRequest(); + ~ModifySagRouteProtocolOspfRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAuthenticationType() const; + void setAuthenticationType(const std::string &authenticationType); + std::string getPassword() const; + void setPassword(const std::string &password); + int getAreaId() const; + void setAreaId(int areaId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMd5KeyId() const; + void setMd5KeyId(int md5KeyId); + std::string getRouterId() const; + void setRouterId(const std::string &routerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + int getDeadTime() const; + void setDeadTime(int deadTime); + std::string getMd5Key() const; + void setMd5Key(const std::string &md5Key); + int getHelloTime() const; + void setHelloTime(int helloTime); + +private: + long resourceOwnerId_; + std::string authenticationType_; + std::string password_; + int areaId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int md5KeyId_; + std::string routerId_; + std::string smartAGId_; + std::string smartAGSn_; + int deadTime_; + std::string md5Key_; + int helloTime_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGROUTEPROTOCOLOSPFREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagStaticRouteRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagStaticRouteRequest.h index 822a7fc57..5446d3b90 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagStaticRouteRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagStaticRouteRequest.h @@ -1,78 +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_SMARTAG_MODEL_MODIFYSAGSTATICROUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGSTATICROUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagStaticRouteRequest : public RpcServiceRequest - { - - public: - ModifySagStaticRouteRequest(); - ~ModifySagStaticRouteRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVlan()const; - void setVlan(const std::string& vlan); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getNextHop()const; - void setNextHop(const std::string& nextHop); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - std::string getDestinationCidr()const; - void setDestinationCidr(const std::string& destinationCidr); - - private: - long resourceOwnerId_; - std::string vlan_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string nextHop_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - std::string destinationCidr_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGSTATICROUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGSTATICROUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGSTATICROUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagStaticRouteRequest : public RpcServiceRequest { +public: + ModifySagStaticRouteRequest(); + ~ModifySagStaticRouteRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVlan() const; + void setVlan(const std::string &vlan); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNextHop() const; + void setNextHop(const std::string &nextHop); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + std::string getDestinationCidr() const; + void setDestinationCidr(const std::string &destinationCidr); + +private: + long resourceOwnerId_; + std::string vlan_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string nextHop_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; + std::string destinationCidr_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGSTATICROUTEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagUserDnsRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagUserDnsRequest.h index dedf29abf..82ab45cb5 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagUserDnsRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagUserDnsRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGUSERDNSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGUSERDNSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagUserDnsRequest : public RpcServiceRequest - { - - public: - ModifySagUserDnsRequest(); - ~ModifySagUserDnsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSlaveDns()const; - void setSlaveDns(const std::string& slaveDns); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getMasterDns()const; - void setMasterDns(const std::string& masterDns); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string slaveDns_; - std::string regionId_; - std::string masterDns_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGUSERDNSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGUSERDNSREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGUSERDNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagUserDnsRequest : public RpcServiceRequest { +public: + ModifySagUserDnsRequest(); + ~ModifySagUserDnsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSlaveDns() const; + void setSlaveDns(const std::string &slaveDns); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getMasterDns() const; + void setMasterDns(const std::string &masterDns); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string slaveDns_; + std::string regionId_; + std::string masterDns_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGUSERDNSREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagWanRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagWanRequest.h index a5b654285..f4cb6b135 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagWanRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagWanRequest.h @@ -1,111 +1,105 @@ /* * 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_SMARTAG_MODEL_MODIFYSAGWANREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagWanRequest : public RpcServiceRequest - { - - public: - ModifySagWanRequest(); - ~ModifySagWanRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getISP()const; - void setISP(const std::string& iSP); - std::string getPassword()const; - void setPassword(const std::string& password); - std::string getVlan()const; - void setVlan(const std::string& vlan); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getMask()const; - void setMask(const std::string& mask); - std::string getStartIp()const; - void setStartIp(const std::string& startIp); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - int getBandwidth()const; - void setBandwidth(int bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getIP()const; - void setIP(const std::string& iP); - int getWeight()const; - void setWeight(int weight); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIPType()const; - void setIPType(const std::string& iPType); - int getPriority()const; - void setPriority(int priority); - std::string getSourceIps()const; - void setSourceIps(const std::string& sourceIps); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getPortName()const; - void setPortName(const std::string& portName); - std::string getStopIp()const; - void setStopIp(const std::string& stopIp); - std::string getGateway()const; - void setGateway(const std::string& gateway); - std::string getUsername()const; - void setUsername(const std::string& username); - - private: - long resourceOwnerId_; - std::string iSP_; - std::string password_; - std::string vlan_; - std::string regionId_; - std::string mask_; - std::string startIp_; - std::string resourceOwnerAccount_; - int bandwidth_; - std::string ownerAccount_; - std::string iP_; - int weight_; - long ownerId_; - std::string iPType_; - int priority_; - std::string sourceIps_; - std::string smartAGId_; - std::string smartAGSn_; - std::string portName_; - std::string stopIp_; - std::string gateway_; - std::string username_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWANREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagWanRequest : public RpcServiceRequest { +public: + ModifySagWanRequest(); + ~ModifySagWanRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getISP() const; + void setISP(const std::string &iSP); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getVlan() const; + void setVlan(const std::string &vlan); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getMask() const; + void setMask(const std::string &mask); + std::string getStartIp() const; + void setStartIp(const std::string &startIp); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getIP() const; + void setIP(const std::string &iP); + int getWeight() const; + void setWeight(int weight); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getIPType() const; + void setIPType(const std::string &iPType); + int getPriority() const; + void setPriority(int priority); + std::string getSourceIps() const; + void setSourceIps(const std::string &sourceIps); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getPortName() const; + void setPortName(const std::string &portName); + std::string getStopIp() const; + void setStopIp(const std::string &stopIp); + std::string getGateway() const; + void setGateway(const std::string &gateway); + std::string getUsername() const; + void setUsername(const std::string &username); + +private: + long resourceOwnerId_; + std::string iSP_; + std::string password_; + std::string vlan_; + std::string regionId_; + std::string mask_; + std::string startIp_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + std::string iP_; + int weight_; + long ownerId_; + std::string iPType_; + int priority_; + std::string sourceIps_; + std::string smartAGId_; + std::string smartAGSn_; + std::string portName_; + std::string stopIp_; + std::string gateway_; + std::string username_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWANREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagWanSnatRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagWanSnatRequest.h index a220e1d8c..1e0dda6db 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagWanSnatRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagWanSnatRequest.h @@ -1,69 +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_SMARTAG_MODEL_MODIFYSAGWANSNATREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWANSNATREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagWanSnatRequest : public RpcServiceRequest - { - - public: - ModifySagWanSnatRequest(); - ~ModifySagWanSnatRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getSnat()const; - void setSnat(const std::string& snat); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - std::string snat_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWANSNATREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWANSNATREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWANSNATREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagWanSnatRequest : public RpcServiceRequest { +public: + ModifySagWanSnatRequest(); + ~ModifySagWanSnatRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getSnat() const; + void setSnat(const std::string &snat); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; + std::string snat_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWANSNATREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySagWifiRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySagWifiRequest.h index e608322d6..89ea8b6ad 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySagWifiRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySagWifiRequest.h @@ -1,93 +1,87 @@ /* * 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_SMARTAG_MODEL_MODIFYSAGWIFIREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWIFIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySagWifiRequest : public RpcServiceRequest - { - - public: - ModifySagWifiRequest(); - ~ModifySagWifiRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getEncryptAlgorithm()const; - void setEncryptAlgorithm(const std::string& encryptAlgorithm); - std::string getChannel()const; - void setChannel(const std::string& channel); - std::string getAuthenticationType()const; - void setAuthenticationType(const std::string& authenticationType); - std::string getSSID()const; - void setSSID(const std::string& sSID); - std::string getPassword()const; - void setPassword(const std::string& password); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getIsBroadcast()const; - void setIsBroadcast(const std::string& isBroadcast); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getIsEnable()const; - void setIsEnable(const std::string& isEnable); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - std::string getIsAuth()const; - void setIsAuth(const std::string& isAuth); - - private: - long resourceOwnerId_; - std::string encryptAlgorithm_; - std::string channel_; - std::string authenticationType_; - std::string sSID_; - std::string password_; - std::string regionId_; - std::string isBroadcast_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - std::string isEnable_; - std::string smartAGId_; - std::string smartAGSn_; - std::string isAuth_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWIFIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWIFIREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWIFIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySagWifiRequest : public RpcServiceRequest { +public: + ModifySagWifiRequest(); + ~ModifySagWifiRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getEncryptAlgorithm() const; + void setEncryptAlgorithm(const std::string &encryptAlgorithm); + std::string getChannel() const; + void setChannel(const std::string &channel); + std::string getAuthenticationType() const; + void setAuthenticationType(const std::string &authenticationType); + std::string getSSID() const; + void setSSID(const std::string &sSID); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIsBroadcast() const; + void setIsBroadcast(const std::string &isBroadcast); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getIsEnable() const; + void setIsEnable(const std::string &isEnable); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + std::string getIsAuth() const; + void setIsAuth(const std::string &isAuth); + +private: + long resourceOwnerId_; + std::string encryptAlgorithm_; + std::string channel_; + std::string authenticationType_; + std::string sSID_; + std::string password_; + std::string regionId_; + std::string isBroadcast_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string isEnable_; + std::string smartAGId_; + std::string smartAGSn_; + std::string isAuth_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSAGWIFIREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h index 30c560926..baab8062a 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayClientUserRequest.h @@ -1,72 +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_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayClientUserRequest : public RpcServiceRequest - { - - public: - ModifySmartAccessGatewayClientUserRequest(); - ~ModifySmartAccessGatewayClientUserRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEmail()const; - void setEmail(const std::string& email); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - int getBandwidth()const; - void setBandwidth(int bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string email_; - std::string resourceOwnerAccount_; - int bandwidth_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayClientUserRequest : public RpcServiceRequest { +public: + ModifySmartAccessGatewayClientUserRequest(); + ~ModifySmartAccessGatewayClientUserRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getClientIp() const; + void setClientIp(const std::string &clientIp); + std::string getEmail() const; + void setEmail(const std::string &email); + bool getEnableStaticIp() const; + void setEnableStaticIp(bool enableStaticIp); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string clientIp_; + std::string email_; + bool enableStaticIp_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string userName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYCLIENTUSERREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h index 4f1ddb1d8..670d961d4 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayRequest.h @@ -1,81 +1,75 @@ /* * 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_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - ModifySmartAccessGatewayRequest(); - ~ModifySmartAccessGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCity()const; - void setCity(const std::string& city); - std::string getDescription()const; - void setDescription(const std::string& description); - int getSecurityLockThreshold()const; - void setSecurityLockThreshold(int securityLockThreshold); - std::string getRoutingStrategy()const; - void setRoutingStrategy(const std::string& routingStrategy); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getCidrBlock()const; - void setCidrBlock(const std::string& cidrBlock); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string city_; - std::string description_; - int securityLockThreshold_; - std::string routingStrategy_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string cidrBlock_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayRequest : public RpcServiceRequest { +public: + ModifySmartAccessGatewayRequest(); + ~ModifySmartAccessGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCity() const; + void setCity(const std::string &city); + std::string getDescription() const; + void setDescription(const std::string &description); + int getSecurityLockThreshold() const; + void setSecurityLockThreshold(int securityLockThreshold); + std::string getRoutingStrategy() const; + void setRoutingStrategy(const std::string &routingStrategy); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string city_; + std::string description_; + int securityLockThreshold_; + std::string routingStrategy_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string cidrBlock_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthRequest.h b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthRequest.h index dd6b43d9f..585e7ebe2 100644 --- a/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ModifySmartAccessGatewayUpBandwidthRequest.h @@ -1,69 +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_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayUpBandwidthRequest : public RpcServiceRequest - { - - public: - ModifySmartAccessGatewayUpBandwidthRequest(); - ~ModifySmartAccessGatewayUpBandwidthRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getUpBandwidthWan()const; - void setUpBandwidthWan(int upBandwidthWan); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getUpBandwidth4G()const; - void setUpBandwidth4G(int upBandwidth4G); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - int upBandwidthWan_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int upBandwidth4G_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ModifySmartAccessGatewayUpBandwidthRequest : public RpcServiceRequest { +public: + ModifySmartAccessGatewayUpBandwidthRequest(); + ~ModifySmartAccessGatewayUpBandwidthRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getUpBandwidthWan() const; + void setUpBandwidthWan(int upBandwidthWan); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getUpBandwidth4G() const; + void setUpBandwidth4G(int upBandwidth4G); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + int upBandwidthWan_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int upBandwidth4G_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MODIFYSMARTACCESSGATEWAYUPBANDWIDTHREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/MoveResourceGroupRequest.h b/smartag/include/alibabacloud/smartag/model/MoveResourceGroupRequest.h index ec630ce5d..faa4e48e4 100644 --- a/smartag/include/alibabacloud/smartag/model/MoveResourceGroupRequest.h +++ b/smartag/include/alibabacloud/smartag/model/MoveResourceGroupRequest.h @@ -1,69 +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_SMARTAG_MODEL_MOVERESOURCEGROUPREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_MOVERESOURCEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT MoveResourceGroupRequest : public RpcServiceRequest - { - - public: - MoveResourceGroupRequest(); - ~MoveResourceGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getNewResourceGroupId()const; - void setNewResourceGroupId(const std::string& newResourceGroupId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - std::string newResourceGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_MOVERESOURCEGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_MOVERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_MOVERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT MoveResourceGroupRequest : public RpcServiceRequest { +public: + MoveResourceGroupRequest(); + ~MoveResourceGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::string newResourceGroupId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_MOVERESOURCEGROUPREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/OrchestrateSagECRouteBackupRequest.h b/smartag/include/alibabacloud/smartag/model/OrchestrateSagECRouteBackupRequest.h deleted file mode 100644 index 82d618bb7..000000000 --- a/smartag/include/alibabacloud/smartag/model/OrchestrateSagECRouteBackupRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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_SMARTAG_MODEL_ORCHESTRATESAGECROUTEBACKUPREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ORCHESTRATESAGECROUTEBACKUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT OrchestrateSagECRouteBackupRequest : public RpcServiceRequest - { - - public: - OrchestrateSagECRouteBackupRequest(); - ~OrchestrateSagECRouteBackupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ORCHESTRATESAGECROUTEBACKUPREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/OrchestrateSagECRouteBackupResult.h b/smartag/include/alibabacloud/smartag/model/OrchestrateSagECRouteBackupResult.h deleted file mode 100644 index fa971a782..000000000 --- a/smartag/include/alibabacloud/smartag/model/OrchestrateSagECRouteBackupResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_ORCHESTRATESAGECROUTEBACKUPRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ORCHESTRATESAGECROUTEBACKUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT OrchestrateSagECRouteBackupResult : public ServiceResult - { - public: - - - OrchestrateSagECRouteBackupResult(); - explicit OrchestrateSagECRouteBackupResult(const std::string &payload); - ~OrchestrateSagECRouteBackupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ORCHESTRATESAGECROUTEBACKUPRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityRequest.h b/smartag/include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityRequest.h index 406c34b83..e2d16dc5d 100644 --- a/smartag/include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ProbeAccessPointNetworkQualityRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ProbeAccessPointNetworkQualityRequest : public RpcServiceRequest - { - - public: - ProbeAccessPointNetworkQualityRequest(); - ~ProbeAccessPointNetworkQualityRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::vector getAccessPointIds()const; - void setAccessPointIds(const std::vector& accessPointIds); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::vector accessPointIds_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ProbeAccessPointNetworkQualityRequest : public RpcServiceRequest { +public: + ProbeAccessPointNetworkQualityRequest(); + ~ProbeAccessPointNetworkQualityRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getAccessPointIds() const; + void setAccessPointIds(const std::vector &accessPointIds); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector accessPointIds_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_PROBEACCESSPOINTNETWORKQUALITYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h index 14b1862c2..ab87b35e5 100644 --- a/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/RebootSmartAccessGatewayRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT RebootSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - RebootSmartAccessGatewayRequest(); - ~RebootSmartAccessGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string serialNumber_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT RebootSmartAccessGatewayRequest : public RpcServiceRequest { +public: + RebootSmartAccessGatewayRequest(); + ~RebootSmartAccessGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_REBOOTSMARTACCESSGATEWAYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h b/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h index b22ce1524..b63ae5340 100644 --- a/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h +++ b/smartag/include/alibabacloud/smartag/model/ResetSmartAccessGatewayClientUserPasswordRequest.h @@ -1,69 +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_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT ResetSmartAccessGatewayClientUserPasswordRequest : public RpcServiceRequest - { - - public: - ResetSmartAccessGatewayClientUserPasswordRequest(); - ~ResetSmartAccessGatewayClientUserPasswordRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPassword()const; - void setPassword(const std::string& password); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - long resourceOwnerId_; - std::string password_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT ResetSmartAccessGatewayClientUserPasswordRequest : public RpcServiceRequest { +public: + ResetSmartAccessGatewayClientUserPasswordRequest(); + ~ResetSmartAccessGatewayClientUserPasswordRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long resourceOwnerId_; + std::string password_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string userName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_RESETSMARTACCESSGATEWAYCLIENTUSERPASSWORDREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.h b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.h index 1d2d462f8..f80cbf540 100644 --- a/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.h +++ b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromCbnRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT RevokeInstanceFromCbnRequest : public RpcServiceRequest - { - - public: - RevokeInstanceFromCbnRequest(); - ~RevokeInstanceFromCbnRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getCcnInstanceId()const; - void setCcnInstanceId(const std::string& ccnInstanceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getCenInstanceId()const; - void setCenInstanceId(const std::string& cenInstanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string ccnInstanceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string cenInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT RevokeInstanceFromCbnRequest : public RpcServiceRequest { +public: + RevokeInstanceFromCbnRequest(); + ~RevokeInstanceFromCbnRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getCcnInstanceId() const; + void setCcnInstanceId(const std::string &ccnInstanceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCenInstanceId() const; + void setCenInstanceId(const std::string &cenInstanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string ccnInstanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string cenInstanceId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMCBNREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromVbrRequest.h b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromVbrRequest.h index 37e33756d..8d9b171bb 100644 --- a/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromVbrRequest.h +++ b/smartag/include/alibabacloud/smartag/model/RevokeInstanceFromVbrRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_REVOKEINSTANCEFROMVBRREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMVBRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT RevokeInstanceFromVbrRequest : public RpcServiceRequest - { - - public: - RevokeInstanceFromVbrRequest(); - ~RevokeInstanceFromVbrRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVbrInstanceId()const; - void setVbrInstanceId(const std::string& vbrInstanceId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vbrInstanceId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMVBRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMVBRREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMVBRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT RevokeInstanceFromVbrRequest : public RpcServiceRequest { +public: + RevokeInstanceFromVbrRequest(); + ~RevokeInstanceFromVbrRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVbrInstanceId() const; + void setVbrInstanceId(const std::string &vbrInstanceId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vbrInstanceId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKEINSTANCEFROMVBRREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnRequest.h b/smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnRequest.h index cc8e332a2..7b2c282a2 100644 --- a/smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnRequest.h +++ b/smartag/include/alibabacloud/smartag/model/RevokeSagInstanceFromCcnRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT RevokeSagInstanceFromCcnRequest : public RpcServiceRequest - { - - public: - RevokeSagInstanceFromCcnRequest(); - ~RevokeSagInstanceFromCcnRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getCcnInstanceId()const; - void setCcnInstanceId(const std::string& ccnInstanceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string ccnInstanceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT RevokeSagInstanceFromCcnRequest : public RpcServiceRequest { +public: + RevokeSagInstanceFromCcnRequest(); + ~RevokeSagInstanceFromCcnRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getCcnInstanceId() const; + void setCcnInstanceId(const std::string &ccnInstanceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string ccnInstanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_REVOKESAGINSTANCEFROMCCNREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/RoamClientUserRequest.h b/smartag/include/alibabacloud/smartag/model/RoamClientUserRequest.h index eaf54e3c7..3e39eb9ce 100644 --- a/smartag/include/alibabacloud/smartag/model/RoamClientUserRequest.h +++ b/smartag/include/alibabacloud/smartag/model/RoamClientUserRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT RoamClientUserRequest : public RpcServiceRequest - { - - public: - RoamClientUserRequest(); - ~RoamClientUserRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getOriginSmartAGId()const; - void setOriginSmartAGId(const std::string& originSmartAGId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getTargetSmartAGId()const; - void setTargetSmartAGId(const std::string& targetSmartAGId); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getOriginRegionId()const; - void setOriginRegionId(const std::string& originRegionId); - std::string getUserName()const; - void setUserName(const std::string& userName); - - private: - long resourceOwnerId_; - std::string originSmartAGId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string targetSmartAGId_; - std::string ownerAccount_; - long ownerId_; - std::string originRegionId_; - std::string userName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT RoamClientUserRequest : public RpcServiceRequest { +public: + RoamClientUserRequest(); + ~RoamClientUserRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getOriginSmartAGId() const; + void setOriginSmartAGId(const std::string &originSmartAGId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getTargetSmartAGId() const; + void setTargetSmartAGId(const std::string &targetSmartAGId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getOriginRegionId() const; + void setOriginRegionId(const std::string &originRegionId); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long resourceOwnerId_; + std::string originSmartAGId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string targetSmartAGId_; + std::string ownerAccount_; + long ownerId_; + std::string originRegionId_; + std::string userName_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_ROAMCLIENTUSERREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h b/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h deleted file mode 100644 index 8b238dc5f..000000000 --- a/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT SetSagRouteableAddressRequest : public RpcServiceRequest - { - - public: - SetSagRouteableAddressRequest(); - ~SetSagRouteableAddressRequest(); - - std::string getAccess_key_id()const; - void setAccess_key_id(const std::string& access_key_id); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRouteableAddress()const; - void setRouteableAddress(const std::string& routeableAddress); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSagId()const; - void setSagId(const std::string& sagId); - - private: - std::string access_key_id_; - long resourceOwnerId_; - std::string routeableAddress_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string sagId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h b/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h deleted file mode 100644 index 81f710f1c..000000000 --- a/smartag/include/alibabacloud/smartag/model/SetSagRouteableAddressResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT SetSagRouteableAddressResult : public ServiceResult - { - public: - - - SetSagRouteableAddressResult(); - explicit SetSagRouteableAddressResult(const std::string &payload); - ~SetSagRouteableAddressResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_SETSAGROUTEABLEADDRESSRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/SynchronizeSmartAGWebConfigRequest.h b/smartag/include/alibabacloud/smartag/model/SynchronizeSmartAGWebConfigRequest.h index 4979e6974..f6a73d0f4 100644 --- a/smartag/include/alibabacloud/smartag/model/SynchronizeSmartAGWebConfigRequest.h +++ b/smartag/include/alibabacloud/smartag/model/SynchronizeSmartAGWebConfigRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_SYNCHRONIZESMARTAGWEBCONFIGREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_SYNCHRONIZESMARTAGWEBCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT SynchronizeSmartAGWebConfigRequest : public RpcServiceRequest - { - - public: - SynchronizeSmartAGWebConfigRequest(); - ~SynchronizeSmartAGWebConfigRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - std::string getSmartAGSn()const; - void setSmartAGSn(const std::string& smartAGSn); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - std::string smartAGSn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_SYNCHRONIZESMARTAGWEBCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_SYNCHRONIZESMARTAGWEBCONFIGREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_SYNCHRONIZESMARTAGWEBCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT SynchronizeSmartAGWebConfigRequest : public RpcServiceRequest { +public: + SynchronizeSmartAGWebConfigRequest(); + ~SynchronizeSmartAGWebConfigRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + std::string getSmartAGSn() const; + void setSmartAGSn(const std::string &smartAGSn); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + std::string smartAGSn_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_SYNCHRONIZESMARTAGWEBCONFIGREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/UnbindSerialNumberRequest.h b/smartag/include/alibabacloud/smartag/model/UnbindSerialNumberRequest.h index eeff0fe23..5780c7b6c 100644 --- a/smartag/include/alibabacloud/smartag/model/UnbindSerialNumberRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UnbindSerialNumberRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_UNBINDSERIALNUMBERREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSERIALNUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnbindSerialNumberRequest : public RpcServiceRequest - { - - public: - UnbindSerialNumberRequest(); - ~UnbindSerialNumberRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string serialNumber_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDSERIALNUMBERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDSERIALNUMBERREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSERIALNUMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT UnbindSerialNumberRequest : public RpcServiceRequest { +public: + UnbindSerialNumberRequest(); + ~UnbindSerialNumberRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDSERIALNUMBERREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h index f58966285..672c3a03b 100644 --- a/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UnbindSmartAccessGatewayRequest.h @@ -1,69 +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_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnbindSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - UnbindSmartAccessGatewayRequest(); - ~UnbindSmartAccessGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCcnId()const; - void setCcnId(const std::string& ccnId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getSmartAGUid()const; - void setSmartAGUid(long smartAGUid); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string ccnId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - long smartAGUid_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT UnbindSmartAccessGatewayRequest : public RpcServiceRequest { +public: + UnbindSmartAccessGatewayRequest(); + ~UnbindSmartAccessGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCcnId() const; + void setCcnId(const std::string &ccnId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getSmartAGUid() const; + void setSmartAGUid(long smartAGUid); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string ccnId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + long smartAGUid_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDSMARTACCESSGATEWAYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/UnbindVbrRequest.h b/smartag/include/alibabacloud/smartag/model/UnbindVbrRequest.h index c54aef887..c06b3b796 100644 --- a/smartag/include/alibabacloud/smartag/model/UnbindVbrRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UnbindVbrRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDVBRREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDVBRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnbindVbrRequest : public RpcServiceRequest - { - - public: - UnbindVbrRequest(); - ~UnbindVbrRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVbrId()const; - void setVbrId(const std::string& vbrId); - std::string getVbrRegionId()const; - void setVbrRegionId(const std::string& vbrRegionId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getSmartAGUid()const; - void setSmartAGUid(long smartAGUid); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string vbrId_; - std::string vbrRegionId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - long smartAGUid_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDVBRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNBINDVBRREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNBINDVBRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT UnbindVbrRequest : public RpcServiceRequest { +public: + UnbindVbrRequest(); + ~UnbindVbrRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getVbrRegionId() const; + void setVbrRegionId(const std::string &vbrRegionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getSmartAGUid() const; + void setSmartAGUid(long smartAGUid); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string vbrId_; + std::string vbrRegionId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + long smartAGUid_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNBINDVBRREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h b/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h deleted file mode 100644 index e64433afa..000000000 --- a/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmRequest.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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_SMARTAG_MODEL_UNICOMORDERCONFIRMREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnicomOrderConfirmRequest : public RpcServiceRequest - { - public: - struct OrderItem - { - std::string scItemName; - std::string itemAmount; - std::vector snList; - std::string orderItemId; - std::string scItemCode; - int itemQuantity; - std::string tradeId; - std::string tradeItemId; - }; - - public: - UnicomOrderConfirmRequest(); - ~UnicomOrderConfirmRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getTmsCode()const; - void setTmsCode(const std::string& tmsCode); - std::vector getOrderItem()const; - void setOrderItem(const std::vector& orderItem); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getOrderPostFee()const; - void setOrderPostFee(long orderPostFee); - std::string getTradeId()const; - void setTradeId(const std::string& tradeId); - std::string getOwnerUserId()const; - void setOwnerUserId(const std::string& ownerUserId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTmsOrderCode()const; - void setTmsOrderCode(const std::string& tmsOrderCode); - - private: - long resourceOwnerId_; - std::string tmsCode_; - std::vector orderItem_; - std::string regionId_; - long orderPostFee_; - std::string tradeId_; - std::string ownerUserId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string tmsOrderCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h b/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h deleted file mode 100644 index 88e0a802e..000000000 --- a/smartag/include/alibabacloud/smartag/model/UnicomOrderConfirmResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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_SMARTAG_MODEL_UNICOMORDERCONFIRMRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMORDERCONFIRMRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnicomOrderConfirmResult : public ServiceResult - { - public: - - - UnicomOrderConfirmResult(); - explicit UnicomOrderConfirmResult(const std::string &payload); - ~UnicomOrderConfirmResult(); - 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_SMARTAG_MODEL_UNICOMORDERCONFIRMRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmRequest.h b/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmRequest.h deleted file mode 100644 index d623afb21..000000000 --- a/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmRequest.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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_SMARTAG_MODEL_UNICOMSIGNCONFIRMREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnicomSignConfirmRequest : public RpcServiceRequest - { - public: - struct TmsOrder - { - std::string tmsCode; - std::string signingTime; - std::string tmsOrderCode; - std::string tradeId; - }; - - public: - UnicomSignConfirmRequest(); - ~UnicomSignConfirmRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::vector getTmsOrder()const; - void setTmsOrder(const std::vector& tmsOrder); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::vector tmsOrder_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMREQUEST_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmResult.h b/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmResult.h deleted file mode 100644 index 68088e0c7..000000000 --- a/smartag/include/alibabacloud/smartag/model/UnicomSignConfirmResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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_SMARTAG_MODEL_UNICOMSIGNCONFIRMRESULT_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNICOMSIGNCONFIRMRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnicomSignConfirmResult : public ServiceResult - { - public: - - - UnicomSignConfirmResult(); - explicit UnicomSignConfirmResult(const std::string &payload); - ~UnicomSignConfirmResult(); - 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_SMARTAG_MODEL_UNICOMSIGNCONFIRMRESULT_H_ \ No newline at end of file diff --git a/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h index b3cac9b31..f7b0e07b4 100644 --- a/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UnlockSmartAccessGatewayRequest.h @@ -1,63 +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_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UnlockSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - UnlockSmartAccessGatewayRequest(); - ~UnlockSmartAccessGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT UnlockSmartAccessGatewayRequest : public RpcServiceRequest { +public: + UnlockSmartAccessGatewayRequest(); + ~UnlockSmartAccessGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UNLOCKSMARTACCESSGATEWAYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/UpdateEnterpriseCodeRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateEnterpriseCodeRequest.h index f0cd45d18..41be50e82 100644 --- a/smartag/include/alibabacloud/smartag/model/UpdateEnterpriseCodeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateEnterpriseCodeRequest.h @@ -1,60 +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_SMARTAG_MODEL_UPDATEENTERPRISECODEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPDATEENTERPRISECODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpdateEnterpriseCodeRequest : public RpcServiceRequest - { - - public: - UpdateEnterpriseCodeRequest(); - ~UpdateEnterpriseCodeRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEnterpriseCode()const; - void setEnterpriseCode(const std::string& enterpriseCode); - bool getIsDefault()const; - void setIsDefault(bool isDefault); - bool getDryRun()const; - void setDryRun(bool dryRun); - - private: - std::string clientToken_; - std::string regionId_; - std::string enterpriseCode_; - bool isDefault_; - bool dryRun_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATEENTERPRISECODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATEENTERPRISECODEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATEENTERPRISECODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT UpdateEnterpriseCodeRequest : public RpcServiceRequest { +public: + UpdateEnterpriseCodeRequest(); + ~UpdateEnterpriseCodeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEnterpriseCode() const; + void setEnterpriseCode(const std::string &enterpriseCode); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string regionId_; + std::string enterpriseCode_; + bool isDefault_; + bool dryRun_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATEENTERPRISECODEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAGAccessPointRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGAccessPointRequest.h index d7b92c0e9..86076e22b 100644 --- a/smartag/include/alibabacloud/smartag/model/UpdateSmartAGAccessPointRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGAccessPointRequest.h @@ -1,66 +1,60 @@ /* * 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_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGAccessPointRequest : public RpcServiceRequest - { - - public: - UpdateSmartAGAccessPointRequest(); - ~UpdateSmartAGAccessPointRequest(); - - int getAccessPointId()const; - void setAccessPointId(int accessPointId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - int accessPointId_; - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGAccessPointRequest : public RpcServiceRequest { +public: + UpdateSmartAGAccessPointRequest(); + ~UpdateSmartAGAccessPointRequest(); + int getAccessPointId() const; + void setAccessPointId(int accessPointId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + int accessPointId_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGACCESSPOINTREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeRequest.h index f253ecbb3..df8eff3d5 100644 --- a/smartag/include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGDpiAttributeRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGDpiAttributeRequest : public RpcServiceRequest - { - - public: - UpdateSmartAGDpiAttributeRequest(); - ~UpdateSmartAGDpiAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - bool getDpiEnabled()const; - void setDpiEnabled(bool dpiEnabled); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string clientToken_; - bool dpiEnabled_; - std::string regionId_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGDpiAttributeRequest : public RpcServiceRequest { +public: + UpdateSmartAGDpiAttributeRequest(); + ~UpdateSmartAGDpiAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getDpiEnabled() const; + void setDpiEnabled(bool dpiEnabled); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string clientToken_; + bool dpiEnabled_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGDPIATTRIBUTEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeRequest.h index 1e94a4eaf..8e2d81860 100644 --- a/smartag/include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAGEnterpriseCodeRequest.h @@ -1,60 +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_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODEREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGEnterpriseCodeRequest : public RpcServiceRequest - { - - public: - UpdateSmartAGEnterpriseCodeRequest(); - ~UpdateSmartAGEnterpriseCodeRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getEnterpriseCode()const; - void setEnterpriseCode(const std::string& enterpriseCode); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - std::string clientToken_; - std::string regionId_; - std::string enterpriseCode_; - bool dryRun_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODEREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAGEnterpriseCodeRequest : public RpcServiceRequest { +public: + UpdateSmartAGEnterpriseCodeRequest(); + ~UpdateSmartAGEnterpriseCodeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEnterpriseCode() const; + void setEnterpriseCode(const std::string &enterpriseCode); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + std::string clientToken_; + std::string regionId_; + std::string enterpriseCode_; + bool dryRun_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTAGENTERPRISECODEREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h index 95bc2457a..34f2b589a 100644 --- a/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpdateSmartAccessGatewayVersionRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAccessGatewayVersionRequest : public RpcServiceRequest - { - - public: - UpdateSmartAccessGatewayVersionRequest(); - ~UpdateSmartAccessGatewayVersionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getVersionCode()const; - void setVersionCode(const std::string& versionCode); - std::string getSerialNumber()const; - void setSerialNumber(const std::string& serialNumber); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVersionType()const; - void setVersionType(const std::string& versionType); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string versionCode_; - std::string serialNumber_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string versionType_; - std::string smartAGId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT UpdateSmartAccessGatewayVersionRequest : public RpcServiceRequest { +public: + UpdateSmartAccessGatewayVersionRequest(); + ~UpdateSmartAccessGatewayVersionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getVersionCode() const; + void setVersionCode(const std::string &versionCode); + std::string getSerialNumber() const; + void setSerialNumber(const std::string &serialNumber); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVersionType() const; + void setVersionType(const std::string &versionType); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string versionCode_; + std::string serialNumber_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string versionType_; + std::string smartAGId_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPDATESMARTACCESSGATEWAYVERSIONREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h index 23ebf4a60..d98b91c28 100644 --- a/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewayRequest.h @@ -1,75 +1,69 @@ /* * 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_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpgradeSmartAccessGatewayRequest : public RpcServiceRequest - { - - public: - UpgradeSmartAccessGatewayRequest(); - ~UpgradeSmartAccessGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getBandWidthSpec()const; - void setBandWidthSpec(long bandWidthSpec); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getUserCount()const; - void setUserCount(int userCount); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - long getDataPlan()const; - void setDataPlan(long dataPlan); - - private: - long resourceOwnerId_; - long bandWidthSpec_; - std::string regionId_; - int userCount_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - long dataPlan_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT UpgradeSmartAccessGatewayRequest : public RpcServiceRequest { +public: + UpgradeSmartAccessGatewayRequest(); + ~UpgradeSmartAccessGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getBandWidthSpec() const; + void setBandWidthSpec(long bandWidthSpec); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getUserCount() const; + void setUserCount(int userCount); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + long getDataPlan() const; + void setDataPlan(long dataPlan); + +private: + long resourceOwnerId_; + long bandWidthSpec_; + std::string regionId_; + int userCount_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + long dataPlan_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYREQUEST_H_ diff --git a/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewaySoftwareRequest.h b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewaySoftwareRequest.h index 9f5899b5f..93358ba09 100644 --- a/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewaySoftwareRequest.h +++ b/smartag/include/alibabacloud/smartag/model/UpgradeSmartAccessGatewaySoftwareRequest.h @@ -1,72 +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. - */ - -#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ -#define ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Smartag - { - namespace Model - { - class ALIBABACLOUD_SMARTAG_EXPORT UpgradeSmartAccessGatewaySoftwareRequest : public RpcServiceRequest - { - - public: - UpgradeSmartAccessGatewaySoftwareRequest(); - ~UpgradeSmartAccessGatewaySoftwareRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getUserCount()const; - void setUserCount(int userCount); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSmartAGId()const; - void setSmartAGId(const std::string& smartAGId); - long getDataPlan()const; - void setDataPlan(long dataPlan); - - private: - long resourceOwnerId_; - std::string regionId_; - int userCount_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string smartAGId_; - long dataPlan_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ +#define ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Smartag { +namespace Model { +class ALIBABACLOUD_SMARTAG_EXPORT UpgradeSmartAccessGatewaySoftwareRequest : public RpcServiceRequest { +public: + UpgradeSmartAccessGatewaySoftwareRequest(); + ~UpgradeSmartAccessGatewaySoftwareRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getUserCount() const; + void setUserCount(int userCount); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSmartAGId() const; + void setSmartAGId(const std::string &smartAGId); + long getDataPlan() const; + void setDataPlan(long dataPlan); + +private: + long resourceOwnerId_; + std::string regionId_; + int userCount_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string smartAGId_; + long dataPlan_; +}; +} // namespace Model +} // namespace Smartag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SMARTAG_MODEL_UPGRADESMARTACCESSGATEWAYSOFTWAREREQUEST_H_ diff --git a/smartag/src/SmartagClient.cc b/smartag/src/SmartagClient.cc index 943cb1513..25bba7332 100644 --- a/smartag/src/SmartagClient.cc +++ b/smartag/src/SmartagClient.cc @@ -195,78 +195,6 @@ SmartagClient::AddDnatEntryOutcomeCallable SmartagClient::addDnatEntryCallable(c return task->get_future(); } -SmartagClient::AddNetworkOptimizationSettingOutcome SmartagClient::addNetworkOptimizationSetting(const AddNetworkOptimizationSettingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddNetworkOptimizationSettingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddNetworkOptimizationSettingOutcome(AddNetworkOptimizationSettingResult(outcome.result())); - else - return AddNetworkOptimizationSettingOutcome(outcome.error()); -} - -void SmartagClient::addNetworkOptimizationSettingAsync(const AddNetworkOptimizationSettingRequest& request, const AddNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addNetworkOptimizationSetting(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::AddNetworkOptimizationSettingOutcomeCallable SmartagClient::addNetworkOptimizationSettingCallable(const AddNetworkOptimizationSettingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addNetworkOptimizationSetting(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::AddSagCidrOutcome SmartagClient::addSagCidr(const AddSagCidrRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddSagCidrOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddSagCidrOutcome(AddSagCidrResult(outcome.result())); - else - return AddSagCidrOutcome(outcome.error()); -} - -void SmartagClient::addSagCidrAsync(const AddSagCidrRequest& request, const AddSagCidrAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addSagCidr(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::AddSagCidrOutcomeCallable SmartagClient::addSagCidrCallable(const AddSagCidrRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addSagCidr(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::AddSnatEntryOutcome SmartagClient::addSnatEntry(const AddSnatEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,42 +339,6 @@ SmartagClient::AssociateQosOutcomeCallable SmartagClient::associateQosCallable(c return task->get_future(); } -SmartagClient::AttachNetworkOptimizationSagsOutcome SmartagClient::attachNetworkOptimizationSags(const AttachNetworkOptimizationSagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AttachNetworkOptimizationSagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AttachNetworkOptimizationSagsOutcome(AttachNetworkOptimizationSagsResult(outcome.result())); - else - return AttachNetworkOptimizationSagsOutcome(outcome.error()); -} - -void SmartagClient::attachNetworkOptimizationSagsAsync(const AttachNetworkOptimizationSagsRequest& request, const AttachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, attachNetworkOptimizationSags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::AttachNetworkOptimizationSagsOutcomeCallable SmartagClient::attachNetworkOptimizationSagsCallable(const AttachNetworkOptimizationSagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->attachNetworkOptimizationSags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::BindSerialNumberOutcome SmartagClient::bindSerialNumber(const BindSerialNumberRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,42 +699,6 @@ SmartagClient::CreateHealthCheckOutcomeCallable SmartagClient::createHealthCheck return task->get_future(); } -SmartagClient::CreateNetworkOptimizationOutcome SmartagClient::createNetworkOptimization(const CreateNetworkOptimizationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateNetworkOptimizationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateNetworkOptimizationOutcome(CreateNetworkOptimizationResult(outcome.result())); - else - return CreateNetworkOptimizationOutcome(outcome.error()); -} - -void SmartagClient::createNetworkOptimizationAsync(const CreateNetworkOptimizationRequest& request, const CreateNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createNetworkOptimization(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::CreateNetworkOptimizationOutcomeCallable SmartagClient::createNetworkOptimizationCallable(const CreateNetworkOptimizationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createNetworkOptimization(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::CreateQosOutcome SmartagClient::createQos(const CreateQosRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,78 +1275,6 @@ SmartagClient::DeleteHealthCheckOutcomeCallable SmartagClient::deleteHealthCheck return task->get_future(); } -SmartagClient::DeleteNetworkOptimizationOutcome SmartagClient::deleteNetworkOptimization(const DeleteNetworkOptimizationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteNetworkOptimizationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteNetworkOptimizationOutcome(DeleteNetworkOptimizationResult(outcome.result())); - else - return DeleteNetworkOptimizationOutcome(outcome.error()); -} - -void SmartagClient::deleteNetworkOptimizationAsync(const DeleteNetworkOptimizationRequest& request, const DeleteNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteNetworkOptimization(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteNetworkOptimizationOutcomeCallable SmartagClient::deleteNetworkOptimizationCallable(const DeleteNetworkOptimizationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteNetworkOptimization(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DeleteNetworkOptimizationSettingOutcome SmartagClient::deleteNetworkOptimizationSetting(const DeleteNetworkOptimizationSettingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteNetworkOptimizationSettingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteNetworkOptimizationSettingOutcome(DeleteNetworkOptimizationSettingResult(outcome.result())); - else - return DeleteNetworkOptimizationSettingOutcome(outcome.error()); -} - -void SmartagClient::deleteNetworkOptimizationSettingAsync(const DeleteNetworkOptimizationSettingRequest& request, const DeleteNetworkOptimizationSettingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteNetworkOptimizationSetting(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteNetworkOptimizationSettingOutcomeCallable SmartagClient::deleteNetworkOptimizationSettingCallable(const DeleteNetworkOptimizationSettingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteNetworkOptimizationSetting(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::DeleteQosOutcome SmartagClient::deleteQos(const DeleteQosRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,42 +1419,6 @@ SmartagClient::DeleteRouteDistributionStrategyOutcomeCallable SmartagClient::del return task->get_future(); } -SmartagClient::DeleteSagCidrOutcome SmartagClient::deleteSagCidr(const DeleteSagCidrRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSagCidrOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSagCidrOutcome(DeleteSagCidrResult(outcome.result())); - else - return DeleteSagCidrOutcome(outcome.error()); -} - -void SmartagClient::deleteSagCidrAsync(const DeleteSagCidrRequest& request, const DeleteSagCidrAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSagCidr(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DeleteSagCidrOutcomeCallable SmartagClient::deleteSagCidrCallable(const DeleteSagCidrRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSagCidr(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::DeleteSagExpressConnectInterfaceOutcome SmartagClient::deleteSagExpressConnectInterface(const DeleteSagExpressConnectInterfaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2355,222 +2103,6 @@ SmartagClient::DescribeHealthChecksOutcomeCallable SmartagClient::describeHealth return task->get_future(); } -SmartagClient::DescribeNetworkOptimizationSagsOutcome SmartagClient::describeNetworkOptimizationSags(const DescribeNetworkOptimizationSagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeNetworkOptimizationSagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeNetworkOptimizationSagsOutcome(DescribeNetworkOptimizationSagsResult(outcome.result())); - else - return DescribeNetworkOptimizationSagsOutcome(outcome.error()); -} - -void SmartagClient::describeNetworkOptimizationSagsAsync(const DescribeNetworkOptimizationSagsRequest& request, const DescribeNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeNetworkOptimizationSags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeNetworkOptimizationSagsOutcomeCallable SmartagClient::describeNetworkOptimizationSagsCallable(const DescribeNetworkOptimizationSagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeNetworkOptimizationSags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeNetworkOptimizationSettingsOutcome SmartagClient::describeNetworkOptimizationSettings(const DescribeNetworkOptimizationSettingsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeNetworkOptimizationSettingsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeNetworkOptimizationSettingsOutcome(DescribeNetworkOptimizationSettingsResult(outcome.result())); - else - return DescribeNetworkOptimizationSettingsOutcome(outcome.error()); -} - -void SmartagClient::describeNetworkOptimizationSettingsAsync(const DescribeNetworkOptimizationSettingsRequest& request, const DescribeNetworkOptimizationSettingsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeNetworkOptimizationSettings(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeNetworkOptimizationSettingsOutcomeCallable SmartagClient::describeNetworkOptimizationSettingsCallable(const DescribeNetworkOptimizationSettingsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeNetworkOptimizationSettings(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribeNetworkOptimizationsOutcome SmartagClient::describeNetworkOptimizations(const DescribeNetworkOptimizationsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeNetworkOptimizationsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeNetworkOptimizationsOutcome(DescribeNetworkOptimizationsResult(outcome.result())); - else - return DescribeNetworkOptimizationsOutcome(outcome.error()); -} - -void SmartagClient::describeNetworkOptimizationsAsync(const DescribeNetworkOptimizationsRequest& request, const DescribeNetworkOptimizationsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeNetworkOptimizations(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeNetworkOptimizationsOutcomeCallable SmartagClient::describeNetworkOptimizationsCallable(const DescribeNetworkOptimizationsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeNetworkOptimizations(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribePbrInterfacesOutcome SmartagClient::describePbrInterfaces(const DescribePbrInterfacesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePbrInterfacesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePbrInterfacesOutcome(DescribePbrInterfacesResult(outcome.result())); - else - return DescribePbrInterfacesOutcome(outcome.error()); -} - -void SmartagClient::describePbrInterfacesAsync(const DescribePbrInterfacesRequest& request, const DescribePbrInterfacesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePbrInterfaces(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribePbrInterfacesOutcomeCallable SmartagClient::describePbrInterfacesCallable(const DescribePbrInterfacesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePbrInterfaces(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribePbrRulesOutcome SmartagClient::describePbrRules(const DescribePbrRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePbrRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePbrRulesOutcome(DescribePbrRulesResult(outcome.result())); - else - return DescribePbrRulesOutcome(outcome.error()); -} - -void SmartagClient::describePbrRulesAsync(const DescribePbrRulesRequest& request, const DescribePbrRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePbrRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribePbrRulesOutcomeCallable SmartagClient::describePbrRulesCallable(const DescribePbrRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePbrRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::DescribePolicyBasedRoutingsOutcome SmartagClient::describePolicyBasedRoutings(const DescribePolicyBasedRoutingsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePolicyBasedRoutingsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePolicyBasedRoutingsOutcome(DescribePolicyBasedRoutingsResult(outcome.result())); - else - return DescribePolicyBasedRoutingsOutcome(outcome.error()); -} - -void SmartagClient::describePolicyBasedRoutingsAsync(const DescribePolicyBasedRoutingsRequest& request, const DescribePolicyBasedRoutingsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePolicyBasedRoutings(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribePolicyBasedRoutingsOutcomeCallable SmartagClient::describePolicyBasedRoutingsCallable(const DescribePolicyBasedRoutingsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePolicyBasedRoutings(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::DescribeQosCarsOutcome SmartagClient::describeQosCars(const DescribeQosCarsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,42 +2391,6 @@ SmartagClient::DescribeSagDropTopNOutcomeCallable SmartagClient::describeSagDrop return task->get_future(); } -SmartagClient::DescribeSagECRouteBackupAttributeOutcome SmartagClient::describeSagECRouteBackupAttribute(const DescribeSagECRouteBackupAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSagECRouteBackupAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSagECRouteBackupAttributeOutcome(DescribeSagECRouteBackupAttributeResult(outcome.result())); - else - return DescribeSagECRouteBackupAttributeOutcome(outcome.error()); -} - -void SmartagClient::describeSagECRouteBackupAttributeAsync(const DescribeSagECRouteBackupAttributeRequest& request, const DescribeSagECRouteBackupAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSagECRouteBackupAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSagECRouteBackupAttributeOutcomeCallable SmartagClient::describeSagECRouteBackupAttributeCallable(const DescribeSagECRouteBackupAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSagECRouteBackupAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::DescribeSagExpressConnectInterfaceListOutcome SmartagClient::describeSagExpressConnectInterfaceList(const DescribeSagExpressConnectInterfaceListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3327,42 +2823,6 @@ SmartagClient::DescribeSagRouteProtocolOspfOutcomeCallable SmartagClient::descri return task->get_future(); } -SmartagClient::DescribeSagRouteableAddressOutcome SmartagClient::describeSagRouteableAddress(const DescribeSagRouteableAddressRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSagRouteableAddressOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSagRouteableAddressOutcome(DescribeSagRouteableAddressResult(outcome.result())); - else - return DescribeSagRouteableAddressOutcome(outcome.error()); -} - -void SmartagClient::describeSagRouteableAddressAsync(const DescribeSagRouteableAddressRequest& request, const DescribeSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSagRouteableAddress(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DescribeSagRouteableAddressOutcomeCallable SmartagClient::describeSagRouteableAddressCallable(const DescribeSagRouteableAddressRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSagRouteableAddress(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::DescribeSagStaticRouteListOutcome SmartagClient::describeSagStaticRouteList(const DescribeSagStaticRouteListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4011,42 +3471,6 @@ SmartagClient::DescribeUserOnlineClientsOutcomeCallable SmartagClient::describeU return task->get_future(); } -SmartagClient::DetachNetworkOptimizationSagsOutcome SmartagClient::detachNetworkOptimizationSags(const DetachNetworkOptimizationSagsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetachNetworkOptimizationSagsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetachNetworkOptimizationSagsOutcome(DetachNetworkOptimizationSagsResult(outcome.result())); - else - return DetachNetworkOptimizationSagsOutcome(outcome.error()); -} - -void SmartagClient::detachNetworkOptimizationSagsAsync(const DetachNetworkOptimizationSagsRequest& request, const DetachNetworkOptimizationSagsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detachNetworkOptimizationSags(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::DetachNetworkOptimizationSagsOutcomeCallable SmartagClient::detachNetworkOptimizationSagsCallable(const DetachNetworkOptimizationSagsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detachNetworkOptimizationSags(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::DiagnoseSmartAccessGatewayOutcome SmartagClient::diagnoseSmartAccessGateway(const DiagnoseSmartAccessGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5307,42 +4731,6 @@ SmartagClient::ModifyHealthCheckOutcomeCallable SmartagClient::modifyHealthCheck return task->get_future(); } -SmartagClient::ModifyNetworkOptimizationOutcome SmartagClient::modifyNetworkOptimization(const ModifyNetworkOptimizationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyNetworkOptimizationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyNetworkOptimizationOutcome(ModifyNetworkOptimizationResult(outcome.result())); - else - return ModifyNetworkOptimizationOutcome(outcome.error()); -} - -void SmartagClient::modifyNetworkOptimizationAsync(const ModifyNetworkOptimizationRequest& request, const ModifyNetworkOptimizationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyNetworkOptimization(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifyNetworkOptimizationOutcomeCallable SmartagClient::modifyNetworkOptimizationCallable(const ModifyNetworkOptimizationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyNetworkOptimization(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::ModifyQosOutcome SmartagClient::modifyQos(const ModifyQosRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5523,78 +4911,6 @@ SmartagClient::ModifySAGAdminPasswordOutcomeCallable SmartagClient::modifySAGAdm return task->get_future(); } -SmartagClient::ModifySagCidrOutcome SmartagClient::modifySagCidr(const ModifySagCidrRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySagCidrOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySagCidrOutcome(ModifySagCidrResult(outcome.result())); - else - return ModifySagCidrOutcome(outcome.error()); -} - -void SmartagClient::modifySagCidrAsync(const ModifySagCidrRequest& request, const ModifySagCidrAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySagCidr(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifySagCidrOutcomeCallable SmartagClient::modifySagCidrCallable(const ModifySagCidrRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySagCidr(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::ModifySagECRouteBackupOutcome SmartagClient::modifySagECRouteBackup(const ModifySagECRouteBackupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySagECRouteBackupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySagECRouteBackupOutcome(ModifySagECRouteBackupResult(outcome.result())); - else - return ModifySagECRouteBackupOutcome(outcome.error()); -} - -void SmartagClient::modifySagECRouteBackupAsync(const ModifySagECRouteBackupRequest& request, const ModifySagECRouteBackupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySagECRouteBackup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::ModifySagECRouteBackupOutcomeCallable SmartagClient::modifySagECRouteBackupCallable(const ModifySagECRouteBackupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySagECRouteBackup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::ModifySagExpressConnectInterfaceOutcome SmartagClient::modifySagExpressConnectInterface(const ModifySagExpressConnectInterfaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6279,42 +5595,6 @@ SmartagClient::MoveResourceGroupOutcomeCallable SmartagClient::moveResourceGroup return task->get_future(); } -SmartagClient::OrchestrateSagECRouteBackupOutcome SmartagClient::orchestrateSagECRouteBackup(const OrchestrateSagECRouteBackupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return OrchestrateSagECRouteBackupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return OrchestrateSagECRouteBackupOutcome(OrchestrateSagECRouteBackupResult(outcome.result())); - else - return OrchestrateSagECRouteBackupOutcome(outcome.error()); -} - -void SmartagClient::orchestrateSagECRouteBackupAsync(const OrchestrateSagECRouteBackupRequest& request, const OrchestrateSagECRouteBackupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, orchestrateSagECRouteBackup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::OrchestrateSagECRouteBackupOutcomeCallable SmartagClient::orchestrateSagECRouteBackupCallable(const OrchestrateSagECRouteBackupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->orchestrateSagECRouteBackup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::ProbeAccessPointNetworkQualityOutcome SmartagClient::probeAccessPointNetworkQuality(const ProbeAccessPointNetworkQualityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6567,42 +5847,6 @@ SmartagClient::RoamClientUserOutcomeCallable SmartagClient::roamClientUserCallab return task->get_future(); } -SmartagClient::SetSagRouteableAddressOutcome SmartagClient::setSagRouteableAddress(const SetSagRouteableAddressRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SetSagRouteableAddressOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SetSagRouteableAddressOutcome(SetSagRouteableAddressResult(outcome.result())); - else - return SetSagRouteableAddressOutcome(outcome.error()); -} - -void SmartagClient::setSagRouteableAddressAsync(const SetSagRouteableAddressRequest& request, const SetSagRouteableAddressAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, setSagRouteableAddress(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::SetSagRouteableAddressOutcomeCallable SmartagClient::setSagRouteableAddressCallable(const SetSagRouteableAddressRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->setSagRouteableAddress(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::SynchronizeSmartAGWebConfigOutcome SmartagClient::synchronizeSmartAGWebConfig(const SynchronizeSmartAGWebConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6747,78 +5991,6 @@ SmartagClient::UnbindVbrOutcomeCallable SmartagClient::unbindVbrCallable(const U return task->get_future(); } -SmartagClient::UnicomOrderConfirmOutcome SmartagClient::unicomOrderConfirm(const UnicomOrderConfirmRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnicomOrderConfirmOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnicomOrderConfirmOutcome(UnicomOrderConfirmResult(outcome.result())); - else - return UnicomOrderConfirmOutcome(outcome.error()); -} - -void SmartagClient::unicomOrderConfirmAsync(const UnicomOrderConfirmRequest& request, const UnicomOrderConfirmAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unicomOrderConfirm(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::UnicomOrderConfirmOutcomeCallable SmartagClient::unicomOrderConfirmCallable(const UnicomOrderConfirmRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unicomOrderConfirm(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SmartagClient::UnicomSignConfirmOutcome SmartagClient::unicomSignConfirm(const UnicomSignConfirmRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UnicomSignConfirmOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UnicomSignConfirmOutcome(UnicomSignConfirmResult(outcome.result())); - else - return UnicomSignConfirmOutcome(outcome.error()); -} - -void SmartagClient::unicomSignConfirmAsync(const UnicomSignConfirmRequest& request, const UnicomSignConfirmAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, unicomSignConfirm(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SmartagClient::UnicomSignConfirmOutcomeCallable SmartagClient::unicomSignConfirmCallable(const UnicomSignConfirmRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->unicomSignConfirm(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SmartagClient::UnlockSmartAccessGatewayOutcome SmartagClient::unlockSmartAccessGateway(const UnlockSmartAccessGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/smartag/src/model/ActivateSmartAccessGatewayRequest.cc b/smartag/src/model/ActivateSmartAccessGatewayRequest.cc index 5344080e3..f99a71e33 100644 --- a/smartag/src/model/ActivateSmartAccessGatewayRequest.cc +++ b/smartag/src/model/ActivateSmartAccessGatewayRequest.cc @@ -1,95 +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::Smartag::Model::ActivateSmartAccessGatewayRequest; - -ActivateSmartAccessGatewayRequest::ActivateSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ActivateSmartAccessGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -ActivateSmartAccessGatewayRequest::~ActivateSmartAccessGatewayRequest() -{} - -long ActivateSmartAccessGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ActivateSmartAccessGatewayRequest; + +ActivateSmartAccessGatewayRequest::ActivateSmartAccessGatewayRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ActivateSmartAccessGateway") { + setMethod(HttpRequest::Method::Post); } -void ActivateSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ActivateSmartAccessGatewayRequest::~ActivateSmartAccessGatewayRequest() {} + +long ActivateSmartAccessGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ActivateSmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; +void ActivateSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ActivateSmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ActivateSmartAccessGatewayRequest::getRegionId() const { + return regionId_; } -std::string ActivateSmartAccessGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ActivateSmartAccessGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ActivateSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ActivateSmartAccessGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ActivateSmartAccessGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ActivateSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ActivateSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ActivateSmartAccessGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long ActivateSmartAccessGatewayRequest::getOwnerId()const -{ - return ownerId_; +void ActivateSmartAccessGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ActivateSmartAccessGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ActivateSmartAccessGatewayRequest::getOwnerId() const { + return ownerId_; } -std::string ActivateSmartAccessGatewayRequest::getSmartAGId()const -{ - return smartAGId_; +void ActivateSmartAccessGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ActivateSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ActivateSmartAccessGatewayRequest::getSmartAGId() const { + return smartAGId_; +} + +void ActivateSmartAccessGatewayRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/ActiveFlowLogRequest.cc b/smartag/src/model/ActiveFlowLogRequest.cc index 1f7dd3953..5356d9f61 100644 --- a/smartag/src/model/ActiveFlowLogRequest.cc +++ b/smartag/src/model/ActiveFlowLogRequest.cc @@ -1,95 +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::Smartag::Model::ActiveFlowLogRequest; - -ActiveFlowLogRequest::ActiveFlowLogRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ActiveFlowLog") -{ - setMethod(HttpRequest::Method::Post); -} - -ActiveFlowLogRequest::~ActiveFlowLogRequest() -{} - -long ActiveFlowLogRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ActiveFlowLogRequest; + +ActiveFlowLogRequest::ActiveFlowLogRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ActiveFlowLog") { + setMethod(HttpRequest::Method::Post); } -void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ActiveFlowLogRequest::~ActiveFlowLogRequest() {} + +long ActiveFlowLogRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ActiveFlowLogRequest::getRegionId()const -{ - return regionId_; +void ActiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ActiveFlowLogRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ActiveFlowLogRequest::getRegionId() const { + return regionId_; } -std::string ActiveFlowLogRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ActiveFlowLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ActiveFlowLogRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ActiveFlowLogRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ActiveFlowLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ActiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ActiveFlowLogRequest::getOwnerAccount() const { + return ownerAccount_; } -long ActiveFlowLogRequest::getOwnerId()const -{ - return ownerId_; +void ActiveFlowLogRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ActiveFlowLogRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ActiveFlowLogRequest::getOwnerId() const { + return ownerId_; } -std::string ActiveFlowLogRequest::getFlowLogId()const -{ - return flowLogId_; +void ActiveFlowLogRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ActiveFlowLogRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +std::string ActiveFlowLogRequest::getFlowLogId() const { + return flowLogId_; +} + +void ActiveFlowLogRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } diff --git a/smartag/src/model/AddACLRuleRequest.cc b/smartag/src/model/AddACLRuleRequest.cc index 93692383e..5432e64d7 100644 --- a/smartag/src/model/AddACLRuleRequest.cc +++ b/smartag/src/model/AddACLRuleRequest.cc @@ -1,242 +1,196 @@ /* * 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::Smartag::Model::AddACLRuleRequest; - -AddACLRuleRequest::AddACLRuleRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AddACLRule") -{ - setMethod(HttpRequest::Method::Post); -} - -AddACLRuleRequest::~AddACLRuleRequest() -{} - -std::vector AddACLRuleRequest::getDpiGroupIds()const -{ - return dpiGroupIds_; + */ + +#include + +using AlibabaCloud::Smartag::Model::AddACLRuleRequest; + +AddACLRuleRequest::AddACLRuleRequest() + : RpcServiceRequest("smartag", "2018-03-13", "AddACLRule") { + setMethod(HttpRequest::Method::Post); } -void AddACLRuleRequest::setDpiGroupIds(const std::vector& dpiGroupIds) -{ - dpiGroupIds_ = dpiGroupIds; - for(int dep1 = 0; dep1!= dpiGroupIds.size(); dep1++) { - setParameter("DpiGroupIds."+ std::to_string(dep1), dpiGroupIds.at(dep1)); - } +AddACLRuleRequest::~AddACLRuleRequest() {} + +std::vector AddACLRuleRequest::getDpiGroupIds() const { + return dpiGroupIds_; } -long AddACLRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void AddACLRuleRequest::setDpiGroupIds(const std::vector &dpiGroupIds) { + dpiGroupIds_ = dpiGroupIds; } -void AddACLRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long AddACLRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddACLRuleRequest::getSourcePortRange()const -{ - return sourcePortRange_; +void AddACLRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddACLRuleRequest::setSourcePortRange(const std::string& sourcePortRange) -{ - sourcePortRange_ = sourcePortRange; - setParameter("SourcePortRange", sourcePortRange); +std::string AddACLRuleRequest::getSourcePortRange() const { + return sourcePortRange_; } -std::string AddACLRuleRequest::getSourceCidr()const -{ - return sourceCidr_; +void AddACLRuleRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); } -void AddACLRuleRequest::setSourceCidr(const std::string& sourceCidr) -{ - sourceCidr_ = sourceCidr; - setParameter("SourceCidr", sourceCidr); +std::string AddACLRuleRequest::getSourceCidr() const { + return sourceCidr_; } -std::string AddACLRuleRequest::getDescription()const -{ - return description_; +void AddACLRuleRequest::setSourceCidr(const std::string &sourceCidr) { + sourceCidr_ = sourceCidr; + setParameter(std::string("SourceCidr"), sourceCidr); } -void AddACLRuleRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string AddACLRuleRequest::getDescription() const { + return description_; } -std::string AddACLRuleRequest::getType()const -{ - return type_; +void AddACLRuleRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void AddACLRuleRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string AddACLRuleRequest::getType() const { + return type_; } -std::string AddACLRuleRequest::getDestCidr()const -{ - return destCidr_; +void AddACLRuleRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void AddACLRuleRequest::setDestCidr(const std::string& destCidr) -{ - destCidr_ = destCidr; - setParameter("DestCidr", destCidr); +std::string AddACLRuleRequest::getDestCidr() const { + return destCidr_; } -std::vector AddACLRuleRequest::getDpiSignatureIds()const -{ - return dpiSignatureIds_; +void AddACLRuleRequest::setDestCidr(const std::string &destCidr) { + destCidr_ = destCidr; + setParameter(std::string("DestCidr"), destCidr); } -void AddACLRuleRequest::setDpiSignatureIds(const std::vector& dpiSignatureIds) -{ - dpiSignatureIds_ = dpiSignatureIds; - for(int dep1 = 0; dep1!= dpiSignatureIds.size(); dep1++) { - setParameter("DpiSignatureIds."+ std::to_string(dep1), dpiSignatureIds.at(dep1)); - } +std::vector AddACLRuleRequest::getDpiSignatureIds() const { + return dpiSignatureIds_; } -std::string AddACLRuleRequest::getRegionId()const -{ - return regionId_; +void AddACLRuleRequest::setDpiSignatureIds(const std::vector &dpiSignatureIds) { + dpiSignatureIds_ = dpiSignatureIds; } -void AddACLRuleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddACLRuleRequest::getRegionId() const { + return regionId_; } -std::string AddACLRuleRequest::getDirection()const -{ - return direction_; +void AddACLRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AddACLRuleRequest::setDirection(const std::string& direction) -{ - direction_ = direction; - setParameter("Direction", direction); +std::string AddACLRuleRequest::getDirection() const { + return direction_; } -std::string AddACLRuleRequest::getPolicy()const -{ - return policy_; +void AddACLRuleRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } -void AddACLRuleRequest::setPolicy(const std::string& policy) -{ - policy_ = policy; - setParameter("Policy", policy); +std::string AddACLRuleRequest::getPolicy() const { + return policy_; } -std::string AddACLRuleRequest::getAclId()const -{ - return aclId_; +void AddACLRuleRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); } -void AddACLRuleRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string AddACLRuleRequest::getAclId() const { + return aclId_; } -std::string AddACLRuleRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddACLRuleRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void AddACLRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddACLRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddACLRuleRequest::getIpProtocol()const -{ - return ipProtocol_; +void AddACLRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddACLRuleRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string AddACLRuleRequest::getIpProtocol() const { + return ipProtocol_; } -std::string AddACLRuleRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddACLRuleRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void AddACLRuleRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddACLRuleRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddACLRuleRequest::getOwnerId()const -{ - return ownerId_; +void AddACLRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddACLRuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddACLRuleRequest::getOwnerId() const { + return ownerId_; } -int AddACLRuleRequest::getPriority()const -{ - return priority_; +void AddACLRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddACLRuleRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int AddACLRuleRequest::getPriority() const { + return priority_; } -std::string AddACLRuleRequest::getDestPortRange()const -{ - return destPortRange_; +void AddACLRuleRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void AddACLRuleRequest::setDestPortRange(const std::string& destPortRange) -{ - destPortRange_ = destPortRange; - setParameter("DestPortRange", destPortRange); +std::string AddACLRuleRequest::getDestPortRange() const { + return destPortRange_; } -std::string AddACLRuleRequest::getName()const -{ - return name_; +void AddACLRuleRequest::setDestPortRange(const std::string &destPortRange) { + destPortRange_ = destPortRange; + setParameter(std::string("DestPortRange"), destPortRange); } -void AddACLRuleRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddACLRuleRequest::getName() const { + return name_; +} + +void AddACLRuleRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/AddACLRuleResult.cc b/smartag/src/model/AddACLRuleResult.cc index fa5fbeebc..35ed859da 100644 --- a/smartag/src/model/AddACLRuleResult.cc +++ b/smartag/src/model/AddACLRuleResult.cc @@ -39,12 +39,12 @@ void AddACLRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; - for (const auto &item : allDpiSignatureIds) - dpiSignatureIds_.push_back(item.asString()); auto allDpiGroupIds = value["DpiGroupIds"]["DpiGroupId"]; for (const auto &item : allDpiGroupIds) dpiGroupIds_.push_back(item.asString()); + auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; + for (const auto &item : allDpiSignatureIds) + dpiSignatureIds_.push_back(item.asString()); if(!value["Policy"].isNull()) policy_ = value["Policy"].asString(); if(!value["Description"].isNull()) @@ -65,10 +65,10 @@ void AddACLRuleResult::parse(const std::string &payload) direction_ = value["Direction"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); - if(!value["GmtCreate"].isNull()) - gmtCreate_ = std::stol(value["GmtCreate"].asString()); if(!value["Type"].isNull()) type_ = value["Type"].asString(); + if(!value["GmtCreate"].isNull()) + gmtCreate_ = std::stol(value["GmtCreate"].asString()); if(!value["DestCidr"].isNull()) destCidr_ = value["DestCidr"].asString(); if(!value["IpProtocol"].isNull()) @@ -131,16 +131,16 @@ std::string AddACLRuleResult::getName()const return name_; } -long AddACLRuleResult::getGmtCreate()const -{ - return gmtCreate_; -} - std::string AddACLRuleResult::getType()const { return type_; } +long AddACLRuleResult::getGmtCreate()const +{ + return gmtCreate_; +} + std::string AddACLRuleResult::getDestCidr()const { return destCidr_; diff --git a/smartag/src/model/AddDnatEntryRequest.cc b/smartag/src/model/AddDnatEntryRequest.cc index 071676eaf..af18f3cb7 100644 --- a/smartag/src/model/AddDnatEntryRequest.cc +++ b/smartag/src/model/AddDnatEntryRequest.cc @@ -1,161 +1,135 @@ /* * 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::Smartag::Model::AddDnatEntryRequest; - -AddDnatEntryRequest::AddDnatEntryRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AddDnatEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -AddDnatEntryRequest::~AddDnatEntryRequest() -{} - -long AddDnatEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::AddDnatEntryRequest; + +AddDnatEntryRequest::AddDnatEntryRequest() + : RpcServiceRequest("smartag", "2018-03-13", "AddDnatEntry") { + setMethod(HttpRequest::Method::Post); } -void AddDnatEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddDnatEntryRequest::~AddDnatEntryRequest() {} + +long AddDnatEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddDnatEntryRequest::getType()const -{ - return type_; +void AddDnatEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddDnatEntryRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string AddDnatEntryRequest::getType() const { + return type_; } -std::string AddDnatEntryRequest::getInternalIp()const -{ - return internalIp_; +void AddDnatEntryRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void AddDnatEntryRequest::setInternalIp(const std::string& internalIp) -{ - internalIp_ = internalIp; - setParameter("InternalIp", internalIp); +std::string AddDnatEntryRequest::getInternalIp() const { + return internalIp_; } -std::string AddDnatEntryRequest::getRegionId()const -{ - return regionId_; +void AddDnatEntryRequest::setInternalIp(const std::string &internalIp) { + internalIp_ = internalIp; + setParameter(std::string("InternalIp"), internalIp); } -void AddDnatEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddDnatEntryRequest::getRegionId() const { + return regionId_; } -std::string AddDnatEntryRequest::getExternalIp()const -{ - return externalIp_; +void AddDnatEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AddDnatEntryRequest::setExternalIp(const std::string& externalIp) -{ - externalIp_ = externalIp; - setParameter("ExternalIp", externalIp); +std::string AddDnatEntryRequest::getExternalIp() const { + return externalIp_; } -std::string AddDnatEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddDnatEntryRequest::setExternalIp(const std::string &externalIp) { + externalIp_ = externalIp; + setParameter(std::string("ExternalIp"), externalIp); } -void AddDnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddDnatEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddDnatEntryRequest::getIpProtocol()const -{ - return ipProtocol_; +void AddDnatEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddDnatEntryRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string AddDnatEntryRequest::getIpProtocol() const { + return ipProtocol_; } -std::string AddDnatEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddDnatEntryRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void AddDnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddDnatEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddDnatEntryRequest::getOwnerId()const -{ - return ownerId_; +void AddDnatEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddDnatEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddDnatEntryRequest::getOwnerId() const { + return ownerId_; } -std::string AddDnatEntryRequest::getSagId()const -{ - return sagId_; +void AddDnatEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddDnatEntryRequest::setSagId(const std::string& sagId) -{ - sagId_ = sagId; - setParameter("SagId", sagId); +std::string AddDnatEntryRequest::getSagId() const { + return sagId_; } -std::string AddDnatEntryRequest::getInternalPort()const -{ - return internalPort_; +void AddDnatEntryRequest::setSagId(const std::string &sagId) { + sagId_ = sagId; + setParameter(std::string("SagId"), sagId); } -void AddDnatEntryRequest::setInternalPort(const std::string& internalPort) -{ - internalPort_ = internalPort; - setParameter("InternalPort", internalPort); +std::string AddDnatEntryRequest::getInternalPort() const { + return internalPort_; } -std::string AddDnatEntryRequest::getExternalPort()const -{ - return externalPort_; +void AddDnatEntryRequest::setInternalPort(const std::string &internalPort) { + internalPort_ = internalPort; + setParameter(std::string("InternalPort"), internalPort); } -void AddDnatEntryRequest::setExternalPort(const std::string& externalPort) -{ - externalPort_ = externalPort; - setParameter("ExternalPort", externalPort); +std::string AddDnatEntryRequest::getExternalPort() const { + return externalPort_; +} + +void AddDnatEntryRequest::setExternalPort(const std::string &externalPort) { + externalPort_ = externalPort; + setParameter(std::string("ExternalPort"), externalPort); } diff --git a/smartag/src/model/AddNetworkOptimizationSettingRequest.cc b/smartag/src/model/AddNetworkOptimizationSettingRequest.cc deleted file mode 100644 index b80fd24b1..000000000 --- a/smartag/src/model/AddNetworkOptimizationSettingRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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::Smartag::Model::AddNetworkOptimizationSettingRequest; - -AddNetworkOptimizationSettingRequest::AddNetworkOptimizationSettingRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AddNetworkOptimizationSetting") -{ - setMethod(HttpRequest::Method::Post); -} - -AddNetworkOptimizationSettingRequest::~AddNetworkOptimizationSettingRequest() -{} - -long AddNetworkOptimizationSettingRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void AddNetworkOptimizationSettingRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string AddNetworkOptimizationSettingRequest::getType()const -{ - return type_; -} - -void AddNetworkOptimizationSettingRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); -} - -std::string AddNetworkOptimizationSettingRequest::getRegionId()const -{ - return regionId_; -} - -void AddNetworkOptimizationSettingRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string AddNetworkOptimizationSettingRequest::getNetworkOptId()const -{ - return networkOptId_; -} - -void AddNetworkOptimizationSettingRequest::setNetworkOptId(const std::string& networkOptId) -{ - networkOptId_ = networkOptId; - setParameter("NetworkOptId", networkOptId); -} - -std::string AddNetworkOptimizationSettingRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void AddNetworkOptimizationSettingRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string AddNetworkOptimizationSettingRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void AddNetworkOptimizationSettingRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long AddNetworkOptimizationSettingRequest::getOwnerId()const -{ - return ownerId_; -} - -void AddNetworkOptimizationSettingRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string AddNetworkOptimizationSettingRequest::getDomain()const -{ - return domain_; -} - -void AddNetworkOptimizationSettingRequest::setDomain(const std::string& domain) -{ - domain_ = domain; - setParameter("Domain", domain); -} - diff --git a/smartag/src/model/AddNetworkOptimizationSettingResult.cc b/smartag/src/model/AddNetworkOptimizationSettingResult.cc deleted file mode 100644 index c1b7357bc..000000000 --- a/smartag/src/model/AddNetworkOptimizationSettingResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -AddNetworkOptimizationSettingResult::AddNetworkOptimizationSettingResult() : - ServiceResult() -{} - -AddNetworkOptimizationSettingResult::AddNetworkOptimizationSettingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddNetworkOptimizationSettingResult::~AddNetworkOptimizationSettingResult() -{} - -void AddNetworkOptimizationSettingResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/AddSagCidrRequest.cc b/smartag/src/model/AddSagCidrRequest.cc deleted file mode 100644 index a676672c3..000000000 --- a/smartag/src/model/AddSagCidrRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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::Smartag::Model::AddSagCidrRequest; - -AddSagCidrRequest::AddSagCidrRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AddSagCidr") -{ - setMethod(HttpRequest::Method::Post); -} - -AddSagCidrRequest::~AddSagCidrRequest() -{} - -long AddSagCidrRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void AddSagCidrRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string AddSagCidrRequest::getRegionId()const -{ - return regionId_; -} - -void AddSagCidrRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string AddSagCidrRequest::getCidr()const -{ - return cidr_; -} - -void AddSagCidrRequest::setCidr(const std::string& cidr) -{ - cidr_ = cidr; - setParameter("Cidr", cidr); -} - -std::string AddSagCidrRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void AddSagCidrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string AddSagCidrRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void AddSagCidrRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long AddSagCidrRequest::getOwnerId()const -{ - return ownerId_; -} - -void AddSagCidrRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -bool AddSagCidrRequest::getEnableBackup()const -{ - return enableBackup_; -} - -void AddSagCidrRequest::setEnableBackup(bool enableBackup) -{ - enableBackup_ = enableBackup; - setParameter("EnableBackup", enableBackup ? "true" : "false"); -} - -std::string AddSagCidrRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void AddSagCidrRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); -} - diff --git a/smartag/src/model/AddSagCidrResult.cc b/smartag/src/model/AddSagCidrResult.cc deleted file mode 100644 index 5a09f0188..000000000 --- a/smartag/src/model/AddSagCidrResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -AddSagCidrResult::AddSagCidrResult() : - ServiceResult() -{} - -AddSagCidrResult::AddSagCidrResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddSagCidrResult::~AddSagCidrResult() -{} - -void AddSagCidrResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/AddSnatEntryRequest.cc b/smartag/src/model/AddSnatEntryRequest.cc index 536501a8d..8ad13f462 100644 --- a/smartag/src/model/AddSnatEntryRequest.cc +++ b/smartag/src/model/AddSnatEntryRequest.cc @@ -1,117 +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::Smartag::Model::AddSnatEntryRequest; - -AddSnatEntryRequest::AddSnatEntryRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AddSnatEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -AddSnatEntryRequest::~AddSnatEntryRequest() -{} - -long AddSnatEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::AddSnatEntryRequest; + +AddSnatEntryRequest::AddSnatEntryRequest() + : RpcServiceRequest("smartag", "2018-03-13", "AddSnatEntry") { + setMethod(HttpRequest::Method::Post); } -void AddSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddSnatEntryRequest::~AddSnatEntryRequest() {} + +long AddSnatEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddSnatEntryRequest::getSnatIp()const -{ - return snatIp_; +void AddSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddSnatEntryRequest::setSnatIp(const std::string& snatIp) -{ - snatIp_ = snatIp; - setParameter("SnatIp", snatIp); +std::string AddSnatEntryRequest::getSnatIp() const { + return snatIp_; } -std::string AddSnatEntryRequest::getRegionId()const -{ - return regionId_; +void AddSnatEntryRequest::setSnatIp(const std::string &snatIp) { + snatIp_ = snatIp; + setParameter(std::string("SnatIp"), snatIp); } -void AddSnatEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddSnatEntryRequest::getRegionId() const { + return regionId_; } -std::string AddSnatEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddSnatEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AddSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddSnatEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddSnatEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddSnatEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddSnatEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddSnatEntryRequest::getOwnerId()const -{ - return ownerId_; +void AddSnatEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddSnatEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddSnatEntryRequest::getOwnerId() const { + return ownerId_; } -std::string AddSnatEntryRequest::getCidrBlock()const -{ - return cidrBlock_; +void AddSnatEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddSnatEntryRequest::setCidrBlock(const std::string& cidrBlock) -{ - cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); +std::string AddSnatEntryRequest::getCidrBlock() const { + return cidrBlock_; } -std::string AddSnatEntryRequest::getSmartAGId()const -{ - return smartAGId_; +void AddSnatEntryRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); } -void AddSnatEntryRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string AddSnatEntryRequest::getSmartAGId() const { + return smartAGId_; +} + +void AddSnatEntryRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/AssociateACLRequest.cc b/smartag/src/model/AssociateACLRequest.cc index 542a21f56..f550a0c43 100644 --- a/smartag/src/model/AssociateACLRequest.cc +++ b/smartag/src/model/AssociateACLRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::AssociateACLRequest; - -AssociateACLRequest::AssociateACLRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AssociateACL") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateACLRequest::~AssociateACLRequest() -{} - -long AssociateACLRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::AssociateACLRequest; + +AssociateACLRequest::AssociateACLRequest() + : RpcServiceRequest("smartag", "2018-03-13", "AssociateACL") { + setMethod(HttpRequest::Method::Post); } -void AssociateACLRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateACLRequest::~AssociateACLRequest() {} + +long AssociateACLRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociateACLRequest::getRegionId()const -{ - return regionId_; +void AssociateACLRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateACLRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateACLRequest::getRegionId() const { + return regionId_; } -std::string AssociateACLRequest::getAclId()const -{ - return aclId_; +void AssociateACLRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociateACLRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string AssociateACLRequest::getAclId() const { + return aclId_; } -std::string AssociateACLRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociateACLRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void AssociateACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssociateACLRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AssociateACLRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssociateACLRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociateACLRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssociateACLRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssociateACLRequest::getOwnerId()const -{ - return ownerId_; +void AssociateACLRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssociateACLRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssociateACLRequest::getOwnerId() const { + return ownerId_; } -std::string AssociateACLRequest::getSmartAGId()const -{ - return smartAGId_; +void AssociateACLRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssociateACLRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string AssociateACLRequest::getSmartAGId() const { + return smartAGId_; +} + +void AssociateACLRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/AssociateFlowLogRequest.cc b/smartag/src/model/AssociateFlowLogRequest.cc index 9baf80dde..b2ed803a8 100644 --- a/smartag/src/model/AssociateFlowLogRequest.cc +++ b/smartag/src/model/AssociateFlowLogRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::AssociateFlowLogRequest; - -AssociateFlowLogRequest::AssociateFlowLogRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AssociateFlowLog") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateFlowLogRequest::~AssociateFlowLogRequest() -{} - -long AssociateFlowLogRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::AssociateFlowLogRequest; + +AssociateFlowLogRequest::AssociateFlowLogRequest() + : RpcServiceRequest("smartag", "2018-03-13", "AssociateFlowLog") { + setMethod(HttpRequest::Method::Post); } -void AssociateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateFlowLogRequest::~AssociateFlowLogRequest() {} + +long AssociateFlowLogRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociateFlowLogRequest::getRegionId()const -{ - return regionId_; +void AssociateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateFlowLogRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateFlowLogRequest::getRegionId() const { + return regionId_; } -std::string AssociateFlowLogRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociateFlowLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssociateFlowLogRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AssociateFlowLogRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssociateFlowLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssociateFlowLogRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssociateFlowLogRequest::getOwnerId()const -{ - return ownerId_; +void AssociateFlowLogRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssociateFlowLogRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssociateFlowLogRequest::getOwnerId() const { + return ownerId_; } -std::string AssociateFlowLogRequest::getSmartAGId()const -{ - return smartAGId_; +void AssociateFlowLogRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssociateFlowLogRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string AssociateFlowLogRequest::getSmartAGId() const { + return smartAGId_; } -std::string AssociateFlowLogRequest::getFlowLogId()const -{ - return flowLogId_; +void AssociateFlowLogRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void AssociateFlowLogRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +std::string AssociateFlowLogRequest::getFlowLogId() const { + return flowLogId_; +} + +void AssociateFlowLogRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } diff --git a/smartag/src/model/AssociateQosRequest.cc b/smartag/src/model/AssociateQosRequest.cc index e6f366adc..4cb565f30 100644 --- a/smartag/src/model/AssociateQosRequest.cc +++ b/smartag/src/model/AssociateQosRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::AssociateQosRequest; - -AssociateQosRequest::AssociateQosRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AssociateQos") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateQosRequest::~AssociateQosRequest() -{} - -long AssociateQosRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::AssociateQosRequest; + +AssociateQosRequest::AssociateQosRequest() + : RpcServiceRequest("smartag", "2018-03-13", "AssociateQos") { + setMethod(HttpRequest::Method::Post); } -void AssociateQosRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateQosRequest::~AssociateQosRequest() {} + +long AssociateQosRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociateQosRequest::getRegionId()const -{ - return regionId_; +void AssociateQosRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateQosRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateQosRequest::getRegionId() const { + return regionId_; } -std::string AssociateQosRequest::getQosId()const -{ - return qosId_; +void AssociateQosRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociateQosRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string AssociateQosRequest::getQosId() const { + return qosId_; } -std::string AssociateQosRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociateQosRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void AssociateQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssociateQosRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AssociateQosRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssociateQosRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociateQosRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssociateQosRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssociateQosRequest::getOwnerId()const -{ - return ownerId_; +void AssociateQosRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssociateQosRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssociateQosRequest::getOwnerId() const { + return ownerId_; } -std::string AssociateQosRequest::getSmartAGId()const -{ - return smartAGId_; +void AssociateQosRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssociateQosRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string AssociateQosRequest::getSmartAGId() const { + return smartAGId_; +} + +void AssociateQosRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/AttachNetworkOptimizationSagsRequest.cc b/smartag/src/model/AttachNetworkOptimizationSagsRequest.cc deleted file mode 100644 index 2e5c3854f..000000000 --- a/smartag/src/model/AttachNetworkOptimizationSagsRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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::Smartag::Model::AttachNetworkOptimizationSagsRequest; - -AttachNetworkOptimizationSagsRequest::AttachNetworkOptimizationSagsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "AttachNetworkOptimizationSags") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachNetworkOptimizationSagsRequest::~AttachNetworkOptimizationSagsRequest() -{} - -long AttachNetworkOptimizationSagsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void AttachNetworkOptimizationSagsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string AttachNetworkOptimizationSagsRequest::getRegionId()const -{ - return regionId_; -} - -void AttachNetworkOptimizationSagsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string AttachNetworkOptimizationSagsRequest::getNetworkOptId()const -{ - return networkOptId_; -} - -void AttachNetworkOptimizationSagsRequest::setNetworkOptId(const std::string& networkOptId) -{ - networkOptId_ = networkOptId; - setParameter("NetworkOptId", networkOptId); -} - -std::vector AttachNetworkOptimizationSagsRequest::getSmartAGIds()const -{ - return smartAGIds_; -} - -void AttachNetworkOptimizationSagsRequest::setSmartAGIds(const std::vector& smartAGIds) -{ - smartAGIds_ = smartAGIds; - for(int dep1 = 0; dep1!= smartAGIds.size(); dep1++) { - setParameter("SmartAGIds."+ std::to_string(dep1), smartAGIds.at(dep1)); - } -} - -std::string AttachNetworkOptimizationSagsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void AttachNetworkOptimizationSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string AttachNetworkOptimizationSagsRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void AttachNetworkOptimizationSagsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long AttachNetworkOptimizationSagsRequest::getOwnerId()const -{ - return ownerId_; -} - -void AttachNetworkOptimizationSagsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/AttachNetworkOptimizationSagsResult.cc b/smartag/src/model/AttachNetworkOptimizationSagsResult.cc deleted file mode 100644 index ac384fe79..000000000 --- a/smartag/src/model/AttachNetworkOptimizationSagsResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -AttachNetworkOptimizationSagsResult::AttachNetworkOptimizationSagsResult() : - ServiceResult() -{} - -AttachNetworkOptimizationSagsResult::AttachNetworkOptimizationSagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AttachNetworkOptimizationSagsResult::~AttachNetworkOptimizationSagsResult() -{} - -void AttachNetworkOptimizationSagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/BindSerialNumberRequest.cc b/smartag/src/model/BindSerialNumberRequest.cc index c2584494b..9054be435 100644 --- a/smartag/src/model/BindSerialNumberRequest.cc +++ b/smartag/src/model/BindSerialNumberRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::BindSerialNumberRequest; - -BindSerialNumberRequest::BindSerialNumberRequest() : - RpcServiceRequest("smartag", "2018-03-13", "BindSerialNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -BindSerialNumberRequest::~BindSerialNumberRequest() -{} - -long BindSerialNumberRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::BindSerialNumberRequest; + +BindSerialNumberRequest::BindSerialNumberRequest() + : RpcServiceRequest("smartag", "2018-03-13", "BindSerialNumber") { + setMethod(HttpRequest::Method::Post); } -void BindSerialNumberRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +BindSerialNumberRequest::~BindSerialNumberRequest() {} + +long BindSerialNumberRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string BindSerialNumberRequest::getRegionId()const -{ - return regionId_; +void BindSerialNumberRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void BindSerialNumberRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string BindSerialNumberRequest::getRegionId() const { + return regionId_; } -std::string BindSerialNumberRequest::getSerialNumber()const -{ - return serialNumber_; +void BindSerialNumberRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void BindSerialNumberRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +std::string BindSerialNumberRequest::getSerialNumber() const { + return serialNumber_; } -std::string BindSerialNumberRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void BindSerialNumberRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } -void BindSerialNumberRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string BindSerialNumberRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string BindSerialNumberRequest::getOwnerAccount()const -{ - return ownerAccount_; +void BindSerialNumberRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void BindSerialNumberRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string BindSerialNumberRequest::getOwnerAccount() const { + return ownerAccount_; } -long BindSerialNumberRequest::getOwnerId()const -{ - return ownerId_; +void BindSerialNumberRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void BindSerialNumberRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long BindSerialNumberRequest::getOwnerId() const { + return ownerId_; } -std::string BindSerialNumberRequest::getSmartAGId()const -{ - return smartAGId_; +void BindSerialNumberRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void BindSerialNumberRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string BindSerialNumberRequest::getSmartAGId() const { + return smartAGId_; +} + +void BindSerialNumberRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/BindSmartAccessGatewayRequest.cc b/smartag/src/model/BindSmartAccessGatewayRequest.cc index 520131dc8..cb49a4af7 100644 --- a/smartag/src/model/BindSmartAccessGatewayRequest.cc +++ b/smartag/src/model/BindSmartAccessGatewayRequest.cc @@ -1,117 +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::Smartag::Model::BindSmartAccessGatewayRequest; - -BindSmartAccessGatewayRequest::BindSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "BindSmartAccessGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -BindSmartAccessGatewayRequest::~BindSmartAccessGatewayRequest() -{} - -long BindSmartAccessGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::BindSmartAccessGatewayRequest; + +BindSmartAccessGatewayRequest::BindSmartAccessGatewayRequest() + : RpcServiceRequest("smartag", "2018-03-13", "BindSmartAccessGateway") { + setMethod(HttpRequest::Method::Post); } -void BindSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +BindSmartAccessGatewayRequest::~BindSmartAccessGatewayRequest() {} + +long BindSmartAccessGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string BindSmartAccessGatewayRequest::getCcnId()const -{ - return ccnId_; +void BindSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void BindSmartAccessGatewayRequest::setCcnId(const std::string& ccnId) -{ - ccnId_ = ccnId; - setParameter("CcnId", ccnId); +std::string BindSmartAccessGatewayRequest::getCcnId() const { + return ccnId_; } -std::string BindSmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; +void BindSmartAccessGatewayRequest::setCcnId(const std::string &ccnId) { + ccnId_ = ccnId; + setParameter(std::string("CcnId"), ccnId); } -void BindSmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string BindSmartAccessGatewayRequest::getRegionId() const { + return regionId_; } -std::string BindSmartAccessGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void BindSmartAccessGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void BindSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string BindSmartAccessGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string BindSmartAccessGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void BindSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void BindSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string BindSmartAccessGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long BindSmartAccessGatewayRequest::getOwnerId()const -{ - return ownerId_; +void BindSmartAccessGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void BindSmartAccessGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long BindSmartAccessGatewayRequest::getOwnerId() const { + return ownerId_; } -long BindSmartAccessGatewayRequest::getSmartAGUid()const -{ - return smartAGUid_; +void BindSmartAccessGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void BindSmartAccessGatewayRequest::setSmartAGUid(long smartAGUid) -{ - smartAGUid_ = smartAGUid; - setParameter("SmartAGUid", std::to_string(smartAGUid)); +long BindSmartAccessGatewayRequest::getSmartAGUid() const { + return smartAGUid_; } -std::string BindSmartAccessGatewayRequest::getSmartAGId()const -{ - return smartAGId_; +void BindSmartAccessGatewayRequest::setSmartAGUid(long smartAGUid) { + smartAGUid_ = smartAGUid; + setParameter(std::string("SmartAGUid"), std::to_string(smartAGUid)); } -void BindSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string BindSmartAccessGatewayRequest::getSmartAGId() const { + return smartAGId_; +} + +void BindSmartAccessGatewayRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/BindVbrRequest.cc b/smartag/src/model/BindVbrRequest.cc index af70262c9..fd98c463b 100644 --- a/smartag/src/model/BindVbrRequest.cc +++ b/smartag/src/model/BindVbrRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::BindVbrRequest; - -BindVbrRequest::BindVbrRequest() : - RpcServiceRequest("smartag", "2018-03-13", "BindVbr") -{ - setMethod(HttpRequest::Method::Post); -} - -BindVbrRequest::~BindVbrRequest() -{} - -long BindVbrRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::BindVbrRequest; + +BindVbrRequest::BindVbrRequest() + : RpcServiceRequest("smartag", "2018-03-13", "BindVbr") { + setMethod(HttpRequest::Method::Post); } -void BindVbrRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +BindVbrRequest::~BindVbrRequest() {} + +long BindVbrRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string BindVbrRequest::getVbrId()const -{ - return vbrId_; +void BindVbrRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void BindVbrRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string BindVbrRequest::getVbrId() const { + return vbrId_; } -std::string BindVbrRequest::getVbrRegionId()const -{ - return vbrRegionId_; +void BindVbrRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void BindVbrRequest::setVbrRegionId(const std::string& vbrRegionId) -{ - vbrRegionId_ = vbrRegionId; - setParameter("VbrRegionId", vbrRegionId); +std::string BindVbrRequest::getVbrRegionId() const { + return vbrRegionId_; } -std::string BindVbrRequest::getRegionId()const -{ - return regionId_; +void BindVbrRequest::setVbrRegionId(const std::string &vbrRegionId) { + vbrRegionId_ = vbrRegionId; + setParameter(std::string("VbrRegionId"), vbrRegionId); } -void BindVbrRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string BindVbrRequest::getRegionId() const { + return regionId_; } -std::string BindVbrRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void BindVbrRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void BindVbrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string BindVbrRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string BindVbrRequest::getOwnerAccount()const -{ - return ownerAccount_; +void BindVbrRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void BindVbrRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string BindVbrRequest::getOwnerAccount() const { + return ownerAccount_; } -long BindVbrRequest::getOwnerId()const -{ - return ownerId_; +void BindVbrRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void BindVbrRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long BindVbrRequest::getOwnerId() const { + return ownerId_; } -long BindVbrRequest::getSmartAGUid()const -{ - return smartAGUid_; +void BindVbrRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void BindVbrRequest::setSmartAGUid(long smartAGUid) -{ - smartAGUid_ = smartAGUid; - setParameter("SmartAGUid", std::to_string(smartAGUid)); +long BindVbrRequest::getSmartAGUid() const { + return smartAGUid_; } -std::string BindVbrRequest::getSmartAGId()const -{ - return smartAGId_; +void BindVbrRequest::setSmartAGUid(long smartAGUid) { + smartAGUid_ = smartAGUid; + setParameter(std::string("SmartAGUid"), std::to_string(smartAGUid)); } -void BindVbrRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string BindVbrRequest::getSmartAGId() const { + return smartAGId_; +} + +void BindVbrRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/ClearSagCipherRequest.cc b/smartag/src/model/ClearSagCipherRequest.cc index c79af5bf0..ca826e7b4 100644 --- a/smartag/src/model/ClearSagCipherRequest.cc +++ b/smartag/src/model/ClearSagCipherRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::ClearSagCipherRequest; - -ClearSagCipherRequest::ClearSagCipherRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ClearSagCipher") -{ - setMethod(HttpRequest::Method::Post); -} - -ClearSagCipherRequest::~ClearSagCipherRequest() -{} - -long ClearSagCipherRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ClearSagCipherRequest; + +ClearSagCipherRequest::ClearSagCipherRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ClearSagCipher") { + setMethod(HttpRequest::Method::Post); } -void ClearSagCipherRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ClearSagCipherRequest::~ClearSagCipherRequest() {} + +long ClearSagCipherRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ClearSagCipherRequest::getSnNumber()const -{ - return snNumber_; +void ClearSagCipherRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ClearSagCipherRequest::setSnNumber(const std::string& snNumber) -{ - snNumber_ = snNumber; - setParameter("SnNumber", snNumber); +std::string ClearSagCipherRequest::getSnNumber() const { + return snNumber_; } -std::string ClearSagCipherRequest::getRegionId()const -{ - return regionId_; +void ClearSagCipherRequest::setSnNumber(const std::string &snNumber) { + snNumber_ = snNumber; + setParameter(std::string("SnNumber"), snNumber); } -void ClearSagCipherRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ClearSagCipherRequest::getRegionId() const { + return regionId_; } -std::string ClearSagCipherRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ClearSagCipherRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ClearSagCipherRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ClearSagCipherRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ClearSagCipherRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ClearSagCipherRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ClearSagCipherRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ClearSagCipherRequest::getOwnerAccount() const { + return ownerAccount_; } -long ClearSagCipherRequest::getOwnerId()const -{ - return ownerId_; +void ClearSagCipherRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ClearSagCipherRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ClearSagCipherRequest::getOwnerId() const { + return ownerId_; } -std::string ClearSagCipherRequest::getSagId()const -{ - return sagId_; +void ClearSagCipherRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ClearSagCipherRequest::setSagId(const std::string& sagId) -{ - sagId_ = sagId; - setParameter("SagId", sagId); +std::string ClearSagCipherRequest::getSagId() const { + return sagId_; +} + +void ClearSagCipherRequest::setSagId(const std::string &sagId) { + sagId_ = sagId; + setParameter(std::string("SagId"), sagId); } diff --git a/smartag/src/model/ClearSagRouteableAddressRequest.cc b/smartag/src/model/ClearSagRouteableAddressRequest.cc index 1baac5606..7e98ce2f6 100644 --- a/smartag/src/model/ClearSagRouteableAddressRequest.cc +++ b/smartag/src/model/ClearSagRouteableAddressRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::ClearSagRouteableAddressRequest; - -ClearSagRouteableAddressRequest::ClearSagRouteableAddressRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ClearSagRouteableAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -ClearSagRouteableAddressRequest::~ClearSagRouteableAddressRequest() -{} - -std::string ClearSagRouteableAddressRequest::getAccess_key_id()const -{ - return access_key_id_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ClearSagRouteableAddressRequest; + +ClearSagRouteableAddressRequest::ClearSagRouteableAddressRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ClearSagRouteableAddress") { + setMethod(HttpRequest::Method::Post); } -void ClearSagRouteableAddressRequest::setAccess_key_id(const std::string& access_key_id) -{ - access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); +ClearSagRouteableAddressRequest::~ClearSagRouteableAddressRequest() {} + +std::string ClearSagRouteableAddressRequest::getAccess_key_id() const { + return access_key_id_; } -long ClearSagRouteableAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ClearSagRouteableAddressRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); } -void ClearSagRouteableAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ClearSagRouteableAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ClearSagRouteableAddressRequest::getRegionId()const -{ - return regionId_; +void ClearSagRouteableAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ClearSagRouteableAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ClearSagRouteableAddressRequest::getRegionId() const { + return regionId_; } -std::string ClearSagRouteableAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ClearSagRouteableAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ClearSagRouteableAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ClearSagRouteableAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ClearSagRouteableAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ClearSagRouteableAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ClearSagRouteableAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ClearSagRouteableAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -long ClearSagRouteableAddressRequest::getOwnerId()const -{ - return ownerId_; +void ClearSagRouteableAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ClearSagRouteableAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ClearSagRouteableAddressRequest::getOwnerId() const { + return ownerId_; } -std::string ClearSagRouteableAddressRequest::getSagId()const -{ - return sagId_; +void ClearSagRouteableAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ClearSagRouteableAddressRequest::setSagId(const std::string& sagId) -{ - sagId_ = sagId; - setParameter("SagId", sagId); +std::string ClearSagRouteableAddressRequest::getSagId() const { + return sagId_; +} + +void ClearSagRouteableAddressRequest::setSagId(const std::string &sagId) { + sagId_ = sagId; + setParameter(std::string("SagId"), sagId); } diff --git a/smartag/src/model/CreateACLRequest.cc b/smartag/src/model/CreateACLRequest.cc index 0db18c485..359367ef9 100644 --- a/smartag/src/model/CreateACLRequest.cc +++ b/smartag/src/model/CreateACLRequest.cc @@ -1,95 +1,90 @@ /* * 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::Smartag::Model::CreateACLRequest; - -CreateACLRequest::CreateACLRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateACL") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateACLRequest::~CreateACLRequest() -{} - -long CreateACLRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateACLRequest; + +CreateACLRequest::CreateACLRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateACL") { + setMethod(HttpRequest::Method::Post); } -void CreateACLRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateACLRequest::~CreateACLRequest() {} + +long CreateACLRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateACLRequest::getRegionId()const -{ - return regionId_; +void CreateACLRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateACLRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateACLRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateACLRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateACLRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateACLRequest::getRegionId() const { + return regionId_; } -std::string CreateACLRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateACLRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateACLRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateACLRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CreateACLRequest::getOwnerId()const -{ - return ownerId_; +void CreateACLRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateACLRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateACLRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateACLRequest::getName()const -{ - return name_; +void CreateACLRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateACLRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +long CreateACLRequest::getOwnerId() const { + return ownerId_; +} + +void CreateACLRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateACLRequest::getName() const { + return name_; +} + +void CreateACLRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/CreateACLResult.cc b/smartag/src/model/CreateACLResult.cc index 4935ba9ae..cb47714a6 100644 --- a/smartag/src/model/CreateACLResult.cc +++ b/smartag/src/model/CreateACLResult.cc @@ -41,9 +41,16 @@ void CreateACLResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["AclId"].isNull()) aclId_ = value["AclId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } +std::string CreateACLResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string CreateACLResult::getAclId()const { return aclId_; diff --git a/smartag/src/model/CreateCloudConnectNetworkRequest.cc b/smartag/src/model/CreateCloudConnectNetworkRequest.cc index 564028167..c4cbf88f1 100644 --- a/smartag/src/model/CreateCloudConnectNetworkRequest.cc +++ b/smartag/src/model/CreateCloudConnectNetworkRequest.cc @@ -1,139 +1,126 @@ /* * 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::Smartag::Model::CreateCloudConnectNetworkRequest; - -CreateCloudConnectNetworkRequest::CreateCloudConnectNetworkRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateCloudConnectNetwork") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCloudConnectNetworkRequest::~CreateCloudConnectNetworkRequest() -{} - -long CreateCloudConnectNetworkRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateCloudConnectNetworkRequest; + +CreateCloudConnectNetworkRequest::CreateCloudConnectNetworkRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateCloudConnectNetwork") { + setMethod(HttpRequest::Method::Post); } -void CreateCloudConnectNetworkRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateCloudConnectNetworkRequest::~CreateCloudConnectNetworkRequest() {} + +long CreateCloudConnectNetworkRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateCloudConnectNetworkRequest::getDescription()const -{ - return description_; +void CreateCloudConnectNetworkRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateCloudConnectNetworkRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateCloudConnectNetworkRequest::getDescription() const { + return description_; } -std::string CreateCloudConnectNetworkRequest::getSnatCidrBlock()const -{ - return snatCidrBlock_; +void CreateCloudConnectNetworkRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateCloudConnectNetworkRequest::setSnatCidrBlock(const std::string& snatCidrBlock) -{ - snatCidrBlock_ = snatCidrBlock; - setParameter("SnatCidrBlock", snatCidrBlock); +std::string CreateCloudConnectNetworkRequest::getSnatCidrBlock() const { + return snatCidrBlock_; } -std::string CreateCloudConnectNetworkRequest::getRegionId()const -{ - return regionId_; +void CreateCloudConnectNetworkRequest::setSnatCidrBlock(const std::string &snatCidrBlock) { + snatCidrBlock_ = snatCidrBlock; + setParameter(std::string("SnatCidrBlock"), snatCidrBlock); } -void CreateCloudConnectNetworkRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateCloudConnectNetworkRequest::getResourceGroupId() const { + return resourceGroupId_; } -bool CreateCloudConnectNetworkRequest::getIsDefault()const -{ - return isDefault_; +void CreateCloudConnectNetworkRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateCloudConnectNetworkRequest::setIsDefault(bool isDefault) -{ - isDefault_ = isDefault; - setParameter("IsDefault", isDefault ? "true" : "false"); +std::string CreateCloudConnectNetworkRequest::getRegionId() const { + return regionId_; } -std::string CreateCloudConnectNetworkRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateCloudConnectNetworkRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateCloudConnectNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +bool CreateCloudConnectNetworkRequest::getIsDefault() const { + return isDefault_; } -std::string CreateCloudConnectNetworkRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateCloudConnectNetworkRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); } -void CreateCloudConnectNetworkRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateCloudConnectNetworkRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CreateCloudConnectNetworkRequest::getOwnerId()const -{ - return ownerId_; +void CreateCloudConnectNetworkRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateCloudConnectNetworkRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateCloudConnectNetworkRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateCloudConnectNetworkRequest::getName()const -{ - return name_; +void CreateCloudConnectNetworkRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateCloudConnectNetworkRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +long CreateCloudConnectNetworkRequest::getOwnerId() const { + return ownerId_; } -std::string CreateCloudConnectNetworkRequest::getCidrBlock()const -{ - return cidrBlock_; +void CreateCloudConnectNetworkRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateCloudConnectNetworkRequest::setCidrBlock(const std::string& cidrBlock) -{ - cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); +std::string CreateCloudConnectNetworkRequest::getName() const { + return name_; +} + +void CreateCloudConnectNetworkRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateCloudConnectNetworkRequest::getCidrBlock() const { + return cidrBlock_; +} + +void CreateCloudConnectNetworkRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); } diff --git a/smartag/src/model/CreateCloudConnectNetworkResult.cc b/smartag/src/model/CreateCloudConnectNetworkResult.cc index 522ce6c10..cd37d78dd 100644 --- a/smartag/src/model/CreateCloudConnectNetworkResult.cc +++ b/smartag/src/model/CreateCloudConnectNetworkResult.cc @@ -51,6 +51,8 @@ void CreateCloudConnectNetworkResult::parse(const std::string &payload) snatCidrBlock_ = value["SnatCidrBlock"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -64,6 +66,11 @@ std::string CreateCloudConnectNetworkResult::getDescription()const return description_; } +std::string CreateCloudConnectNetworkResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string CreateCloudConnectNetworkResult::getCcnId()const { return ccnId_; diff --git a/smartag/src/model/CreateEnterpriseCodeRequest.cc b/smartag/src/model/CreateEnterpriseCodeRequest.cc index 7d009b6db..900b2f4e0 100644 --- a/smartag/src/model/CreateEnterpriseCodeRequest.cc +++ b/smartag/src/model/CreateEnterpriseCodeRequest.cc @@ -1,73 +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::Smartag::Model::CreateEnterpriseCodeRequest; - -CreateEnterpriseCodeRequest::CreateEnterpriseCodeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateEnterpriseCode") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateEnterpriseCodeRequest::~CreateEnterpriseCodeRequest() -{} - -std::string CreateEnterpriseCodeRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateEnterpriseCodeRequest; + +CreateEnterpriseCodeRequest::CreateEnterpriseCodeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateEnterpriseCode") { + setMethod(HttpRequest::Method::Post); } -void CreateEnterpriseCodeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +CreateEnterpriseCodeRequest::~CreateEnterpriseCodeRequest() {} + +std::string CreateEnterpriseCodeRequest::getClientToken() const { + return clientToken_; } -std::string CreateEnterpriseCodeRequest::getRegionId()const -{ - return regionId_; +void CreateEnterpriseCodeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateEnterpriseCodeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateEnterpriseCodeRequest::getRegionId() const { + return regionId_; } -std::string CreateEnterpriseCodeRequest::getEnterpriseCode()const -{ - return enterpriseCode_; +void CreateEnterpriseCodeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateEnterpriseCodeRequest::setEnterpriseCode(const std::string& enterpriseCode) -{ - enterpriseCode_ = enterpriseCode; - setParameter("EnterpriseCode", enterpriseCode); +std::string CreateEnterpriseCodeRequest::getEnterpriseCode() const { + return enterpriseCode_; } -bool CreateEnterpriseCodeRequest::getDryRun()const -{ - return dryRun_; +void CreateEnterpriseCodeRequest::setEnterpriseCode(const std::string &enterpriseCode) { + enterpriseCode_ = enterpriseCode; + setParameter(std::string("EnterpriseCode"), enterpriseCode); } -void CreateEnterpriseCodeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool CreateEnterpriseCodeRequest::getDryRun() const { + return dryRun_; +} + +void CreateEnterpriseCodeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } diff --git a/smartag/src/model/CreateFlowLogRequest.cc b/smartag/src/model/CreateFlowLogRequest.cc index e8c6c2d4c..e3865ca5e 100644 --- a/smartag/src/model/CreateFlowLogRequest.cc +++ b/smartag/src/model/CreateFlowLogRequest.cc @@ -1,205 +1,180 @@ /* * 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::Smartag::Model::CreateFlowLogRequest; - -CreateFlowLogRequest::CreateFlowLogRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateFlowLog") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateFlowLogRequest::~CreateFlowLogRequest() -{} - -long CreateFlowLogRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateFlowLogRequest; + +CreateFlowLogRequest::CreateFlowLogRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateFlowLog") { + setMethod(HttpRequest::Method::Post); } -void CreateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateFlowLogRequest::~CreateFlowLogRequest() {} + +long CreateFlowLogRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateFlowLogRequest::getNetflowVersion()const -{ - return netflowVersion_; +void CreateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateFlowLogRequest::setNetflowVersion(const std::string& netflowVersion) -{ - netflowVersion_ = netflowVersion; - setParameter("NetflowVersion", netflowVersion); +std::string CreateFlowLogRequest::getNetflowVersion() const { + return netflowVersion_; } -std::string CreateFlowLogRequest::getDescription()const -{ - return description_; +void CreateFlowLogRequest::setNetflowVersion(const std::string &netflowVersion) { + netflowVersion_ = netflowVersion; + setParameter(std::string("NetflowVersion"), netflowVersion); } -void CreateFlowLogRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateFlowLogRequest::getDescription() const { + return description_; } -int CreateFlowLogRequest::getInactiveAging()const -{ - return inactiveAging_; +void CreateFlowLogRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateFlowLogRequest::setInactiveAging(int inactiveAging) -{ - inactiveAging_ = inactiveAging; - setParameter("InactiveAging", std::to_string(inactiveAging)); +int CreateFlowLogRequest::getInactiveAging() const { + return inactiveAging_; } -std::string CreateFlowLogRequest::getRegionId()const -{ - return regionId_; +void CreateFlowLogRequest::setInactiveAging(int inactiveAging) { + inactiveAging_ = inactiveAging; + setParameter(std::string("InactiveAging"), std::to_string(inactiveAging)); } -void CreateFlowLogRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateFlowLogRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateFlowLogRequest::getSlsRegionId()const -{ - return slsRegionId_; +void CreateFlowLogRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateFlowLogRequest::setSlsRegionId(const std::string& slsRegionId) -{ - slsRegionId_ = slsRegionId; - setParameter("SlsRegionId", slsRegionId); +std::string CreateFlowLogRequest::getRegionId() const { + return regionId_; } -int CreateFlowLogRequest::getActiveAging()const -{ - return activeAging_; +void CreateFlowLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateFlowLogRequest::setActiveAging(int activeAging) -{ - activeAging_ = activeAging; - setParameter("ActiveAging", std::to_string(activeAging)); +std::string CreateFlowLogRequest::getSlsRegionId() const { + return slsRegionId_; } -std::string CreateFlowLogRequest::getOutputType()const -{ - return outputType_; +void CreateFlowLogRequest::setSlsRegionId(const std::string &slsRegionId) { + slsRegionId_ = slsRegionId; + setParameter(std::string("SlsRegionId"), slsRegionId); } -void CreateFlowLogRequest::setOutputType(const std::string& outputType) -{ - outputType_ = outputType; - setParameter("OutputType", outputType); +int CreateFlowLogRequest::getActiveAging() const { + return activeAging_; } -std::string CreateFlowLogRequest::getProjectName()const -{ - return projectName_; +void CreateFlowLogRequest::setActiveAging(int activeAging) { + activeAging_ = activeAging; + setParameter(std::string("ActiveAging"), std::to_string(activeAging)); } -void CreateFlowLogRequest::setProjectName(const std::string& projectName) -{ - projectName_ = projectName; - setParameter("ProjectName", projectName); +std::string CreateFlowLogRequest::getOutputType() const { + return outputType_; } -std::string CreateFlowLogRequest::getLogstoreName()const -{ - return logstoreName_; +void CreateFlowLogRequest::setOutputType(const std::string &outputType) { + outputType_ = outputType; + setParameter(std::string("OutputType"), outputType); } -void CreateFlowLogRequest::setLogstoreName(const std::string& logstoreName) -{ - logstoreName_ = logstoreName; - setParameter("LogstoreName", logstoreName); +std::string CreateFlowLogRequest::getProjectName() const { + return projectName_; } -std::string CreateFlowLogRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateFlowLogRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } -void CreateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateFlowLogRequest::getLogstoreName() const { + return logstoreName_; } -std::string CreateFlowLogRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateFlowLogRequest::setLogstoreName(const std::string &logstoreName) { + logstoreName_ = logstoreName; + setParameter(std::string("LogstoreName"), logstoreName); } -void CreateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateFlowLogRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int CreateFlowLogRequest::getNetflowServerPort()const -{ - return netflowServerPort_; +void CreateFlowLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateFlowLogRequest::setNetflowServerPort(int netflowServerPort) -{ - netflowServerPort_ = netflowServerPort; - setParameter("NetflowServerPort", std::to_string(netflowServerPort)); +std::string CreateFlowLogRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateFlowLogRequest::getOwnerId()const -{ - return ownerId_; +void CreateFlowLogRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateFlowLogRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +int CreateFlowLogRequest::getNetflowServerPort() const { + return netflowServerPort_; } -std::string CreateFlowLogRequest::getNetflowServerIp()const -{ - return netflowServerIp_; +void CreateFlowLogRequest::setNetflowServerPort(int netflowServerPort) { + netflowServerPort_ = netflowServerPort; + setParameter(std::string("NetflowServerPort"), std::to_string(netflowServerPort)); } -void CreateFlowLogRequest::setNetflowServerIp(const std::string& netflowServerIp) -{ - netflowServerIp_ = netflowServerIp; - setParameter("NetflowServerIp", netflowServerIp); +long CreateFlowLogRequest::getOwnerId() const { + return ownerId_; } -std::string CreateFlowLogRequest::getName()const -{ - return name_; +void CreateFlowLogRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateFlowLogRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateFlowLogRequest::getNetflowServerIp() const { + return netflowServerIp_; +} + +void CreateFlowLogRequest::setNetflowServerIp(const std::string &netflowServerIp) { + netflowServerIp_ = netflowServerIp; + setParameter(std::string("NetflowServerIp"), netflowServerIp); +} + +std::string CreateFlowLogRequest::getName() const { + return name_; +} + +void CreateFlowLogRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/CreateFlowLogResult.cc b/smartag/src/model/CreateFlowLogResult.cc index dd4f9a932..b898d0226 100644 --- a/smartag/src/model/CreateFlowLogResult.cc +++ b/smartag/src/model/CreateFlowLogResult.cc @@ -41,9 +41,16 @@ void CreateFlowLogResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["FlowLogId"].isNull()) flowLogId_ = value["FlowLogId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } +std::string CreateFlowLogResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string CreateFlowLogResult::getFlowLogId()const { return flowLogId_; diff --git a/smartag/src/model/CreateHealthCheckRequest.cc b/smartag/src/model/CreateHealthCheckRequest.cc index d6b0b20aa..74c470b73 100644 --- a/smartag/src/model/CreateHealthCheckRequest.cc +++ b/smartag/src/model/CreateHealthCheckRequest.cc @@ -1,238 +1,198 @@ /* * 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::Smartag::Model::CreateHealthCheckRequest; - -CreateHealthCheckRequest::CreateHealthCheckRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateHealthCheck") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateHealthCheckRequest::~CreateHealthCheckRequest() -{} - -int CreateHealthCheckRequest::getProbeInterval()const -{ - return probeInterval_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateHealthCheckRequest; + +CreateHealthCheckRequest::CreateHealthCheckRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateHealthCheck") { + setMethod(HttpRequest::Method::Post); } -void CreateHealthCheckRequest::setProbeInterval(int probeInterval) -{ - probeInterval_ = probeInterval; - setParameter("ProbeInterval", std::to_string(probeInterval)); +CreateHealthCheckRequest::~CreateHealthCheckRequest() {} + +int CreateHealthCheckRequest::getProbeInterval() const { + return probeInterval_; } -long CreateHealthCheckRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateHealthCheckRequest::setProbeInterval(int probeInterval) { + probeInterval_ = probeInterval; + setParameter(std::string("ProbeInterval"), std::to_string(probeInterval)); } -void CreateHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateHealthCheckRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int CreateHealthCheckRequest::getDstPort()const -{ - return dstPort_; +void CreateHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateHealthCheckRequest::setDstPort(int dstPort) -{ - dstPort_ = dstPort; - setParameter("DstPort", std::to_string(dstPort)); +int CreateHealthCheckRequest::getDstPort() const { + return dstPort_; } -std::string CreateHealthCheckRequest::getDescription()const -{ - return description_; +void CreateHealthCheckRequest::setDstPort(int dstPort) { + dstPort_ = dstPort; + setParameter(std::string("DstPort"), std::to_string(dstPort)); } -void CreateHealthCheckRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateHealthCheckRequest::getDescription() const { + return description_; } -std::string CreateHealthCheckRequest::getType()const -{ - return type_; +void CreateHealthCheckRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateHealthCheckRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string CreateHealthCheckRequest::getType() const { + return type_; } -int CreateHealthCheckRequest::getFailCountThreshold()const -{ - return failCountThreshold_; +void CreateHealthCheckRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void CreateHealthCheckRequest::setFailCountThreshold(int failCountThreshold) -{ - failCountThreshold_ = failCountThreshold; - setParameter("FailCountThreshold", std::to_string(failCountThreshold)); +int CreateHealthCheckRequest::getFailCountThreshold() const { + return failCountThreshold_; } -int CreateHealthCheckRequest::getProbeTimeout()const -{ - return probeTimeout_; +void CreateHealthCheckRequest::setFailCountThreshold(int failCountThreshold) { + failCountThreshold_ = failCountThreshold; + setParameter(std::string("FailCountThreshold"), std::to_string(failCountThreshold)); } -void CreateHealthCheckRequest::setProbeTimeout(int probeTimeout) -{ - probeTimeout_ = probeTimeout; - setParameter("ProbeTimeout", std::to_string(probeTimeout)); +int CreateHealthCheckRequest::getProbeTimeout() const { + return probeTimeout_; } -int CreateHealthCheckRequest::getRttFailThreshold()const -{ - return rttFailThreshold_; +void CreateHealthCheckRequest::setProbeTimeout(int probeTimeout) { + probeTimeout_ = probeTimeout; + setParameter(std::string("ProbeTimeout"), std::to_string(probeTimeout)); } -void CreateHealthCheckRequest::setRttFailThreshold(int rttFailThreshold) -{ - rttFailThreshold_ = rttFailThreshold; - setParameter("RttFailThreshold", std::to_string(rttFailThreshold)); +int CreateHealthCheckRequest::getRttFailThreshold() const { + return rttFailThreshold_; } -std::string CreateHealthCheckRequest::getRegionId()const -{ - return regionId_; +void CreateHealthCheckRequest::setRttFailThreshold(int rttFailThreshold) { + rttFailThreshold_ = rttFailThreshold; + setParameter(std::string("RttFailThreshold"), std::to_string(rttFailThreshold)); } -void CreateHealthCheckRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateHealthCheckRequest::getRegionId() const { + return regionId_; } -int CreateHealthCheckRequest::getRttThreshold()const -{ - return rttThreshold_; +void CreateHealthCheckRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateHealthCheckRequest::setRttThreshold(int rttThreshold) -{ - rttThreshold_ = rttThreshold; - setParameter("RttThreshold", std::to_string(rttThreshold)); +int CreateHealthCheckRequest::getRttThreshold() const { + return rttThreshold_; } -std::string CreateHealthCheckRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateHealthCheckRequest::setRttThreshold(int rttThreshold) { + rttThreshold_ = rttThreshold; + setParameter(std::string("RttThreshold"), std::to_string(rttThreshold)); } -void CreateHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateHealthCheckRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateHealthCheckRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateHealthCheckRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateHealthCheckRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateHealthCheckRequest::getDstIpAddr()const -{ - return dstIpAddr_; +void CreateHealthCheckRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateHealthCheckRequest::setDstIpAddr(const std::string& dstIpAddr) -{ - dstIpAddr_ = dstIpAddr; - setParameter("DstIpAddr", dstIpAddr); +std::string CreateHealthCheckRequest::getDstIpAddr() const { + return dstIpAddr_; } -long CreateHealthCheckRequest::getOwnerId()const -{ - return ownerId_; +void CreateHealthCheckRequest::setDstIpAddr(const std::string &dstIpAddr) { + dstIpAddr_ = dstIpAddr; + setParameter(std::string("DstIpAddr"), dstIpAddr); } -void CreateHealthCheckRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateHealthCheckRequest::getOwnerId() const { + return ownerId_; } -std::string CreateHealthCheckRequest::getSrcIpAddr()const -{ - return srcIpAddr_; +void CreateHealthCheckRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateHealthCheckRequest::setSrcIpAddr(const std::string& srcIpAddr) -{ - srcIpAddr_ = srcIpAddr; - setParameter("SrcIpAddr", srcIpAddr); +std::string CreateHealthCheckRequest::getSrcIpAddr() const { + return srcIpAddr_; } -std::string CreateHealthCheckRequest::getName()const -{ - return name_; +void CreateHealthCheckRequest::setSrcIpAddr(const std::string &srcIpAddr) { + srcIpAddr_ = srcIpAddr; + setParameter(std::string("SrcIpAddr"), srcIpAddr); } -void CreateHealthCheckRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateHealthCheckRequest::getName() const { + return name_; } -std::string CreateHealthCheckRequest::getSmartAGId()const -{ - return smartAGId_; +void CreateHealthCheckRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateHealthCheckRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string CreateHealthCheckRequest::getSmartAGId() const { + return smartAGId_; } -int CreateHealthCheckRequest::getSrcPort()const -{ - return srcPort_; +void CreateHealthCheckRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void CreateHealthCheckRequest::setSrcPort(int srcPort) -{ - srcPort_ = srcPort; - setParameter("SrcPort", std::to_string(srcPort)); +int CreateHealthCheckRequest::getSrcPort() const { + return srcPort_; } -int CreateHealthCheckRequest::getProbeCount()const -{ - return probeCount_; +void CreateHealthCheckRequest::setSrcPort(int srcPort) { + srcPort_ = srcPort; + setParameter(std::string("SrcPort"), std::to_string(srcPort)); } -void CreateHealthCheckRequest::setProbeCount(int probeCount) -{ - probeCount_ = probeCount; - setParameter("ProbeCount", std::to_string(probeCount)); +int CreateHealthCheckRequest::getProbeCount() const { + return probeCount_; +} + +void CreateHealthCheckRequest::setProbeCount(int probeCount) { + probeCount_ = probeCount; + setParameter(std::string("ProbeCount"), std::to_string(probeCount)); } diff --git a/smartag/src/model/CreateHealthCheckResult.cc b/smartag/src/model/CreateHealthCheckResult.cc index 9c2f2f262..9abb27bf8 100644 --- a/smartag/src/model/CreateHealthCheckResult.cc +++ b/smartag/src/model/CreateHealthCheckResult.cc @@ -39,10 +39,10 @@ void CreateHealthCheckResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); if(!value["SrcPort"].isNull()) srcPort_ = std::stoi(value["SrcPort"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); if(!value["SrcIpAddr"].isNull()) @@ -63,10 +63,10 @@ void CreateHealthCheckResult::parse(const std::string &payload) probeTimeout_ = std::stoi(value["ProbeTimeout"].asString()); if(!value["RttThreshold"].isNull()) rttThreshold_ = std::stoi(value["RttThreshold"].asString()); - if(!value["ProbeInterval"].isNull()) - probeInterval_ = std::stoi(value["ProbeInterval"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); + if(!value["ProbeInterval"].isNull()) + probeInterval_ = std::stoi(value["ProbeInterval"].asString()); if(!value["SmartAGId"].isNull()) smartAGId_ = value["SmartAGId"].asString(); if(!value["RttFailThreshold"].isNull()) @@ -76,16 +76,16 @@ void CreateHealthCheckResult::parse(const std::string &payload) } -std::string CreateHealthCheckResult::getDescription()const -{ - return description_; -} - int CreateHealthCheckResult::getSrcPort()const { return srcPort_; } +std::string CreateHealthCheckResult::getDescription()const +{ + return description_; +} + std::string CreateHealthCheckResult::getInstanceId()const { return instanceId_; @@ -136,16 +136,16 @@ int CreateHealthCheckResult::getRttThreshold()const return rttThreshold_; } -int CreateHealthCheckResult::getProbeInterval()const -{ - return probeInterval_; -} - std::string CreateHealthCheckResult::getRegionId()const { return regionId_; } +int CreateHealthCheckResult::getProbeInterval()const +{ + return probeInterval_; +} + std::string CreateHealthCheckResult::getSmartAGId()const { return smartAGId_; diff --git a/smartag/src/model/CreateNetworkOptimizationRequest.cc b/smartag/src/model/CreateNetworkOptimizationRequest.cc deleted file mode 100644 index fbcfc2861..000000000 --- a/smartag/src/model/CreateNetworkOptimizationRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * 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::Smartag::Model::CreateNetworkOptimizationRequest; - -CreateNetworkOptimizationRequest::CreateNetworkOptimizationRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateNetworkOptimization") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateNetworkOptimizationRequest::~CreateNetworkOptimizationRequest() -{} - -long CreateNetworkOptimizationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void CreateNetworkOptimizationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string CreateNetworkOptimizationRequest::getCcnId()const -{ - return ccnId_; -} - -void CreateNetworkOptimizationRequest::setCcnId(const std::string& ccnId) -{ - ccnId_ = ccnId; - setParameter("CcnId", ccnId); -} - -std::string CreateNetworkOptimizationRequest::getRegionId()const -{ - return regionId_; -} - -void CreateNetworkOptimizationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string CreateNetworkOptimizationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void CreateNetworkOptimizationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string CreateNetworkOptimizationRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void CreateNetworkOptimizationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long CreateNetworkOptimizationRequest::getOwnerId()const -{ - return ownerId_; -} - -void CreateNetworkOptimizationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string CreateNetworkOptimizationRequest::getName()const -{ - return name_; -} - -void CreateNetworkOptimizationRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/smartag/src/model/CreateNetworkOptimizationResult.cc b/smartag/src/model/CreateNetworkOptimizationResult.cc deleted file mode 100644 index cfcff9e2e..000000000 --- a/smartag/src/model/CreateNetworkOptimizationResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -CreateNetworkOptimizationResult::CreateNetworkOptimizationResult() : - ServiceResult() -{} - -CreateNetworkOptimizationResult::CreateNetworkOptimizationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateNetworkOptimizationResult::~CreateNetworkOptimizationResult() -{} - -void CreateNetworkOptimizationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["State"].isNull()) - state_ = value["State"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["NetworkOptId"].isNull()) - networkOptId_ = value["NetworkOptId"].asString(); - -} - -std::string CreateNetworkOptimizationResult::getState()const -{ - return state_; -} - -std::string CreateNetworkOptimizationResult::getName()const -{ - return name_; -} - -std::string CreateNetworkOptimizationResult::getNetworkOptId()const -{ - return networkOptId_; -} - diff --git a/smartag/src/model/CreateQosCarRequest.cc b/smartag/src/model/CreateQosCarRequest.cc index 4c53f0ae4..0a9be65b4 100644 --- a/smartag/src/model/CreateQosCarRequest.cc +++ b/smartag/src/model/CreateQosCarRequest.cc @@ -1,194 +1,162 @@ /* * 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::Smartag::Model::CreateQosCarRequest; - -CreateQosCarRequest::CreateQosCarRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateQosCar") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateQosCarRequest::~CreateQosCarRequest() -{} - -long CreateQosCarRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateQosCarRequest; + +CreateQosCarRequest::CreateQosCarRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateQosCar") { + setMethod(HttpRequest::Method::Post); } -void CreateQosCarRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateQosCarRequest::~CreateQosCarRequest() {} + +long CreateQosCarRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int CreateQosCarRequest::getMinBandwidthAbs()const -{ - return minBandwidthAbs_; +void CreateQosCarRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateQosCarRequest::setMinBandwidthAbs(int minBandwidthAbs) -{ - minBandwidthAbs_ = minBandwidthAbs; - setParameter("MinBandwidthAbs", std::to_string(minBandwidthAbs)); +int CreateQosCarRequest::getMinBandwidthAbs() const { + return minBandwidthAbs_; } -std::string CreateQosCarRequest::getDescription()const -{ - return description_; +void CreateQosCarRequest::setMinBandwidthAbs(int minBandwidthAbs) { + minBandwidthAbs_ = minBandwidthAbs; + setParameter(std::string("MinBandwidthAbs"), std::to_string(minBandwidthAbs)); } -void CreateQosCarRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateQosCarRequest::getDescription() const { + return description_; } -std::string CreateQosCarRequest::getRegionId()const -{ - return regionId_; +void CreateQosCarRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateQosCarRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateQosCarRequest::getRegionId() const { + return regionId_; } -std::string CreateQosCarRequest::getPercentSourceType()const -{ - return percentSourceType_; +void CreateQosCarRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateQosCarRequest::setPercentSourceType(const std::string& percentSourceType) -{ - percentSourceType_ = percentSourceType; - setParameter("PercentSourceType", percentSourceType); +std::string CreateQosCarRequest::getPercentSourceType() const { + return percentSourceType_; } -std::string CreateQosCarRequest::getQosId()const -{ - return qosId_; +void CreateQosCarRequest::setPercentSourceType(const std::string &percentSourceType) { + percentSourceType_ = percentSourceType; + setParameter(std::string("PercentSourceType"), percentSourceType); } -void CreateQosCarRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string CreateQosCarRequest::getQosId() const { + return qosId_; } -int CreateQosCarRequest::getMaxBandwidthAbs()const -{ - return maxBandwidthAbs_; +void CreateQosCarRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void CreateQosCarRequest::setMaxBandwidthAbs(int maxBandwidthAbs) -{ - maxBandwidthAbs_ = maxBandwidthAbs; - setParameter("MaxBandwidthAbs", std::to_string(maxBandwidthAbs)); +int CreateQosCarRequest::getMaxBandwidthAbs() const { + return maxBandwidthAbs_; } -std::string CreateQosCarRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateQosCarRequest::setMaxBandwidthAbs(int maxBandwidthAbs) { + maxBandwidthAbs_ = maxBandwidthAbs; + setParameter(std::string("MaxBandwidthAbs"), std::to_string(maxBandwidthAbs)); } -void CreateQosCarRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateQosCarRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int CreateQosCarRequest::getMaxBandwidthPercent()const -{ - return maxBandwidthPercent_; +void CreateQosCarRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateQosCarRequest::setMaxBandwidthPercent(int maxBandwidthPercent) -{ - maxBandwidthPercent_ = maxBandwidthPercent; - setParameter("MaxBandwidthPercent", std::to_string(maxBandwidthPercent)); +int CreateQosCarRequest::getMaxBandwidthPercent() const { + return maxBandwidthPercent_; } -std::string CreateQosCarRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateQosCarRequest::setMaxBandwidthPercent(int maxBandwidthPercent) { + maxBandwidthPercent_ = maxBandwidthPercent; + setParameter(std::string("MaxBandwidthPercent"), std::to_string(maxBandwidthPercent)); } -void CreateQosCarRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateQosCarRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateQosCarRequest::getOwnerId()const -{ - return ownerId_; +void CreateQosCarRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateQosCarRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateQosCarRequest::getOwnerId() const { + return ownerId_; } -int CreateQosCarRequest::getPriority()const -{ - return priority_; +void CreateQosCarRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateQosCarRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int CreateQosCarRequest::getPriority() const { + return priority_; } -int CreateQosCarRequest::getMinBandwidthPercent()const -{ - return minBandwidthPercent_; +void CreateQosCarRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void CreateQosCarRequest::setMinBandwidthPercent(int minBandwidthPercent) -{ - minBandwidthPercent_ = minBandwidthPercent; - setParameter("MinBandwidthPercent", std::to_string(minBandwidthPercent)); +int CreateQosCarRequest::getMinBandwidthPercent() const { + return minBandwidthPercent_; } -std::string CreateQosCarRequest::getLimitType()const -{ - return limitType_; +void CreateQosCarRequest::setMinBandwidthPercent(int minBandwidthPercent) { + minBandwidthPercent_ = minBandwidthPercent; + setParameter(std::string("MinBandwidthPercent"), std::to_string(minBandwidthPercent)); } -void CreateQosCarRequest::setLimitType(const std::string& limitType) -{ - limitType_ = limitType; - setParameter("LimitType", limitType); +std::string CreateQosCarRequest::getLimitType() const { + return limitType_; } -std::string CreateQosCarRequest::getName()const -{ - return name_; +void CreateQosCarRequest::setLimitType(const std::string &limitType) { + limitType_ = limitType; + setParameter(std::string("LimitType"), limitType); } -void CreateQosCarRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateQosCarRequest::getName() const { + return name_; +} + +void CreateQosCarRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/CreateQosCarResult.cc b/smartag/src/model/CreateQosCarResult.cc index 747daef6c..efb1f4b3d 100644 --- a/smartag/src/model/CreateQosCarResult.cc +++ b/smartag/src/model/CreateQosCarResult.cc @@ -45,12 +45,12 @@ void CreateQosCarResult::parse(const std::string &payload) description_ = value["Description"].asString(); if(!value["QosCarId"].isNull()) qosCarId_ = value["QosCarId"].asString(); - if(!value["Priority"].isNull()) - priority_ = std::stoi(value["Priority"].asString()); - if(!value["MaxBandwidthPercent"].isNull()) - maxBandwidthPercent_ = std::stoi(value["MaxBandwidthPercent"].asString()); if(!value["MaxBandwidthAbs"].isNull()) maxBandwidthAbs_ = std::stoi(value["MaxBandwidthAbs"].asString()); + if(!value["MaxBandwidthPercent"].isNull()) + maxBandwidthPercent_ = std::stoi(value["MaxBandwidthPercent"].asString()); + if(!value["Priority"].isNull()) + priority_ = std::stoi(value["Priority"].asString()); if(!value["QosId"].isNull()) qosId_ = value["QosId"].asString(); if(!value["PercentSourceType"].isNull()) @@ -77,9 +77,9 @@ std::string CreateQosCarResult::getQosCarId()const return qosCarId_; } -int CreateQosCarResult::getPriority()const +int CreateQosCarResult::getMaxBandwidthAbs()const { - return priority_; + return maxBandwidthAbs_; } int CreateQosCarResult::getMaxBandwidthPercent()const @@ -87,9 +87,9 @@ int CreateQosCarResult::getMaxBandwidthPercent()const return maxBandwidthPercent_; } -int CreateQosCarResult::getMaxBandwidthAbs()const +int CreateQosCarResult::getPriority()const { - return maxBandwidthAbs_; + return priority_; } std::string CreateQosCarResult::getQosId()const diff --git a/smartag/src/model/CreateQosPolicyRequest.cc b/smartag/src/model/CreateQosPolicyRequest.cc index 97de729f6..3a0f738f9 100644 --- a/smartag/src/model/CreateQosPolicyRequest.cc +++ b/smartag/src/model/CreateQosPolicyRequest.cc @@ -1,231 +1,187 @@ /* * 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::Smartag::Model::CreateQosPolicyRequest; - -CreateQosPolicyRequest::CreateQosPolicyRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateQosPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateQosPolicyRequest::~CreateQosPolicyRequest() -{} - -std::vector CreateQosPolicyRequest::getDpiGroupIds()const -{ - return dpiGroupIds_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateQosPolicyRequest; + +CreateQosPolicyRequest::CreateQosPolicyRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateQosPolicy") { + setMethod(HttpRequest::Method::Post); } -void CreateQosPolicyRequest::setDpiGroupIds(const std::vector& dpiGroupIds) -{ - dpiGroupIds_ = dpiGroupIds; - for(int dep1 = 0; dep1!= dpiGroupIds.size(); dep1++) { - setParameter("DpiGroupIds."+ std::to_string(dep1), dpiGroupIds.at(dep1)); - } +CreateQosPolicyRequest::~CreateQosPolicyRequest() {} + +std::vector CreateQosPolicyRequest::getDpiGroupIds() const { + return dpiGroupIds_; } -long CreateQosPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateQosPolicyRequest::setDpiGroupIds(const std::vector &dpiGroupIds) { + dpiGroupIds_ = dpiGroupIds; } -void CreateQosPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateQosPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateQosPolicyRequest::getSourcePortRange()const -{ - return sourcePortRange_; +void CreateQosPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateQosPolicyRequest::setSourcePortRange(const std::string& sourcePortRange) -{ - sourcePortRange_ = sourcePortRange; - setParameter("SourcePortRange", sourcePortRange); +std::string CreateQosPolicyRequest::getSourcePortRange() const { + return sourcePortRange_; } -std::string CreateQosPolicyRequest::getSourceCidr()const -{ - return sourceCidr_; +void CreateQosPolicyRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); } -void CreateQosPolicyRequest::setSourceCidr(const std::string& sourceCidr) -{ - sourceCidr_ = sourceCidr; - setParameter("SourceCidr", sourceCidr); +std::string CreateQosPolicyRequest::getSourceCidr() const { + return sourceCidr_; } -std::string CreateQosPolicyRequest::getDescription()const -{ - return description_; +void CreateQosPolicyRequest::setSourceCidr(const std::string &sourceCidr) { + sourceCidr_ = sourceCidr; + setParameter(std::string("SourceCidr"), sourceCidr); } -void CreateQosPolicyRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateQosPolicyRequest::getDescription() const { + return description_; } -std::string CreateQosPolicyRequest::getStartTime()const -{ - return startTime_; +void CreateQosPolicyRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateQosPolicyRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string CreateQosPolicyRequest::getStartTime() const { + return startTime_; } -std::string CreateQosPolicyRequest::getDestCidr()const -{ - return destCidr_; +void CreateQosPolicyRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void CreateQosPolicyRequest::setDestCidr(const std::string& destCidr) -{ - destCidr_ = destCidr; - setParameter("DestCidr", destCidr); +std::string CreateQosPolicyRequest::getDestCidr() const { + return destCidr_; } -std::vector CreateQosPolicyRequest::getDpiSignatureIds()const -{ - return dpiSignatureIds_; +void CreateQosPolicyRequest::setDestCidr(const std::string &destCidr) { + destCidr_ = destCidr; + setParameter(std::string("DestCidr"), destCidr); } -void CreateQosPolicyRequest::setDpiSignatureIds(const std::vector& dpiSignatureIds) -{ - dpiSignatureIds_ = dpiSignatureIds; - for(int dep1 = 0; dep1!= dpiSignatureIds.size(); dep1++) { - setParameter("DpiSignatureIds."+ std::to_string(dep1), dpiSignatureIds.at(dep1)); - } +std::vector CreateQosPolicyRequest::getDpiSignatureIds() const { + return dpiSignatureIds_; } -std::string CreateQosPolicyRequest::getRegionId()const -{ - return regionId_; +void CreateQosPolicyRequest::setDpiSignatureIds(const std::vector &dpiSignatureIds) { + dpiSignatureIds_ = dpiSignatureIds; } -void CreateQosPolicyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateQosPolicyRequest::getRegionId() const { + return regionId_; } -std::string CreateQosPolicyRequest::getQosId()const -{ - return qosId_; +void CreateQosPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateQosPolicyRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string CreateQosPolicyRequest::getQosId() const { + return qosId_; } -std::string CreateQosPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateQosPolicyRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void CreateQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateQosPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateQosPolicyRequest::getIpProtocol()const -{ - return ipProtocol_; +void CreateQosPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateQosPolicyRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string CreateQosPolicyRequest::getIpProtocol() const { + return ipProtocol_; } -std::string CreateQosPolicyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateQosPolicyRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void CreateQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateQosPolicyRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateQosPolicyRequest::getEndTime()const -{ - return endTime_; +void CreateQosPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateQosPolicyRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string CreateQosPolicyRequest::getEndTime() const { + return endTime_; } -long CreateQosPolicyRequest::getOwnerId()const -{ - return ownerId_; +void CreateQosPolicyRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void CreateQosPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateQosPolicyRequest::getOwnerId() const { + return ownerId_; } -int CreateQosPolicyRequest::getPriority()const -{ - return priority_; +void CreateQosPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateQosPolicyRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int CreateQosPolicyRequest::getPriority() const { + return priority_; } -std::string CreateQosPolicyRequest::getDestPortRange()const -{ - return destPortRange_; +void CreateQosPolicyRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void CreateQosPolicyRequest::setDestPortRange(const std::string& destPortRange) -{ - destPortRange_ = destPortRange; - setParameter("DestPortRange", destPortRange); +std::string CreateQosPolicyRequest::getDestPortRange() const { + return destPortRange_; } -std::string CreateQosPolicyRequest::getName()const -{ - return name_; +void CreateQosPolicyRequest::setDestPortRange(const std::string &destPortRange) { + destPortRange_ = destPortRange; + setParameter(std::string("DestPortRange"), destPortRange); } -void CreateQosPolicyRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateQosPolicyRequest::getName() const { + return name_; +} + +void CreateQosPolicyRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/CreateQosPolicyResult.cc b/smartag/src/model/CreateQosPolicyResult.cc index 8a67e0615..df87b8d2f 100644 --- a/smartag/src/model/CreateQosPolicyResult.cc +++ b/smartag/src/model/CreateQosPolicyResult.cc @@ -39,36 +39,36 @@ void CreateQosPolicyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; - for (const auto &item : allDpiSignatureIds) - dpiSignatureIds_.push_back(item.asString()); auto allDpiGroupIds = value["DpiGroupIds"]["DpiGroupId"]; for (const auto &item : allDpiGroupIds) dpiGroupIds_.push_back(item.asString()); - if(!value["DestCidr"].isNull()) - destCidr_ = value["DestCidr"].asString(); + auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; + for (const auto &item : allDpiSignatureIds) + dpiSignatureIds_.push_back(item.asString()); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - if(!value["SourcePortRange"].isNull()) - sourcePortRange_ = value["SourcePortRange"].asString(); - if(!value["QosPolicyId"].isNull()) - qosPolicyId_ = value["QosPolicyId"].asString(); if(!value["EndTime"].isNull()) endTime_ = value["EndTime"].asString(); + if(!value["QosPolicyId"].isNull()) + qosPolicyId_ = value["QosPolicyId"].asString(); + if(!value["SourcePortRange"].isNull()) + sourcePortRange_ = value["SourcePortRange"].asString(); if(!value["SourceCidr"].isNull()) sourceCidr_ = value["SourceCidr"].asString(); if(!value["Priority"].isNull()) priority_ = std::stoi(value["Priority"].asString()); if(!value["StartTime"].isNull()) startTime_ = value["StartTime"].asString(); - if(!value["IpProtocol"].isNull()) - ipProtocol_ = value["IpProtocol"].asString(); - if(!value["QosId"].isNull()) - qosId_ = value["QosId"].asString(); if(!value["DestPortRange"].isNull()) destPortRange_ = value["DestPortRange"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); + if(!value["DestCidr"].isNull()) + destCidr_ = value["DestCidr"].asString(); + if(!value["QosId"].isNull()) + qosId_ = value["QosId"].asString(); + if(!value["IpProtocol"].isNull()) + ipProtocol_ = value["IpProtocol"].asString(); } @@ -77,9 +77,9 @@ std::string CreateQosPolicyResult::getDescription()const return description_; } -std::string CreateQosPolicyResult::getSourcePortRange()const +std::string CreateQosPolicyResult::getEndTime()const { - return sourcePortRange_; + return endTime_; } std::string CreateQosPolicyResult::getQosPolicyId()const @@ -87,9 +87,9 @@ std::string CreateQosPolicyResult::getQosPolicyId()const return qosPolicyId_; } -std::string CreateQosPolicyResult::getEndTime()const +std::string CreateQosPolicyResult::getSourcePortRange()const { - return endTime_; + return sourcePortRange_; } std::string CreateQosPolicyResult::getSourceCidr()const @@ -132,13 +132,13 @@ std::vector CreateQosPolicyResult::getDpiSignatureIds()const return dpiSignatureIds_; } -std::string CreateQosPolicyResult::getIpProtocol()const -{ - return ipProtocol_; -} - std::string CreateQosPolicyResult::getQosId()const { return qosId_; } +std::string CreateQosPolicyResult::getIpProtocol()const +{ + return ipProtocol_; +} + diff --git a/smartag/src/model/CreateQosRequest.cc b/smartag/src/model/CreateQosRequest.cc index 66cff5ac0..4f7322654 100644 --- a/smartag/src/model/CreateQosRequest.cc +++ b/smartag/src/model/CreateQosRequest.cc @@ -1,106 +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::Smartag::Model::CreateQosRequest; - -CreateQosRequest::CreateQosRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateQos") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateQosRequest::~CreateQosRequest() -{} - -long CreateQosRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateQosRequest; + +CreateQosRequest::CreateQosRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateQos") { + setMethod(HttpRequest::Method::Post); } -void CreateQosRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateQosRequest::~CreateQosRequest() {} + +long CreateQosRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateQosRequest::getRegionId()const -{ - return regionId_; +void CreateQosRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateQosRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateQosRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateQosRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateQosRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateQosRequest::getRegionId() const { + return regionId_; } -std::string CreateQosRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateQosRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateQosRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateQosRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CreateQosRequest::getOwnerId()const -{ - return ownerId_; +void CreateQosRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateQosRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateQosRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateQosRequest::getQosName()const -{ - return qosName_; +void CreateQosRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateQosRequest::setQosName(const std::string& qosName) -{ - qosName_ = qosName; - setParameter("QosName", qosName); +long CreateQosRequest::getOwnerId() const { + return ownerId_; } -std::string CreateQosRequest::getQosDescription()const -{ - return qosDescription_; +void CreateQosRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateQosRequest::setQosDescription(const std::string& qosDescription) -{ - qosDescription_ = qosDescription; - setParameter("QosDescription", qosDescription); +std::string CreateQosRequest::getQosName() const { + return qosName_; +} + +void CreateQosRequest::setQosName(const std::string &qosName) { + qosName_ = qosName; + setParameter(std::string("QosName"), qosName); +} + +std::string CreateQosRequest::getQosDescription() const { + return qosDescription_; +} + +void CreateQosRequest::setQosDescription(const std::string &qosDescription) { + qosDescription_ = qosDescription; + setParameter(std::string("QosDescription"), qosDescription); } diff --git a/smartag/src/model/CreateQosResult.cc b/smartag/src/model/CreateQosResult.cc index c0029f1f4..502d9233a 100644 --- a/smartag/src/model/CreateQosResult.cc +++ b/smartag/src/model/CreateQosResult.cc @@ -41,9 +41,16 @@ void CreateQosResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["QosId"].isNull()) qosId_ = value["QosId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } +std::string CreateQosResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string CreateQosResult::getQosId()const { return qosId_; diff --git a/smartag/src/model/CreateSagExpressConnectInterfaceRequest.cc b/smartag/src/model/CreateSagExpressConnectInterfaceRequest.cc index 1ad1fc717..1348919c3 100644 --- a/smartag/src/model/CreateSagExpressConnectInterfaceRequest.cc +++ b/smartag/src/model/CreateSagExpressConnectInterfaceRequest.cc @@ -1,150 +1,126 @@ /* * 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::Smartag::Model::CreateSagExpressConnectInterfaceRequest; - -CreateSagExpressConnectInterfaceRequest::CreateSagExpressConnectInterfaceRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateSagExpressConnectInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSagExpressConnectInterfaceRequest::~CreateSagExpressConnectInterfaceRequest() -{} - -long CreateSagExpressConnectInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateSagExpressConnectInterfaceRequest; + +CreateSagExpressConnectInterfaceRequest::CreateSagExpressConnectInterfaceRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateSagExpressConnectInterface") { + setMethod(HttpRequest::Method::Post); } -void CreateSagExpressConnectInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSagExpressConnectInterfaceRequest::~CreateSagExpressConnectInterfaceRequest() {} + +long CreateSagExpressConnectInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSagExpressConnectInterfaceRequest::getVlan()const -{ - return vlan_; +void CreateSagExpressConnectInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSagExpressConnectInterfaceRequest::setVlan(const std::string& vlan) -{ - vlan_ = vlan; - setParameter("Vlan", vlan); +std::string CreateSagExpressConnectInterfaceRequest::getVlan() const { + return vlan_; } -std::string CreateSagExpressConnectInterfaceRequest::getRegionId()const -{ - return regionId_; +void CreateSagExpressConnectInterfaceRequest::setVlan(const std::string &vlan) { + vlan_ = vlan; + setParameter(std::string("Vlan"), vlan); } -void CreateSagExpressConnectInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSagExpressConnectInterfaceRequest::getRegionId() const { + return regionId_; } -std::string CreateSagExpressConnectInterfaceRequest::getMask()const -{ - return mask_; +void CreateSagExpressConnectInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSagExpressConnectInterfaceRequest::setMask(const std::string& mask) -{ - mask_ = mask; - setParameter("Mask", mask); +std::string CreateSagExpressConnectInterfaceRequest::getMask() const { + return mask_; } -std::string CreateSagExpressConnectInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSagExpressConnectInterfaceRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); } -void CreateSagExpressConnectInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateSagExpressConnectInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateSagExpressConnectInterfaceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSagExpressConnectInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSagExpressConnectInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSagExpressConnectInterfaceRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateSagExpressConnectInterfaceRequest::getIP()const -{ - return iP_; +void CreateSagExpressConnectInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSagExpressConnectInterfaceRequest::setIP(const std::string& iP) -{ - iP_ = iP; - setParameter("IP", iP); +std::string CreateSagExpressConnectInterfaceRequest::getIP() const { + return iP_; } -long CreateSagExpressConnectInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void CreateSagExpressConnectInterfaceRequest::setIP(const std::string &iP) { + iP_ = iP; + setParameter(std::string("IP"), iP); } -void CreateSagExpressConnectInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateSagExpressConnectInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string CreateSagExpressConnectInterfaceRequest::getSmartAGId()const -{ - return smartAGId_; +void CreateSagExpressConnectInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateSagExpressConnectInterfaceRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string CreateSagExpressConnectInterfaceRequest::getSmartAGId() const { + return smartAGId_; } -std::string CreateSagExpressConnectInterfaceRequest::getSmartAGSn()const -{ - return smartAGSn_; +void CreateSagExpressConnectInterfaceRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void CreateSagExpressConnectInterfaceRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string CreateSagExpressConnectInterfaceRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string CreateSagExpressConnectInterfaceRequest::getPortName()const -{ - return portName_; +void CreateSagExpressConnectInterfaceRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void CreateSagExpressConnectInterfaceRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string CreateSagExpressConnectInterfaceRequest::getPortName() const { + return portName_; +} + +void CreateSagExpressConnectInterfaceRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } diff --git a/smartag/src/model/CreateSagStaticRouteRequest.cc b/smartag/src/model/CreateSagStaticRouteRequest.cc index 61bd29d65..6d3e335db 100644 --- a/smartag/src/model/CreateSagStaticRouteRequest.cc +++ b/smartag/src/model/CreateSagStaticRouteRequest.cc @@ -1,150 +1,126 @@ /* * 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::Smartag::Model::CreateSagStaticRouteRequest; - -CreateSagStaticRouteRequest::CreateSagStaticRouteRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateSagStaticRoute") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSagStaticRouteRequest::~CreateSagStaticRouteRequest() -{} - -long CreateSagStaticRouteRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateSagStaticRouteRequest; + +CreateSagStaticRouteRequest::CreateSagStaticRouteRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateSagStaticRoute") { + setMethod(HttpRequest::Method::Post); } -void CreateSagStaticRouteRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSagStaticRouteRequest::~CreateSagStaticRouteRequest() {} + +long CreateSagStaticRouteRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSagStaticRouteRequest::getVlan()const -{ - return vlan_; +void CreateSagStaticRouteRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSagStaticRouteRequest::setVlan(const std::string& vlan) -{ - vlan_ = vlan; - setParameter("Vlan", vlan); +std::string CreateSagStaticRouteRequest::getVlan() const { + return vlan_; } -std::string CreateSagStaticRouteRequest::getRegionId()const -{ - return regionId_; +void CreateSagStaticRouteRequest::setVlan(const std::string &vlan) { + vlan_ = vlan; + setParameter(std::string("Vlan"), vlan); } -void CreateSagStaticRouteRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSagStaticRouteRequest::getRegionId() const { + return regionId_; } -std::string CreateSagStaticRouteRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSagStaticRouteRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSagStaticRouteRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateSagStaticRouteRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateSagStaticRouteRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSagStaticRouteRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSagStaticRouteRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSagStaticRouteRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateSagStaticRouteRequest::getOwnerId()const -{ - return ownerId_; +void CreateSagStaticRouteRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSagStaticRouteRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateSagStaticRouteRequest::getOwnerId() const { + return ownerId_; } -std::string CreateSagStaticRouteRequest::getNextHop()const -{ - return nextHop_; +void CreateSagStaticRouteRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateSagStaticRouteRequest::setNextHop(const std::string& nextHop) -{ - nextHop_ = nextHop; - setParameter("NextHop", nextHop); +std::string CreateSagStaticRouteRequest::getNextHop() const { + return nextHop_; } -std::string CreateSagStaticRouteRequest::getSmartAGId()const -{ - return smartAGId_; +void CreateSagStaticRouteRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); } -void CreateSagStaticRouteRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string CreateSagStaticRouteRequest::getSmartAGId() const { + return smartAGId_; } -std::string CreateSagStaticRouteRequest::getSmartAGSn()const -{ - return smartAGSn_; +void CreateSagStaticRouteRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void CreateSagStaticRouteRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string CreateSagStaticRouteRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string CreateSagStaticRouteRequest::getPortName()const -{ - return portName_; +void CreateSagStaticRouteRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void CreateSagStaticRouteRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string CreateSagStaticRouteRequest::getPortName() const { + return portName_; } -std::string CreateSagStaticRouteRequest::getDestinationCidr()const -{ - return destinationCidr_; +void CreateSagStaticRouteRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } -void CreateSagStaticRouteRequest::setDestinationCidr(const std::string& destinationCidr) -{ - destinationCidr_ = destinationCidr; - setParameter("DestinationCidr", destinationCidr); +std::string CreateSagStaticRouteRequest::getDestinationCidr() const { + return destinationCidr_; +} + +void CreateSagStaticRouteRequest::setDestinationCidr(const std::string &destinationCidr) { + destinationCidr_ = destinationCidr; + setParameter(std::string("DestinationCidr"), destinationCidr); } diff --git a/smartag/src/model/CreateSmartAccessGatewayClientUserRequest.cc b/smartag/src/model/CreateSmartAccessGatewayClientUserRequest.cc index 1ce660dd5..773d802bb 100644 --- a/smartag/src/model/CreateSmartAccessGatewayClientUserRequest.cc +++ b/smartag/src/model/CreateSmartAccessGatewayClientUserRequest.cc @@ -1,150 +1,126 @@ /* * 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::Smartag::Model::CreateSmartAccessGatewayClientUserRequest; - -CreateSmartAccessGatewayClientUserRequest::CreateSmartAccessGatewayClientUserRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewayClientUser") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSmartAccessGatewayClientUserRequest::~CreateSmartAccessGatewayClientUserRequest() -{} - -long CreateSmartAccessGatewayClientUserRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateSmartAccessGatewayClientUserRequest; + +CreateSmartAccessGatewayClientUserRequest::CreateSmartAccessGatewayClientUserRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewayClientUser") { + setMethod(HttpRequest::Method::Post); } -void CreateSmartAccessGatewayClientUserRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSmartAccessGatewayClientUserRequest::~CreateSmartAccessGatewayClientUserRequest() {} + +long CreateSmartAccessGatewayClientUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSmartAccessGatewayClientUserRequest::getPassword()const -{ - return password_; +void CreateSmartAccessGatewayClientUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSmartAccessGatewayClientUserRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +std::string CreateSmartAccessGatewayClientUserRequest::getPassword() const { + return password_; } -std::string CreateSmartAccessGatewayClientUserRequest::getRegionId()const -{ - return regionId_; +void CreateSmartAccessGatewayClientUserRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void CreateSmartAccessGatewayClientUserRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSmartAccessGatewayClientUserRequest::getRegionId() const { + return regionId_; } -std::string CreateSmartAccessGatewayClientUserRequest::getClientIp()const -{ - return clientIp_; +void CreateSmartAccessGatewayClientUserRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSmartAccessGatewayClientUserRequest::setClientIp(const std::string& clientIp) -{ - clientIp_ = clientIp; - setParameter("ClientIp", clientIp); +std::string CreateSmartAccessGatewayClientUserRequest::getClientIp() const { + return clientIp_; } -std::string CreateSmartAccessGatewayClientUserRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSmartAccessGatewayClientUserRequest::setClientIp(const std::string &clientIp) { + clientIp_ = clientIp; + setParameter(std::string("ClientIp"), clientIp); } -void CreateSmartAccessGatewayClientUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateSmartAccessGatewayClientUserRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CreateSmartAccessGatewayClientUserRequest::getBandwidth()const -{ - return bandwidth_; +void CreateSmartAccessGatewayClientUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSmartAccessGatewayClientUserRequest::setBandwidth(long bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +long CreateSmartAccessGatewayClientUserRequest::getBandwidth() const { + return bandwidth_; } -std::string CreateSmartAccessGatewayClientUserRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSmartAccessGatewayClientUserRequest::setBandwidth(long bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void CreateSmartAccessGatewayClientUserRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSmartAccessGatewayClientUserRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateSmartAccessGatewayClientUserRequest::getUserMail()const -{ - return userMail_; +void CreateSmartAccessGatewayClientUserRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSmartAccessGatewayClientUserRequest::setUserMail(const std::string& userMail) -{ - userMail_ = userMail; - setParameter("UserMail", userMail); +std::string CreateSmartAccessGatewayClientUserRequest::getUserMail() const { + return userMail_; } -long CreateSmartAccessGatewayClientUserRequest::getOwnerId()const -{ - return ownerId_; +void CreateSmartAccessGatewayClientUserRequest::setUserMail(const std::string &userMail) { + userMail_ = userMail; + setParameter(std::string("UserMail"), userMail); } -void CreateSmartAccessGatewayClientUserRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateSmartAccessGatewayClientUserRequest::getOwnerId() const { + return ownerId_; } -std::string CreateSmartAccessGatewayClientUserRequest::getSmartAGId()const -{ - return smartAGId_; +void CreateSmartAccessGatewayClientUserRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateSmartAccessGatewayClientUserRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string CreateSmartAccessGatewayClientUserRequest::getSmartAGId() const { + return smartAGId_; } -std::string CreateSmartAccessGatewayClientUserRequest::getUserName()const -{ - return userName_; +void CreateSmartAccessGatewayClientUserRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void CreateSmartAccessGatewayClientUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string CreateSmartAccessGatewayClientUserRequest::getUserName() const { + return userName_; +} + +void CreateSmartAccessGatewayClientUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/smartag/src/model/CreateSmartAccessGatewayRequest.cc b/smartag/src/model/CreateSmartAccessGatewayRequest.cc index 64f7f8b32..053c28804 100644 --- a/smartag/src/model/CreateSmartAccessGatewayRequest.cc +++ b/smartag/src/model/CreateSmartAccessGatewayRequest.cc @@ -1,359 +1,306 @@ /* * 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::Smartag::Model::CreateSmartAccessGatewayRequest; - -CreateSmartAccessGatewayRequest::CreateSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSmartAccessGatewayRequest::~CreateSmartAccessGatewayRequest() -{} - -long CreateSmartAccessGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateSmartAccessGatewayRequest; + +CreateSmartAccessGatewayRequest::CreateSmartAccessGatewayRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGateway") { + setMethod(HttpRequest::Method::Post); } -void CreateSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSmartAccessGatewayRequest::~CreateSmartAccessGatewayRequest() {} + +long CreateSmartAccessGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSmartAccessGatewayRequest::getReceiverTown()const -{ - return receiverTown_; +void CreateSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSmartAccessGatewayRequest::setReceiverTown(const std::string& receiverTown) -{ - receiverTown_ = receiverTown; - setParameter("ReceiverTown", receiverTown); +std::string CreateSmartAccessGatewayRequest::getReceiverTown() const { + return receiverTown_; } -std::string CreateSmartAccessGatewayRequest::getReceiverDistrict()const -{ - return receiverDistrict_; +void CreateSmartAccessGatewayRequest::setReceiverTown(const std::string &receiverTown) { + receiverTown_ = receiverTown; + setParameter(std::string("ReceiverTown"), receiverTown); } -void CreateSmartAccessGatewayRequest::setReceiverDistrict(const std::string& receiverDistrict) -{ - receiverDistrict_ = receiverDistrict; - setParameter("ReceiverDistrict", receiverDistrict); +std::string CreateSmartAccessGatewayRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateSmartAccessGatewayRequest::getBuyerMessage()const -{ - return buyerMessage_; +void CreateSmartAccessGatewayRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateSmartAccessGatewayRequest::setBuyerMessage(const std::string& buyerMessage) -{ - buyerMessage_ = buyerMessage; - setParameter("BuyerMessage", buyerMessage); +std::string CreateSmartAccessGatewayRequest::getReceiverDistrict() const { + return receiverDistrict_; } -std::string CreateSmartAccessGatewayRequest::getReceiverState()const -{ - return receiverState_; +void CreateSmartAccessGatewayRequest::setReceiverDistrict(const std::string &receiverDistrict) { + receiverDistrict_ = receiverDistrict; + setParameter(std::string("ReceiverDistrict"), receiverDistrict); } -void CreateSmartAccessGatewayRequest::setReceiverState(const std::string& receiverState) -{ - receiverState_ = receiverState; - setParameter("ReceiverState", receiverState); +std::string CreateSmartAccessGatewayRequest::getBuyerMessage() const { + return buyerMessage_; } -int CreateSmartAccessGatewayRequest::getPeriod()const -{ - return period_; +void CreateSmartAccessGatewayRequest::setBuyerMessage(const std::string &buyerMessage) { + buyerMessage_ = buyerMessage; + setParameter(std::string("BuyerMessage"), buyerMessage); } -void CreateSmartAccessGatewayRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +std::string CreateSmartAccessGatewayRequest::getReceiverState() const { + return receiverState_; } -long CreateSmartAccessGatewayRequest::getOwnerId()const -{ - return ownerId_; +void CreateSmartAccessGatewayRequest::setReceiverState(const std::string &receiverState) { + receiverState_ = receiverState; + setParameter(std::string("ReceiverState"), receiverState); } -void CreateSmartAccessGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +int CreateSmartAccessGatewayRequest::getPeriod() const { + return period_; } -std::string CreateSmartAccessGatewayRequest::getReceiverPhone()const -{ - return receiverPhone_; +void CreateSmartAccessGatewayRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateSmartAccessGatewayRequest::setReceiverPhone(const std::string& receiverPhone) -{ - receiverPhone_ = receiverPhone; - setParameter("ReceiverPhone", receiverPhone); +long CreateSmartAccessGatewayRequest::getOwnerId() const { + return ownerId_; } -std::string CreateSmartAccessGatewayRequest::getHaType()const -{ - return haType_; +void CreateSmartAccessGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateSmartAccessGatewayRequest::setHaType(const std::string& haType) -{ - haType_ = haType; - setParameter("HaType", haType); +std::string CreateSmartAccessGatewayRequest::getReceiverPhone() const { + return receiverPhone_; } -std::string CreateSmartAccessGatewayRequest::getName()const -{ - return name_; +void CreateSmartAccessGatewayRequest::setReceiverPhone(const std::string &receiverPhone) { + receiverPhone_ = receiverPhone; + setParameter(std::string("ReceiverPhone"), receiverPhone); } -void CreateSmartAccessGatewayRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateSmartAccessGatewayRequest::getHaType() const { + return haType_; } -std::string CreateSmartAccessGatewayRequest::getReceiverCountry()const -{ - return receiverCountry_; +void CreateSmartAccessGatewayRequest::setHaType(const std::string &haType) { + haType_ = haType; + setParameter(std::string("HaType"), haType); } -void CreateSmartAccessGatewayRequest::setReceiverCountry(const std::string& receiverCountry) -{ - receiverCountry_ = receiverCountry; - setParameter("ReceiverCountry", receiverCountry); +std::string CreateSmartAccessGatewayRequest::getName() const { + return name_; } -int CreateSmartAccessGatewayRequest::getMaxBandWidth()const -{ - return maxBandWidth_; +void CreateSmartAccessGatewayRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateSmartAccessGatewayRequest::setMaxBandWidth(int maxBandWidth) -{ - maxBandWidth_ = maxBandWidth; - setParameter("MaxBandWidth", std::to_string(maxBandWidth)); +std::string CreateSmartAccessGatewayRequest::getReceiverCountry() const { + return receiverCountry_; } -std::string CreateSmartAccessGatewayRequest::getDescription()const -{ - return description_; +void CreateSmartAccessGatewayRequest::setReceiverCountry(const std::string &receiverCountry) { + receiverCountry_ = receiverCountry; + setParameter(std::string("ReceiverCountry"), receiverCountry); } -void CreateSmartAccessGatewayRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +int CreateSmartAccessGatewayRequest::getMaxBandWidth() const { + return maxBandWidth_; } -std::string CreateSmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; +void CreateSmartAccessGatewayRequest::setMaxBandWidth(int maxBandWidth) { + maxBandWidth_ = maxBandWidth; + setParameter(std::string("MaxBandWidth"), std::to_string(maxBandWidth)); } -void CreateSmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSmartAccessGatewayRequest::getDescription() const { + return description_; } -int CreateSmartAccessGatewayRequest::getUserCount()const -{ - return userCount_; +void CreateSmartAccessGatewayRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateSmartAccessGatewayRequest::setUserCount(int userCount) -{ - userCount_ = userCount; - setParameter("UserCount", std::to_string(userCount)); +std::string CreateSmartAccessGatewayRequest::getRegionId() const { + return regionId_; } -std::string CreateSmartAccessGatewayRequest::getReceiverAddress()const -{ - return receiverAddress_; +void CreateSmartAccessGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSmartAccessGatewayRequest::setReceiverAddress(const std::string& receiverAddress) -{ - receiverAddress_ = receiverAddress; - setParameter("ReceiverAddress", receiverAddress); +int CreateSmartAccessGatewayRequest::getUserCount() const { + return userCount_; } -std::string CreateSmartAccessGatewayRequest::getInstanceType()const -{ - return instanceType_; +void CreateSmartAccessGatewayRequest::setUserCount(int userCount) { + userCount_ = userCount; + setParameter(std::string("UserCount"), std::to_string(userCount)); } -void CreateSmartAccessGatewayRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string CreateSmartAccessGatewayRequest::getReceiverAddress() const { + return receiverAddress_; } -std::string CreateSmartAccessGatewayRequest::getHardWareSpec()const -{ - return hardWareSpec_; +void CreateSmartAccessGatewayRequest::setReceiverAddress(const std::string &receiverAddress) { + receiverAddress_ = receiverAddress; + setParameter(std::string("ReceiverAddress"), receiverAddress); } -void CreateSmartAccessGatewayRequest::setHardWareSpec(const std::string& hardWareSpec) -{ - hardWareSpec_ = hardWareSpec; - setParameter("HardWareSpec", hardWareSpec); +std::string CreateSmartAccessGatewayRequest::getInstanceType() const { + return instanceType_; } -std::string CreateSmartAccessGatewayRequest::getReceiverEmail()const -{ - return receiverEmail_; +void CreateSmartAccessGatewayRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void CreateSmartAccessGatewayRequest::setReceiverEmail(const std::string& receiverEmail) -{ - receiverEmail_ = receiverEmail; - setParameter("ReceiverEmail", receiverEmail); +std::string CreateSmartAccessGatewayRequest::getHardWareSpec() const { + return hardWareSpec_; } -std::string CreateSmartAccessGatewayRequest::getReceiverCity()const -{ - return receiverCity_; +void CreateSmartAccessGatewayRequest::setHardWareSpec(const std::string &hardWareSpec) { + hardWareSpec_ = hardWareSpec; + setParameter(std::string("HardWareSpec"), hardWareSpec); } -void CreateSmartAccessGatewayRequest::setReceiverCity(const std::string& receiverCity) -{ - receiverCity_ = receiverCity; - setParameter("ReceiverCity", receiverCity); +std::string CreateSmartAccessGatewayRequest::getReceiverEmail() const { + return receiverEmail_; } -bool CreateSmartAccessGatewayRequest::getAutoPay()const -{ - return autoPay_; +void CreateSmartAccessGatewayRequest::setReceiverEmail(const std::string &receiverEmail) { + receiverEmail_ = receiverEmail; + setParameter(std::string("ReceiverEmail"), receiverEmail); } -void CreateSmartAccessGatewayRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +std::string CreateSmartAccessGatewayRequest::getReceiverCity() const { + return receiverCity_; } -std::string CreateSmartAccessGatewayRequest::getCPEVersion()const -{ - return cPEVersion_; +void CreateSmartAccessGatewayRequest::setReceiverCity(const std::string &receiverCity) { + receiverCity_ = receiverCity; + setParameter(std::string("ReceiverCity"), receiverCity); } -void CreateSmartAccessGatewayRequest::setCPEVersion(const std::string& cPEVersion) -{ - cPEVersion_ = cPEVersion; - setParameter("CPEVersion", cPEVersion); +bool CreateSmartAccessGatewayRequest::getAutoPay() const { + return autoPay_; } -std::string CreateSmartAccessGatewayRequest::getReceiverMobile()const -{ - return receiverMobile_; +void CreateSmartAccessGatewayRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreateSmartAccessGatewayRequest::setReceiverMobile(const std::string& receiverMobile) -{ - receiverMobile_ = receiverMobile; - setParameter("ReceiverMobile", receiverMobile); +std::string CreateSmartAccessGatewayRequest::getCPEVersion() const { + return cPEVersion_; } -std::string CreateSmartAccessGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSmartAccessGatewayRequest::setCPEVersion(const std::string &cPEVersion) { + cPEVersion_ = cPEVersion; + setParameter(std::string("CPEVersion"), cPEVersion); } -void CreateSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateSmartAccessGatewayRequest::getReceiverMobile() const { + return receiverMobile_; } -std::string CreateSmartAccessGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSmartAccessGatewayRequest::setReceiverMobile(const std::string &receiverMobile) { + receiverMobile_ = receiverMobile; + setParameter(std::string("ReceiverMobile"), receiverMobile); } -void CreateSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSmartAccessGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateSmartAccessGatewayRequest::getReceiverName()const -{ - return receiverName_; +void CreateSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSmartAccessGatewayRequest::setReceiverName(const std::string& receiverName) -{ - receiverName_ = receiverName; - setParameter("ReceiverName", receiverName); +std::string CreateSmartAccessGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -bool CreateSmartAccessGatewayRequest::getAlreadyHaveSag()const -{ - return alreadyHaveSag_; +void CreateSmartAccessGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSmartAccessGatewayRequest::setAlreadyHaveSag(bool alreadyHaveSag) -{ - alreadyHaveSag_ = alreadyHaveSag; - setParameter("AlreadyHaveSag", alreadyHaveSag ? "true" : "false"); +std::string CreateSmartAccessGatewayRequest::getReceiverName() const { + return receiverName_; } -std::string CreateSmartAccessGatewayRequest::getChargeType()const -{ - return chargeType_; +void CreateSmartAccessGatewayRequest::setReceiverName(const std::string &receiverName) { + receiverName_ = receiverName; + setParameter(std::string("ReceiverName"), receiverName); } -void CreateSmartAccessGatewayRequest::setChargeType(const std::string& chargeType) -{ - chargeType_ = chargeType; - setParameter("ChargeType", chargeType); +bool CreateSmartAccessGatewayRequest::getAlreadyHaveSag() const { + return alreadyHaveSag_; } -long CreateSmartAccessGatewayRequest::getDataPlan()const -{ - return dataPlan_; +void CreateSmartAccessGatewayRequest::setAlreadyHaveSag(bool alreadyHaveSag) { + alreadyHaveSag_ = alreadyHaveSag; + setParameter(std::string("AlreadyHaveSag"), alreadyHaveSag ? "true" : "false"); } -void CreateSmartAccessGatewayRequest::setDataPlan(long dataPlan) -{ - dataPlan_ = dataPlan; - setParameter("DataPlan", std::to_string(dataPlan)); +std::string CreateSmartAccessGatewayRequest::getChargeType() const { + return chargeType_; } -std::string CreateSmartAccessGatewayRequest::getReceiverZip()const -{ - return receiverZip_; +void CreateSmartAccessGatewayRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); } -void CreateSmartAccessGatewayRequest::setReceiverZip(const std::string& receiverZip) -{ - receiverZip_ = receiverZip; - setParameter("ReceiverZip", receiverZip); +long CreateSmartAccessGatewayRequest::getDataPlan() const { + return dataPlan_; +} + +void CreateSmartAccessGatewayRequest::setDataPlan(long dataPlan) { + dataPlan_ = dataPlan; + setParameter(std::string("DataPlan"), std::to_string(dataPlan)); +} + +std::string CreateSmartAccessGatewayRequest::getReceiverZip() const { + return receiverZip_; +} + +void CreateSmartAccessGatewayRequest::setReceiverZip(const std::string &receiverZip) { + receiverZip_ = receiverZip; + setParameter(std::string("ReceiverZip"), receiverZip); } diff --git a/smartag/src/model/CreateSmartAccessGatewayResult.cc b/smartag/src/model/CreateSmartAccessGatewayResult.cc index 36bf4f662..702ca86b5 100644 --- a/smartag/src/model/CreateSmartAccessGatewayResult.cc +++ b/smartag/src/model/CreateSmartAccessGatewayResult.cc @@ -41,12 +41,14 @@ void CreateSmartAccessGatewayResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - if(!value["SmartAGId"].isNull()) - smartAGId_ = value["SmartAGId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); + if(!value["SmartAGId"].isNull()) + smartAGId_ = value["SmartAGId"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -55,9 +57,9 @@ std::string CreateSmartAccessGatewayResult::getDescription()const return description_; } -std::string CreateSmartAccessGatewayResult::getSmartAGId()const +std::string CreateSmartAccessGatewayResult::getResourceGroupId()const { - return smartAGId_; + return resourceGroupId_; } std::string CreateSmartAccessGatewayResult::getOrderId()const @@ -65,6 +67,11 @@ std::string CreateSmartAccessGatewayResult::getOrderId()const return orderId_; } +std::string CreateSmartAccessGatewayResult::getSmartAGId()const +{ + return smartAGId_; +} + std::string CreateSmartAccessGatewayResult::getName()const { return name_; diff --git a/smartag/src/model/CreateSmartAccessGatewaySoftwareRequest.cc b/smartag/src/model/CreateSmartAccessGatewaySoftwareRequest.cc index 6b05ffbd7..0a827769c 100644 --- a/smartag/src/model/CreateSmartAccessGatewaySoftwareRequest.cc +++ b/smartag/src/model/CreateSmartAccessGatewaySoftwareRequest.cc @@ -1,139 +1,126 @@ /* * 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::Smartag::Model::CreateSmartAccessGatewaySoftwareRequest; - -CreateSmartAccessGatewaySoftwareRequest::CreateSmartAccessGatewaySoftwareRequest() : - RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewaySoftware") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSmartAccessGatewaySoftwareRequest::~CreateSmartAccessGatewaySoftwareRequest() -{} - -long CreateSmartAccessGatewaySoftwareRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::CreateSmartAccessGatewaySoftwareRequest; + +CreateSmartAccessGatewaySoftwareRequest::CreateSmartAccessGatewaySoftwareRequest() + : RpcServiceRequest("smartag", "2018-03-13", "CreateSmartAccessGatewaySoftware") { + setMethod(HttpRequest::Method::Post); } -void CreateSmartAccessGatewaySoftwareRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSmartAccessGatewaySoftwareRequest::~CreateSmartAccessGatewaySoftwareRequest() {} + +long CreateSmartAccessGatewaySoftwareRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSmartAccessGatewaySoftwareRequest::getRegionId()const -{ - return regionId_; +void CreateSmartAccessGatewaySoftwareRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSmartAccessGatewaySoftwareRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSmartAccessGatewaySoftwareRequest::getResourceGroupId() const { + return resourceGroupId_; } -int CreateSmartAccessGatewaySoftwareRequest::getUserCount()const -{ - return userCount_; +void CreateSmartAccessGatewaySoftwareRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateSmartAccessGatewaySoftwareRequest::setUserCount(int userCount) -{ - userCount_ = userCount; - setParameter("UserCount", std::to_string(userCount)); +std::string CreateSmartAccessGatewaySoftwareRequest::getRegionId() const { + return regionId_; } -int CreateSmartAccessGatewaySoftwareRequest::getPeriod()const -{ - return period_; +void CreateSmartAccessGatewaySoftwareRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSmartAccessGatewaySoftwareRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int CreateSmartAccessGatewaySoftwareRequest::getUserCount() const { + return userCount_; } -bool CreateSmartAccessGatewaySoftwareRequest::getAutoPay()const -{ - return autoPay_; +void CreateSmartAccessGatewaySoftwareRequest::setUserCount(int userCount) { + userCount_ = userCount; + setParameter(std::string("UserCount"), std::to_string(userCount)); } -void CreateSmartAccessGatewaySoftwareRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +int CreateSmartAccessGatewaySoftwareRequest::getPeriod() const { + return period_; } -std::string CreateSmartAccessGatewaySoftwareRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSmartAccessGatewaySoftwareRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateSmartAccessGatewaySoftwareRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +bool CreateSmartAccessGatewaySoftwareRequest::getAutoPay() const { + return autoPay_; } -std::string CreateSmartAccessGatewaySoftwareRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSmartAccessGatewaySoftwareRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreateSmartAccessGatewaySoftwareRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSmartAccessGatewaySoftwareRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CreateSmartAccessGatewaySoftwareRequest::getOwnerId()const -{ - return ownerId_; +void CreateSmartAccessGatewaySoftwareRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSmartAccessGatewaySoftwareRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string CreateSmartAccessGatewaySoftwareRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateSmartAccessGatewaySoftwareRequest::getChargeType()const -{ - return chargeType_; +void CreateSmartAccessGatewaySoftwareRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSmartAccessGatewaySoftwareRequest::setChargeType(const std::string& chargeType) -{ - chargeType_ = chargeType; - setParameter("ChargeType", chargeType); +long CreateSmartAccessGatewaySoftwareRequest::getOwnerId() const { + return ownerId_; } -long CreateSmartAccessGatewaySoftwareRequest::getDataPlan()const -{ - return dataPlan_; +void CreateSmartAccessGatewaySoftwareRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateSmartAccessGatewaySoftwareRequest::setDataPlan(long dataPlan) -{ - dataPlan_ = dataPlan; - setParameter("DataPlan", std::to_string(dataPlan)); +std::string CreateSmartAccessGatewaySoftwareRequest::getChargeType() const { + return chargeType_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); +} + +long CreateSmartAccessGatewaySoftwareRequest::getDataPlan() const { + return dataPlan_; +} + +void CreateSmartAccessGatewaySoftwareRequest::setDataPlan(long dataPlan) { + dataPlan_ = dataPlan; + setParameter(std::string("DataPlan"), std::to_string(dataPlan)); } diff --git a/smartag/src/model/CreateSmartAccessGatewaySoftwareResult.cc b/smartag/src/model/CreateSmartAccessGatewaySoftwareResult.cc index 215f1dfde..029d45467 100644 --- a/smartag/src/model/CreateSmartAccessGatewaySoftwareResult.cc +++ b/smartag/src/model/CreateSmartAccessGatewaySoftwareResult.cc @@ -39,16 +39,18 @@ void CreateSmartAccessGatewaySoftwareResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["SmartAGId"].isNull()) - smartAGId_ = value["SmartAGId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); + if(!value["SmartAGId"].isNull()) + smartAGId_ = value["SmartAGId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } -std::string CreateSmartAccessGatewaySoftwareResult::getSmartAGId()const +std::string CreateSmartAccessGatewaySoftwareResult::getResourceGroupId()const { - return smartAGId_; + return resourceGroupId_; } std::string CreateSmartAccessGatewaySoftwareResult::getOrderId()const @@ -56,3 +58,8 @@ std::string CreateSmartAccessGatewaySoftwareResult::getOrderId()const return orderId_; } +std::string CreateSmartAccessGatewaySoftwareResult::getSmartAGId()const +{ + return smartAGId_; +} + diff --git a/smartag/src/model/DeactiveFlowLogRequest.cc b/smartag/src/model/DeactiveFlowLogRequest.cc index 122d5de12..bfa8dea58 100644 --- a/smartag/src/model/DeactiveFlowLogRequest.cc +++ b/smartag/src/model/DeactiveFlowLogRequest.cc @@ -1,95 +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::Smartag::Model::DeactiveFlowLogRequest; - -DeactiveFlowLogRequest::DeactiveFlowLogRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeactiveFlowLog") -{ - setMethod(HttpRequest::Method::Post); -} - -DeactiveFlowLogRequest::~DeactiveFlowLogRequest() -{} - -long DeactiveFlowLogRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeactiveFlowLogRequest; + +DeactiveFlowLogRequest::DeactiveFlowLogRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeactiveFlowLog") { + setMethod(HttpRequest::Method::Post); } -void DeactiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeactiveFlowLogRequest::~DeactiveFlowLogRequest() {} + +long DeactiveFlowLogRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeactiveFlowLogRequest::getRegionId()const -{ - return regionId_; +void DeactiveFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeactiveFlowLogRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeactiveFlowLogRequest::getRegionId() const { + return regionId_; } -std::string DeactiveFlowLogRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeactiveFlowLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeactiveFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeactiveFlowLogRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeactiveFlowLogRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeactiveFlowLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeactiveFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeactiveFlowLogRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeactiveFlowLogRequest::getOwnerId()const -{ - return ownerId_; +void DeactiveFlowLogRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeactiveFlowLogRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeactiveFlowLogRequest::getOwnerId() const { + return ownerId_; } -std::string DeactiveFlowLogRequest::getFlowLogId()const -{ - return flowLogId_; +void DeactiveFlowLogRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeactiveFlowLogRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +std::string DeactiveFlowLogRequest::getFlowLogId() const { + return flowLogId_; +} + +void DeactiveFlowLogRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } diff --git a/smartag/src/model/DeleteACLRequest.cc b/smartag/src/model/DeleteACLRequest.cc index f9526caec..c52ac3908 100644 --- a/smartag/src/model/DeleteACLRequest.cc +++ b/smartag/src/model/DeleteACLRequest.cc @@ -1,95 +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::Smartag::Model::DeleteACLRequest; - -DeleteACLRequest::DeleteACLRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteACL") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteACLRequest::~DeleteACLRequest() -{} - -long DeleteACLRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteACLRequest; + +DeleteACLRequest::DeleteACLRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteACL") { + setMethod(HttpRequest::Method::Post); } -void DeleteACLRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteACLRequest::~DeleteACLRequest() {} + +long DeleteACLRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteACLRequest::getRegionId()const -{ - return regionId_; +void DeleteACLRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteACLRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteACLRequest::getRegionId() const { + return regionId_; } -std::string DeleteACLRequest::getAclId()const -{ - return aclId_; +void DeleteACLRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteACLRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string DeleteACLRequest::getAclId() const { + return aclId_; } -std::string DeleteACLRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteACLRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void DeleteACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteACLRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteACLRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteACLRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteACLRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteACLRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteACLRequest::getOwnerId()const -{ - return ownerId_; +void DeleteACLRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteACLRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteACLRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteACLRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/smartag/src/model/DeleteACLRuleRequest.cc b/smartag/src/model/DeleteACLRuleRequest.cc index c0cb4578e..ccdecda19 100644 --- a/smartag/src/model/DeleteACLRuleRequest.cc +++ b/smartag/src/model/DeleteACLRuleRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DeleteACLRuleRequest; - -DeleteACLRuleRequest::DeleteACLRuleRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteACLRule") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteACLRuleRequest::~DeleteACLRuleRequest() -{} - -long DeleteACLRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteACLRuleRequest; + +DeleteACLRuleRequest::DeleteACLRuleRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteACLRule") { + setMethod(HttpRequest::Method::Post); } -void DeleteACLRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteACLRuleRequest::~DeleteACLRuleRequest() {} + +long DeleteACLRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteACLRuleRequest::getRegionId()const -{ - return regionId_; +void DeleteACLRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteACLRuleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteACLRuleRequest::getRegionId() const { + return regionId_; } -std::string DeleteACLRuleRequest::getAclId()const -{ - return aclId_; +void DeleteACLRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteACLRuleRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string DeleteACLRuleRequest::getAclId() const { + return aclId_; } -std::string DeleteACLRuleRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteACLRuleRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void DeleteACLRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteACLRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteACLRuleRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteACLRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteACLRuleRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteACLRuleRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteACLRuleRequest::getOwnerId()const -{ - return ownerId_; +void DeleteACLRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteACLRuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteACLRuleRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteACLRuleRequest::getAcrId()const -{ - return acrId_; +void DeleteACLRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteACLRuleRequest::setAcrId(const std::string& acrId) -{ - acrId_ = acrId; - setParameter("AcrId", acrId); +std::string DeleteACLRuleRequest::getAcrId() const { + return acrId_; +} + +void DeleteACLRuleRequest::setAcrId(const std::string &acrId) { + acrId_ = acrId; + setParameter(std::string("AcrId"), acrId); } diff --git a/smartag/src/model/DeleteCloudConnectNetworkRequest.cc b/smartag/src/model/DeleteCloudConnectNetworkRequest.cc index 473871556..f98f9c05d 100644 --- a/smartag/src/model/DeleteCloudConnectNetworkRequest.cc +++ b/smartag/src/model/DeleteCloudConnectNetworkRequest.cc @@ -1,95 +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::Smartag::Model::DeleteCloudConnectNetworkRequest; - -DeleteCloudConnectNetworkRequest::DeleteCloudConnectNetworkRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteCloudConnectNetwork") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteCloudConnectNetworkRequest::~DeleteCloudConnectNetworkRequest() -{} - -long DeleteCloudConnectNetworkRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteCloudConnectNetworkRequest; + +DeleteCloudConnectNetworkRequest::DeleteCloudConnectNetworkRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteCloudConnectNetwork") { + setMethod(HttpRequest::Method::Post); } -void DeleteCloudConnectNetworkRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteCloudConnectNetworkRequest::~DeleteCloudConnectNetworkRequest() {} + +long DeleteCloudConnectNetworkRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteCloudConnectNetworkRequest::getCcnId()const -{ - return ccnId_; +void DeleteCloudConnectNetworkRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteCloudConnectNetworkRequest::setCcnId(const std::string& ccnId) -{ - ccnId_ = ccnId; - setParameter("CcnId", ccnId); +std::string DeleteCloudConnectNetworkRequest::getCcnId() const { + return ccnId_; } -std::string DeleteCloudConnectNetworkRequest::getRegionId()const -{ - return regionId_; +void DeleteCloudConnectNetworkRequest::setCcnId(const std::string &ccnId) { + ccnId_ = ccnId; + setParameter(std::string("CcnId"), ccnId); } -void DeleteCloudConnectNetworkRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteCloudConnectNetworkRequest::getRegionId() const { + return regionId_; } -std::string DeleteCloudConnectNetworkRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteCloudConnectNetworkRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteCloudConnectNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteCloudConnectNetworkRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteCloudConnectNetworkRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteCloudConnectNetworkRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteCloudConnectNetworkRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteCloudConnectNetworkRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteCloudConnectNetworkRequest::getOwnerId()const -{ - return ownerId_; +void DeleteCloudConnectNetworkRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteCloudConnectNetworkRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteCloudConnectNetworkRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteCloudConnectNetworkRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/smartag/src/model/DeleteDnatEntryRequest.cc b/smartag/src/model/DeleteDnatEntryRequest.cc index 69d07f53a..23e1a41db 100644 --- a/smartag/src/model/DeleteDnatEntryRequest.cc +++ b/smartag/src/model/DeleteDnatEntryRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DeleteDnatEntryRequest; - -DeleteDnatEntryRequest::DeleteDnatEntryRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteDnatEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDnatEntryRequest::~DeleteDnatEntryRequest() -{} - -long DeleteDnatEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteDnatEntryRequest; + +DeleteDnatEntryRequest::DeleteDnatEntryRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteDnatEntry") { + setMethod(HttpRequest::Method::Post); } -void DeleteDnatEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteDnatEntryRequest::~DeleteDnatEntryRequest() {} + +long DeleteDnatEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteDnatEntryRequest::getDnatEntryId()const -{ - return dnatEntryId_; +void DeleteDnatEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteDnatEntryRequest::setDnatEntryId(const std::string& dnatEntryId) -{ - dnatEntryId_ = dnatEntryId; - setParameter("DnatEntryId", dnatEntryId); +std::string DeleteDnatEntryRequest::getDnatEntryId() const { + return dnatEntryId_; } -std::string DeleteDnatEntryRequest::getRegionId()const -{ - return regionId_; +void DeleteDnatEntryRequest::setDnatEntryId(const std::string &dnatEntryId) { + dnatEntryId_ = dnatEntryId; + setParameter(std::string("DnatEntryId"), dnatEntryId); } -void DeleteDnatEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteDnatEntryRequest::getRegionId() const { + return regionId_; } -std::string DeleteDnatEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteDnatEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteDnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteDnatEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteDnatEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteDnatEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteDnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteDnatEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteDnatEntryRequest::getOwnerId()const -{ - return ownerId_; +void DeleteDnatEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteDnatEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteDnatEntryRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteDnatEntryRequest::getSagId()const -{ - return sagId_; +void DeleteDnatEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteDnatEntryRequest::setSagId(const std::string& sagId) -{ - sagId_ = sagId; - setParameter("SagId", sagId); +std::string DeleteDnatEntryRequest::getSagId() const { + return sagId_; +} + +void DeleteDnatEntryRequest::setSagId(const std::string &sagId) { + sagId_ = sagId; + setParameter(std::string("SagId"), sagId); } diff --git a/smartag/src/model/DeleteEnterpriseCodeRequest.cc b/smartag/src/model/DeleteEnterpriseCodeRequest.cc index 462a4be53..1deeb2484 100644 --- a/smartag/src/model/DeleteEnterpriseCodeRequest.cc +++ b/smartag/src/model/DeleteEnterpriseCodeRequest.cc @@ -1,73 +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::Smartag::Model::DeleteEnterpriseCodeRequest; - -DeleteEnterpriseCodeRequest::DeleteEnterpriseCodeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteEnterpriseCode") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteEnterpriseCodeRequest::~DeleteEnterpriseCodeRequest() -{} - -std::string DeleteEnterpriseCodeRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteEnterpriseCodeRequest; + +DeleteEnterpriseCodeRequest::DeleteEnterpriseCodeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteEnterpriseCode") { + setMethod(HttpRequest::Method::Post); } -void DeleteEnterpriseCodeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +DeleteEnterpriseCodeRequest::~DeleteEnterpriseCodeRequest() {} + +std::string DeleteEnterpriseCodeRequest::getClientToken() const { + return clientToken_; } -std::string DeleteEnterpriseCodeRequest::getRegionId()const -{ - return regionId_; +void DeleteEnterpriseCodeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteEnterpriseCodeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteEnterpriseCodeRequest::getRegionId() const { + return regionId_; } -std::string DeleteEnterpriseCodeRequest::getEnterpriseCode()const -{ - return enterpriseCode_; +void DeleteEnterpriseCodeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteEnterpriseCodeRequest::setEnterpriseCode(const std::string& enterpriseCode) -{ - enterpriseCode_ = enterpriseCode; - setParameter("EnterpriseCode", enterpriseCode); +std::string DeleteEnterpriseCodeRequest::getEnterpriseCode() const { + return enterpriseCode_; } -bool DeleteEnterpriseCodeRequest::getDryRun()const -{ - return dryRun_; +void DeleteEnterpriseCodeRequest::setEnterpriseCode(const std::string &enterpriseCode) { + enterpriseCode_ = enterpriseCode; + setParameter(std::string("EnterpriseCode"), enterpriseCode); } -void DeleteEnterpriseCodeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DeleteEnterpriseCodeRequest::getDryRun() const { + return dryRun_; +} + +void DeleteEnterpriseCodeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } diff --git a/smartag/src/model/DeleteFlowLogRequest.cc b/smartag/src/model/DeleteFlowLogRequest.cc index 6ba4b0022..f3cf60682 100644 --- a/smartag/src/model/DeleteFlowLogRequest.cc +++ b/smartag/src/model/DeleteFlowLogRequest.cc @@ -1,95 +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::Smartag::Model::DeleteFlowLogRequest; - -DeleteFlowLogRequest::DeleteFlowLogRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteFlowLog") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteFlowLogRequest::~DeleteFlowLogRequest() -{} - -long DeleteFlowLogRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteFlowLogRequest; + +DeleteFlowLogRequest::DeleteFlowLogRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteFlowLog") { + setMethod(HttpRequest::Method::Post); } -void DeleteFlowLogRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteFlowLogRequest::~DeleteFlowLogRequest() {} + +long DeleteFlowLogRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteFlowLogRequest::getRegionId()const -{ - return regionId_; +void DeleteFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteFlowLogRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteFlowLogRequest::getRegionId() const { + return regionId_; } -std::string DeleteFlowLogRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteFlowLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteFlowLogRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteFlowLogRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteFlowLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteFlowLogRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteFlowLogRequest::getOwnerId()const -{ - return ownerId_; +void DeleteFlowLogRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteFlowLogRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteFlowLogRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteFlowLogRequest::getFlowLogId()const -{ - return flowLogId_; +void DeleteFlowLogRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteFlowLogRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +std::string DeleteFlowLogRequest::getFlowLogId() const { + return flowLogId_; +} + +void DeleteFlowLogRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } diff --git a/smartag/src/model/DeleteHealthCheckRequest.cc b/smartag/src/model/DeleteHealthCheckRequest.cc index 499bf6d6f..b85b7296a 100644 --- a/smartag/src/model/DeleteHealthCheckRequest.cc +++ b/smartag/src/model/DeleteHealthCheckRequest.cc @@ -1,95 +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::Smartag::Model::DeleteHealthCheckRequest; - -DeleteHealthCheckRequest::DeleteHealthCheckRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteHealthCheck") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteHealthCheckRequest::~DeleteHealthCheckRequest() -{} - -long DeleteHealthCheckRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteHealthCheckRequest; + +DeleteHealthCheckRequest::DeleteHealthCheckRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteHealthCheck") { + setMethod(HttpRequest::Method::Post); } -void DeleteHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteHealthCheckRequest::~DeleteHealthCheckRequest() {} + +long DeleteHealthCheckRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteHealthCheckRequest::getHcInstanceId()const -{ - return hcInstanceId_; +void DeleteHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteHealthCheckRequest::setHcInstanceId(const std::string& hcInstanceId) -{ - hcInstanceId_ = hcInstanceId; - setParameter("HcInstanceId", hcInstanceId); +std::string DeleteHealthCheckRequest::getHcInstanceId() const { + return hcInstanceId_; } -std::string DeleteHealthCheckRequest::getRegionId()const -{ - return regionId_; +void DeleteHealthCheckRequest::setHcInstanceId(const std::string &hcInstanceId) { + hcInstanceId_ = hcInstanceId; + setParameter(std::string("HcInstanceId"), hcInstanceId); } -void DeleteHealthCheckRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteHealthCheckRequest::getRegionId() const { + return regionId_; } -std::string DeleteHealthCheckRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteHealthCheckRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteHealthCheckRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteHealthCheckRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteHealthCheckRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteHealthCheckRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteHealthCheckRequest::getOwnerId()const -{ - return ownerId_; +void DeleteHealthCheckRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteHealthCheckRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteHealthCheckRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteHealthCheckRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/smartag/src/model/DeleteNetworkOptimizationRequest.cc b/smartag/src/model/DeleteNetworkOptimizationRequest.cc deleted file mode 100644 index 6ed6f06c1..000000000 --- a/smartag/src/model/DeleteNetworkOptimizationRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * 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::Smartag::Model::DeleteNetworkOptimizationRequest; - -DeleteNetworkOptimizationRequest::DeleteNetworkOptimizationRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteNetworkOptimization") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteNetworkOptimizationRequest::~DeleteNetworkOptimizationRequest() -{} - -long DeleteNetworkOptimizationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DeleteNetworkOptimizationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DeleteNetworkOptimizationRequest::getRegionId()const -{ - return regionId_; -} - -void DeleteNetworkOptimizationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DeleteNetworkOptimizationRequest::getNetworkOptId()const -{ - return networkOptId_; -} - -void DeleteNetworkOptimizationRequest::setNetworkOptId(const std::string& networkOptId) -{ - networkOptId_ = networkOptId; - setParameter("NetworkOptId", networkOptId); -} - -std::string DeleteNetworkOptimizationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DeleteNetworkOptimizationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DeleteNetworkOptimizationRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DeleteNetworkOptimizationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DeleteNetworkOptimizationRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteNetworkOptimizationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/DeleteNetworkOptimizationResult.cc b/smartag/src/model/DeleteNetworkOptimizationResult.cc deleted file mode 100644 index 2d9d6a4d9..000000000 --- a/smartag/src/model/DeleteNetworkOptimizationResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteNetworkOptimizationResult::DeleteNetworkOptimizationResult() : - ServiceResult() -{} - -DeleteNetworkOptimizationResult::DeleteNetworkOptimizationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteNetworkOptimizationResult::~DeleteNetworkOptimizationResult() -{} - -void DeleteNetworkOptimizationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/DeleteNetworkOptimizationSettingRequest.cc b/smartag/src/model/DeleteNetworkOptimizationSettingRequest.cc deleted file mode 100644 index 98d0c50b4..000000000 --- a/smartag/src/model/DeleteNetworkOptimizationSettingRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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::Smartag::Model::DeleteNetworkOptimizationSettingRequest; - -DeleteNetworkOptimizationSettingRequest::DeleteNetworkOptimizationSettingRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteNetworkOptimizationSetting") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteNetworkOptimizationSettingRequest::~DeleteNetworkOptimizationSettingRequest() -{} - -long DeleteNetworkOptimizationSettingRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DeleteNetworkOptimizationSettingRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DeleteNetworkOptimizationSettingRequest::getType()const -{ - return type_; -} - -void DeleteNetworkOptimizationSettingRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); -} - -std::string DeleteNetworkOptimizationSettingRequest::getRegionId()const -{ - return regionId_; -} - -void DeleteNetworkOptimizationSettingRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DeleteNetworkOptimizationSettingRequest::getNetworkOptId()const -{ - return networkOptId_; -} - -void DeleteNetworkOptimizationSettingRequest::setNetworkOptId(const std::string& networkOptId) -{ - networkOptId_ = networkOptId; - setParameter("NetworkOptId", networkOptId); -} - -std::string DeleteNetworkOptimizationSettingRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DeleteNetworkOptimizationSettingRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DeleteNetworkOptimizationSettingRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DeleteNetworkOptimizationSettingRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DeleteNetworkOptimizationSettingRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteNetworkOptimizationSettingRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeleteNetworkOptimizationSettingRequest::getDomain()const -{ - return domain_; -} - -void DeleteNetworkOptimizationSettingRequest::setDomain(const std::string& domain) -{ - domain_ = domain; - setParameter("Domain", domain); -} - diff --git a/smartag/src/model/DeleteNetworkOptimizationSettingResult.cc b/smartag/src/model/DeleteNetworkOptimizationSettingResult.cc deleted file mode 100644 index a0096a400..000000000 --- a/smartag/src/model/DeleteNetworkOptimizationSettingResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteNetworkOptimizationSettingResult::DeleteNetworkOptimizationSettingResult() : - ServiceResult() -{} - -DeleteNetworkOptimizationSettingResult::DeleteNetworkOptimizationSettingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteNetworkOptimizationSettingResult::~DeleteNetworkOptimizationSettingResult() -{} - -void DeleteNetworkOptimizationSettingResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/DeleteQosCarRequest.cc b/smartag/src/model/DeleteQosCarRequest.cc index 0f70eb429..a46341320 100644 --- a/smartag/src/model/DeleteQosCarRequest.cc +++ b/smartag/src/model/DeleteQosCarRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DeleteQosCarRequest; - -DeleteQosCarRequest::DeleteQosCarRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteQosCar") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteQosCarRequest::~DeleteQosCarRequest() -{} - -long DeleteQosCarRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteQosCarRequest; + +DeleteQosCarRequest::DeleteQosCarRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteQosCar") { + setMethod(HttpRequest::Method::Post); } -void DeleteQosCarRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteQosCarRequest::~DeleteQosCarRequest() {} + +long DeleteQosCarRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteQosCarRequest::getRegionId()const -{ - return regionId_; +void DeleteQosCarRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteQosCarRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteQosCarRequest::getRegionId() const { + return regionId_; } -std::string DeleteQosCarRequest::getQosId()const -{ - return qosId_; +void DeleteQosCarRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteQosCarRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string DeleteQosCarRequest::getQosId() const { + return qosId_; } -std::string DeleteQosCarRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteQosCarRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void DeleteQosCarRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteQosCarRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteQosCarRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteQosCarRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteQosCarRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteQosCarRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteQosCarRequest::getOwnerId()const -{ - return ownerId_; +void DeleteQosCarRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteQosCarRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteQosCarRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteQosCarRequest::getQosCarId()const -{ - return qosCarId_; +void DeleteQosCarRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteQosCarRequest::setQosCarId(const std::string& qosCarId) -{ - qosCarId_ = qosCarId; - setParameter("QosCarId", qosCarId); +std::string DeleteQosCarRequest::getQosCarId() const { + return qosCarId_; +} + +void DeleteQosCarRequest::setQosCarId(const std::string &qosCarId) { + qosCarId_ = qosCarId; + setParameter(std::string("QosCarId"), qosCarId); } diff --git a/smartag/src/model/DeleteQosPolicyRequest.cc b/smartag/src/model/DeleteQosPolicyRequest.cc index 5a2948c49..a7e518079 100644 --- a/smartag/src/model/DeleteQosPolicyRequest.cc +++ b/smartag/src/model/DeleteQosPolicyRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DeleteQosPolicyRequest; - -DeleteQosPolicyRequest::DeleteQosPolicyRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteQosPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteQosPolicyRequest::~DeleteQosPolicyRequest() -{} - -long DeleteQosPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteQosPolicyRequest; + +DeleteQosPolicyRequest::DeleteQosPolicyRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteQosPolicy") { + setMethod(HttpRequest::Method::Post); } -void DeleteQosPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteQosPolicyRequest::~DeleteQosPolicyRequest() {} + +long DeleteQosPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteQosPolicyRequest::getQosPolicyId()const -{ - return qosPolicyId_; +void DeleteQosPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteQosPolicyRequest::setQosPolicyId(const std::string& qosPolicyId) -{ - qosPolicyId_ = qosPolicyId; - setParameter("QosPolicyId", qosPolicyId); +std::string DeleteQosPolicyRequest::getQosPolicyId() const { + return qosPolicyId_; } -std::string DeleteQosPolicyRequest::getRegionId()const -{ - return regionId_; +void DeleteQosPolicyRequest::setQosPolicyId(const std::string &qosPolicyId) { + qosPolicyId_ = qosPolicyId; + setParameter(std::string("QosPolicyId"), qosPolicyId); } -void DeleteQosPolicyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteQosPolicyRequest::getRegionId() const { + return regionId_; } -std::string DeleteQosPolicyRequest::getQosId()const -{ - return qosId_; +void DeleteQosPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteQosPolicyRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string DeleteQosPolicyRequest::getQosId() const { + return qosId_; } -std::string DeleteQosPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteQosPolicyRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void DeleteQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteQosPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteQosPolicyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteQosPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteQosPolicyRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteQosPolicyRequest::getOwnerId()const -{ - return ownerId_; +void DeleteQosPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteQosPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteQosPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteQosPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/smartag/src/model/DeleteQosRequest.cc b/smartag/src/model/DeleteQosRequest.cc index cba009b7a..4df987311 100644 --- a/smartag/src/model/DeleteQosRequest.cc +++ b/smartag/src/model/DeleteQosRequest.cc @@ -1,95 +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::Smartag::Model::DeleteQosRequest; - -DeleteQosRequest::DeleteQosRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteQos") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteQosRequest::~DeleteQosRequest() -{} - -long DeleteQosRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteQosRequest; + +DeleteQosRequest::DeleteQosRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteQos") { + setMethod(HttpRequest::Method::Post); } -void DeleteQosRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteQosRequest::~DeleteQosRequest() {} + +long DeleteQosRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteQosRequest::getRegionId()const -{ - return regionId_; +void DeleteQosRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteQosRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteQosRequest::getRegionId() const { + return regionId_; } -std::string DeleteQosRequest::getQosId()const -{ - return qosId_; +void DeleteQosRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteQosRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string DeleteQosRequest::getQosId() const { + return qosId_; } -std::string DeleteQosRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteQosRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void DeleteQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteQosRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteQosRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteQosRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteQosRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteQosRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteQosRequest::getOwnerId()const -{ - return ownerId_; +void DeleteQosRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteQosRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteQosRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteQosRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/smartag/src/model/DeleteRouteDistributionStrategyRequest.cc b/smartag/src/model/DeleteRouteDistributionStrategyRequest.cc index 89268e0de..54b45185d 100644 --- a/smartag/src/model/DeleteRouteDistributionStrategyRequest.cc +++ b/smartag/src/model/DeleteRouteDistributionStrategyRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::DeleteRouteDistributionStrategyRequest; - -DeleteRouteDistributionStrategyRequest::DeleteRouteDistributionStrategyRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteRouteDistributionStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteRouteDistributionStrategyRequest::~DeleteRouteDistributionStrategyRequest() -{} - -std::string DeleteRouteDistributionStrategyRequest::getRouteSource()const -{ - return routeSource_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteRouteDistributionStrategyRequest; + +DeleteRouteDistributionStrategyRequest::DeleteRouteDistributionStrategyRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteRouteDistributionStrategy") { + setMethod(HttpRequest::Method::Post); } -void DeleteRouteDistributionStrategyRequest::setRouteSource(const std::string& routeSource) -{ - routeSource_ = routeSource; - setParameter("RouteSource", routeSource); +DeleteRouteDistributionStrategyRequest::~DeleteRouteDistributionStrategyRequest() {} + +std::string DeleteRouteDistributionStrategyRequest::getRouteSource() const { + return routeSource_; } -long DeleteRouteDistributionStrategyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DeleteRouteDistributionStrategyRequest::setRouteSource(const std::string &routeSource) { + routeSource_ = routeSource; + setParameter(std::string("RouteSource"), routeSource); } -void DeleteRouteDistributionStrategyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DeleteRouteDistributionStrategyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteRouteDistributionStrategyRequest::getRegionId()const -{ - return regionId_; +void DeleteRouteDistributionStrategyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteRouteDistributionStrategyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteRouteDistributionStrategyRequest::getRegionId() const { + return regionId_; } -std::string DeleteRouteDistributionStrategyRequest::getSourceType()const -{ - return sourceType_; +void DeleteRouteDistributionStrategyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteRouteDistributionStrategyRequest::setSourceType(const std::string& sourceType) -{ - sourceType_ = sourceType; - setParameter("SourceType", sourceType); +std::string DeleteRouteDistributionStrategyRequest::getSourceType() const { + return sourceType_; } -std::string DeleteRouteDistributionStrategyRequest::getDestCidrBlock()const -{ - return destCidrBlock_; +void DeleteRouteDistributionStrategyRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); } -void DeleteRouteDistributionStrategyRequest::setDestCidrBlock(const std::string& destCidrBlock) -{ - destCidrBlock_ = destCidrBlock; - setParameter("DestCidrBlock", destCidrBlock); +std::string DeleteRouteDistributionStrategyRequest::getDestCidrBlock() const { + return destCidrBlock_; } -std::string DeleteRouteDistributionStrategyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteRouteDistributionStrategyRequest::setDestCidrBlock(const std::string &destCidrBlock) { + destCidrBlock_ = destCidrBlock; + setParameter(std::string("DestCidrBlock"), destCidrBlock); } -void DeleteRouteDistributionStrategyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteRouteDistributionStrategyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteRouteDistributionStrategyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteRouteDistributionStrategyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteRouteDistributionStrategyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteRouteDistributionStrategyRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteRouteDistributionStrategyRequest::getOwnerId()const -{ - return ownerId_; +void DeleteRouteDistributionStrategyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteRouteDistributionStrategyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteRouteDistributionStrategyRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteRouteDistributionStrategyRequest::getSmartAGId()const -{ - return smartAGId_; +void DeleteRouteDistributionStrategyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteRouteDistributionStrategyRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DeleteRouteDistributionStrategyRequest::getSmartAGId() const { + return smartAGId_; +} + +void DeleteRouteDistributionStrategyRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DeleteSagCidrRequest.cc b/smartag/src/model/DeleteSagCidrRequest.cc deleted file mode 100644 index e5d9ebf48..000000000 --- a/smartag/src/model/DeleteSagCidrRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * 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::Smartag::Model::DeleteSagCidrRequest; - -DeleteSagCidrRequest::DeleteSagCidrRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteSagCidr") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSagCidrRequest::~DeleteSagCidrRequest() -{} - -long DeleteSagCidrRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DeleteSagCidrRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DeleteSagCidrRequest::getRegionId()const -{ - return regionId_; -} - -void DeleteSagCidrRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DeleteSagCidrRequest::getCidr()const -{ - return cidr_; -} - -void DeleteSagCidrRequest::setCidr(const std::string& cidr) -{ - cidr_ = cidr; - setParameter("Cidr", cidr); -} - -std::string DeleteSagCidrRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DeleteSagCidrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DeleteSagCidrRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DeleteSagCidrRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DeleteSagCidrRequest::getOwnerId()const -{ - return ownerId_; -} - -void DeleteSagCidrRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DeleteSagCidrRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void DeleteSagCidrRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); -} - diff --git a/smartag/src/model/DeleteSagCidrResult.cc b/smartag/src/model/DeleteSagCidrResult.cc deleted file mode 100644 index cd670f817..000000000 --- a/smartag/src/model/DeleteSagCidrResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DeleteSagCidrResult::DeleteSagCidrResult() : - ServiceResult() -{} - -DeleteSagCidrResult::DeleteSagCidrResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteSagCidrResult::~DeleteSagCidrResult() -{} - -void DeleteSagCidrResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/DeleteSagExpressConnectInterfaceRequest.cc b/smartag/src/model/DeleteSagExpressConnectInterfaceRequest.cc index 60ca783c3..4d4592f87 100644 --- a/smartag/src/model/DeleteSagExpressConnectInterfaceRequest.cc +++ b/smartag/src/model/DeleteSagExpressConnectInterfaceRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::DeleteSagExpressConnectInterfaceRequest; - -DeleteSagExpressConnectInterfaceRequest::DeleteSagExpressConnectInterfaceRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteSagExpressConnectInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSagExpressConnectInterfaceRequest::~DeleteSagExpressConnectInterfaceRequest() -{} - -long DeleteSagExpressConnectInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteSagExpressConnectInterfaceRequest; + +DeleteSagExpressConnectInterfaceRequest::DeleteSagExpressConnectInterfaceRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteSagExpressConnectInterface") { + setMethod(HttpRequest::Method::Post); } -void DeleteSagExpressConnectInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSagExpressConnectInterfaceRequest::~DeleteSagExpressConnectInterfaceRequest() {} + +long DeleteSagExpressConnectInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSagExpressConnectInterfaceRequest::getVlan()const -{ - return vlan_; +void DeleteSagExpressConnectInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSagExpressConnectInterfaceRequest::setVlan(const std::string& vlan) -{ - vlan_ = vlan; - setParameter("Vlan", vlan); +std::string DeleteSagExpressConnectInterfaceRequest::getVlan() const { + return vlan_; } -std::string DeleteSagExpressConnectInterfaceRequest::getRegionId()const -{ - return regionId_; +void DeleteSagExpressConnectInterfaceRequest::setVlan(const std::string &vlan) { + vlan_ = vlan; + setParameter(std::string("Vlan"), vlan); } -void DeleteSagExpressConnectInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteSagExpressConnectInterfaceRequest::getRegionId() const { + return regionId_; } -std::string DeleteSagExpressConnectInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteSagExpressConnectInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteSagExpressConnectInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteSagExpressConnectInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteSagExpressConnectInterfaceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteSagExpressConnectInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteSagExpressConnectInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteSagExpressConnectInterfaceRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteSagExpressConnectInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void DeleteSagExpressConnectInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteSagExpressConnectInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteSagExpressConnectInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteSagExpressConnectInterfaceRequest::getSmartAGId()const -{ - return smartAGId_; +void DeleteSagExpressConnectInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteSagExpressConnectInterfaceRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DeleteSagExpressConnectInterfaceRequest::getSmartAGId() const { + return smartAGId_; } -std::string DeleteSagExpressConnectInterfaceRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DeleteSagExpressConnectInterfaceRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DeleteSagExpressConnectInterfaceRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DeleteSagExpressConnectInterfaceRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string DeleteSagExpressConnectInterfaceRequest::getPortName()const -{ - return portName_; +void DeleteSagExpressConnectInterfaceRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void DeleteSagExpressConnectInterfaceRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string DeleteSagExpressConnectInterfaceRequest::getPortName() const { + return portName_; +} + +void DeleteSagExpressConnectInterfaceRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } diff --git a/smartag/src/model/DeleteSagStaticRouteRequest.cc b/smartag/src/model/DeleteSagStaticRouteRequest.cc index 54fd38ea8..454cf31d9 100644 --- a/smartag/src/model/DeleteSagStaticRouteRequest.cc +++ b/smartag/src/model/DeleteSagStaticRouteRequest.cc @@ -1,139 +1,117 @@ /* * 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::Smartag::Model::DeleteSagStaticRouteRequest; - -DeleteSagStaticRouteRequest::DeleteSagStaticRouteRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteSagStaticRoute") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSagStaticRouteRequest::~DeleteSagStaticRouteRequest() -{} - -long DeleteSagStaticRouteRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteSagStaticRouteRequest; + +DeleteSagStaticRouteRequest::DeleteSagStaticRouteRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteSagStaticRoute") { + setMethod(HttpRequest::Method::Post); } -void DeleteSagStaticRouteRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSagStaticRouteRequest::~DeleteSagStaticRouteRequest() {} + +long DeleteSagStaticRouteRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSagStaticRouteRequest::getVlan()const -{ - return vlan_; +void DeleteSagStaticRouteRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSagStaticRouteRequest::setVlan(const std::string& vlan) -{ - vlan_ = vlan; - setParameter("Vlan", vlan); +std::string DeleteSagStaticRouteRequest::getVlan() const { + return vlan_; } -std::string DeleteSagStaticRouteRequest::getRegionId()const -{ - return regionId_; +void DeleteSagStaticRouteRequest::setVlan(const std::string &vlan) { + vlan_ = vlan; + setParameter(std::string("Vlan"), vlan); } -void DeleteSagStaticRouteRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteSagStaticRouteRequest::getRegionId() const { + return regionId_; } -std::string DeleteSagStaticRouteRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteSagStaticRouteRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteSagStaticRouteRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteSagStaticRouteRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteSagStaticRouteRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteSagStaticRouteRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteSagStaticRouteRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteSagStaticRouteRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteSagStaticRouteRequest::getOwnerId()const -{ - return ownerId_; +void DeleteSagStaticRouteRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteSagStaticRouteRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteSagStaticRouteRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteSagStaticRouteRequest::getSmartAGId()const -{ - return smartAGId_; +void DeleteSagStaticRouteRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteSagStaticRouteRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DeleteSagStaticRouteRequest::getSmartAGId() const { + return smartAGId_; } -std::string DeleteSagStaticRouteRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DeleteSagStaticRouteRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DeleteSagStaticRouteRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DeleteSagStaticRouteRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string DeleteSagStaticRouteRequest::getPortName()const -{ - return portName_; +void DeleteSagStaticRouteRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void DeleteSagStaticRouteRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string DeleteSagStaticRouteRequest::getPortName() const { + return portName_; } -std::string DeleteSagStaticRouteRequest::getDestinationCidr()const -{ - return destinationCidr_; +void DeleteSagStaticRouteRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } -void DeleteSagStaticRouteRequest::setDestinationCidr(const std::string& destinationCidr) -{ - destinationCidr_ = destinationCidr; - setParameter("DestinationCidr", destinationCidr); +std::string DeleteSagStaticRouteRequest::getDestinationCidr() const { + return destinationCidr_; +} + +void DeleteSagStaticRouteRequest::setDestinationCidr(const std::string &destinationCidr) { + destinationCidr_ = destinationCidr; + setParameter(std::string("DestinationCidr"), destinationCidr); } diff --git a/smartag/src/model/DeleteSmartAccessGatewayClientUserRequest.cc b/smartag/src/model/DeleteSmartAccessGatewayClientUserRequest.cc index 175221b8b..a93810b9c 100644 --- a/smartag/src/model/DeleteSmartAccessGatewayClientUserRequest.cc +++ b/smartag/src/model/DeleteSmartAccessGatewayClientUserRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DeleteSmartAccessGatewayClientUserRequest; - -DeleteSmartAccessGatewayClientUserRequest::DeleteSmartAccessGatewayClientUserRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteSmartAccessGatewayClientUser") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSmartAccessGatewayClientUserRequest::~DeleteSmartAccessGatewayClientUserRequest() -{} - -long DeleteSmartAccessGatewayClientUserRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteSmartAccessGatewayClientUserRequest; + +DeleteSmartAccessGatewayClientUserRequest::DeleteSmartAccessGatewayClientUserRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteSmartAccessGatewayClientUser") { + setMethod(HttpRequest::Method::Post); } -void DeleteSmartAccessGatewayClientUserRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSmartAccessGatewayClientUserRequest::~DeleteSmartAccessGatewayClientUserRequest() {} + +long DeleteSmartAccessGatewayClientUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSmartAccessGatewayClientUserRequest::getRegionId()const -{ - return regionId_; +void DeleteSmartAccessGatewayClientUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSmartAccessGatewayClientUserRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteSmartAccessGatewayClientUserRequest::getRegionId() const { + return regionId_; } -std::string DeleteSmartAccessGatewayClientUserRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteSmartAccessGatewayClientUserRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteSmartAccessGatewayClientUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteSmartAccessGatewayClientUserRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteSmartAccessGatewayClientUserRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteSmartAccessGatewayClientUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteSmartAccessGatewayClientUserRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteSmartAccessGatewayClientUserRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteSmartAccessGatewayClientUserRequest::getOwnerId()const -{ - return ownerId_; +void DeleteSmartAccessGatewayClientUserRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteSmartAccessGatewayClientUserRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteSmartAccessGatewayClientUserRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteSmartAccessGatewayClientUserRequest::getSmartAGId()const -{ - return smartAGId_; +void DeleteSmartAccessGatewayClientUserRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteSmartAccessGatewayClientUserRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DeleteSmartAccessGatewayClientUserRequest::getSmartAGId() const { + return smartAGId_; } -std::string DeleteSmartAccessGatewayClientUserRequest::getUserName()const -{ - return userName_; +void DeleteSmartAccessGatewayClientUserRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DeleteSmartAccessGatewayClientUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string DeleteSmartAccessGatewayClientUserRequest::getUserName() const { + return userName_; +} + +void DeleteSmartAccessGatewayClientUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/smartag/src/model/DeleteSmartAccessGatewayRequest.cc b/smartag/src/model/DeleteSmartAccessGatewayRequest.cc index 28187fa17..5bd5d5768 100644 --- a/smartag/src/model/DeleteSmartAccessGatewayRequest.cc +++ b/smartag/src/model/DeleteSmartAccessGatewayRequest.cc @@ -1,62 +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::Smartag::Model::DeleteSmartAccessGatewayRequest; - -DeleteSmartAccessGatewayRequest::DeleteSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteSmartAccessGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSmartAccessGatewayRequest::~DeleteSmartAccessGatewayRequest() -{} - -long DeleteSmartAccessGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteSmartAccessGatewayRequest; + +DeleteSmartAccessGatewayRequest::DeleteSmartAccessGatewayRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteSmartAccessGateway") { + setMethod(HttpRequest::Method::Post); } -void DeleteSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSmartAccessGatewayRequest::~DeleteSmartAccessGatewayRequest() {} + +long DeleteSmartAccessGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSmartAccessGatewayRequest::getInstanceId()const -{ - return instanceId_; +void DeleteSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSmartAccessGatewayRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteSmartAccessGatewayRequest::getInstanceId() const { + return instanceId_; } -std::string DeleteSmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; +void DeleteSmartAccessGatewayRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DeleteSmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteSmartAccessGatewayRequest::getRegionId() const { + return regionId_; +} + +void DeleteSmartAccessGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/smartag/src/model/DeleteSnatEntryRequest.cc b/smartag/src/model/DeleteSnatEntryRequest.cc index 827cba926..35edc1a1d 100644 --- a/smartag/src/model/DeleteSnatEntryRequest.cc +++ b/smartag/src/model/DeleteSnatEntryRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DeleteSnatEntryRequest; - -DeleteSnatEntryRequest::DeleteSnatEntryRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DeleteSnatEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSnatEntryRequest::~DeleteSnatEntryRequest() -{} - -long DeleteSnatEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DeleteSnatEntryRequest; + +DeleteSnatEntryRequest::DeleteSnatEntryRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DeleteSnatEntry") { + setMethod(HttpRequest::Method::Post); } -void DeleteSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSnatEntryRequest::~DeleteSnatEntryRequest() {} + +long DeleteSnatEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSnatEntryRequest::getRegionId()const -{ - return regionId_; +void DeleteSnatEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSnatEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteSnatEntryRequest::getRegionId() const { + return regionId_; } -std::string DeleteSnatEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteSnatEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteSnatEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteSnatEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteSnatEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteSnatEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteSnatEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteSnatEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteSnatEntryRequest::getOwnerId()const -{ - return ownerId_; +void DeleteSnatEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteSnatEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteSnatEntryRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteSnatEntryRequest::getInstanceId()const -{ - return instanceId_; +void DeleteSnatEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteSnatEntryRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteSnatEntryRequest::getInstanceId() const { + return instanceId_; } -std::string DeleteSnatEntryRequest::getSmartAGId()const -{ - return smartAGId_; +void DeleteSnatEntryRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DeleteSnatEntryRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DeleteSnatEntryRequest::getSmartAGId() const { + return smartAGId_; +} + +void DeleteSnatEntryRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeACLAttributeRequest.cc b/smartag/src/model/DescribeACLAttributeRequest.cc index a1e6021d8..e1ffa43ce 100644 --- a/smartag/src/model/DescribeACLAttributeRequest.cc +++ b/smartag/src/model/DescribeACLAttributeRequest.cc @@ -1,150 +1,126 @@ /* * 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::Smartag::Model::DescribeACLAttributeRequest; - -DescribeACLAttributeRequest::DescribeACLAttributeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeACLAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeACLAttributeRequest::~DescribeACLAttributeRequest() -{} - -long DescribeACLAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeACLAttributeRequest; + +DescribeACLAttributeRequest::DescribeACLAttributeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeACLAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeACLAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeACLAttributeRequest::~DescribeACLAttributeRequest() {} + +long DescribeACLAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeACLAttributeRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeACLAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeACLAttributeRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeACLAttributeRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeACLAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeACLAttributeRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeACLAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeACLAttributeRequest::getRegionId() const { + return regionId_; } -int DescribeACLAttributeRequest::getPageSize()const -{ - return pageSize_; +void DescribeACLAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeACLAttributeRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeACLAttributeRequest::getPageSize() const { + return pageSize_; } -std::string DescribeACLAttributeRequest::getDirection()const -{ - return direction_; +void DescribeACLAttributeRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeACLAttributeRequest::setDirection(const std::string& direction) -{ - direction_ = direction; - setParameter("Direction", direction); +std::string DescribeACLAttributeRequest::getDirection() const { + return direction_; } -std::string DescribeACLAttributeRequest::getOrder()const -{ - return order_; +void DescribeACLAttributeRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } -void DescribeACLAttributeRequest::setOrder(const std::string& order) -{ - order_ = order; - setParameter("Order", order); +std::string DescribeACLAttributeRequest::getOrder() const { + return order_; } -std::string DescribeACLAttributeRequest::getAclId()const -{ - return aclId_; +void DescribeACLAttributeRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); } -void DescribeACLAttributeRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string DescribeACLAttributeRequest::getAclId() const { + return aclId_; } -std::string DescribeACLAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeACLAttributeRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void DescribeACLAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeACLAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeACLAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeACLAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeACLAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeACLAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeACLAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeACLAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeACLAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeACLAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeACLAttributeRequest::getName()const -{ - return name_; +void DescribeACLAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeACLAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeACLAttributeRequest::getName() const { + return name_; +} + +void DescribeACLAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/DescribeACLAttributeResult.cc b/smartag/src/model/DescribeACLAttributeResult.cc index f50b2b981..2935d2a8c 100644 --- a/smartag/src/model/DescribeACLAttributeResult.cc +++ b/smartag/src/model/DescribeACLAttributeResult.cc @@ -43,34 +43,34 @@ void DescribeACLAttributeResult::parse(const std::string &payload) for (auto valueAcrsAcr : allAcrsNode) { Acr acrsObject; - if(!valueAcrsAcr["Policy"].isNull()) - acrsObject.policy = valueAcrsAcr["Policy"].asString(); - if(!valueAcrsAcr["Description"].isNull()) - acrsObject.description = valueAcrsAcr["Description"].asString(); - if(!valueAcrsAcr["SourcePortRange"].isNull()) - acrsObject.sourcePortRange = valueAcrsAcr["SourcePortRange"].asString(); - if(!valueAcrsAcr["SourceCidr"].isNull()) - acrsObject.sourceCidr = valueAcrsAcr["SourceCidr"].asString(); + if(!valueAcrsAcr["Direction"].isNull()) + acrsObject.direction = valueAcrsAcr["Direction"].asString(); + if(!valueAcrsAcr["Type"].isNull()) + acrsObject.type = valueAcrsAcr["Type"].asString(); + if(!valueAcrsAcr["IpProtocol"].isNull()) + acrsObject.ipProtocol = valueAcrsAcr["IpProtocol"].asString(); if(!valueAcrsAcr["Priority"].isNull()) acrsObject.priority = std::stoi(valueAcrsAcr["Priority"].asString()); if(!valueAcrsAcr["AclId"].isNull()) acrsObject.aclId = valueAcrsAcr["AclId"].asString(); - if(!valueAcrsAcr["AcrId"].isNull()) - acrsObject.acrId = valueAcrsAcr["AcrId"].asString(); - if(!valueAcrsAcr["DestPortRange"].isNull()) - acrsObject.destPortRange = valueAcrsAcr["DestPortRange"].asString(); - if(!valueAcrsAcr["Direction"].isNull()) - acrsObject.direction = valueAcrsAcr["Direction"].asString(); - if(!valueAcrsAcr["Name"].isNull()) - acrsObject.name = valueAcrsAcr["Name"].asString(); + if(!valueAcrsAcr["Policy"].isNull()) + acrsObject.policy = valueAcrsAcr["Policy"].asString(); + if(!valueAcrsAcr["Description"].isNull()) + acrsObject.description = valueAcrsAcr["Description"].asString(); if(!valueAcrsAcr["GmtCreate"].isNull()) acrsObject.gmtCreate = std::stol(valueAcrsAcr["GmtCreate"].asString()); - if(!valueAcrsAcr["Type"].isNull()) - acrsObject.type = valueAcrsAcr["Type"].asString(); if(!valueAcrsAcr["DestCidr"].isNull()) acrsObject.destCidr = valueAcrsAcr["DestCidr"].asString(); - if(!valueAcrsAcr["IpProtocol"].isNull()) - acrsObject.ipProtocol = valueAcrsAcr["IpProtocol"].asString(); + if(!valueAcrsAcr["DestPortRange"].isNull()) + acrsObject.destPortRange = valueAcrsAcr["DestPortRange"].asString(); + if(!valueAcrsAcr["Name"].isNull()) + acrsObject.name = valueAcrsAcr["Name"].asString(); + if(!valueAcrsAcr["AcrId"].isNull()) + acrsObject.acrId = valueAcrsAcr["AcrId"].asString(); + if(!valueAcrsAcr["SourceCidr"].isNull()) + acrsObject.sourceCidr = valueAcrsAcr["SourceCidr"].asString(); + if(!valueAcrsAcr["SourcePortRange"].isNull()) + acrsObject.sourcePortRange = valueAcrsAcr["SourcePortRange"].asString(); auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; for (auto value : allDpiSignatureIds) acrsObject.dpiSignatureIds.push_back(value.asString()); diff --git a/smartag/src/model/DescribeACLsRequest.cc b/smartag/src/model/DescribeACLsRequest.cc index 1ab5b9ae9..eaf14ae2c 100644 --- a/smartag/src/model/DescribeACLsRequest.cc +++ b/smartag/src/model/DescribeACLsRequest.cc @@ -1,128 +1,117 @@ /* * 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::Smartag::Model::DescribeACLsRequest; - -DescribeACLsRequest::DescribeACLsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeACLs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeACLsRequest::~DescribeACLsRequest() -{} - -long DescribeACLsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeACLsRequest; + +DescribeACLsRequest::DescribeACLsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeACLs") { + setMethod(HttpRequest::Method::Post); } -void DescribeACLsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeACLsRequest::~DescribeACLsRequest() {} + +long DescribeACLsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeACLsRequest::getAclIds()const -{ - return aclIds_; +void DescribeACLsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeACLsRequest::setAclIds(const std::string& aclIds) -{ - aclIds_ = aclIds; - setParameter("AclIds", aclIds); +std::string DescribeACLsRequest::getAclIds() const { + return aclIds_; } -int DescribeACLsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeACLsRequest::setAclIds(const std::string &aclIds) { + aclIds_ = aclIds; + setParameter(std::string("AclIds"), aclIds); } -void DescribeACLsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeACLsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeACLsRequest::getRegionId()const -{ - return regionId_; +void DescribeACLsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeACLsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeACLsRequest::getResourceGroupId() const { + return resourceGroupId_; } -int DescribeACLsRequest::getPageSize()const -{ - return pageSize_; +void DescribeACLsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeACLsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string DescribeACLsRequest::getRegionId() const { + return regionId_; } -std::string DescribeACLsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeACLsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeACLsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +int DescribeACLsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeACLsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeACLsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeACLsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeACLsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeACLsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeACLsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeACLsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeACLsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeACLsRequest::getName()const -{ - return name_; +void DescribeACLsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeACLsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +long DescribeACLsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeACLsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeACLsRequest::getName() const { + return name_; +} + +void DescribeACLsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/DescribeACLsResult.cc b/smartag/src/model/DescribeACLsResult.cc index a3158e21c..f423dfe25 100644 --- a/smartag/src/model/DescribeACLsResult.cc +++ b/smartag/src/model/DescribeACLsResult.cc @@ -49,6 +49,8 @@ void DescribeACLsResult::parse(const std::string &payload) aclsObject.aclId = valueAclsAcl["AclId"].asString(); if(!valueAclsAcl["Name"].isNull()) aclsObject.name = valueAclsAcl["Name"].asString(); + if(!valueAclsAcl["ResourceGroupId"].isNull()) + aclsObject.resourceGroupId = valueAclsAcl["ResourceGroupId"].asString(); acls_.push_back(aclsObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeBindableSmartAccessGatewaysRequest.cc b/smartag/src/model/DescribeBindableSmartAccessGatewaysRequest.cc index 9d1d6b7e0..2c49df53a 100644 --- a/smartag/src/model/DescribeBindableSmartAccessGatewaysRequest.cc +++ b/smartag/src/model/DescribeBindableSmartAccessGatewaysRequest.cc @@ -1,150 +1,135 @@ /* * 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::Smartag::Model::DescribeBindableSmartAccessGatewaysRequest; - -DescribeBindableSmartAccessGatewaysRequest::DescribeBindableSmartAccessGatewaysRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeBindableSmartAccessGateways") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBindableSmartAccessGatewaysRequest::~DescribeBindableSmartAccessGatewaysRequest() -{} - -long DescribeBindableSmartAccessGatewaysRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeBindableSmartAccessGatewaysRequest; + +DescribeBindableSmartAccessGatewaysRequest::DescribeBindableSmartAccessGatewaysRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeBindableSmartAccessGateways") { + setMethod(HttpRequest::Method::Post); } -void DescribeBindableSmartAccessGatewaysRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeBindableSmartAccessGatewaysRequest::~DescribeBindableSmartAccessGatewaysRequest() {} + +long DescribeBindableSmartAccessGatewaysRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeBindableSmartAccessGatewaysRequest::getCcnId()const -{ - return ccnId_; +void DescribeBindableSmartAccessGatewaysRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeBindableSmartAccessGatewaysRequest::setCcnId(const std::string& ccnId) -{ - ccnId_ = ccnId; - setParameter("CcnId", ccnId); +std::string DescribeBindableSmartAccessGatewaysRequest::getCcnId() const { + return ccnId_; } -int DescribeBindableSmartAccessGatewaysRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeBindableSmartAccessGatewaysRequest::setCcnId(const std::string &ccnId) { + ccnId_ = ccnId; + setParameter(std::string("CcnId"), ccnId); } -void DescribeBindableSmartAccessGatewaysRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeBindableSmartAccessGatewaysRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeBindableSmartAccessGatewaysRequest::getRegionId()const -{ - return regionId_; +void DescribeBindableSmartAccessGatewaysRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeBindableSmartAccessGatewaysRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeBindableSmartAccessGatewaysRequest::getResourceGroupId() const { + return resourceGroupId_; } -int DescribeBindableSmartAccessGatewaysRequest::getPageSize()const -{ - return pageSize_; +void DescribeBindableSmartAccessGatewaysRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeBindableSmartAccessGatewaysRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string DescribeBindableSmartAccessGatewaysRequest::getRegionId() const { + return regionId_; } -std::string DescribeBindableSmartAccessGatewaysRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeBindableSmartAccessGatewaysRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeBindableSmartAccessGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +int DescribeBindableSmartAccessGatewaysRequest::getPageSize() const { + return pageSize_; } -std::string DescribeBindableSmartAccessGatewaysRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeBindableSmartAccessGatewaysRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeBindableSmartAccessGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeBindableSmartAccessGatewaysRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeBindableSmartAccessGatewaysRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBindableSmartAccessGatewaysRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeBindableSmartAccessGatewaysRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeBindableSmartAccessGatewaysRequest::getOwnerAccount() const { + return ownerAccount_; } -bool DescribeBindableSmartAccessGatewaysRequest::getCrossAccount()const -{ - return crossAccount_; +void DescribeBindableSmartAccessGatewaysRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeBindableSmartAccessGatewaysRequest::setCrossAccount(bool crossAccount) -{ - crossAccount_ = crossAccount; - setParameter("CrossAccount", crossAccount ? "true" : "false"); +long DescribeBindableSmartAccessGatewaysRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeBindableSmartAccessGatewaysRequest::getName()const -{ - return name_; +void DescribeBindableSmartAccessGatewaysRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeBindableSmartAccessGatewaysRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +bool DescribeBindableSmartAccessGatewaysRequest::getCrossAccount() const { + return crossAccount_; } -std::string DescribeBindableSmartAccessGatewaysRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeBindableSmartAccessGatewaysRequest::setCrossAccount(bool crossAccount) { + crossAccount_ = crossAccount; + setParameter(std::string("CrossAccount"), crossAccount ? "true" : "false"); } -void DescribeBindableSmartAccessGatewaysRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeBindableSmartAccessGatewaysRequest::getName() const { + return name_; +} + +void DescribeBindableSmartAccessGatewaysRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string DescribeBindableSmartAccessGatewaysRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeBindableSmartAccessGatewaysRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeBindableSmartAccessGatewaysResult.cc b/smartag/src/model/DescribeBindableSmartAccessGatewaysResult.cc index c063a1966..560603bb1 100644 --- a/smartag/src/model/DescribeBindableSmartAccessGatewaysResult.cc +++ b/smartag/src/model/DescribeBindableSmartAccessGatewaysResult.cc @@ -43,12 +43,12 @@ void DescribeBindableSmartAccessGatewaysResult::parse(const std::string &payload for (auto valueSmartAccessGatewaysSmartAccessGateway : allSmartAccessGatewaysNode) { SmartAccessGateway smartAccessGatewaysObject; - if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].isNull()) - smartAccessGatewaysObject.smartAGUid = std::stol(valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].asString()); if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].isNull()) smartAccessGatewaysObject.smartAGId = valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["Name"].isNull()) smartAccessGatewaysObject.name = valueSmartAccessGatewaysSmartAccessGateway["Name"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].isNull()) + smartAccessGatewaysObject.smartAGUid = std::stol(valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].asString()); smartAccessGateways_.push_back(smartAccessGatewaysObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeClientUserDNSRequest.cc b/smartag/src/model/DescribeClientUserDNSRequest.cc index 573dd1f2c..9ce4c990a 100644 --- a/smartag/src/model/DescribeClientUserDNSRequest.cc +++ b/smartag/src/model/DescribeClientUserDNSRequest.cc @@ -1,95 +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::Smartag::Model::DescribeClientUserDNSRequest; - -DescribeClientUserDNSRequest::DescribeClientUserDNSRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeClientUserDNS") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeClientUserDNSRequest::~DescribeClientUserDNSRequest() -{} - -long DescribeClientUserDNSRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeClientUserDNSRequest; + +DescribeClientUserDNSRequest::DescribeClientUserDNSRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeClientUserDNS") { + setMethod(HttpRequest::Method::Post); } -void DescribeClientUserDNSRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeClientUserDNSRequest::~DescribeClientUserDNSRequest() {} + +long DescribeClientUserDNSRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeClientUserDNSRequest::getRegionId()const -{ - return regionId_; +void DescribeClientUserDNSRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeClientUserDNSRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeClientUserDNSRequest::getRegionId() const { + return regionId_; } -std::string DescribeClientUserDNSRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeClientUserDNSRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeClientUserDNSRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeClientUserDNSRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeClientUserDNSRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeClientUserDNSRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeClientUserDNSRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeClientUserDNSRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeClientUserDNSRequest::getOwnerId()const -{ - return ownerId_; +void DescribeClientUserDNSRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeClientUserDNSRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeClientUserDNSRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeClientUserDNSRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeClientUserDNSRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeClientUserDNSRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeClientUserDNSRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeClientUserDNSRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeCloudConnectNetworksRequest.cc b/smartag/src/model/DescribeCloudConnectNetworksRequest.cc index f4c18c091..1509462b4 100644 --- a/smartag/src/model/DescribeCloudConnectNetworksRequest.cc +++ b/smartag/src/model/DescribeCloudConnectNetworksRequest.cc @@ -1,144 +1,131 @@ /* * 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::Smartag::Model::DescribeCloudConnectNetworksRequest; - -DescribeCloudConnectNetworksRequest::DescribeCloudConnectNetworksRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeCloudConnectNetworks") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCloudConnectNetworksRequest::~DescribeCloudConnectNetworksRequest() -{} - -long DescribeCloudConnectNetworksRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeCloudConnectNetworksRequest; + +DescribeCloudConnectNetworksRequest::DescribeCloudConnectNetworksRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeCloudConnectNetworks") { + setMethod(HttpRequest::Method::Post); } -void DescribeCloudConnectNetworksRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeCloudConnectNetworksRequest::~DescribeCloudConnectNetworksRequest() {} + +long DescribeCloudConnectNetworksRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeCloudConnectNetworksRequest::getCcnId()const -{ - return ccnId_; +void DescribeCloudConnectNetworksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeCloudConnectNetworksRequest::setCcnId(const std::string& ccnId) -{ - ccnId_ = ccnId; - setParameter("CcnId", ccnId); +std::string DescribeCloudConnectNetworksRequest::getCcnId() const { + return ccnId_; } -int DescribeCloudConnectNetworksRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeCloudConnectNetworksRequest::setCcnId(const std::string &ccnId) { + ccnId_ = ccnId; + setParameter(std::string("CcnId"), ccnId); } -void DescribeCloudConnectNetworksRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeCloudConnectNetworksRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeCloudConnectNetworksRequest::getRegionId()const -{ - return regionId_; +void DescribeCloudConnectNetworksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeCloudConnectNetworksRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeCloudConnectNetworksRequest::getResourceGroupId() const { + return resourceGroupId_; } -int DescribeCloudConnectNetworksRequest::getPageSize()const -{ - return pageSize_; +void DescribeCloudConnectNetworksRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeCloudConnectNetworksRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string DescribeCloudConnectNetworksRequest::getRegionId() const { + return regionId_; } -std::vector DescribeCloudConnectNetworksRequest::getTag()const -{ - return tag_; +void DescribeCloudConnectNetworksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeCloudConnectNetworksRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +int DescribeCloudConnectNetworksRequest::getPageSize() const { + return pageSize_; } -std::string DescribeCloudConnectNetworksRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeCloudConnectNetworksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeCloudConnectNetworksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::vector DescribeCloudConnectNetworksRequest::getTag() const { + return tag_; } -std::string DescribeCloudConnectNetworksRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeCloudConnectNetworksRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeCloudConnectNetworksRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeCloudConnectNetworksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeCloudConnectNetworksRequest::getOwnerId()const -{ - return ownerId_; +void DescribeCloudConnectNetworksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeCloudConnectNetworksRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeCloudConnectNetworksRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeCloudConnectNetworksRequest::getName()const -{ - return name_; +void DescribeCloudConnectNetworksRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeCloudConnectNetworksRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +long DescribeCloudConnectNetworksRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeCloudConnectNetworksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeCloudConnectNetworksRequest::getName() const { + return name_; +} + +void DescribeCloudConnectNetworksRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/DescribeCloudConnectNetworksResult.cc b/smartag/src/model/DescribeCloudConnectNetworksResult.cc index 32b39cabb..92e120185 100644 --- a/smartag/src/model/DescribeCloudConnectNetworksResult.cc +++ b/smartag/src/model/DescribeCloudConnectNetworksResult.cc @@ -45,36 +45,38 @@ void DescribeCloudConnectNetworksResult::parse(const std::string &payload) CloudConnectNetwork cloudConnectNetworksObject; if(!valueCloudConnectNetworksCloudConnectNetwork["IsDefault"].isNull()) cloudConnectNetworksObject.isDefault = valueCloudConnectNetworksCloudConnectNetwork["IsDefault"].asString() == "true"; - if(!valueCloudConnectNetworksCloudConnectNetwork["Description"].isNull()) - cloudConnectNetworksObject.description = valueCloudConnectNetworksCloudConnectNetwork["Description"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["InterworkingStatus"].isNull()) - cloudConnectNetworksObject.interworkingStatus = valueCloudConnectNetworksCloudConnectNetwork["InterworkingStatus"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["AvailableCloudBoxCount"].isNull()) - cloudConnectNetworksObject.availableCloudBoxCount = valueCloudConnectNetworksCloudConnectNetwork["AvailableCloudBoxCount"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["CcnId"].isNull()) - cloudConnectNetworksObject.ccnId = valueCloudConnectNetworksCloudConnectNetwork["CcnId"].asString(); if(!valueCloudConnectNetworksCloudConnectNetwork["CreateTime"].isNull()) cloudConnectNetworksObject.createTime = std::stol(valueCloudConnectNetworksCloudConnectNetwork["CreateTime"].asString()); - if(!valueCloudConnectNetworksCloudConnectNetwork["CidrBlock"].isNull()) - cloudConnectNetworksObject.cidrBlock = valueCloudConnectNetworksCloudConnectNetwork["CidrBlock"].asString(); if(!valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenOwnerId"].isNull()) cloudConnectNetworksObject.associatedCenOwnerId = valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenOwnerId"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenId"].isNull()) - cloudConnectNetworksObject.associatedCenId = valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenId"].asString(); - if(!valueCloudConnectNetworksCloudConnectNetwork["SnatCidrBlock"].isNull()) - cloudConnectNetworksObject.snatCidrBlock = valueCloudConnectNetworksCloudConnectNetwork["SnatCidrBlock"].asString(); if(!valueCloudConnectNetworksCloudConnectNetwork["AssociatedCloudBoxCount"].isNull()) cloudConnectNetworksObject.associatedCloudBoxCount = valueCloudConnectNetworksCloudConnectNetwork["AssociatedCloudBoxCount"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["InterworkingStatus"].isNull()) + cloudConnectNetworksObject.interworkingStatus = valueCloudConnectNetworksCloudConnectNetwork["InterworkingStatus"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["CcnId"].isNull()) + cloudConnectNetworksObject.ccnId = valueCloudConnectNetworksCloudConnectNetwork["CcnId"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["AvailableCloudBoxCount"].isNull()) + cloudConnectNetworksObject.availableCloudBoxCount = valueCloudConnectNetworksCloudConnectNetwork["AvailableCloudBoxCount"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["CidrBlock"].isNull()) + cloudConnectNetworksObject.cidrBlock = valueCloudConnectNetworksCloudConnectNetwork["CidrBlock"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["Description"].isNull()) + cloudConnectNetworksObject.description = valueCloudConnectNetworksCloudConnectNetwork["Description"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["SnatCidrBlock"].isNull()) + cloudConnectNetworksObject.snatCidrBlock = valueCloudConnectNetworksCloudConnectNetwork["SnatCidrBlock"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenId"].isNull()) + cloudConnectNetworksObject.associatedCenId = valueCloudConnectNetworksCloudConnectNetwork["AssociatedCenId"].asString(); if(!valueCloudConnectNetworksCloudConnectNetwork["Name"].isNull()) cloudConnectNetworksObject.name = valueCloudConnectNetworksCloudConnectNetwork["Name"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetwork["ResourceGroupId"].isNull()) + cloudConnectNetworksObject.resourceGroupId = valueCloudConnectNetworksCloudConnectNetwork["ResourceGroupId"].asString(); auto allTagsNode = valueCloudConnectNetworksCloudConnectNetwork["Tags"]["Tag"]; for (auto valueCloudConnectNetworksCloudConnectNetworkTagsTag : allTagsNode) { CloudConnectNetwork::Tag tagsObject; - if(!valueCloudConnectNetworksCloudConnectNetworkTagsTag["Value"].isNull()) - tagsObject.value = valueCloudConnectNetworksCloudConnectNetworkTagsTag["Value"].asString(); if(!valueCloudConnectNetworksCloudConnectNetworkTagsTag["Key"].isNull()) tagsObject.key = valueCloudConnectNetworksCloudConnectNetworkTagsTag["Key"].asString(); + if(!valueCloudConnectNetworksCloudConnectNetworkTagsTag["Value"].isNull()) + tagsObject.value = valueCloudConnectNetworksCloudConnectNetworkTagsTag["Value"].asString(); cloudConnectNetworksObject.tags.push_back(tagsObject); } cloudConnectNetworks_.push_back(cloudConnectNetworksObject); diff --git a/smartag/src/model/DescribeDeviceAutoUpgradePolicyRequest.cc b/smartag/src/model/DescribeDeviceAutoUpgradePolicyRequest.cc index 61a6a14a1..0b07d3bcf 100644 --- a/smartag/src/model/DescribeDeviceAutoUpgradePolicyRequest.cc +++ b/smartag/src/model/DescribeDeviceAutoUpgradePolicyRequest.cc @@ -1,117 +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::Smartag::Model::DescribeDeviceAutoUpgradePolicyRequest; - -DescribeDeviceAutoUpgradePolicyRequest::DescribeDeviceAutoUpgradePolicyRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeDeviceAutoUpgradePolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDeviceAutoUpgradePolicyRequest::~DescribeDeviceAutoUpgradePolicyRequest() -{} - -long DescribeDeviceAutoUpgradePolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeDeviceAutoUpgradePolicyRequest; + +DescribeDeviceAutoUpgradePolicyRequest::DescribeDeviceAutoUpgradePolicyRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeDeviceAutoUpgradePolicy") { + setMethod(HttpRequest::Method::Post); } -void DescribeDeviceAutoUpgradePolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDeviceAutoUpgradePolicyRequest::~DescribeDeviceAutoUpgradePolicyRequest() {} + +long DescribeDeviceAutoUpgradePolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDeviceAutoUpgradePolicyRequest::getRegionId()const -{ - return regionId_; +void DescribeDeviceAutoUpgradePolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDeviceAutoUpgradePolicyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDeviceAutoUpgradePolicyRequest::getRegionId() const { + return regionId_; } -std::string DescribeDeviceAutoUpgradePolicyRequest::getSerialNumber()const -{ - return serialNumber_; +void DescribeDeviceAutoUpgradePolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDeviceAutoUpgradePolicyRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +std::string DescribeDeviceAutoUpgradePolicyRequest::getSerialNumber() const { + return serialNumber_; } -std::string DescribeDeviceAutoUpgradePolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDeviceAutoUpgradePolicyRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } -void DescribeDeviceAutoUpgradePolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDeviceAutoUpgradePolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDeviceAutoUpgradePolicyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDeviceAutoUpgradePolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDeviceAutoUpgradePolicyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDeviceAutoUpgradePolicyRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDeviceAutoUpgradePolicyRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDeviceAutoUpgradePolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDeviceAutoUpgradePolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDeviceAutoUpgradePolicyRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeDeviceAutoUpgradePolicyRequest::getVersionType()const -{ - return versionType_; +void DescribeDeviceAutoUpgradePolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeDeviceAutoUpgradePolicyRequest::setVersionType(const std::string& versionType) -{ - versionType_ = versionType; - setParameter("VersionType", versionType); +std::string DescribeDeviceAutoUpgradePolicyRequest::getVersionType() const { + return versionType_; } -std::string DescribeDeviceAutoUpgradePolicyRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeDeviceAutoUpgradePolicyRequest::setVersionType(const std::string &versionType) { + versionType_ = versionType; + setParameter(std::string("VersionType"), versionType); } -void DescribeDeviceAutoUpgradePolicyRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeDeviceAutoUpgradePolicyRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeDeviceAutoUpgradePolicyRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeDnatEntriesRequest.cc b/smartag/src/model/DescribeDnatEntriesRequest.cc index 893324cc0..269887af1 100644 --- a/smartag/src/model/DescribeDnatEntriesRequest.cc +++ b/smartag/src/model/DescribeDnatEntriesRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::DescribeDnatEntriesRequest; - -DescribeDnatEntriesRequest::DescribeDnatEntriesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeDnatEntries") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDnatEntriesRequest::~DescribeDnatEntriesRequest() -{} - -long DescribeDnatEntriesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeDnatEntriesRequest; + +DescribeDnatEntriesRequest::DescribeDnatEntriesRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeDnatEntries") { + setMethod(HttpRequest::Method::Post); } -void DescribeDnatEntriesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDnatEntriesRequest::~DescribeDnatEntriesRequest() {} + +long DescribeDnatEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDnatEntriesRequest::getType()const -{ - return type_; +void DescribeDnatEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDnatEntriesRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeDnatEntriesRequest::getType() const { + return type_; } -int DescribeDnatEntriesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDnatEntriesRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeDnatEntriesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeDnatEntriesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDnatEntriesRequest::getRegionId()const -{ - return regionId_; +void DescribeDnatEntriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDnatEntriesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDnatEntriesRequest::getRegionId() const { + return regionId_; } -int DescribeDnatEntriesRequest::getPageSize()const -{ - return pageSize_; +void DescribeDnatEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDnatEntriesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDnatEntriesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDnatEntriesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDnatEntriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDnatEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDnatEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDnatEntriesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDnatEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDnatEntriesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDnatEntriesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDnatEntriesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDnatEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDnatEntriesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDnatEntriesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeDnatEntriesRequest::getSagId()const -{ - return sagId_; +void DescribeDnatEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeDnatEntriesRequest::setSagId(const std::string& sagId) -{ - sagId_ = sagId; - setParameter("SagId", sagId); +std::string DescribeDnatEntriesRequest::getSagId() const { + return sagId_; +} + +void DescribeDnatEntriesRequest::setSagId(const std::string &sagId) { + sagId_ = sagId; + setParameter(std::string("SagId"), sagId); } diff --git a/smartag/src/model/DescribeDnatEntriesResult.cc b/smartag/src/model/DescribeDnatEntriesResult.cc index cb39632e6..3a568c062 100644 --- a/smartag/src/model/DescribeDnatEntriesResult.cc +++ b/smartag/src/model/DescribeDnatEntriesResult.cc @@ -43,22 +43,22 @@ void DescribeDnatEntriesResult::parse(const std::string &payload) for (auto valueDnatEntriesDnatEntry : allDnatEntriesNode) { DnatEntry dnatEntriesObject; - if(!valueDnatEntriesDnatEntry["ExternalPort"].isNull()) - dnatEntriesObject.externalPort = valueDnatEntriesDnatEntry["ExternalPort"].asString(); if(!valueDnatEntriesDnatEntry["Type"].isNull()) dnatEntriesObject.type = valueDnatEntriesDnatEntry["Type"].asString(); - if(!valueDnatEntriesDnatEntry["ExternalIp"].isNull()) - dnatEntriesObject.externalIp = valueDnatEntriesDnatEntry["ExternalIp"].asString(); - if(!valueDnatEntriesDnatEntry["IpProtocol"].isNull()) - dnatEntriesObject.ipProtocol = valueDnatEntriesDnatEntry["IpProtocol"].asString(); - if(!valueDnatEntriesDnatEntry["InternalPort"].isNull()) - dnatEntriesObject.internalPort = valueDnatEntriesDnatEntry["InternalPort"].asString(); if(!valueDnatEntriesDnatEntry["SagId"].isNull()) dnatEntriesObject.sagId = valueDnatEntriesDnatEntry["SagId"].asString(); if(!valueDnatEntriesDnatEntry["InternalIp"].isNull()) dnatEntriesObject.internalIp = valueDnatEntriesDnatEntry["InternalIp"].asString(); + if(!valueDnatEntriesDnatEntry["InternalPort"].isNull()) + dnatEntriesObject.internalPort = valueDnatEntriesDnatEntry["InternalPort"].asString(); + if(!valueDnatEntriesDnatEntry["IpProtocol"].isNull()) + dnatEntriesObject.ipProtocol = valueDnatEntriesDnatEntry["IpProtocol"].asString(); + if(!valueDnatEntriesDnatEntry["ExternalPort"].isNull()) + dnatEntriesObject.externalPort = valueDnatEntriesDnatEntry["ExternalPort"].asString(); if(!valueDnatEntriesDnatEntry["DnatEntryId"].isNull()) dnatEntriesObject.dnatEntryId = valueDnatEntriesDnatEntry["DnatEntryId"].asString(); + if(!valueDnatEntriesDnatEntry["ExternalIp"].isNull()) + dnatEntriesObject.externalIp = valueDnatEntriesDnatEntry["ExternalIp"].asString(); dnatEntries_.push_back(dnatEntriesObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeFlowLogSagsRequest.cc b/smartag/src/model/DescribeFlowLogSagsRequest.cc index 661342d3a..92c75c8d0 100644 --- a/smartag/src/model/DescribeFlowLogSagsRequest.cc +++ b/smartag/src/model/DescribeFlowLogSagsRequest.cc @@ -1,117 +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::Smartag::Model::DescribeFlowLogSagsRequest; - -DescribeFlowLogSagsRequest::DescribeFlowLogSagsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeFlowLogSags") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeFlowLogSagsRequest::~DescribeFlowLogSagsRequest() -{} - -long DescribeFlowLogSagsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeFlowLogSagsRequest; + +DescribeFlowLogSagsRequest::DescribeFlowLogSagsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeFlowLogSags") { + setMethod(HttpRequest::Method::Post); } -void DescribeFlowLogSagsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeFlowLogSagsRequest::~DescribeFlowLogSagsRequest() {} + +long DescribeFlowLogSagsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeFlowLogSagsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeFlowLogSagsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeFlowLogSagsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeFlowLogSagsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeFlowLogSagsRequest::getRegionId()const -{ - return regionId_; +void DescribeFlowLogSagsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeFlowLogSagsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeFlowLogSagsRequest::getRegionId() const { + return regionId_; } -int DescribeFlowLogSagsRequest::getPageSize()const -{ - return pageSize_; +void DescribeFlowLogSagsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeFlowLogSagsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeFlowLogSagsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeFlowLogSagsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeFlowLogSagsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeFlowLogSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeFlowLogSagsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeFlowLogSagsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeFlowLogSagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeFlowLogSagsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeFlowLogSagsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeFlowLogSagsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeFlowLogSagsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeFlowLogSagsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeFlowLogSagsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeFlowLogSagsRequest::getFlowLogId()const -{ - return flowLogId_; +void DescribeFlowLogSagsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeFlowLogSagsRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +std::string DescribeFlowLogSagsRequest::getFlowLogId() const { + return flowLogId_; +} + +void DescribeFlowLogSagsRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } diff --git a/smartag/src/model/DescribeFlowLogsRequest.cc b/smartag/src/model/DescribeFlowLogsRequest.cc index 0adaf7222..0cf4e1771 100644 --- a/smartag/src/model/DescribeFlowLogsRequest.cc +++ b/smartag/src/model/DescribeFlowLogsRequest.cc @@ -1,161 +1,144 @@ /* * 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::Smartag::Model::DescribeFlowLogsRequest; - -DescribeFlowLogsRequest::DescribeFlowLogsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeFlowLogs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeFlowLogsRequest::~DescribeFlowLogsRequest() -{} - -long DescribeFlowLogsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeFlowLogsRequest; + +DescribeFlowLogsRequest::DescribeFlowLogsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeFlowLogs") { + setMethod(HttpRequest::Method::Post); } -void DescribeFlowLogsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeFlowLogsRequest::~DescribeFlowLogsRequest() {} + +long DescribeFlowLogsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeFlowLogsRequest::getDescription()const -{ - return description_; +void DescribeFlowLogsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeFlowLogsRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string DescribeFlowLogsRequest::getDescription() const { + return description_; } -int DescribeFlowLogsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeFlowLogsRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void DescribeFlowLogsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeFlowLogsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeFlowLogsRequest::getRegionId()const -{ - return regionId_; +void DescribeFlowLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeFlowLogsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeFlowLogsRequest::getResourceGroupId() const { + return resourceGroupId_; } -int DescribeFlowLogsRequest::getPageSize()const -{ - return pageSize_; +void DescribeFlowLogsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeFlowLogsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string DescribeFlowLogsRequest::getRegionId() const { + return regionId_; } -std::string DescribeFlowLogsRequest::getOutputType()const -{ - return outputType_; +void DescribeFlowLogsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeFlowLogsRequest::setOutputType(const std::string& outputType) -{ - outputType_ = outputType; - setParameter("OutputType", outputType); +int DescribeFlowLogsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeFlowLogsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeFlowLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeFlowLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeFlowLogsRequest::getOutputType() const { + return outputType_; } -std::string DescribeFlowLogsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeFlowLogsRequest::setOutputType(const std::string &outputType) { + outputType_ = outputType; + setParameter(std::string("OutputType"), outputType); } -void DescribeFlowLogsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeFlowLogsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeFlowLogsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeFlowLogsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeFlowLogsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeFlowLogsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeFlowLogsRequest::getFlowLogId()const -{ - return flowLogId_; +void DescribeFlowLogsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeFlowLogsRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +long DescribeFlowLogsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeFlowLogsRequest::getFlowLogName()const -{ - return flowLogName_; +void DescribeFlowLogsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeFlowLogsRequest::setFlowLogName(const std::string& flowLogName) -{ - flowLogName_ = flowLogName; - setParameter("FlowLogName", flowLogName); +std::string DescribeFlowLogsRequest::getFlowLogId() const { + return flowLogId_; } -std::string DescribeFlowLogsRequest::getStatus()const -{ - return status_; +void DescribeFlowLogsRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } -void DescribeFlowLogsRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeFlowLogsRequest::getFlowLogName() const { + return flowLogName_; +} + +void DescribeFlowLogsRequest::setFlowLogName(const std::string &flowLogName) { + flowLogName_ = flowLogName; + setParameter(std::string("FlowLogName"), flowLogName); +} + +std::string DescribeFlowLogsRequest::getStatus() const { + return status_; +} + +void DescribeFlowLogsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/smartag/src/model/DescribeFlowLogsResult.cc b/smartag/src/model/DescribeFlowLogsResult.cc index 49ebb8325..fd4e04278 100644 --- a/smartag/src/model/DescribeFlowLogsResult.cc +++ b/smartag/src/model/DescribeFlowLogsResult.cc @@ -43,34 +43,36 @@ void DescribeFlowLogsResult::parse(const std::string &payload) for (auto valueFlowLogsFlowLogSetType : allFlowLogsNode) { FlowLogSetType flowLogsObject; - if(!valueFlowLogsFlowLogSetType["NetflowServerPort"].isNull()) - flowLogsObject.netflowServerPort = valueFlowLogsFlowLogSetType["NetflowServerPort"].asString(); if(!valueFlowLogsFlowLogSetType["Status"].isNull()) flowLogsObject.status = valueFlowLogsFlowLogSetType["Status"].asString(); - if(!valueFlowLogsFlowLogSetType["LogstoreName"].isNull()) - flowLogsObject.logstoreName = valueFlowLogsFlowLogSetType["LogstoreName"].asString(); - if(!valueFlowLogsFlowLogSetType["Description"].isNull()) - flowLogsObject.description = valueFlowLogsFlowLogSetType["Description"].asString(); - if(!valueFlowLogsFlowLogSetType["ActiveAging"].isNull()) - flowLogsObject.activeAging = std::stoi(valueFlowLogsFlowLogSetType["ActiveAging"].asString()); - if(!valueFlowLogsFlowLogSetType["ProjectName"].isNull()) - flowLogsObject.projectName = valueFlowLogsFlowLogSetType["ProjectName"].asString(); + if(!valueFlowLogsFlowLogSetType["TotalSagNum"].isNull()) + flowLogsObject.totalSagNum = std::stoi(valueFlowLogsFlowLogSetType["TotalSagNum"].asString()); if(!valueFlowLogsFlowLogSetType["NetflowServerIp"].isNull()) flowLogsObject.netflowServerIp = valueFlowLogsFlowLogSetType["NetflowServerIp"].asString(); + if(!valueFlowLogsFlowLogSetType["ProjectName"].isNull()) + flowLogsObject.projectName = valueFlowLogsFlowLogSetType["ProjectName"].asString(); + if(!valueFlowLogsFlowLogSetType["SlsRegionId"].isNull()) + flowLogsObject.slsRegionId = valueFlowLogsFlowLogSetType["SlsRegionId"].asString(); + if(!valueFlowLogsFlowLogSetType["ActiveAging"].isNull()) + flowLogsObject.activeAging = std::stoi(valueFlowLogsFlowLogSetType["ActiveAging"].asString()); + if(!valueFlowLogsFlowLogSetType["OutputType"].isNull()) + flowLogsObject.outputType = valueFlowLogsFlowLogSetType["OutputType"].asString(); + if(!valueFlowLogsFlowLogSetType["Description"].isNull()) + flowLogsObject.description = valueFlowLogsFlowLogSetType["Description"].asString(); if(!valueFlowLogsFlowLogSetType["NetflowVersion"].isNull()) flowLogsObject.netflowVersion = valueFlowLogsFlowLogSetType["NetflowVersion"].asString(); if(!valueFlowLogsFlowLogSetType["InactiveAging"].isNull()) flowLogsObject.inactiveAging = std::stoi(valueFlowLogsFlowLogSetType["InactiveAging"].asString()); - if(!valueFlowLogsFlowLogSetType["FlowLogId"].isNull()) - flowLogsObject.flowLogId = valueFlowLogsFlowLogSetType["FlowLogId"].asString(); + if(!valueFlowLogsFlowLogSetType["NetflowServerPort"].isNull()) + flowLogsObject.netflowServerPort = valueFlowLogsFlowLogSetType["NetflowServerPort"].asString(); if(!valueFlowLogsFlowLogSetType["Name"].isNull()) flowLogsObject.name = valueFlowLogsFlowLogSetType["Name"].asString(); - if(!valueFlowLogsFlowLogSetType["TotalSagNum"].isNull()) - flowLogsObject.totalSagNum = std::stoi(valueFlowLogsFlowLogSetType["TotalSagNum"].asString()); - if(!valueFlowLogsFlowLogSetType["SlsRegionId"].isNull()) - flowLogsObject.slsRegionId = valueFlowLogsFlowLogSetType["SlsRegionId"].asString(); - if(!valueFlowLogsFlowLogSetType["OutputType"].isNull()) - flowLogsObject.outputType = valueFlowLogsFlowLogSetType["OutputType"].asString(); + if(!valueFlowLogsFlowLogSetType["FlowLogId"].isNull()) + flowLogsObject.flowLogId = valueFlowLogsFlowLogSetType["FlowLogId"].asString(); + if(!valueFlowLogsFlowLogSetType["LogstoreName"].isNull()) + flowLogsObject.logstoreName = valueFlowLogsFlowLogSetType["LogstoreName"].asString(); + if(!valueFlowLogsFlowLogSetType["ResourceGroupId"].isNull()) + flowLogsObject.resourceGroupId = valueFlowLogsFlowLogSetType["ResourceGroupId"].asString(); flowLogs_.push_back(flowLogsObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeGrantRulesRequest.cc b/smartag/src/model/DescribeGrantRulesRequest.cc index 68056a502..0355bbdb5 100644 --- a/smartag/src/model/DescribeGrantRulesRequest.cc +++ b/smartag/src/model/DescribeGrantRulesRequest.cc @@ -1,117 +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::Smartag::Model::DescribeGrantRulesRequest; - -DescribeGrantRulesRequest::DescribeGrantRulesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantRules") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGrantRulesRequest::~DescribeGrantRulesRequest() -{} - -long DescribeGrantRulesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeGrantRulesRequest; + +DescribeGrantRulesRequest::DescribeGrantRulesRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantRules") { + setMethod(HttpRequest::Method::Post); } -void DescribeGrantRulesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeGrantRulesRequest::~DescribeGrantRulesRequest() {} + +long DescribeGrantRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeGrantRulesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeGrantRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeGrantRulesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeGrantRulesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeGrantRulesRequest::getRegionId()const -{ - return regionId_; +void DescribeGrantRulesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeGrantRulesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeGrantRulesRequest::getRegionId() const { + return regionId_; } -int DescribeGrantRulesRequest::getPageSize()const -{ - return pageSize_; +void DescribeGrantRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeGrantRulesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeGrantRulesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeGrantRulesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeGrantRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeGrantRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeGrantRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeGrantRulesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeGrantRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeGrantRulesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeGrantRulesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeGrantRulesRequest::getAssociatedCcnId()const -{ - return associatedCcnId_; +void DescribeGrantRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeGrantRulesRequest::setAssociatedCcnId(const std::string& associatedCcnId) -{ - associatedCcnId_ = associatedCcnId; - setParameter("AssociatedCcnId", associatedCcnId); +std::string DescribeGrantRulesRequest::getAssociatedCcnId() const { + return associatedCcnId_; } -long DescribeGrantRulesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeGrantRulesRequest::setAssociatedCcnId(const std::string &associatedCcnId) { + associatedCcnId_ = associatedCcnId; + setParameter(std::string("AssociatedCcnId"), associatedCcnId); } -void DescribeGrantRulesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeGrantRulesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeGrantRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/smartag/src/model/DescribeGrantRulesResult.cc b/smartag/src/model/DescribeGrantRulesResult.cc index 0f43ea756..49b133584 100644 --- a/smartag/src/model/DescribeGrantRulesResult.cc +++ b/smartag/src/model/DescribeGrantRulesResult.cc @@ -43,24 +43,24 @@ void DescribeGrantRulesResult::parse(const std::string &payload) for (auto valueGrantRulesGrantRule : allGrantRulesNode) { GrantRule grantRulesObject; - if(!valueGrantRulesGrantRule["GmtCreate"].isNull()) - grantRulesObject.gmtCreate = std::stol(valueGrantRulesGrantRule["GmtCreate"].asString()); - if(!valueGrantRulesGrantRule["CenUid"].isNull()) - grantRulesObject.cenUid = std::stol(valueGrantRulesGrantRule["CenUid"].asString()); - if(!valueGrantRulesGrantRule["GrantTrafficService"].isNull()) - grantRulesObject.grantTrafficService = valueGrantRulesGrantRule["GrantTrafficService"].asString() == "true"; - if(!valueGrantRulesGrantRule["CcnInstanceId"].isNull()) - grantRulesObject.ccnInstanceId = valueGrantRulesGrantRule["CcnInstanceId"].asString(); - if(!valueGrantRulesGrantRule["GrantRuleId"].isNull()) - grantRulesObject.grantRuleId = valueGrantRulesGrantRule["GrantRuleId"].asString(); if(!valueGrantRulesGrantRule["CenInstanceId"].isNull()) grantRulesObject.cenInstanceId = valueGrantRulesGrantRule["CenInstanceId"].asString(); + if(!valueGrantRulesGrantRule["CenUid"].isNull()) + grantRulesObject.cenUid = std::stol(valueGrantRulesGrantRule["CenUid"].asString()); + if(!valueGrantRulesGrantRule["GmtCreate"].isNull()) + grantRulesObject.gmtCreate = std::stol(valueGrantRulesGrantRule["GmtCreate"].asString()); + if(!valueGrantRulesGrantRule["GrantRuleId"].isNull()) + grantRulesObject.grantRuleId = valueGrantRulesGrantRule["GrantRuleId"].asString(); + if(!valueGrantRulesGrantRule["GrantTrafficService"].isNull()) + grantRulesObject.grantTrafficService = valueGrantRulesGrantRule["GrantTrafficService"].asString() == "true"; if(!valueGrantRulesGrantRule["GmtModified"].isNull()) grantRulesObject.gmtModified = std::stol(valueGrantRulesGrantRule["GmtModified"].asString()); if(!valueGrantRulesGrantRule["CcnUid"].isNull()) grantRulesObject.ccnUid = std::stol(valueGrantRulesGrantRule["CcnUid"].asString()); if(!valueGrantRulesGrantRule["RegionId"].isNull()) grantRulesObject.regionId = valueGrantRulesGrantRule["RegionId"].asString(); + if(!valueGrantRulesGrantRule["CcnInstanceId"].isNull()) + grantRulesObject.ccnInstanceId = valueGrantRulesGrantRule["CcnInstanceId"].asString(); grantRules_.push_back(grantRulesObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeGrantSagRulesRequest.cc b/smartag/src/model/DescribeGrantSagRulesRequest.cc index 0e5213058..187845b08 100644 --- a/smartag/src/model/DescribeGrantSagRulesRequest.cc +++ b/smartag/src/model/DescribeGrantSagRulesRequest.cc @@ -1,117 +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::Smartag::Model::DescribeGrantSagRulesRequest; - -DescribeGrantSagRulesRequest::DescribeGrantSagRulesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantSagRules") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGrantSagRulesRequest::~DescribeGrantSagRulesRequest() -{} - -long DescribeGrantSagRulesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeGrantSagRulesRequest; + +DescribeGrantSagRulesRequest::DescribeGrantSagRulesRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantSagRules") { + setMethod(HttpRequest::Method::Post); } -void DescribeGrantSagRulesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeGrantSagRulesRequest::~DescribeGrantSagRulesRequest() {} + +long DescribeGrantSagRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeGrantSagRulesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeGrantSagRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeGrantSagRulesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeGrantSagRulesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeGrantSagRulesRequest::getRegionId()const -{ - return regionId_; +void DescribeGrantSagRulesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeGrantSagRulesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeGrantSagRulesRequest::getRegionId() const { + return regionId_; } -int DescribeGrantSagRulesRequest::getPageSize()const -{ - return pageSize_; +void DescribeGrantSagRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeGrantSagRulesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeGrantSagRulesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeGrantSagRulesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeGrantSagRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeGrantSagRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeGrantSagRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeGrantSagRulesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeGrantSagRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeGrantSagRulesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeGrantSagRulesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeGrantSagRulesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeGrantSagRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeGrantSagRulesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeGrantSagRulesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeGrantSagRulesRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeGrantSagRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeGrantSagRulesRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeGrantSagRulesRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeGrantSagRulesRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeGrantSagRulesResult.cc b/smartag/src/model/DescribeGrantSagRulesResult.cc index 7f1a065db..381f1db03 100644 --- a/smartag/src/model/DescribeGrantSagRulesResult.cc +++ b/smartag/src/model/DescribeGrantSagRulesResult.cc @@ -43,18 +43,18 @@ void DescribeGrantSagRulesResult::parse(const std::string &payload) for (auto valueGrantRulesGrantRule : allGrantRulesNode) { GrantRule grantRulesObject; - if(!valueGrantRulesGrantRule["InstanceId"].isNull()) - grantRulesObject.instanceId = valueGrantRulesGrantRule["InstanceId"].asString(); - if(!valueGrantRulesGrantRule["GrantTrafficService"].isNull()) - grantRulesObject.grantTrafficService = valueGrantRulesGrantRule["GrantTrafficService"].asString() == "true"; - if(!valueGrantRulesGrantRule["CcnInstanceId"].isNull()) - grantRulesObject.ccnInstanceId = valueGrantRulesGrantRule["CcnInstanceId"].asString(); if(!valueGrantRulesGrantRule["CreateTime"].isNull()) grantRulesObject.createTime = std::stol(valueGrantRulesGrantRule["CreateTime"].asString()); - if(!valueGrantRulesGrantRule["CcnUid"].isNull()) - grantRulesObject.ccnUid = std::stol(valueGrantRulesGrantRule["CcnUid"].asString()); if(!valueGrantRulesGrantRule["SmartAGId"].isNull()) grantRulesObject.smartAGId = valueGrantRulesGrantRule["SmartAGId"].asString(); + if(!valueGrantRulesGrantRule["GrantTrafficService"].isNull()) + grantRulesObject.grantTrafficService = valueGrantRulesGrantRule["GrantTrafficService"].asString() == "true"; + if(!valueGrantRulesGrantRule["InstanceId"].isNull()) + grantRulesObject.instanceId = valueGrantRulesGrantRule["InstanceId"].asString(); + if(!valueGrantRulesGrantRule["CcnUid"].isNull()) + grantRulesObject.ccnUid = std::stol(valueGrantRulesGrantRule["CcnUid"].asString()); + if(!valueGrantRulesGrantRule["CcnInstanceId"].isNull()) + grantRulesObject.ccnInstanceId = valueGrantRulesGrantRule["CcnInstanceId"].asString(); grantRules_.push_back(grantRulesObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeGrantSagVbrRulesRequest.cc b/smartag/src/model/DescribeGrantSagVbrRulesRequest.cc index 61a76b114..03f283c9a 100644 --- a/smartag/src/model/DescribeGrantSagVbrRulesRequest.cc +++ b/smartag/src/model/DescribeGrantSagVbrRulesRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::DescribeGrantSagVbrRulesRequest; - -DescribeGrantSagVbrRulesRequest::DescribeGrantSagVbrRulesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantSagVbrRules") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGrantSagVbrRulesRequest::~DescribeGrantSagVbrRulesRequest() -{} - -long DescribeGrantSagVbrRulesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeGrantSagVbrRulesRequest; + +DescribeGrantSagVbrRulesRequest::DescribeGrantSagVbrRulesRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeGrantSagVbrRules") { + setMethod(HttpRequest::Method::Post); } -void DescribeGrantSagVbrRulesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeGrantSagVbrRulesRequest::~DescribeGrantSagVbrRulesRequest() {} + +long DescribeGrantSagVbrRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeGrantSagVbrRulesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeGrantSagVbrRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeGrantSagVbrRulesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeGrantSagVbrRulesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeGrantSagVbrRulesRequest::getRegionId()const -{ - return regionId_; +void DescribeGrantSagVbrRulesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeGrantSagVbrRulesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeGrantSagVbrRulesRequest::getRegionId() const { + return regionId_; } -int DescribeGrantSagVbrRulesRequest::getPageSize()const -{ - return pageSize_; +void DescribeGrantSagVbrRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeGrantSagVbrRulesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeGrantSagVbrRulesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeGrantSagVbrRulesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeGrantSagVbrRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeGrantSagVbrRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeGrantSagVbrRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeGrantSagVbrRulesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeGrantSagVbrRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeGrantSagVbrRulesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeGrantSagVbrRulesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeGrantSagVbrRulesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeGrantSagVbrRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeGrantSagVbrRulesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeGrantSagVbrRulesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeGrantSagVbrRulesRequest::getVbrInstanceId()const -{ - return vbrInstanceId_; +void DescribeGrantSagVbrRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeGrantSagVbrRulesRequest::setVbrInstanceId(const std::string& vbrInstanceId) -{ - vbrInstanceId_ = vbrInstanceId; - setParameter("VbrInstanceId", vbrInstanceId); +std::string DescribeGrantSagVbrRulesRequest::getVbrInstanceId() const { + return vbrInstanceId_; } -std::string DescribeGrantSagVbrRulesRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeGrantSagVbrRulesRequest::setVbrInstanceId(const std::string &vbrInstanceId) { + vbrInstanceId_ = vbrInstanceId; + setParameter(std::string("VbrInstanceId"), vbrInstanceId); } -void DescribeGrantSagVbrRulesRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeGrantSagVbrRulesRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeGrantSagVbrRulesRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeGrantSagVbrRulesResult.cc b/smartag/src/model/DescribeGrantSagVbrRulesResult.cc index 38e08b625..a019fb62e 100644 --- a/smartag/src/model/DescribeGrantSagVbrRulesResult.cc +++ b/smartag/src/model/DescribeGrantSagVbrRulesResult.cc @@ -43,22 +43,22 @@ void DescribeGrantSagVbrRulesResult::parse(const std::string &payload) for (auto valueGrantRulesGrantRule : allGrantRulesNode) { GrantRule grantRulesObject; - if(!valueGrantRulesGrantRule["VbrUid"].isNull()) - grantRulesObject.vbrUid = std::stol(valueGrantRulesGrantRule["VbrUid"].asString()); - if(!valueGrantRulesGrantRule["SmartAGUid"].isNull()) - grantRulesObject.smartAGUid = std::stol(valueGrantRulesGrantRule["SmartAGUid"].asString()); if(!valueGrantRulesGrantRule["VbrInstanceId"].isNull()) grantRulesObject.vbrInstanceId = valueGrantRulesGrantRule["VbrInstanceId"].asString(); - if(!valueGrantRulesGrantRule["InstanceId"].isNull()) - grantRulesObject.instanceId = valueGrantRulesGrantRule["InstanceId"].asString(); - if(!valueGrantRulesGrantRule["CreateTime"].isNull()) - grantRulesObject.createTime = std::stol(valueGrantRulesGrantRule["CreateTime"].asString()); - if(!valueGrantRulesGrantRule["Bound"].isNull()) - grantRulesObject.bound = valueGrantRulesGrantRule["Bound"].asString() == "true"; + if(!valueGrantRulesGrantRule["VbrUid"].isNull()) + grantRulesObject.vbrUid = std::stol(valueGrantRulesGrantRule["VbrUid"].asString()); if(!valueGrantRulesGrantRule["VbrRegionId"].isNull()) grantRulesObject.vbrRegionId = valueGrantRulesGrantRule["VbrRegionId"].asString(); + if(!valueGrantRulesGrantRule["CreateTime"].isNull()) + grantRulesObject.createTime = std::stol(valueGrantRulesGrantRule["CreateTime"].asString()); if(!valueGrantRulesGrantRule["SmartAGId"].isNull()) grantRulesObject.smartAGId = valueGrantRulesGrantRule["SmartAGId"].asString(); + if(!valueGrantRulesGrantRule["Bound"].isNull()) + grantRulesObject.bound = valueGrantRulesGrantRule["Bound"].asString() == "true"; + if(!valueGrantRulesGrantRule["InstanceId"].isNull()) + grantRulesObject.instanceId = valueGrantRulesGrantRule["InstanceId"].asString(); + if(!valueGrantRulesGrantRule["SmartAGUid"].isNull()) + grantRulesObject.smartAGUid = std::stol(valueGrantRulesGrantRule["SmartAGUid"].asString()); grantRules_.push_back(grantRulesObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeHealthCheckAttributeRequest.cc b/smartag/src/model/DescribeHealthCheckAttributeRequest.cc index defffc5be..234583e80 100644 --- a/smartag/src/model/DescribeHealthCheckAttributeRequest.cc +++ b/smartag/src/model/DescribeHealthCheckAttributeRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeHealthCheckAttributeRequest; - -DescribeHealthCheckAttributeRequest::DescribeHealthCheckAttributeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeHealthCheckAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeHealthCheckAttributeRequest::~DescribeHealthCheckAttributeRequest() -{} - -long DescribeHealthCheckAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeHealthCheckAttributeRequest; + +DescribeHealthCheckAttributeRequest::DescribeHealthCheckAttributeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeHealthCheckAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeHealthCheckAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeHealthCheckAttributeRequest::~DescribeHealthCheckAttributeRequest() {} + +long DescribeHealthCheckAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeHealthCheckAttributeRequest::getHcInstanceId()const -{ - return hcInstanceId_; +void DescribeHealthCheckAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeHealthCheckAttributeRequest::setHcInstanceId(const std::string& hcInstanceId) -{ - hcInstanceId_ = hcInstanceId; - setParameter("HcInstanceId", hcInstanceId); +std::string DescribeHealthCheckAttributeRequest::getHcInstanceId() const { + return hcInstanceId_; } -std::string DescribeHealthCheckAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeHealthCheckAttributeRequest::setHcInstanceId(const std::string &hcInstanceId) { + hcInstanceId_ = hcInstanceId; + setParameter(std::string("HcInstanceId"), hcInstanceId); } -void DescribeHealthCheckAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeHealthCheckAttributeRequest::getRegionId() const { + return regionId_; } -std::string DescribeHealthCheckAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeHealthCheckAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeHealthCheckAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeHealthCheckAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeHealthCheckAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeHealthCheckAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeHealthCheckAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeHealthCheckAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeHealthCheckAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeHealthCheckAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeHealthCheckAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeHealthCheckAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeHealthCheckAttributeRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeHealthCheckAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeHealthCheckAttributeRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeHealthCheckAttributeRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeHealthCheckAttributeRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeHealthCheckAttributeResult.cc b/smartag/src/model/DescribeHealthCheckAttributeResult.cc index da7878586..8aa42d1e1 100644 --- a/smartag/src/model/DescribeHealthCheckAttributeResult.cc +++ b/smartag/src/model/DescribeHealthCheckAttributeResult.cc @@ -39,10 +39,10 @@ void DescribeHealthCheckAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); if(!value["SrcPort"].isNull()) srcPort_ = std::stoi(value["SrcPort"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); if(!value["SrcIpAddr"].isNull()) srcIpAddr_ = value["SrcIpAddr"].asString(); if(!value["CreateTime"].isNull()) @@ -74,16 +74,16 @@ void DescribeHealthCheckAttributeResult::parse(const std::string &payload) } -std::string DescribeHealthCheckAttributeResult::getDescription()const -{ - return description_; -} - int DescribeHealthCheckAttributeResult::getSrcPort()const { return srcPort_; } +std::string DescribeHealthCheckAttributeResult::getDescription()const +{ + return description_; +} + std::string DescribeHealthCheckAttributeResult::getSrcIpAddr()const { return srcIpAddr_; diff --git a/smartag/src/model/DescribeHealthChecksRequest.cc b/smartag/src/model/DescribeHealthChecksRequest.cc index a38fc1b0b..6026a4626 100644 --- a/smartag/src/model/DescribeHealthChecksRequest.cc +++ b/smartag/src/model/DescribeHealthChecksRequest.cc @@ -1,139 +1,117 @@ /* * 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::Smartag::Model::DescribeHealthChecksRequest; - -DescribeHealthChecksRequest::DescribeHealthChecksRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeHealthChecks") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeHealthChecksRequest::~DescribeHealthChecksRequest() -{} - -long DescribeHealthChecksRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeHealthChecksRequest; + +DescribeHealthChecksRequest::DescribeHealthChecksRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeHealthChecks") { + setMethod(HttpRequest::Method::Post); } -void DescribeHealthChecksRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeHealthChecksRequest::~DescribeHealthChecksRequest() {} + +long DescribeHealthChecksRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeHealthChecksRequest::getHcInstanceId()const -{ - return hcInstanceId_; +void DescribeHealthChecksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeHealthChecksRequest::setHcInstanceId(const std::string& hcInstanceId) -{ - hcInstanceId_ = hcInstanceId; - setParameter("HcInstanceId", hcInstanceId); +std::string DescribeHealthChecksRequest::getHcInstanceId() const { + return hcInstanceId_; } -int DescribeHealthChecksRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeHealthChecksRequest::setHcInstanceId(const std::string &hcInstanceId) { + hcInstanceId_ = hcInstanceId; + setParameter(std::string("HcInstanceId"), hcInstanceId); } -void DescribeHealthChecksRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeHealthChecksRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeHealthChecksRequest::getRegionId()const -{ - return regionId_; +void DescribeHealthChecksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeHealthChecksRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeHealthChecksRequest::getRegionId() const { + return regionId_; } -int DescribeHealthChecksRequest::getPageSize()const -{ - return pageSize_; +void DescribeHealthChecksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeHealthChecksRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeHealthChecksRequest::getPageSize() const { + return pageSize_; } -std::string DescribeHealthChecksRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeHealthChecksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeHealthChecksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeHealthChecksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeHealthChecksRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeHealthChecksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeHealthChecksRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeHealthChecksRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeHealthChecksRequest::getOwnerId()const -{ - return ownerId_; +void DescribeHealthChecksRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeHealthChecksRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeHealthChecksRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeHealthChecksRequest::getName()const -{ - return name_; +void DescribeHealthChecksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeHealthChecksRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeHealthChecksRequest::getName() const { + return name_; } -std::string DescribeHealthChecksRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeHealthChecksRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeHealthChecksRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeHealthChecksRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeHealthChecksRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeHealthChecksResult.cc b/smartag/src/model/DescribeHealthChecksResult.cc index dd10d05a9..9270ae032 100644 --- a/smartag/src/model/DescribeHealthChecksResult.cc +++ b/smartag/src/model/DescribeHealthChecksResult.cc @@ -43,40 +43,40 @@ void DescribeHealthChecksResult::parse(const std::string &payload) for (auto valueHealthChecksHealthCheck : allHealthChecksNode) { HealthCheck healthChecksObject; - if(!valueHealthChecksHealthCheck["Status"].isNull()) - healthChecksObject.status = valueHealthChecksHealthCheck["Status"].asString(); - if(!valueHealthChecksHealthCheck["Description"].isNull()) - healthChecksObject.description = valueHealthChecksHealthCheck["Description"].asString(); - if(!valueHealthChecksHealthCheck["SrcPort"].isNull()) - healthChecksObject.srcPort = std::stoi(valueHealthChecksHealthCheck["SrcPort"].asString()); - if(!valueHealthChecksHealthCheck["SrcIpAddr"].isNull()) - healthChecksObject.srcIpAddr = valueHealthChecksHealthCheck["SrcIpAddr"].asString(); - if(!valueHealthChecksHealthCheck["FailCountThreshold"].isNull()) - healthChecksObject.failCountThreshold = std::stoi(valueHealthChecksHealthCheck["FailCountThreshold"].asString()); - if(!valueHealthChecksHealthCheck["DstPort"].isNull()) - healthChecksObject.dstPort = std::stoi(valueHealthChecksHealthCheck["DstPort"].asString()); - if(!valueHealthChecksHealthCheck["Name"].isNull()) - healthChecksObject.name = valueHealthChecksHealthCheck["Name"].asString(); - if(!valueHealthChecksHealthCheck["ProbeCount"].isNull()) - healthChecksObject.probeCount = std::stoi(valueHealthChecksHealthCheck["ProbeCount"].asString()); if(!valueHealthChecksHealthCheck["Type"].isNull()) healthChecksObject.type = valueHealthChecksHealthCheck["Type"].asString(); if(!valueHealthChecksHealthCheck["ProbeTimeout"].isNull()) healthChecksObject.probeTimeout = std::stoi(valueHealthChecksHealthCheck["ProbeTimeout"].asString()); - if(!valueHealthChecksHealthCheck["HcInstanceId"].isNull()) - healthChecksObject.hcInstanceId = valueHealthChecksHealthCheck["HcInstanceId"].asString(); - if(!valueHealthChecksHealthCheck["RttThreshold"].isNull()) - healthChecksObject.rttThreshold = std::stoi(valueHealthChecksHealthCheck["RttThreshold"].asString()); - if(!valueHealthChecksHealthCheck["ProbeInterval"].isNull()) - healthChecksObject.probeInterval = std::stoi(valueHealthChecksHealthCheck["ProbeInterval"].asString()); - if(!valueHealthChecksHealthCheck["RelationCount"].isNull()) - healthChecksObject.relationCount = std::stoi(valueHealthChecksHealthCheck["RelationCount"].asString()); - if(!valueHealthChecksHealthCheck["SmartAGId"].isNull()) - healthChecksObject.smartAGId = valueHealthChecksHealthCheck["SmartAGId"].asString(); - if(!valueHealthChecksHealthCheck["RttFailThreshold"].isNull()) - healthChecksObject.rttFailThreshold = std::stoi(valueHealthChecksHealthCheck["RttFailThreshold"].asString()); + if(!valueHealthChecksHealthCheck["Status"].isNull()) + healthChecksObject.status = valueHealthChecksHealthCheck["Status"].asString(); if(!valueHealthChecksHealthCheck["DstIpAddr"].isNull()) healthChecksObject.dstIpAddr = valueHealthChecksHealthCheck["DstIpAddr"].asString(); + if(!valueHealthChecksHealthCheck["RelationCount"].isNull()) + healthChecksObject.relationCount = std::stoi(valueHealthChecksHealthCheck["RelationCount"].asString()); + if(!valueHealthChecksHealthCheck["RttFailThreshold"].isNull()) + healthChecksObject.rttFailThreshold = std::stoi(valueHealthChecksHealthCheck["RttFailThreshold"].asString()); + if(!valueHealthChecksHealthCheck["SmartAGId"].isNull()) + healthChecksObject.smartAGId = valueHealthChecksHealthCheck["SmartAGId"].asString(); + if(!valueHealthChecksHealthCheck["DstPort"].isNull()) + healthChecksObject.dstPort = std::stoi(valueHealthChecksHealthCheck["DstPort"].asString()); + if(!valueHealthChecksHealthCheck["FailCountThreshold"].isNull()) + healthChecksObject.failCountThreshold = std::stoi(valueHealthChecksHealthCheck["FailCountThreshold"].asString()); + if(!valueHealthChecksHealthCheck["RttThreshold"].isNull()) + healthChecksObject.rttThreshold = std::stoi(valueHealthChecksHealthCheck["RttThreshold"].asString()); + if(!valueHealthChecksHealthCheck["SrcPort"].isNull()) + healthChecksObject.srcPort = std::stoi(valueHealthChecksHealthCheck["SrcPort"].asString()); + if(!valueHealthChecksHealthCheck["ProbeCount"].isNull()) + healthChecksObject.probeCount = std::stoi(valueHealthChecksHealthCheck["ProbeCount"].asString()); + if(!valueHealthChecksHealthCheck["Description"].isNull()) + healthChecksObject.description = valueHealthChecksHealthCheck["Description"].asString(); + if(!valueHealthChecksHealthCheck["SrcIpAddr"].isNull()) + healthChecksObject.srcIpAddr = valueHealthChecksHealthCheck["SrcIpAddr"].asString(); + if(!valueHealthChecksHealthCheck["ProbeInterval"].isNull()) + healthChecksObject.probeInterval = std::stoi(valueHealthChecksHealthCheck["ProbeInterval"].asString()); + if(!valueHealthChecksHealthCheck["Name"].isNull()) + healthChecksObject.name = valueHealthChecksHealthCheck["Name"].asString(); + if(!valueHealthChecksHealthCheck["HcInstanceId"].isNull()) + healthChecksObject.hcInstanceId = valueHealthChecksHealthCheck["HcInstanceId"].asString(); healthChecks_.push_back(healthChecksObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeNetworkOptimizationSagsRequest.cc b/smartag/src/model/DescribeNetworkOptimizationSagsRequest.cc deleted file mode 100644 index 0973feaa6..000000000 --- a/smartag/src/model/DescribeNetworkOptimizationSagsRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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::Smartag::Model::DescribeNetworkOptimizationSagsRequest; - -DescribeNetworkOptimizationSagsRequest::DescribeNetworkOptimizationSagsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizationSags") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNetworkOptimizationSagsRequest::~DescribeNetworkOptimizationSagsRequest() -{} - -long DescribeNetworkOptimizationSagsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeNetworkOptimizationSagsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -int DescribeNetworkOptimizationSagsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeNetworkOptimizationSagsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeNetworkOptimizationSagsRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeNetworkOptimizationSagsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DescribeNetworkOptimizationSagsRequest::getNetworkOptId()const -{ - return networkOptId_; -} - -void DescribeNetworkOptimizationSagsRequest::setNetworkOptId(const std::string& networkOptId) -{ - networkOptId_ = networkOptId; - setParameter("NetworkOptId", networkOptId); -} - -int DescribeNetworkOptimizationSagsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeNetworkOptimizationSagsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeNetworkOptimizationSagsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeNetworkOptimizationSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeNetworkOptimizationSagsRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeNetworkOptimizationSagsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribeNetworkOptimizationSagsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeNetworkOptimizationSagsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc b/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc deleted file mode 100644 index 9eacb7cce..000000000 --- a/smartag/src/model/DescribeNetworkOptimizationSagsResult.cc +++ /dev/null @@ -1,88 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeNetworkOptimizationSagsResult::DescribeNetworkOptimizationSagsResult() : - ServiceResult() -{} - -DescribeNetworkOptimizationSagsResult::DescribeNetworkOptimizationSagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNetworkOptimizationSagsResult::~DescribeNetworkOptimizationSagsResult() -{} - -void DescribeNetworkOptimizationSagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSmartAccessGatewaysNode = value["SmartAccessGateways"]["SmartAccessGateway"]; - for (auto valueSmartAccessGatewaysSmartAccessGateway : allSmartAccessGatewaysNode) - { - SmartAccessGateway smartAccessGatewaysObject; - if(!valueSmartAccessGatewaysSmartAccessGateway["EndTime"].isNull()) - smartAccessGatewaysObject.endTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["EndTime"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["InstanceId"].isNull()) - smartAccessGatewaysObject.instanceId = valueSmartAccessGatewaysSmartAccessGateway["InstanceId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["State"].isNull()) - smartAccessGatewaysObject.state = valueSmartAccessGatewaysSmartAccessGateway["State"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].isNull()) - smartAccessGatewaysObject.maxBandwidth = valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].isNull()) - smartAccessGatewaysObject.createTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["Name"].isNull()) - smartAccessGatewaysObject.name = valueSmartAccessGatewaysSmartAccessGateway["Name"].asString(); - smartAccessGateways_.push_back(smartAccessGatewaysObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -int DescribeNetworkOptimizationSagsResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeNetworkOptimizationSagsResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeNetworkOptimizationSagsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeNetworkOptimizationSagsResult::getSmartAccessGateways()const -{ - return smartAccessGateways_; -} - diff --git a/smartag/src/model/DescribeNetworkOptimizationSettingsRequest.cc b/smartag/src/model/DescribeNetworkOptimizationSettingsRequest.cc deleted file mode 100644 index 2fe0701e1..000000000 --- a/smartag/src/model/DescribeNetworkOptimizationSettingsRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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::Smartag::Model::DescribeNetworkOptimizationSettingsRequest; - -DescribeNetworkOptimizationSettingsRequest::DescribeNetworkOptimizationSettingsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizationSettings") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNetworkOptimizationSettingsRequest::~DescribeNetworkOptimizationSettingsRequest() -{} - -long DescribeNetworkOptimizationSettingsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeNetworkOptimizationSettingsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -int DescribeNetworkOptimizationSettingsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeNetworkOptimizationSettingsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeNetworkOptimizationSettingsRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeNetworkOptimizationSettingsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DescribeNetworkOptimizationSettingsRequest::getNetworkOptId()const -{ - return networkOptId_; -} - -void DescribeNetworkOptimizationSettingsRequest::setNetworkOptId(const std::string& networkOptId) -{ - networkOptId_ = networkOptId; - setParameter("NetworkOptId", networkOptId); -} - -int DescribeNetworkOptimizationSettingsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeNetworkOptimizationSettingsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeNetworkOptimizationSettingsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeNetworkOptimizationSettingsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeNetworkOptimizationSettingsRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeNetworkOptimizationSettingsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribeNetworkOptimizationSettingsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeNetworkOptimizationSettingsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc b/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc deleted file mode 100644 index 425422bef..000000000 --- a/smartag/src/model/DescribeNetworkOptimizationSettingsResult.cc +++ /dev/null @@ -1,80 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeNetworkOptimizationSettingsResult::DescribeNetworkOptimizationSettingsResult() : - ServiceResult() -{} - -DescribeNetworkOptimizationSettingsResult::DescribeNetworkOptimizationSettingsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNetworkOptimizationSettingsResult::~DescribeNetworkOptimizationSettingsResult() -{} - -void DescribeNetworkOptimizationSettingsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSettingsNode = value["Settings"]["Setting"]; - for (auto valueSettingsSetting : allSettingsNode) - { - Setting settingsObject; - if(!valueSettingsSetting["Type"].isNull()) - settingsObject.type = valueSettingsSetting["Type"].asString(); - if(!valueSettingsSetting["Domain"].isNull()) - settingsObject.domain = valueSettingsSetting["Domain"].asString(); - settings_.push_back(settingsObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -int DescribeNetworkOptimizationSettingsResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeNetworkOptimizationSettingsResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeNetworkOptimizationSettingsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeNetworkOptimizationSettingsResult::getSettings()const -{ - return settings_; -} - diff --git a/smartag/src/model/DescribeNetworkOptimizationsRequest.cc b/smartag/src/model/DescribeNetworkOptimizationsRequest.cc deleted file mode 100644 index 8052271e0..000000000 --- a/smartag/src/model/DescribeNetworkOptimizationsRequest.cc +++ /dev/null @@ -1,139 +0,0 @@ -/* - * 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::Smartag::Model::DescribeNetworkOptimizationsRequest; - -DescribeNetworkOptimizationsRequest::DescribeNetworkOptimizationsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeNetworkOptimizations") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNetworkOptimizationsRequest::~DescribeNetworkOptimizationsRequest() -{} - -long DescribeNetworkOptimizationsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeNetworkOptimizationsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribeNetworkOptimizationsRequest::getCcnId()const -{ - return ccnId_; -} - -void DescribeNetworkOptimizationsRequest::setCcnId(const std::string& ccnId) -{ - ccnId_ = ccnId; - setParameter("CcnId", ccnId); -} - -int DescribeNetworkOptimizationsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeNetworkOptimizationsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribeNetworkOptimizationsRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeNetworkOptimizationsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DescribeNetworkOptimizationsRequest::getNetworkOptId()const -{ - return networkOptId_; -} - -void DescribeNetworkOptimizationsRequest::setNetworkOptId(const std::string& networkOptId) -{ - networkOptId_ = networkOptId; - setParameter("NetworkOptId", networkOptId); -} - -int DescribeNetworkOptimizationsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeNetworkOptimizationsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeNetworkOptimizationsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeNetworkOptimizationsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeNetworkOptimizationsRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeNetworkOptimizationsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribeNetworkOptimizationsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeNetworkOptimizationsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeNetworkOptimizationsRequest::getName()const -{ - return name_; -} - -void DescribeNetworkOptimizationsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/smartag/src/model/DescribeNetworkOptimizationsResult.cc b/smartag/src/model/DescribeNetworkOptimizationsResult.cc deleted file mode 100644 index 25c1d494f..000000000 --- a/smartag/src/model/DescribeNetworkOptimizationsResult.cc +++ /dev/null @@ -1,88 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeNetworkOptimizationsResult::DescribeNetworkOptimizationsResult() : - ServiceResult() -{} - -DescribeNetworkOptimizationsResult::DescribeNetworkOptimizationsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeNetworkOptimizationsResult::~DescribeNetworkOptimizationsResult() -{} - -void DescribeNetworkOptimizationsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allNetworkOptimizationsNode = value["NetworkOptimizations"]["NetworkOptimization"]; - for (auto valueNetworkOptimizationsNetworkOptimization : allNetworkOptimizationsNode) - { - NetworkOptimization networkOptimizationsObject; - if(!valueNetworkOptimizationsNetworkOptimization["SagCount"].isNull()) - networkOptimizationsObject.sagCount = std::stoi(valueNetworkOptimizationsNetworkOptimization["SagCount"].asString()); - if(!valueNetworkOptimizationsNetworkOptimization["InstanceId"].isNull()) - networkOptimizationsObject.instanceId = valueNetworkOptimizationsNetworkOptimization["InstanceId"].asString(); - if(!valueNetworkOptimizationsNetworkOptimization["State"].isNull()) - networkOptimizationsObject.state = valueNetworkOptimizationsNetworkOptimization["State"].asString(); - if(!valueNetworkOptimizationsNetworkOptimization["CcnId"].isNull()) - networkOptimizationsObject.ccnId = valueNetworkOptimizationsNetworkOptimization["CcnId"].asString(); - if(!valueNetworkOptimizationsNetworkOptimization["CreateTime"].isNull()) - networkOptimizationsObject.createTime = std::stol(valueNetworkOptimizationsNetworkOptimization["CreateTime"].asString()); - if(!valueNetworkOptimizationsNetworkOptimization["Name"].isNull()) - networkOptimizationsObject.name = valueNetworkOptimizationsNetworkOptimization["Name"].asString(); - networkOptimizations_.push_back(networkOptimizationsObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -std::vector DescribeNetworkOptimizationsResult::getNetworkOptimizations()const -{ - return networkOptimizations_; -} - -int DescribeNetworkOptimizationsResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeNetworkOptimizationsResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeNetworkOptimizationsResult::getPageNumber()const -{ - return pageNumber_; -} - diff --git a/smartag/src/model/DescribePbrInterfacesRequest.cc b/smartag/src/model/DescribePbrInterfacesRequest.cc deleted file mode 100644 index 1c45bd6d0..000000000 --- a/smartag/src/model/DescribePbrInterfacesRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * 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::Smartag::Model::DescribePbrInterfacesRequest; - -DescribePbrInterfacesRequest::DescribePbrInterfacesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribePbrInterfaces") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePbrInterfacesRequest::~DescribePbrInterfacesRequest() -{} - -long DescribePbrInterfacesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribePbrInterfacesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribePbrInterfacesRequest::getRegionId()const -{ - return regionId_; -} - -void DescribePbrInterfacesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DescribePbrInterfacesRequest::getPbrInstanceId()const -{ - return pbrInstanceId_; -} - -void DescribePbrInterfacesRequest::setPbrInstanceId(const std::string& pbrInstanceId) -{ - pbrInstanceId_ = pbrInstanceId; - setParameter("PbrInstanceId", pbrInstanceId); -} - -std::string DescribePbrInterfacesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribePbrInterfacesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribePbrInterfacesRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribePbrInterfacesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribePbrInterfacesRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribePbrInterfacesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/DescribePbrInterfacesResult.cc b/smartag/src/model/DescribePbrInterfacesResult.cc deleted file mode 100644 index 50d731461..000000000 --- a/smartag/src/model/DescribePbrInterfacesResult.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribePbrInterfacesResult::DescribePbrInterfacesResult() : - ServiceResult() -{} - -DescribePbrInterfacesResult::DescribePbrInterfacesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePbrInterfacesResult::~DescribePbrInterfacesResult() -{} - -void DescribePbrInterfacesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allPbrInterfacesNode = value["PbrInterfaces"]["PbrInterface"]; - for (auto valuePbrInterfacesPbrInterface : allPbrInterfacesNode) - { - PbrInterface pbrInterfacesObject; - if(!valuePbrInterfacesPbrInterface["Action"].isNull()) - pbrInterfacesObject.action = valuePbrInterfacesPbrInterface["Action"].asString(); - if(!valuePbrInterfacesPbrInterface["Priority"].isNull()) - pbrInterfacesObject.priority = std::stoi(valuePbrInterfacesPbrInterface["Priority"].asString()); - if(!valuePbrInterfacesPbrInterface["HealthCheckInstanceId"].isNull()) - pbrInterfacesObject.healthCheckInstanceId = valuePbrInterfacesPbrInterface["HealthCheckInstanceId"].asString(); - if(!valuePbrInterfacesPbrInterface["InterfaceName"].isNull()) - pbrInterfacesObject.interfaceName = valuePbrInterfacesPbrInterface["InterfaceName"].asString(); - pbrInterfaces_.push_back(pbrInterfacesObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - -int DescribePbrInterfacesResult::getTotalCount()const -{ - return totalCount_; -} - -std::vector DescribePbrInterfacesResult::getPbrInterfaces()const -{ - return pbrInterfaces_; -} - diff --git a/smartag/src/model/DescribePbrRulesRequest.cc b/smartag/src/model/DescribePbrRulesRequest.cc deleted file mode 100644 index f8eaf716a..000000000 --- a/smartag/src/model/DescribePbrRulesRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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::Smartag::Model::DescribePbrRulesRequest; - -DescribePbrRulesRequest::DescribePbrRulesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribePbrRules") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePbrRulesRequest::~DescribePbrRulesRequest() -{} - -long DescribePbrRulesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribePbrRulesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribePbrRulesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribePbrRulesRequest::setPageNumber(const std::string& pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", pageNumber); -} - -std::string DescribePbrRulesRequest::getRegionId()const -{ - return regionId_; -} - -void DescribePbrRulesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DescribePbrRulesRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribePbrRulesRequest::setPageSize(const std::string& pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", pageSize); -} - -std::string DescribePbrRulesRequest::getPbrInstanceId()const -{ - return pbrInstanceId_; -} - -void DescribePbrRulesRequest::setPbrInstanceId(const std::string& pbrInstanceId) -{ - pbrInstanceId_ = pbrInstanceId; - setParameter("PbrInstanceId", pbrInstanceId); -} - -std::string DescribePbrRulesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribePbrRulesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribePbrRulesRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribePbrRulesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribePbrRulesRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribePbrRulesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/DescribePbrRulesResult.cc b/smartag/src/model/DescribePbrRulesResult.cc deleted file mode 100644 index 6b26caf44..000000000 --- a/smartag/src/model/DescribePbrRulesResult.cc +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribePbrRulesResult::DescribePbrRulesResult() : - ServiceResult() -{} - -DescribePbrRulesResult::DescribePbrRulesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePbrRulesResult::~DescribePbrRulesResult() -{} - -void DescribePbrRulesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allPbrRulesNode = value["PbrRules"]["PbrRule"]; - for (auto valuePbrRulesPbrRule : allPbrRulesNode) - { - PbrRule pbrRulesObject; - if(!valuePbrRulesPbrRule["SrcPort"].isNull()) - pbrRulesObject.srcPort = valuePbrRulesPbrRule["SrcPort"].asString(); - if(!valuePbrRulesPbrRule["Description"].isNull()) - pbrRulesObject.description = valuePbrRulesPbrRule["Description"].asString(); - if(!valuePbrRulesPbrRule["SrcCidr"].isNull()) - pbrRulesObject.srcCidr = valuePbrRulesPbrRule["SrcCidr"].asString(); - if(!valuePbrRulesPbrRule["DstPort"].isNull()) - pbrRulesObject.dstPort = valuePbrRulesPbrRule["DstPort"].asString(); - if(!valuePbrRulesPbrRule["PbrRuleId"].isNull()) - pbrRulesObject.pbrRuleId = valuePbrRulesPbrRule["PbrRuleId"].asString(); - if(!valuePbrRulesPbrRule["Protocol"].isNull()) - pbrRulesObject.protocol = valuePbrRulesPbrRule["Protocol"].asString(); - if(!valuePbrRulesPbrRule["DstCidr"].isNull()) - pbrRulesObject.dstCidr = valuePbrRulesPbrRule["DstCidr"].asString(); - if(!valuePbrRulesPbrRule["Name"].isNull()) - pbrRulesObject.name = valuePbrRulesPbrRule["Name"].asString(); - pbrRules_.push_back(pbrRulesObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -int DescribePbrRulesResult::getTotalCount()const -{ - return totalCount_; -} - -std::vector DescribePbrRulesResult::getPbrRules()const -{ - return pbrRules_; -} - -int DescribePbrRulesResult::getPageSize()const -{ - return pageSize_; -} - -int DescribePbrRulesResult::getPageNumber()const -{ - return pageNumber_; -} - diff --git a/smartag/src/model/DescribePolicyBasedRoutingsRequest.cc b/smartag/src/model/DescribePolicyBasedRoutingsRequest.cc deleted file mode 100644 index 418d1af63..000000000 --- a/smartag/src/model/DescribePolicyBasedRoutingsRequest.cc +++ /dev/null @@ -1,139 +0,0 @@ -/* - * 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::Smartag::Model::DescribePolicyBasedRoutingsRequest; - -DescribePolicyBasedRoutingsRequest::DescribePolicyBasedRoutingsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribePolicyBasedRoutings") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePolicyBasedRoutingsRequest::~DescribePolicyBasedRoutingsRequest() -{} - -long DescribePolicyBasedRoutingsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribePolicyBasedRoutingsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -int DescribePolicyBasedRoutingsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribePolicyBasedRoutingsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string DescribePolicyBasedRoutingsRequest::getRegionId()const -{ - return regionId_; -} - -void DescribePolicyBasedRoutingsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -int DescribePolicyBasedRoutingsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribePolicyBasedRoutingsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribePolicyBasedRoutingsRequest::getPbrInstanceId()const -{ - return pbrInstanceId_; -} - -void DescribePolicyBasedRoutingsRequest::setPbrInstanceId(const std::string& pbrInstanceId) -{ - pbrInstanceId_ = pbrInstanceId; - setParameter("PbrInstanceId", pbrInstanceId); -} - -std::string DescribePolicyBasedRoutingsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribePolicyBasedRoutingsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribePolicyBasedRoutingsRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribePolicyBasedRoutingsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribePolicyBasedRoutingsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribePolicyBasedRoutingsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribePolicyBasedRoutingsRequest::getName()const -{ - return name_; -} - -void DescribePolicyBasedRoutingsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -std::string DescribePolicyBasedRoutingsRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void DescribePolicyBasedRoutingsRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); -} - diff --git a/smartag/src/model/DescribePolicyBasedRoutingsResult.cc b/smartag/src/model/DescribePolicyBasedRoutingsResult.cc deleted file mode 100644 index 020713429..000000000 --- a/smartag/src/model/DescribePolicyBasedRoutingsResult.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribePolicyBasedRoutingsResult::DescribePolicyBasedRoutingsResult() : - ServiceResult() -{} - -DescribePolicyBasedRoutingsResult::DescribePolicyBasedRoutingsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePolicyBasedRoutingsResult::~DescribePolicyBasedRoutingsResult() -{} - -void DescribePolicyBasedRoutingsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allPolicyBasedRoutingsNode = value["PolicyBasedRoutings"]["PolicyBasedRouting"]; - for (auto valuePolicyBasedRoutingsPolicyBasedRouting : allPolicyBasedRoutingsNode) - { - PolicyBasedRouting policyBasedRoutingsObject; - if(!valuePolicyBasedRoutingsPolicyBasedRouting["PbrInstanceId"].isNull()) - policyBasedRoutingsObject.pbrInstanceId = valuePolicyBasedRoutingsPolicyBasedRouting["PbrInstanceId"].asString(); - if(!valuePolicyBasedRoutingsPolicyBasedRouting["Description"].isNull()) - policyBasedRoutingsObject.description = valuePolicyBasedRoutingsPolicyBasedRouting["Description"].asString(); - if(!valuePolicyBasedRoutingsPolicyBasedRouting["Priority"].isNull()) - policyBasedRoutingsObject.priority = std::stoi(valuePolicyBasedRoutingsPolicyBasedRouting["Priority"].asString()); - if(!valuePolicyBasedRoutingsPolicyBasedRouting["Name"].isNull()) - policyBasedRoutingsObject.name = valuePolicyBasedRoutingsPolicyBasedRouting["Name"].asString(); - policyBasedRoutings_.push_back(policyBasedRoutingsObject); - } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -int DescribePolicyBasedRoutingsResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribePolicyBasedRoutingsResult::getPageSize()const -{ - return pageSize_; -} - -int DescribePolicyBasedRoutingsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribePolicyBasedRoutingsResult::getPolicyBasedRoutings()const -{ - return policyBasedRoutings_; -} - diff --git a/smartag/src/model/DescribeQosCarsRequest.cc b/smartag/src/model/DescribeQosCarsRequest.cc index f3173fb6f..eedb0f397 100644 --- a/smartag/src/model/DescribeQosCarsRequest.cc +++ b/smartag/src/model/DescribeQosCarsRequest.cc @@ -1,150 +1,126 @@ /* * 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::Smartag::Model::DescribeQosCarsRequest; - -DescribeQosCarsRequest::DescribeQosCarsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeQosCars") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeQosCarsRequest::~DescribeQosCarsRequest() -{} - -long DescribeQosCarsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeQosCarsRequest; + +DescribeQosCarsRequest::DescribeQosCarsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeQosCars") { + setMethod(HttpRequest::Method::Post); } -void DescribeQosCarsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeQosCarsRequest::~DescribeQosCarsRequest() {} + +long DescribeQosCarsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeQosCarsRequest::getDescription()const -{ - return description_; +void DescribeQosCarsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeQosCarsRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string DescribeQosCarsRequest::getDescription() const { + return description_; } -int DescribeQosCarsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeQosCarsRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void DescribeQosCarsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeQosCarsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeQosCarsRequest::getRegionId()const -{ - return regionId_; +void DescribeQosCarsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeQosCarsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeQosCarsRequest::getRegionId() const { + return regionId_; } -int DescribeQosCarsRequest::getPageSize()const -{ - return pageSize_; +void DescribeQosCarsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeQosCarsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeQosCarsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeQosCarsRequest::getQosId()const -{ - return qosId_; +void DescribeQosCarsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeQosCarsRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string DescribeQosCarsRequest::getQosId() const { + return qosId_; } -std::string DescribeQosCarsRequest::getOrder()const -{ - return order_; +void DescribeQosCarsRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void DescribeQosCarsRequest::setOrder(const std::string& order) -{ - order_ = order; - setParameter("Order", order); +std::string DescribeQosCarsRequest::getOrder() const { + return order_; } -std::string DescribeQosCarsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeQosCarsRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); } -void DescribeQosCarsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeQosCarsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeQosCarsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeQosCarsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeQosCarsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeQosCarsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeQosCarsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeQosCarsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeQosCarsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeQosCarsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeQosCarsRequest::getQosCarId()const -{ - return qosCarId_; +void DescribeQosCarsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeQosCarsRequest::setQosCarId(const std::string& qosCarId) -{ - qosCarId_ = qosCarId; - setParameter("QosCarId", qosCarId); +std::string DescribeQosCarsRequest::getQosCarId() const { + return qosCarId_; +} + +void DescribeQosCarsRequest::setQosCarId(const std::string &qosCarId) { + qosCarId_ = qosCarId; + setParameter(std::string("QosCarId"), qosCarId); } diff --git a/smartag/src/model/DescribeQosCarsResult.cc b/smartag/src/model/DescribeQosCarsResult.cc index 079c44f47..f48b107f1 100644 --- a/smartag/src/model/DescribeQosCarsResult.cc +++ b/smartag/src/model/DescribeQosCarsResult.cc @@ -43,28 +43,28 @@ void DescribeQosCarsResult::parse(const std::string &payload) for (auto valueQosCarsQosCar : allQosCarsNode) { QosCar qosCarsObject; - if(!valueQosCarsQosCar["MinBandwidthAbs"].isNull()) - qosCarsObject.minBandwidthAbs = std::stoi(valueQosCarsQosCar["MinBandwidthAbs"].asString()); - if(!valueQosCarsQosCar["Description"].isNull()) - qosCarsObject.description = valueQosCarsQosCar["Description"].asString(); - if(!valueQosCarsQosCar["QosCarId"].isNull()) - qosCarsObject.qosCarId = valueQosCarsQosCar["QosCarId"].asString(); - if(!valueQosCarsQosCar["Priority"].isNull()) - qosCarsObject.priority = std::stoi(valueQosCarsQosCar["Priority"].asString()); - if(!valueQosCarsQosCar["MaxBandwidthPercent"].isNull()) - qosCarsObject.maxBandwidthPercent = std::stoi(valueQosCarsQosCar["MaxBandwidthPercent"].asString()); if(!valueQosCarsQosCar["MaxBandwidthAbs"].isNull()) qosCarsObject.maxBandwidthAbs = std::stoi(valueQosCarsQosCar["MaxBandwidthAbs"].asString()); - if(!valueQosCarsQosCar["QosId"].isNull()) - qosCarsObject.qosId = valueQosCarsQosCar["QosId"].asString(); if(!valueQosCarsQosCar["PercentSourceType"].isNull()) qosCarsObject.percentSourceType = valueQosCarsQosCar["PercentSourceType"].asString(); - if(!valueQosCarsQosCar["MinBandwidthPercent"].isNull()) - qosCarsObject.minBandwidthPercent = std::stoi(valueQosCarsQosCar["MinBandwidthPercent"].asString()); + if(!valueQosCarsQosCar["MinBandwidthAbs"].isNull()) + qosCarsObject.minBandwidthAbs = std::stoi(valueQosCarsQosCar["MinBandwidthAbs"].asString()); + if(!valueQosCarsQosCar["MaxBandwidthPercent"].isNull()) + qosCarsObject.maxBandwidthPercent = std::stoi(valueQosCarsQosCar["MaxBandwidthPercent"].asString()); + if(!valueQosCarsQosCar["Description"].isNull()) + qosCarsObject.description = valueQosCarsQosCar["Description"].asString(); + if(!valueQosCarsQosCar["QosId"].isNull()) + qosCarsObject.qosId = valueQosCarsQosCar["QosId"].asString(); if(!valueQosCarsQosCar["LimitType"].isNull()) qosCarsObject.limitType = valueQosCarsQosCar["LimitType"].asString(); + if(!valueQosCarsQosCar["Priority"].isNull()) + qosCarsObject.priority = std::stoi(valueQosCarsQosCar["Priority"].asString()); if(!valueQosCarsQosCar["Name"].isNull()) qosCarsObject.name = valueQosCarsQosCar["Name"].asString(); + if(!valueQosCarsQosCar["MinBandwidthPercent"].isNull()) + qosCarsObject.minBandwidthPercent = std::stoi(valueQosCarsQosCar["MinBandwidthPercent"].asString()); + if(!valueQosCarsQosCar["QosCarId"].isNull()) + qosCarsObject.qosCarId = valueQosCarsQosCar["QosCarId"].asString(); qosCars_.push_back(qosCarsObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeQosPoliciesRequest.cc b/smartag/src/model/DescribeQosPoliciesRequest.cc index 5b10c4254..d5b6ef7ed 100644 --- a/smartag/src/model/DescribeQosPoliciesRequest.cc +++ b/smartag/src/model/DescribeQosPoliciesRequest.cc @@ -1,150 +1,126 @@ /* * 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::Smartag::Model::DescribeQosPoliciesRequest; - -DescribeQosPoliciesRequest::DescribeQosPoliciesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeQosPolicies") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeQosPoliciesRequest::~DescribeQosPoliciesRequest() -{} - -long DescribeQosPoliciesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeQosPoliciesRequest; + +DescribeQosPoliciesRequest::DescribeQosPoliciesRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeQosPolicies") { + setMethod(HttpRequest::Method::Post); } -void DescribeQosPoliciesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeQosPoliciesRequest::~DescribeQosPoliciesRequest() {} + +long DescribeQosPoliciesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeQosPoliciesRequest::getQosPolicyId()const -{ - return qosPolicyId_; +void DescribeQosPoliciesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeQosPoliciesRequest::setQosPolicyId(const std::string& qosPolicyId) -{ - qosPolicyId_ = qosPolicyId; - setParameter("QosPolicyId", qosPolicyId); +std::string DescribeQosPoliciesRequest::getQosPolicyId() const { + return qosPolicyId_; } -std::string DescribeQosPoliciesRequest::getDescription()const -{ - return description_; +void DescribeQosPoliciesRequest::setQosPolicyId(const std::string &qosPolicyId) { + qosPolicyId_ = qosPolicyId; + setParameter(std::string("QosPolicyId"), qosPolicyId); } -void DescribeQosPoliciesRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string DescribeQosPoliciesRequest::getDescription() const { + return description_; } -int DescribeQosPoliciesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeQosPoliciesRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void DescribeQosPoliciesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeQosPoliciesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeQosPoliciesRequest::getRegionId()const -{ - return regionId_; +void DescribeQosPoliciesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeQosPoliciesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeQosPoliciesRequest::getRegionId() const { + return regionId_; } -int DescribeQosPoliciesRequest::getPageSize()const -{ - return pageSize_; +void DescribeQosPoliciesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeQosPoliciesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeQosPoliciesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeQosPoliciesRequest::getQosId()const -{ - return qosId_; +void DescribeQosPoliciesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeQosPoliciesRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string DescribeQosPoliciesRequest::getQosId() const { + return qosId_; } -std::string DescribeQosPoliciesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeQosPoliciesRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void DescribeQosPoliciesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeQosPoliciesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeQosPoliciesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeQosPoliciesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeQosPoliciesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeQosPoliciesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeQosPoliciesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeQosPoliciesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeQosPoliciesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeQosPoliciesRequest::getOwnerId() const { + return ownerId_; } -int DescribeQosPoliciesRequest::getPriority()const -{ - return priority_; +void DescribeQosPoliciesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeQosPoliciesRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int DescribeQosPoliciesRequest::getPriority() const { + return priority_; +} + +void DescribeQosPoliciesRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } diff --git a/smartag/src/model/DescribeQosPoliciesResult.cc b/smartag/src/model/DescribeQosPoliciesResult.cc index fcbfe917d..10ecbbcd0 100644 --- a/smartag/src/model/DescribeQosPoliciesResult.cc +++ b/smartag/src/model/DescribeQosPoliciesResult.cc @@ -43,30 +43,30 @@ void DescribeQosPoliciesResult::parse(const std::string &payload) for (auto valueQosPoliciesQosPolicy : allQosPoliciesNode) { QosPolicy qosPoliciesObject; - if(!valueQosPoliciesQosPolicy["DestCidr"].isNull()) - qosPoliciesObject.destCidr = valueQosPoliciesQosPolicy["DestCidr"].asString(); - if(!valueQosPoliciesQosPolicy["Description"].isNull()) - qosPoliciesObject.description = valueQosPoliciesQosPolicy["Description"].asString(); - if(!valueQosPoliciesQosPolicy["SourcePortRange"].isNull()) - qosPoliciesObject.sourcePortRange = valueQosPoliciesQosPolicy["SourcePortRange"].asString(); - if(!valueQosPoliciesQosPolicy["QosPolicyId"].isNull()) - qosPoliciesObject.qosPolicyId = valueQosPoliciesQosPolicy["QosPolicyId"].asString(); - if(!valueQosPoliciesQosPolicy["EndTime"].isNull()) - qosPoliciesObject.endTime = valueQosPoliciesQosPolicy["EndTime"].asString(); - if(!valueQosPoliciesQosPolicy["SourceCidr"].isNull()) - qosPoliciesObject.sourceCidr = valueQosPoliciesQosPolicy["SourceCidr"].asString(); - if(!valueQosPoliciesQosPolicy["Priority"].isNull()) - qosPoliciesObject.priority = std::stoi(valueQosPoliciesQosPolicy["Priority"].asString()); - if(!valueQosPoliciesQosPolicy["StartTime"].isNull()) - qosPoliciesObject.startTime = valueQosPoliciesQosPolicy["StartTime"].asString(); - if(!valueQosPoliciesQosPolicy["QosId"].isNull()) - qosPoliciesObject.qosId = valueQosPoliciesQosPolicy["QosId"].asString(); if(!valueQosPoliciesQosPolicy["IpProtocol"].isNull()) qosPoliciesObject.ipProtocol = valueQosPoliciesQosPolicy["IpProtocol"].asString(); + if(!valueQosPoliciesQosPolicy["QosId"].isNull()) + qosPoliciesObject.qosId = valueQosPoliciesQosPolicy["QosId"].asString(); + if(!valueQosPoliciesQosPolicy["Priority"].isNull()) + qosPoliciesObject.priority = std::stoi(valueQosPoliciesQosPolicy["Priority"].asString()); + if(!valueQosPoliciesQosPolicy["EndTime"].isNull()) + qosPoliciesObject.endTime = valueQosPoliciesQosPolicy["EndTime"].asString(); + if(!valueQosPoliciesQosPolicy["StartTime"].isNull()) + qosPoliciesObject.startTime = valueQosPoliciesQosPolicy["StartTime"].asString(); + if(!valueQosPoliciesQosPolicy["Description"].isNull()) + qosPoliciesObject.description = valueQosPoliciesQosPolicy["Description"].asString(); + if(!valueQosPoliciesQosPolicy["DestCidr"].isNull()) + qosPoliciesObject.destCidr = valueQosPoliciesQosPolicy["DestCidr"].asString(); if(!valueQosPoliciesQosPolicy["DestPortRange"].isNull()) qosPoliciesObject.destPortRange = valueQosPoliciesQosPolicy["DestPortRange"].asString(); + if(!valueQosPoliciesQosPolicy["QosPolicyId"].isNull()) + qosPoliciesObject.qosPolicyId = valueQosPoliciesQosPolicy["QosPolicyId"].asString(); if(!valueQosPoliciesQosPolicy["Name"].isNull()) qosPoliciesObject.name = valueQosPoliciesQosPolicy["Name"].asString(); + if(!valueQosPoliciesQosPolicy["SourceCidr"].isNull()) + qosPoliciesObject.sourceCidr = valueQosPoliciesQosPolicy["SourceCidr"].asString(); + if(!valueQosPoliciesQosPolicy["SourcePortRange"].isNull()) + qosPoliciesObject.sourcePortRange = valueQosPoliciesQosPolicy["SourcePortRange"].asString(); auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; for (auto value : allDpiSignatureIds) qosPoliciesObject.dpiSignatureIds.push_back(value.asString()); diff --git a/smartag/src/model/DescribeQosesRequest.cc b/smartag/src/model/DescribeQosesRequest.cc index 9bf1a966a..09edec8f3 100644 --- a/smartag/src/model/DescribeQosesRequest.cc +++ b/smartag/src/model/DescribeQosesRequest.cc @@ -1,128 +1,117 @@ /* * 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::Smartag::Model::DescribeQosesRequest; - -DescribeQosesRequest::DescribeQosesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeQoses") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeQosesRequest::~DescribeQosesRequest() -{} - -long DescribeQosesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeQosesRequest; + +DescribeQosesRequest::DescribeQosesRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeQoses") { + setMethod(HttpRequest::Method::Post); } -void DescribeQosesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeQosesRequest::~DescribeQosesRequest() {} + +long DescribeQosesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeQosesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeQosesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeQosesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeQosesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeQosesRequest::getRegionId()const -{ - return regionId_; +void DescribeQosesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeQosesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeQosesRequest::getResourceGroupId() const { + return resourceGroupId_; } -int DescribeQosesRequest::getPageSize()const -{ - return pageSize_; +void DescribeQosesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeQosesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string DescribeQosesRequest::getRegionId() const { + return regionId_; } -std::string DescribeQosesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeQosesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeQosesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +int DescribeQosesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeQosesRequest::getQosIds()const -{ - return qosIds_; +void DescribeQosesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeQosesRequest::setQosIds(const std::string& qosIds) -{ - qosIds_ = qosIds; - setParameter("QosIds", qosIds); +std::string DescribeQosesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeQosesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeQosesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeQosesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeQosesRequest::getQosIds() const { + return qosIds_; } -long DescribeQosesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeQosesRequest::setQosIds(const std::string &qosIds) { + qosIds_ = qosIds; + setParameter(std::string("QosIds"), qosIds); } -void DescribeQosesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeQosesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeQosesRequest::getQosName()const -{ - return qosName_; +void DescribeQosesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeQosesRequest::setQosName(const std::string& qosName) -{ - qosName_ = qosName; - setParameter("QosName", qosName); +long DescribeQosesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeQosesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeQosesRequest::getQosName() const { + return qosName_; +} + +void DescribeQosesRequest::setQosName(const std::string &qosName) { + qosName_ = qosName; + setParameter(std::string("QosName"), qosName); } diff --git a/smartag/src/model/DescribeQosesResult.cc b/smartag/src/model/DescribeQosesResult.cc index 602f0a6ac..581ffe583 100644 --- a/smartag/src/model/DescribeQosesResult.cc +++ b/smartag/src/model/DescribeQosesResult.cc @@ -43,16 +43,18 @@ void DescribeQosesResult::parse(const std::string &payload) for (auto valueQosesQos : allQosesNode) { Qos qosesObject; - if(!valueQosesQos["SagCount"].isNull()) - qosesObject.sagCount = valueQosesQos["SagCount"].asString(); - if(!valueQosesQos["QosId"].isNull()) - qosesObject.qosId = valueQosesQos["QosId"].asString(); - if(!valueQosesQos["SmartAGIds"].isNull()) - qosesObject.smartAGIds = valueQosesQos["SmartAGIds"].asString(); - if(!valueQosesQos["QosName"].isNull()) - qosesObject.qosName = valueQosesQos["QosName"].asString(); if(!valueQosesQos["QosDescription"].isNull()) qosesObject.qosDescription = valueQosesQos["QosDescription"].asString(); + if(!valueQosesQos["SagCount"].isNull()) + qosesObject.sagCount = valueQosesQos["SagCount"].asString(); + if(!valueQosesQos["SmartAGIds"].isNull()) + qosesObject.smartAGIds = valueQosesQos["SmartAGIds"].asString(); + if(!valueQosesQos["QosId"].isNull()) + qosesObject.qosId = valueQosesQos["QosId"].asString(); + if(!valueQosesQos["QosName"].isNull()) + qosesObject.qosName = valueQosesQos["QosName"].asString(); + if(!valueQosesQos["ResourceGroupId"].isNull()) + qosesObject.resourceGroupId = valueQosesQos["ResourceGroupId"].asString(); qoses_.push_back(qosesObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeRegionsRequest.cc b/smartag/src/model/DescribeRegionsRequest.cc index 0328f3911..a22c26dc7 100644 --- a/smartag/src/model/DescribeRegionsRequest.cc +++ b/smartag/src/model/DescribeRegionsRequest.cc @@ -1,84 +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::Smartag::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeRegions") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - -long DescribeRegionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeRegions") { + setMethod(HttpRequest::Method::Post); } -void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRegionsRequest::~DescribeRegionsRequest() {} + +long DescribeRegionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeRegionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRegionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeRegionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeRegionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeRegionsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeRegionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRegionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeRegionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRegionsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRegionsRequest::getAcceptLanguage()const -{ - return acceptLanguage_; +void DescribeRegionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) -{ - acceptLanguage_ = acceptLanguage; - setParameter("AcceptLanguage", acceptLanguage); +std::string DescribeRegionsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); } diff --git a/smartag/src/model/DescribeRegionsResult.cc b/smartag/src/model/DescribeRegionsResult.cc index 195ec194d..5cd480fac 100644 --- a/smartag/src/model/DescribeRegionsResult.cc +++ b/smartag/src/model/DescribeRegionsResult.cc @@ -43,12 +43,12 @@ void DescribeRegionsResult::parse(const std::string &payload) for (auto valueRegionsRegion : allRegionsNode) { Region regionsObject; - if(!valueRegionsRegion["RegionId"].isNull()) - regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); - if(!valueRegionsRegion["RegionEndpoint"].isNull()) - regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); if(!valueRegionsRegion["LocalName"].isNull()) regionsObject.localName = valueRegionsRegion["LocalName"].asString(); + if(!valueRegionsRegion["RegionEndpoint"].isNull()) + regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); regions_.push_back(regionsObject); } diff --git a/smartag/src/model/DescribeRouteDistributionStrategiesRequest.cc b/smartag/src/model/DescribeRouteDistributionStrategiesRequest.cc index d235c99f8..c409f5988 100644 --- a/smartag/src/model/DescribeRouteDistributionStrategiesRequest.cc +++ b/smartag/src/model/DescribeRouteDistributionStrategiesRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::DescribeRouteDistributionStrategiesRequest; - -DescribeRouteDistributionStrategiesRequest::DescribeRouteDistributionStrategiesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeRouteDistributionStrategies") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRouteDistributionStrategiesRequest::~DescribeRouteDistributionStrategiesRequest() -{} - -long DescribeRouteDistributionStrategiesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeRouteDistributionStrategiesRequest; + +DescribeRouteDistributionStrategiesRequest::DescribeRouteDistributionStrategiesRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeRouteDistributionStrategies") { + setMethod(HttpRequest::Method::Post); } -void DescribeRouteDistributionStrategiesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRouteDistributionStrategiesRequest::~DescribeRouteDistributionStrategiesRequest() {} + +long DescribeRouteDistributionStrategiesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeRouteDistributionStrategiesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeRouteDistributionStrategiesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRouteDistributionStrategiesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeRouteDistributionStrategiesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeRouteDistributionStrategiesRequest::getRegionId()const -{ - return regionId_; +void DescribeRouteDistributionStrategiesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeRouteDistributionStrategiesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeRouteDistributionStrategiesRequest::getRegionId() const { + return regionId_; } -int DescribeRouteDistributionStrategiesRequest::getPageSize()const -{ - return pageSize_; +void DescribeRouteDistributionStrategiesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeRouteDistributionStrategiesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeRouteDistributionStrategiesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeRouteDistributionStrategiesRequest::getSourceType()const -{ - return sourceType_; +void DescribeRouteDistributionStrategiesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeRouteDistributionStrategiesRequest::setSourceType(const std::string& sourceType) -{ - sourceType_ = sourceType; - setParameter("SourceType", sourceType); +std::string DescribeRouteDistributionStrategiesRequest::getSourceType() const { + return sourceType_; } -std::string DescribeRouteDistributionStrategiesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRouteDistributionStrategiesRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); } -void DescribeRouteDistributionStrategiesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRouteDistributionStrategiesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeRouteDistributionStrategiesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeRouteDistributionStrategiesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRouteDistributionStrategiesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeRouteDistributionStrategiesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeRouteDistributionStrategiesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRouteDistributionStrategiesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeRouteDistributionStrategiesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRouteDistributionStrategiesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRouteDistributionStrategiesRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeRouteDistributionStrategiesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRouteDistributionStrategiesRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeRouteDistributionStrategiesRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeRouteDistributionStrategiesRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeRouteDistributionStrategiesResult.cc b/smartag/src/model/DescribeRouteDistributionStrategiesResult.cc index 057b7a9bb..8de96b771 100644 --- a/smartag/src/model/DescribeRouteDistributionStrategiesResult.cc +++ b/smartag/src/model/DescribeRouteDistributionStrategiesResult.cc @@ -45,28 +45,28 @@ void DescribeRouteDistributionStrategiesResult::parse(const std::string &payload Strategy strategiesObject; if(!valueStrategiesStrategy["Status"].isNull()) strategiesObject.status = valueStrategiesStrategy["Status"].asString(); + if(!valueStrategiesStrategy["StrategyPublishStatus"].isNull()) + strategiesObject.strategyPublishStatus = valueStrategiesStrategy["StrategyPublishStatus"].asString(); + if(!valueStrategiesStrategy["RouteDistribution"].isNull()) + strategiesObject.routeDistribution = valueStrategiesStrategy["RouteDistribution"].asString(); + if(!valueStrategiesStrategy["CreateTime"].isNull()) + strategiesObject.createTime = std::stol(valueStrategiesStrategy["CreateTime"].asString()); + if(!valueStrategiesStrategy["SmartAGId"].isNull()) + strategiesObject.smartAGId = valueStrategiesStrategy["SmartAGId"].asString(); + if(!valueStrategiesStrategy["SourceType"].isNull()) + strategiesObject.sourceType = valueStrategiesStrategy["SourceType"].asString(); + if(!valueStrategiesStrategy["IsConflict"].isNull()) + strategiesObject.isConflict = valueStrategiesStrategy["IsConflict"].asString() == "true"; if(!valueStrategiesStrategy["InstanceId"].isNull()) strategiesObject.instanceId = valueStrategiesStrategy["InstanceId"].asString(); + if(!valueStrategiesStrategy["DestCidrBlock"].isNull()) + strategiesObject.destCidrBlock = valueStrategiesStrategy["DestCidrBlock"].asString(); + if(!valueStrategiesStrategy["ConflictInfo"].isNull()) + strategiesObject.conflictInfo = valueStrategiesStrategy["ConflictInfo"].asString(); if(!valueStrategiesStrategy["HcInstanceId"].isNull()) strategiesObject.hcInstanceId = valueStrategiesStrategy["HcInstanceId"].asString(); if(!valueStrategiesStrategy["RouteSource"].isNull()) strategiesObject.routeSource = valueStrategiesStrategy["RouteSource"].asString(); - if(!valueStrategiesStrategy["SourceType"].isNull()) - strategiesObject.sourceType = valueStrategiesStrategy["SourceType"].asString(); - if(!valueStrategiesStrategy["CreateTime"].isNull()) - strategiesObject.createTime = std::stol(valueStrategiesStrategy["CreateTime"].asString()); - if(!valueStrategiesStrategy["RouteDistribution"].isNull()) - strategiesObject.routeDistribution = valueStrategiesStrategy["RouteDistribution"].asString(); - if(!valueStrategiesStrategy["IsConflict"].isNull()) - strategiesObject.isConflict = valueStrategiesStrategy["IsConflict"].asString() == "true"; - if(!valueStrategiesStrategy["SmartAGId"].isNull()) - strategiesObject.smartAGId = valueStrategiesStrategy["SmartAGId"].asString(); - if(!valueStrategiesStrategy["StrategyPublishStatus"].isNull()) - strategiesObject.strategyPublishStatus = valueStrategiesStrategy["StrategyPublishStatus"].asString(); - if(!valueStrategiesStrategy["ConflictInfo"].isNull()) - strategiesObject.conflictInfo = valueStrategiesStrategy["ConflictInfo"].asString(); - if(!valueStrategiesStrategy["DestCidrBlock"].isNull()) - strategiesObject.destCidrBlock = valueStrategiesStrategy["DestCidrBlock"].asString(); strategies_.push_back(strategiesObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeSAGDeviceInfoRequest.cc b/smartag/src/model/DescribeSAGDeviceInfoRequest.cc index 1932dcb00..e8a549bae 100644 --- a/smartag/src/model/DescribeSAGDeviceInfoRequest.cc +++ b/smartag/src/model/DescribeSAGDeviceInfoRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSAGDeviceInfoRequest; - -DescribeSAGDeviceInfoRequest::DescribeSAGDeviceInfoRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSAGDeviceInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSAGDeviceInfoRequest::~DescribeSAGDeviceInfoRequest() -{} - -long DescribeSAGDeviceInfoRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSAGDeviceInfoRequest; + +DescribeSAGDeviceInfoRequest::DescribeSAGDeviceInfoRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSAGDeviceInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeSAGDeviceInfoRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSAGDeviceInfoRequest::~DescribeSAGDeviceInfoRequest() {} + +long DescribeSAGDeviceInfoRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSAGDeviceInfoRequest::getRegionId()const -{ - return regionId_; +void DescribeSAGDeviceInfoRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSAGDeviceInfoRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSAGDeviceInfoRequest::getRegionId() const { + return regionId_; } -std::string DescribeSAGDeviceInfoRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSAGDeviceInfoRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSAGDeviceInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSAGDeviceInfoRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSAGDeviceInfoRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSAGDeviceInfoRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSAGDeviceInfoRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSAGDeviceInfoRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSAGDeviceInfoRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSAGDeviceInfoRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSAGDeviceInfoRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSAGDeviceInfoRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSAGDeviceInfoRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSAGDeviceInfoRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSAGDeviceInfoRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSAGDeviceInfoRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSAGDeviceInfoRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSAGDeviceInfoRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSAGDeviceInfoRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSAGDeviceInfoRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSAGDeviceInfoRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSAGDeviceInfoResult.cc b/smartag/src/model/DescribeSAGDeviceInfoResult.cc index 841ea2be6..41def9212 100644 --- a/smartag/src/model/DescribeSAGDeviceInfoResult.cc +++ b/smartag/src/model/DescribeSAGDeviceInfoResult.cc @@ -39,14 +39,14 @@ void DescribeSAGDeviceInfoResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ControllerState"].isNull()) - controllerState_ = value["ControllerState"].asString(); if(!value["ServiceIP"].isNull()) serviceIP_ = value["ServiceIP"].asString(); - if(!value["SmartAGType"].isNull()) - smartAGType_ = value["SmartAGType"].asString(); + if(!value["ControllerState"].isNull()) + controllerState_ = value["ControllerState"].asString(); if(!value["SynStatus"].isNull()) synStatus_ = value["SynStatus"].asString(); + if(!value["SmartAGType"].isNull()) + smartAGType_ = value["SmartAGType"].asString(); if(!value["Version"].isNull()) version_ = value["Version"].asString(); if(!value["VpnState"].isNull()) @@ -55,22 +55,19 @@ void DescribeSAGDeviceInfoResult::parse(const std::string &payload) startupTime_ = value["StartupTime"].asString(); if(!value["LastConnectedControllerTime"].isNull()) lastConnectedControllerTime_ = value["LastConnectedControllerTime"].asString(); + if(!value["ResettableStatus"].isNull()) + resettableStatus_ = value["ResettableStatus"].asString(); } -std::string DescribeSAGDeviceInfoResult::getControllerState()const -{ - return controllerState_; -} - std::string DescribeSAGDeviceInfoResult::getServiceIP()const { return serviceIP_; } -std::string DescribeSAGDeviceInfoResult::getSmartAGType()const +std::string DescribeSAGDeviceInfoResult::getControllerState()const { - return smartAGType_; + return controllerState_; } std::string DescribeSAGDeviceInfoResult::getSynStatus()const @@ -78,6 +75,11 @@ std::string DescribeSAGDeviceInfoResult::getSynStatus()const return synStatus_; } +std::string DescribeSAGDeviceInfoResult::getSmartAGType()const +{ + return smartAGType_; +} + std::string DescribeSAGDeviceInfoResult::getVersion()const { return version_; @@ -93,6 +95,11 @@ std::string DescribeSAGDeviceInfoResult::getStartupTime()const return startupTime_; } +std::string DescribeSAGDeviceInfoResult::getResettableStatus()const +{ + return resettableStatus_; +} + std::string DescribeSAGDeviceInfoResult::getLastConnectedControllerTime()const { return lastConnectedControllerTime_; diff --git a/smartag/src/model/DescribeSagCurrentDnsRequest.cc b/smartag/src/model/DescribeSagCurrentDnsRequest.cc index 201252be5..71bb1a832 100644 --- a/smartag/src/model/DescribeSagCurrentDnsRequest.cc +++ b/smartag/src/model/DescribeSagCurrentDnsRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagCurrentDnsRequest; - -DescribeSagCurrentDnsRequest::DescribeSagCurrentDnsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagCurrentDns") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagCurrentDnsRequest::~DescribeSagCurrentDnsRequest() -{} - -long DescribeSagCurrentDnsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagCurrentDnsRequest; + +DescribeSagCurrentDnsRequest::DescribeSagCurrentDnsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagCurrentDns") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagCurrentDnsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagCurrentDnsRequest::~DescribeSagCurrentDnsRequest() {} + +long DescribeSagCurrentDnsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagCurrentDnsRequest::getRegionId()const -{ - return regionId_; +void DescribeSagCurrentDnsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagCurrentDnsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagCurrentDnsRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagCurrentDnsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagCurrentDnsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagCurrentDnsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagCurrentDnsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagCurrentDnsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagCurrentDnsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagCurrentDnsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagCurrentDnsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagCurrentDnsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagCurrentDnsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagCurrentDnsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagCurrentDnsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagCurrentDnsRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagCurrentDnsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagCurrentDnsRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagCurrentDnsRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagCurrentDnsRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagCurrentDnsRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagCurrentDnsRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagCurrentDnsRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagCurrentDnsRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagDropTopNRequest.cc b/smartag/src/model/DescribeSagDropTopNRequest.cc index 70464002f..cfc178003 100644 --- a/smartag/src/model/DescribeSagDropTopNRequest.cc +++ b/smartag/src/model/DescribeSagDropTopNRequest.cc @@ -1,95 +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::Smartag::Model::DescribeSagDropTopNRequest; - -DescribeSagDropTopNRequest::DescribeSagDropTopNRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagDropTopN") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagDropTopNRequest::~DescribeSagDropTopNRequest() -{} - -long DescribeSagDropTopNRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagDropTopNRequest; + +DescribeSagDropTopNRequest::DescribeSagDropTopNRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagDropTopN") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagDropTopNRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagDropTopNRequest::~DescribeSagDropTopNRequest() {} + +long DescribeSagDropTopNRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagDropTopNRequest::getRegionId()const -{ - return regionId_; +void DescribeSagDropTopNRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagDropTopNRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagDropTopNRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagDropTopNRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagDropTopNRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagDropTopNRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagDropTopNRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagDropTopNRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagDropTopNRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagDropTopNRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagDropTopNRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagDropTopNRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagDropTopNRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagDropTopNRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagDropTopNRequest::getOwnerId() const { + return ownerId_; } -int DescribeSagDropTopNRequest::getSize()const -{ - return size_; +void DescribeSagDropTopNRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagDropTopNRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +int DescribeSagDropTopNRequest::getSize() const { + return size_; +} + +void DescribeSagDropTopNRequest::setSize(int size) { + size_ = size; + setParameter(std::string("Size"), std::to_string(size)); } diff --git a/smartag/src/model/DescribeSagDropTopNResult.cc b/smartag/src/model/DescribeSagDropTopNResult.cc index edfa7a74b..65991293a 100644 --- a/smartag/src/model/DescribeSagDropTopNResult.cc +++ b/smartag/src/model/DescribeSagDropTopNResult.cc @@ -43,14 +43,14 @@ void DescribeSagDropTopNResult::parse(const std::string &payload) for (auto valueDropTopNDropTopNItem : allDropTopNNode) { DropTopNItem dropTopNObject; - if(!valueDropTopNDropTopNItem["InstanceId"].isNull()) - dropTopNObject.instanceId = valueDropTopNDropTopNItem["InstanceId"].asString(); - if(!valueDropTopNDropTopNItem["RegionId"].isNull()) - dropTopNObject.regionId = valueDropTopNDropTopNItem["RegionId"].asString(); if(!valueDropTopNDropTopNItem["DropRate"].isNull()) dropTopNObject.dropRate = valueDropTopNDropTopNItem["DropRate"].asString(); + if(!valueDropTopNDropTopNItem["InstanceId"].isNull()) + dropTopNObject.instanceId = valueDropTopNDropTopNItem["InstanceId"].asString(); if(!valueDropTopNDropTopNItem["Name"].isNull()) dropTopNObject.name = valueDropTopNDropTopNItem["Name"].asString(); + if(!valueDropTopNDropTopNItem["RegionId"].isNull()) + dropTopNObject.regionId = valueDropTopNDropTopNItem["RegionId"].asString(); dropTopN_.push_back(dropTopNObject); } diff --git a/smartag/src/model/DescribeSagECRouteBackupAttributeRequest.cc b/smartag/src/model/DescribeSagECRouteBackupAttributeRequest.cc deleted file mode 100644 index 06fadaf1b..000000000 --- a/smartag/src/model/DescribeSagECRouteBackupAttributeRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * 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::Smartag::Model::DescribeSagECRouteBackupAttributeRequest; - -DescribeSagECRouteBackupAttributeRequest::DescribeSagECRouteBackupAttributeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagECRouteBackupAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagECRouteBackupAttributeRequest::~DescribeSagECRouteBackupAttributeRequest() -{} - -long DescribeSagECRouteBackupAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeSagECRouteBackupAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribeSagECRouteBackupAttributeRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeSagECRouteBackupAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DescribeSagECRouteBackupAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeSagECRouteBackupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeSagECRouteBackupAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeSagECRouteBackupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribeSagECRouteBackupAttributeRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeSagECRouteBackupAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeSagECRouteBackupAttributeRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void DescribeSagECRouteBackupAttributeRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); -} - diff --git a/smartag/src/model/DescribeSagECRouteBackupAttributeResult.cc b/smartag/src/model/DescribeSagECRouteBackupAttributeResult.cc deleted file mode 100644 index 4eb04a649..000000000 --- a/smartag/src/model/DescribeSagECRouteBackupAttributeResult.cc +++ /dev/null @@ -1,101 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSagECRouteBackupAttributeResult::DescribeSagECRouteBackupAttributeResult() : - ServiceResult() -{} - -DescribeSagECRouteBackupAttributeResult::DescribeSagECRouteBackupAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSagECRouteBackupAttributeResult::~DescribeSagECRouteBackupAttributeResult() -{} - -void DescribeSagECRouteBackupAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allCidrsNode = value["Cidrs"]["Cidr"]; - for (auto valueCidrsCidr : allCidrsNode) - { - Cidr cidrsObject; - if(!valueCidrsCidr["EnableBackup"].isNull()) - cidrsObject.enableBackup = valueCidrsCidr["EnableBackup"].asString() == "true"; - if(!valueCidrsCidr["Cidr"].isNull()) - cidrsObject.cidr = valueCidrsCidr["Cidr"].asString(); - cidrs_.push_back(cidrsObject); - } - if(!value["HcIp"].isNull()) - hcIp_ = value["HcIp"].asString(); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["ExpressConnectionInterface"].isNull()) - expressConnectionInterface_ = value["ExpressConnectionInterface"].asString(); - if(!value["RouteBackup"].isNull()) - routeBackup_ = value["RouteBackup"].asString() == "true"; - if(!value["ExpressConnectionNexthop"].isNull()) - expressConnectionNexthop_ = value["ExpressConnectionNexthop"].asString(); - if(!value["SagId"].isNull()) - sagId_ = value["SagId"].asString(); - -} - -std::string DescribeSagECRouteBackupAttributeResult::getHcIp()const -{ - return hcIp_; -} - -std::string DescribeSagECRouteBackupAttributeResult::getStatus()const -{ - return status_; -} - -std::string DescribeSagECRouteBackupAttributeResult::getExpressConnectionInterface()const -{ - return expressConnectionInterface_; -} - -bool DescribeSagECRouteBackupAttributeResult::getRouteBackup()const -{ - return routeBackup_; -} - -std::string DescribeSagECRouteBackupAttributeResult::getExpressConnectionNexthop()const -{ - return expressConnectionNexthop_; -} - -std::string DescribeSagECRouteBackupAttributeResult::getSagId()const -{ - return sagId_; -} - -std::vector DescribeSagECRouteBackupAttributeResult::getCidrs()const -{ - return cidrs_; -} - diff --git a/smartag/src/model/DescribeSagExpressConnectInterfaceListRequest.cc b/smartag/src/model/DescribeSagExpressConnectInterfaceListRequest.cc index b35e3c15f..2253a3b68 100644 --- a/smartag/src/model/DescribeSagExpressConnectInterfaceListRequest.cc +++ b/smartag/src/model/DescribeSagExpressConnectInterfaceListRequest.cc @@ -1,117 +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::Smartag::Model::DescribeSagExpressConnectInterfaceListRequest; - -DescribeSagExpressConnectInterfaceListRequest::DescribeSagExpressConnectInterfaceListRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagExpressConnectInterfaceList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagExpressConnectInterfaceListRequest::~DescribeSagExpressConnectInterfaceListRequest() -{} - -long DescribeSagExpressConnectInterfaceListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagExpressConnectInterfaceListRequest; + +DescribeSagExpressConnectInterfaceListRequest::DescribeSagExpressConnectInterfaceListRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagExpressConnectInterfaceList") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagExpressConnectInterfaceListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagExpressConnectInterfaceListRequest::~DescribeSagExpressConnectInterfaceListRequest() {} + +long DescribeSagExpressConnectInterfaceListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagExpressConnectInterfaceListRequest::getRegionId()const -{ - return regionId_; +void DescribeSagExpressConnectInterfaceListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagExpressConnectInterfaceListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagExpressConnectInterfaceListRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagExpressConnectInterfaceListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagExpressConnectInterfaceListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagExpressConnectInterfaceListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagExpressConnectInterfaceListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagExpressConnectInterfaceListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagExpressConnectInterfaceListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagExpressConnectInterfaceListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagExpressConnectInterfaceListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagExpressConnectInterfaceListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagExpressConnectInterfaceListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagExpressConnectInterfaceListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagExpressConnectInterfaceListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagExpressConnectInterfaceListRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagExpressConnectInterfaceListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagExpressConnectInterfaceListRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagExpressConnectInterfaceListRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagExpressConnectInterfaceListRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagExpressConnectInterfaceListRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagExpressConnectInterfaceListRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagExpressConnectInterfaceListRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string DescribeSagExpressConnectInterfaceListRequest::getPortName()const -{ - return portName_; +void DescribeSagExpressConnectInterfaceListRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void DescribeSagExpressConnectInterfaceListRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string DescribeSagExpressConnectInterfaceListRequest::getPortName() const { + return portName_; +} + +void DescribeSagExpressConnectInterfaceListRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } diff --git a/smartag/src/model/DescribeSagExpressConnectInterfaceListResult.cc b/smartag/src/model/DescribeSagExpressConnectInterfaceListResult.cc index 465231210..4bc97c620 100644 --- a/smartag/src/model/DescribeSagExpressConnectInterfaceListResult.cc +++ b/smartag/src/model/DescribeSagExpressConnectInterfaceListResult.cc @@ -43,26 +43,26 @@ void DescribeSagExpressConnectInterfaceListResult::parse(const std::string &payl for (auto valueInterfacesInterface : allInterfacesNode) { Interface interfacesObject; - if(!valueInterfacesInterface["IP"].isNull()) - interfacesObject.iP = valueInterfacesInterface["IP"].asString(); if(!valueInterfacesInterface["Mask"].isNull()) interfacesObject.mask = valueInterfacesInterface["Mask"].asString(); if(!valueInterfacesInterface["Vlan"].isNull()) interfacesObject.vlan = valueInterfacesInterface["Vlan"].asString(); + if(!valueInterfacesInterface["IP"].isNull()) + interfacesObject.iP = valueInterfacesInterface["IP"].asString(); interfaces_.push_back(interfacesObject); } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } diff --git a/smartag/src/model/DescribeSagGlobalRouteProtocolRequest.cc b/smartag/src/model/DescribeSagGlobalRouteProtocolRequest.cc index 8ff06c051..5ee4c2dce 100644 --- a/smartag/src/model/DescribeSagGlobalRouteProtocolRequest.cc +++ b/smartag/src/model/DescribeSagGlobalRouteProtocolRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagGlobalRouteProtocolRequest; - -DescribeSagGlobalRouteProtocolRequest::DescribeSagGlobalRouteProtocolRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagGlobalRouteProtocol") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagGlobalRouteProtocolRequest::~DescribeSagGlobalRouteProtocolRequest() -{} - -long DescribeSagGlobalRouteProtocolRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagGlobalRouteProtocolRequest; + +DescribeSagGlobalRouteProtocolRequest::DescribeSagGlobalRouteProtocolRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagGlobalRouteProtocol") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagGlobalRouteProtocolRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagGlobalRouteProtocolRequest::~DescribeSagGlobalRouteProtocolRequest() {} + +long DescribeSagGlobalRouteProtocolRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagGlobalRouteProtocolRequest::getRegionId()const -{ - return regionId_; +void DescribeSagGlobalRouteProtocolRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagGlobalRouteProtocolRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagGlobalRouteProtocolRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagGlobalRouteProtocolRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagGlobalRouteProtocolRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagGlobalRouteProtocolRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagGlobalRouteProtocolRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagGlobalRouteProtocolRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagGlobalRouteProtocolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagGlobalRouteProtocolRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagGlobalRouteProtocolRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagGlobalRouteProtocolRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagGlobalRouteProtocolRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagGlobalRouteProtocolRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagGlobalRouteProtocolRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagGlobalRouteProtocolRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagGlobalRouteProtocolRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagGlobalRouteProtocolRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagGlobalRouteProtocolRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagGlobalRouteProtocolRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagGlobalRouteProtocolRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagGlobalRouteProtocolRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagGlobalRouteProtocolRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagGlobalRouteProtocolRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagGlobalRouteProtocolResult.cc b/smartag/src/model/DescribeSagGlobalRouteProtocolResult.cc index 45d14a99e..f19641440 100644 --- a/smartag/src/model/DescribeSagGlobalRouteProtocolResult.cc +++ b/smartag/src/model/DescribeSagGlobalRouteProtocolResult.cc @@ -43,14 +43,14 @@ void DescribeSagGlobalRouteProtocolResult::parse(const std::string &payload) for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["RouteProtocol"].isNull()) diff --git a/smartag/src/model/DescribeSagHaRequest.cc b/smartag/src/model/DescribeSagHaRequest.cc index 1fa1316dc..21174ba44 100644 --- a/smartag/src/model/DescribeSagHaRequest.cc +++ b/smartag/src/model/DescribeSagHaRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagHaRequest; - -DescribeSagHaRequest::DescribeSagHaRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagHa") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagHaRequest::~DescribeSagHaRequest() -{} - -long DescribeSagHaRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagHaRequest; + +DescribeSagHaRequest::DescribeSagHaRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagHa") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagHaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagHaRequest::~DescribeSagHaRequest() {} + +long DescribeSagHaRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagHaRequest::getRegionId()const -{ - return regionId_; +void DescribeSagHaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagHaRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagHaRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagHaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagHaRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagHaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagHaRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagHaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagHaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagHaRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagHaRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagHaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagHaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagHaRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagHaRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagHaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagHaRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagHaRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagHaRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagHaRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagHaRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagHaRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagHaRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagHaResult.cc b/smartag/src/model/DescribeSagHaResult.cc index 8c21717fa..0d613f8c9 100644 --- a/smartag/src/model/DescribeSagHaResult.cc +++ b/smartag/src/model/DescribeSagHaResult.cc @@ -43,24 +43,24 @@ void DescribeSagHaResult::parse(const std::string &payload) for (auto valuePortsPort : allPortsNode) { Port portsObject; - if(!valuePortsPort["VirtualIp"].isNull()) - portsObject.virtualIp = valuePortsPort["VirtualIp"].asString(); if(!valuePortsPort["PortName"].isNull()) portsObject.portName = valuePortsPort["PortName"].asString(); + if(!valuePortsPort["VirtualIp"].isNull()) + portsObject.virtualIp = valuePortsPort["VirtualIp"].asString(); ports_.push_back(portsObject); } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["Mode"].isNull()) diff --git a/smartag/src/model/DescribeSagLanListRequest.cc b/smartag/src/model/DescribeSagLanListRequest.cc index e1317f2a7..9f1afe629 100644 --- a/smartag/src/model/DescribeSagLanListRequest.cc +++ b/smartag/src/model/DescribeSagLanListRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagLanListRequest; - -DescribeSagLanListRequest::DescribeSagLanListRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagLanList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagLanListRequest::~DescribeSagLanListRequest() -{} - -long DescribeSagLanListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagLanListRequest; + +DescribeSagLanListRequest::DescribeSagLanListRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagLanList") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagLanListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagLanListRequest::~DescribeSagLanListRequest() {} + +long DescribeSagLanListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagLanListRequest::getRegionId()const -{ - return regionId_; +void DescribeSagLanListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagLanListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagLanListRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagLanListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagLanListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagLanListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagLanListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagLanListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagLanListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagLanListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagLanListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagLanListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagLanListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagLanListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagLanListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagLanListRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagLanListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagLanListRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagLanListRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagLanListRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagLanListRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagLanListRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagLanListRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagLanListRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagLanListResult.cc b/smartag/src/model/DescribeSagLanListResult.cc index ca03d84bb..144ebe1ec 100644 --- a/smartag/src/model/DescribeSagLanListResult.cc +++ b/smartag/src/model/DescribeSagLanListResult.cc @@ -43,34 +43,34 @@ void DescribeSagLanListResult::parse(const std::string &payload) for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } auto allLansNode = value["Lans"]["Lan"]; for (auto valueLansLan : allLansNode) { Lan lansObject; - if(!valueLansLan["IPType"].isNull()) - lansObject.iPType = valueLansLan["IPType"].asString(); if(!valueLansLan["Lease"].isNull()) lansObject.lease = valueLansLan["Lease"].asString(); - if(!valueLansLan["IP"].isNull()) - lansObject.iP = valueLansLan["IP"].asString(); if(!valueLansLan["Mask"].isNull()) lansObject.mask = valueLansLan["Mask"].asString(); - if(!valueLansLan["StartIp"].isNull()) - lansObject.startIp = valueLansLan["StartIp"].asString(); - if(!valueLansLan["PortName"].isNull()) - lansObject.portName = valueLansLan["PortName"].asString(); if(!valueLansLan["EndIp"].isNull()) lansObject.endIp = valueLansLan["EndIp"].asString(); + if(!valueLansLan["PortName"].isNull()) + lansObject.portName = valueLansLan["PortName"].asString(); + if(!valueLansLan["StartIp"].isNull()) + lansObject.startIp = valueLansLan["StartIp"].asString(); + if(!valueLansLan["IPType"].isNull()) + lansObject.iPType = valueLansLan["IPType"].asString(); + if(!valueLansLan["IP"].isNull()) + lansObject.iP = valueLansLan["IP"].asString(); lans_.push_back(lansObject); } diff --git a/smartag/src/model/DescribeSagManagementPortRequest.cc b/smartag/src/model/DescribeSagManagementPortRequest.cc index d75438e40..aecd85e56 100644 --- a/smartag/src/model/DescribeSagManagementPortRequest.cc +++ b/smartag/src/model/DescribeSagManagementPortRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagManagementPortRequest; - -DescribeSagManagementPortRequest::DescribeSagManagementPortRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagManagementPort") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagManagementPortRequest::~DescribeSagManagementPortRequest() -{} - -long DescribeSagManagementPortRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagManagementPortRequest; + +DescribeSagManagementPortRequest::DescribeSagManagementPortRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagManagementPort") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagManagementPortRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagManagementPortRequest::~DescribeSagManagementPortRequest() {} + +long DescribeSagManagementPortRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagManagementPortRequest::getRegionId()const -{ - return regionId_; +void DescribeSagManagementPortRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagManagementPortRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagManagementPortRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagManagementPortRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagManagementPortRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagManagementPortRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagManagementPortRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagManagementPortRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagManagementPortRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagManagementPortRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagManagementPortRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagManagementPortRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagManagementPortRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagManagementPortRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagManagementPortRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagManagementPortRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagManagementPortRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagManagementPortRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagManagementPortRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagManagementPortRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagManagementPortRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagManagementPortRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagManagementPortRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagManagementPortRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagManagementPortResult.cc b/smartag/src/model/DescribeSagManagementPortResult.cc index ec297b20f..b35ec4fa4 100644 --- a/smartag/src/model/DescribeSagManagementPortResult.cc +++ b/smartag/src/model/DescribeSagManagementPortResult.cc @@ -43,14 +43,14 @@ void DescribeSagManagementPortResult::parse(const std::string &payload) for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["Gateway"].isNull()) diff --git a/smartag/src/model/DescribeSagOnlineClientStatisticsRequest.cc b/smartag/src/model/DescribeSagOnlineClientStatisticsRequest.cc index b1f1782ae..814115a92 100644 --- a/smartag/src/model/DescribeSagOnlineClientStatisticsRequest.cc +++ b/smartag/src/model/DescribeSagOnlineClientStatisticsRequest.cc @@ -1,97 +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::Smartag::Model::DescribeSagOnlineClientStatisticsRequest; - -DescribeSagOnlineClientStatisticsRequest::DescribeSagOnlineClientStatisticsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagOnlineClientStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagOnlineClientStatisticsRequest::~DescribeSagOnlineClientStatisticsRequest() -{} - -long DescribeSagOnlineClientStatisticsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagOnlineClientStatisticsRequest; + +DescribeSagOnlineClientStatisticsRequest::DescribeSagOnlineClientStatisticsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagOnlineClientStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagOnlineClientStatisticsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagOnlineClientStatisticsRequest::~DescribeSagOnlineClientStatisticsRequest() {} + +long DescribeSagOnlineClientStatisticsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagOnlineClientStatisticsRequest::getRegionId()const -{ - return regionId_; +void DescribeSagOnlineClientStatisticsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagOnlineClientStatisticsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagOnlineClientStatisticsRequest::getRegionId() const { + return regionId_; } -std::vector DescribeSagOnlineClientStatisticsRequest::getSmartAGIds()const -{ - return smartAGIds_; +void DescribeSagOnlineClientStatisticsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagOnlineClientStatisticsRequest::setSmartAGIds(const std::vector& smartAGIds) -{ - smartAGIds_ = smartAGIds; - for(int dep1 = 0; dep1!= smartAGIds.size(); dep1++) { - setParameter("SmartAGIds."+ std::to_string(dep1), smartAGIds.at(dep1)); - } +std::vector DescribeSagOnlineClientStatisticsRequest::getSmartAGIds() const { + return smartAGIds_; } -std::string DescribeSagOnlineClientStatisticsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagOnlineClientStatisticsRequest::setSmartAGIds(const std::vector &smartAGIds) { + smartAGIds_ = smartAGIds; } -void DescribeSagOnlineClientStatisticsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagOnlineClientStatisticsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagOnlineClientStatisticsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagOnlineClientStatisticsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagOnlineClientStatisticsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagOnlineClientStatisticsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagOnlineClientStatisticsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagOnlineClientStatisticsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagOnlineClientStatisticsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagOnlineClientStatisticsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSagOnlineClientStatisticsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc b/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc index be66b985a..c0795cd91 100644 --- a/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc +++ b/smartag/src/model/DescribeSagOnlineClientStatisticsResult.cc @@ -43,10 +43,10 @@ void DescribeSagOnlineClientStatisticsResult::parse(const std::string &payload) for (auto valueSagStatisticsStatistics : allSagStatisticsNode) { Statistics sagStatisticsObject; - if(!valueSagStatisticsStatistics["OnlineCount"].isNull()) - sagStatisticsObject.onlineCount = valueSagStatisticsStatistics["OnlineCount"].asString(); if(!valueSagStatisticsStatistics["SmartAGId"].isNull()) sagStatisticsObject.smartAGId = valueSagStatisticsStatistics["SmartAGId"].asString(); + if(!valueSagStatisticsStatistics["OnlineCount"].isNull()) + sagStatisticsObject.onlineCount = valueSagStatisticsStatistics["OnlineCount"].asString(); sagStatistics_.push_back(sagStatisticsObject); } diff --git a/smartag/src/model/DescribeSagPortListRequest.cc b/smartag/src/model/DescribeSagPortListRequest.cc index 3ec270991..65e7eee2d 100644 --- a/smartag/src/model/DescribeSagPortListRequest.cc +++ b/smartag/src/model/DescribeSagPortListRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagPortListRequest; - -DescribeSagPortListRequest::DescribeSagPortListRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagPortList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagPortListRequest::~DescribeSagPortListRequest() -{} - -long DescribeSagPortListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagPortListRequest; + +DescribeSagPortListRequest::DescribeSagPortListRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagPortList") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagPortListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagPortListRequest::~DescribeSagPortListRequest() {} + +long DescribeSagPortListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagPortListRequest::getRegionId()const -{ - return regionId_; +void DescribeSagPortListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagPortListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagPortListRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagPortListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagPortListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagPortListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagPortListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagPortListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagPortListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagPortListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagPortListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagPortListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagPortListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagPortListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagPortListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagPortListRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagPortListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagPortListRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagPortListRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagPortListRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagPortListRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagPortListRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagPortListRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagPortListRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagPortListResult.cc b/smartag/src/model/DescribeSagPortListResult.cc index 537d1ed43..a2dda10ad 100644 --- a/smartag/src/model/DescribeSagPortListResult.cc +++ b/smartag/src/model/DescribeSagPortListResult.cc @@ -43,30 +43,30 @@ void DescribeSagPortListResult::parse(const std::string &payload) for (auto valuePortsPort : allPortsNode) { Port portsObject; - if(!valuePortsPort["Role"].isNull()) - portsObject.role = valuePortsPort["Role"].asString(); if(!valuePortsPort["Status"].isNull()) portsObject.status = valuePortsPort["Status"].asString(); - if(!valuePortsPort["Vlan"].isNull()) - portsObject.vlan = valuePortsPort["Vlan"].asString(); if(!valuePortsPort["PortName"].isNull()) portsObject.portName = valuePortsPort["PortName"].asString(); + if(!valuePortsPort["Role"].isNull()) + portsObject.role = valuePortsPort["Role"].asString(); if(!valuePortsPort["Mac"].isNull()) portsObject.mac = valuePortsPort["Mac"].asString(); + if(!valuePortsPort["Vlan"].isNull()) + portsObject.vlan = valuePortsPort["Vlan"].asString(); ports_.push_back(portsObject); } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } diff --git a/smartag/src/model/DescribeSagPortRouteProtocolListRequest.cc b/smartag/src/model/DescribeSagPortRouteProtocolListRequest.cc index befa5e16e..337a8930a 100644 --- a/smartag/src/model/DescribeSagPortRouteProtocolListRequest.cc +++ b/smartag/src/model/DescribeSagPortRouteProtocolListRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagPortRouteProtocolListRequest; - -DescribeSagPortRouteProtocolListRequest::DescribeSagPortRouteProtocolListRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagPortRouteProtocolList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagPortRouteProtocolListRequest::~DescribeSagPortRouteProtocolListRequest() -{} - -long DescribeSagPortRouteProtocolListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagPortRouteProtocolListRequest; + +DescribeSagPortRouteProtocolListRequest::DescribeSagPortRouteProtocolListRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagPortRouteProtocolList") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagPortRouteProtocolListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagPortRouteProtocolListRequest::~DescribeSagPortRouteProtocolListRequest() {} + +long DescribeSagPortRouteProtocolListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagPortRouteProtocolListRequest::getRegionId()const -{ - return regionId_; +void DescribeSagPortRouteProtocolListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagPortRouteProtocolListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagPortRouteProtocolListRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagPortRouteProtocolListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagPortRouteProtocolListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagPortRouteProtocolListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagPortRouteProtocolListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagPortRouteProtocolListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagPortRouteProtocolListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagPortRouteProtocolListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagPortRouteProtocolListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagPortRouteProtocolListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagPortRouteProtocolListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagPortRouteProtocolListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagPortRouteProtocolListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagPortRouteProtocolListRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagPortRouteProtocolListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagPortRouteProtocolListRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagPortRouteProtocolListRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagPortRouteProtocolListRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagPortRouteProtocolListRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagPortRouteProtocolListRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagPortRouteProtocolListRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagPortRouteProtocolListRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagPortRouteProtocolListResult.cc b/smartag/src/model/DescribeSagPortRouteProtocolListResult.cc index 20a85e75a..23a2867dc 100644 --- a/smartag/src/model/DescribeSagPortRouteProtocolListResult.cc +++ b/smartag/src/model/DescribeSagPortRouteProtocolListResult.cc @@ -43,34 +43,34 @@ void DescribeSagPortRouteProtocolListResult::parse(const std::string &payload) for (auto valuePortsPort : allPortsNode) { Port portsObject; - if(!valuePortsPort["RemoteAs"].isNull()) - portsObject.remoteAs = valuePortsPort["RemoteAs"].asString(); if(!valuePortsPort["Status"].isNull()) portsObject.status = valuePortsPort["Status"].asString(); - if(!valuePortsPort["RouteProtocol"].isNull()) - portsObject.routeProtocol = valuePortsPort["RouteProtocol"].asString(); if(!valuePortsPort["RemoteIp"].isNull()) portsObject.remoteIp = valuePortsPort["RemoteIp"].asString(); - if(!valuePortsPort["NeighborIp"].isNull()) - portsObject.neighborIp = valuePortsPort["NeighborIp"].asString(); - if(!valuePortsPort["Vlan"].isNull()) - portsObject.vlan = valuePortsPort["Vlan"].asString(); if(!valuePortsPort["PortName"].isNull()) portsObject.portName = valuePortsPort["PortName"].asString(); + if(!valuePortsPort["NeighborIp"].isNull()) + portsObject.neighborIp = valuePortsPort["NeighborIp"].asString(); + if(!valuePortsPort["RouteProtocol"].isNull()) + portsObject.routeProtocol = valuePortsPort["RouteProtocol"].asString(); + if(!valuePortsPort["RemoteAs"].isNull()) + portsObject.remoteAs = valuePortsPort["RemoteAs"].asString(); + if(!valuePortsPort["Vlan"].isNull()) + portsObject.vlan = valuePortsPort["Vlan"].asString(); ports_.push_back(portsObject); } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } diff --git a/smartag/src/model/DescribeSagRemoteAccessRequest.cc b/smartag/src/model/DescribeSagRemoteAccessRequest.cc index 797c4e775..e2adf4368 100644 --- a/smartag/src/model/DescribeSagRemoteAccessRequest.cc +++ b/smartag/src/model/DescribeSagRemoteAccessRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagRemoteAccessRequest; - -DescribeSagRemoteAccessRequest::DescribeSagRemoteAccessRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRemoteAccess") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagRemoteAccessRequest::~DescribeSagRemoteAccessRequest() -{} - -long DescribeSagRemoteAccessRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagRemoteAccessRequest; + +DescribeSagRemoteAccessRequest::DescribeSagRemoteAccessRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRemoteAccess") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagRemoteAccessRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagRemoteAccessRequest::~DescribeSagRemoteAccessRequest() {} + +long DescribeSagRemoteAccessRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagRemoteAccessRequest::getRegionId()const -{ - return regionId_; +void DescribeSagRemoteAccessRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagRemoteAccessRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagRemoteAccessRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagRemoteAccessRequest::getSerialNumber()const -{ - return serialNumber_; +void DescribeSagRemoteAccessRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagRemoteAccessRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +std::string DescribeSagRemoteAccessRequest::getSerialNumber() const { + return serialNumber_; } -std::string DescribeSagRemoteAccessRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagRemoteAccessRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } -void DescribeSagRemoteAccessRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagRemoteAccessRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagRemoteAccessRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagRemoteAccessRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagRemoteAccessRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagRemoteAccessRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagRemoteAccessRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagRemoteAccessRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagRemoteAccessRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagRemoteAccessRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagRemoteAccessRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagRemoteAccessRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagRemoteAccessRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagRemoteAccessRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeSagRemoteAccessRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeSagRouteListRequest.cc b/smartag/src/model/DescribeSagRouteListRequest.cc index 74b87ee58..7aff79590 100644 --- a/smartag/src/model/DescribeSagRouteListRequest.cc +++ b/smartag/src/model/DescribeSagRouteListRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagRouteListRequest; - -DescribeSagRouteListRequest::DescribeSagRouteListRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRouteList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagRouteListRequest::~DescribeSagRouteListRequest() -{} - -long DescribeSagRouteListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagRouteListRequest; + +DescribeSagRouteListRequest::DescribeSagRouteListRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRouteList") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagRouteListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagRouteListRequest::~DescribeSagRouteListRequest() {} + +long DescribeSagRouteListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagRouteListRequest::getRegionId()const -{ - return regionId_; +void DescribeSagRouteListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagRouteListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagRouteListRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagRouteListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagRouteListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagRouteListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagRouteListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagRouteListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagRouteListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagRouteListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagRouteListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagRouteListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagRouteListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagRouteListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagRouteListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagRouteListRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagRouteListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagRouteListRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagRouteListRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagRouteListRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagRouteListRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagRouteListRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagRouteListRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagRouteListRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagRouteListResult.cc b/smartag/src/model/DescribeSagRouteListResult.cc index eac099abf..f2a493b1f 100644 --- a/smartag/src/model/DescribeSagRouteListResult.cc +++ b/smartag/src/model/DescribeSagRouteListResult.cc @@ -43,16 +43,16 @@ void DescribeSagRouteListResult::parse(const std::string &payload) for (auto valueRoutesRoute : allRoutesNode) { Route routesObject; - if(!valueRoutesRoute["RouteProtocol"].isNull()) - routesObject.routeProtocol = valueRoutesRoute["RouteProtocol"].asString(); if(!valueRoutesRoute["NextHop"].isNull()) routesObject.nextHop = valueRoutesRoute["NextHop"].asString(); - if(!valueRoutesRoute["PortName"].isNull()) - routesObject.portName = valueRoutesRoute["PortName"].asString(); - if(!valueRoutesRoute["Cost"].isNull()) - routesObject.cost = valueRoutesRoute["Cost"].asString(); if(!valueRoutesRoute["DestinationCidr"].isNull()) routesObject.destinationCidr = valueRoutesRoute["DestinationCidr"].asString(); + if(!valueRoutesRoute["Cost"].isNull()) + routesObject.cost = valueRoutesRoute["Cost"].asString(); + if(!valueRoutesRoute["PortName"].isNull()) + routesObject.portName = valueRoutesRoute["PortName"].asString(); + if(!valueRoutesRoute["RouteProtocol"].isNull()) + routesObject.routeProtocol = valueRoutesRoute["RouteProtocol"].asString(); auto allConflictCidrs = value["ConflictCidrs"]["ConfilitCidr"]; for (auto value : allConflictCidrs) routesObject.conflictCidrs.push_back(value.asString()); diff --git a/smartag/src/model/DescribeSagRouteProtocolBgpRequest.cc b/smartag/src/model/DescribeSagRouteProtocolBgpRequest.cc index 00a685f14..d37019a9b 100644 --- a/smartag/src/model/DescribeSagRouteProtocolBgpRequest.cc +++ b/smartag/src/model/DescribeSagRouteProtocolBgpRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagRouteProtocolBgpRequest; - -DescribeSagRouteProtocolBgpRequest::DescribeSagRouteProtocolBgpRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRouteProtocolBgp") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagRouteProtocolBgpRequest::~DescribeSagRouteProtocolBgpRequest() -{} - -long DescribeSagRouteProtocolBgpRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagRouteProtocolBgpRequest; + +DescribeSagRouteProtocolBgpRequest::DescribeSagRouteProtocolBgpRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRouteProtocolBgp") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagRouteProtocolBgpRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagRouteProtocolBgpRequest::~DescribeSagRouteProtocolBgpRequest() {} + +long DescribeSagRouteProtocolBgpRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagRouteProtocolBgpRequest::getRegionId()const -{ - return regionId_; +void DescribeSagRouteProtocolBgpRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagRouteProtocolBgpRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagRouteProtocolBgpRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagRouteProtocolBgpRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagRouteProtocolBgpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagRouteProtocolBgpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagRouteProtocolBgpRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagRouteProtocolBgpRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagRouteProtocolBgpRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagRouteProtocolBgpRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagRouteProtocolBgpRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagRouteProtocolBgpRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagRouteProtocolBgpRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagRouteProtocolBgpRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagRouteProtocolBgpRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagRouteProtocolBgpRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagRouteProtocolBgpRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagRouteProtocolBgpRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagRouteProtocolBgpRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagRouteProtocolBgpRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagRouteProtocolBgpRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagRouteProtocolBgpRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagRouteProtocolBgpRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagRouteProtocolBgpRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagRouteProtocolBgpResult.cc b/smartag/src/model/DescribeSagRouteProtocolBgpResult.cc index 0a2e484ba..2ef899293 100644 --- a/smartag/src/model/DescribeSagRouteProtocolBgpResult.cc +++ b/smartag/src/model/DescribeSagRouteProtocolBgpResult.cc @@ -43,26 +43,26 @@ void DescribeSagRouteProtocolBgpResult::parse(const std::string &payload) for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["HoldTime"].isNull()) holdTime_ = std::stoi(value["HoldTime"].asString()); - if(!value["AdvertiseIps"].isNull()) - advertiseIps_ = value["AdvertiseIps"].asString(); if(!value["KeepAlive"].isNull()) keepAlive_ = std::stoi(value["KeepAlive"].asString()); - if(!value["RouterId"].isNull()) - routerId_ = value["RouterId"].asString(); if(!value["LocalAs"].isNull()) localAs_ = std::stoi(value["LocalAs"].asString()); + if(!value["RouterId"].isNull()) + routerId_ = value["RouterId"].asString(); + if(!value["AdvertiseIps"].isNull()) + advertiseIps_ = value["AdvertiseIps"].asString(); } @@ -81,16 +81,16 @@ int DescribeSagRouteProtocolBgpResult::getKeepAlive()const return keepAlive_; } -std::string DescribeSagRouteProtocolBgpResult::getRouterId()const -{ - return routerId_; -} - int DescribeSagRouteProtocolBgpResult::getLocalAs()const { return localAs_; } +std::string DescribeSagRouteProtocolBgpResult::getRouterId()const +{ + return routerId_; +} + std::vector DescribeSagRouteProtocolBgpResult::getTaskStates()const { return taskStates_; diff --git a/smartag/src/model/DescribeSagRouteProtocolOspfRequest.cc b/smartag/src/model/DescribeSagRouteProtocolOspfRequest.cc index c390bb243..06630ddb7 100644 --- a/smartag/src/model/DescribeSagRouteProtocolOspfRequest.cc +++ b/smartag/src/model/DescribeSagRouteProtocolOspfRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagRouteProtocolOspfRequest; - -DescribeSagRouteProtocolOspfRequest::DescribeSagRouteProtocolOspfRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRouteProtocolOspf") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagRouteProtocolOspfRequest::~DescribeSagRouteProtocolOspfRequest() -{} - -long DescribeSagRouteProtocolOspfRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagRouteProtocolOspfRequest; + +DescribeSagRouteProtocolOspfRequest::DescribeSagRouteProtocolOspfRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRouteProtocolOspf") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagRouteProtocolOspfRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagRouteProtocolOspfRequest::~DescribeSagRouteProtocolOspfRequest() {} + +long DescribeSagRouteProtocolOspfRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagRouteProtocolOspfRequest::getRegionId()const -{ - return regionId_; +void DescribeSagRouteProtocolOspfRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagRouteProtocolOspfRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagRouteProtocolOspfRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagRouteProtocolOspfRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagRouteProtocolOspfRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagRouteProtocolOspfRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagRouteProtocolOspfRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagRouteProtocolOspfRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagRouteProtocolOspfRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagRouteProtocolOspfRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagRouteProtocolOspfRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagRouteProtocolOspfRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagRouteProtocolOspfRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagRouteProtocolOspfRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagRouteProtocolOspfRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagRouteProtocolOspfRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagRouteProtocolOspfRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagRouteProtocolOspfRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagRouteProtocolOspfRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagRouteProtocolOspfRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagRouteProtocolOspfRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagRouteProtocolOspfRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagRouteProtocolOspfRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagRouteProtocolOspfRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagRouteProtocolOspfResult.cc b/smartag/src/model/DescribeSagRouteProtocolOspfResult.cc index cc63c35cf..a674ed187 100644 --- a/smartag/src/model/DescribeSagRouteProtocolOspfResult.cc +++ b/smartag/src/model/DescribeSagRouteProtocolOspfResult.cc @@ -43,14 +43,14 @@ void DescribeSagRouteProtocolOspfResult::parse(const std::string &payload) for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["DeadTime"].isNull()) @@ -59,10 +59,10 @@ void DescribeSagRouteProtocolOspfResult::parse(const std::string &payload) md5KeyId_ = std::stoi(value["Md5KeyId"].asString()); if(!value["AreaId"].isNull()) areaId_ = value["AreaId"].asString(); - if(!value["HelloTime"].isNull()) - helloTime_ = std::stoi(value["HelloTime"].asString()); if(!value["RouterId"].isNull()) routerId_ = value["RouterId"].asString(); + if(!value["HelloTime"].isNull()) + helloTime_ = std::stoi(value["HelloTime"].asString()); if(!value["AreaType"].isNull()) areaType_ = value["AreaType"].asString(); if(!value["Md5Key"].isNull()) @@ -87,16 +87,16 @@ std::string DescribeSagRouteProtocolOspfResult::getAreaId()const return areaId_; } -int DescribeSagRouteProtocolOspfResult::getHelloTime()const -{ - return helloTime_; -} - std::string DescribeSagRouteProtocolOspfResult::getRouterId()const { return routerId_; } +int DescribeSagRouteProtocolOspfResult::getHelloTime()const +{ + return helloTime_; +} + std::vector DescribeSagRouteProtocolOspfResult::getTaskStates()const { return taskStates_; diff --git a/smartag/src/model/DescribeSagRouteableAddressRequest.cc b/smartag/src/model/DescribeSagRouteableAddressRequest.cc deleted file mode 100644 index de97a535d..000000000 --- a/smartag/src/model/DescribeSagRouteableAddressRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * 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::Smartag::Model::DescribeSagRouteableAddressRequest; - -DescribeSagRouteableAddressRequest::DescribeSagRouteableAddressRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagRouteableAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagRouteableAddressRequest::~DescribeSagRouteableAddressRequest() -{} - -long DescribeSagRouteableAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeSagRouteableAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribeSagRouteableAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeSagRouteableAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeSagRouteableAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeSagRouteableAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribeSagRouteableAddressRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeSagRouteableAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeSagRouteableAddressRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeSagRouteableAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DescribeSagRouteableAddressRequest::getSagId()const -{ - return sagId_; -} - -void DescribeSagRouteableAddressRequest::setSagId(const std::string& sagId) -{ - sagId_ = sagId; - setParameter("SagId", sagId); -} - diff --git a/smartag/src/model/DescribeSagRouteableAddressResult.cc b/smartag/src/model/DescribeSagRouteableAddressResult.cc deleted file mode 100644 index 24280c3a3..000000000 --- a/smartag/src/model/DescribeSagRouteableAddressResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DescribeSagRouteableAddressResult::DescribeSagRouteableAddressResult() : - ServiceResult() -{} - -DescribeSagRouteableAddressResult::DescribeSagRouteableAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSagRouteableAddressResult::~DescribeSagRouteableAddressResult() -{} - -void DescribeSagRouteableAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Origin"].isNull()) - origin_ = value["Origin"].asString(); - if(!value["RouteableAddress"].isNull()) - routeableAddress_ = value["RouteableAddress"].asString(); - -} - -std::string DescribeSagRouteableAddressResult::getOrigin()const -{ - return origin_; -} - -std::string DescribeSagRouteableAddressResult::getRouteableAddress()const -{ - return routeableAddress_; -} - diff --git a/smartag/src/model/DescribeSagStaticRouteListRequest.cc b/smartag/src/model/DescribeSagStaticRouteListRequest.cc index 04fef890f..41310f6ba 100644 --- a/smartag/src/model/DescribeSagStaticRouteListRequest.cc +++ b/smartag/src/model/DescribeSagStaticRouteListRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagStaticRouteListRequest; - -DescribeSagStaticRouteListRequest::DescribeSagStaticRouteListRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagStaticRouteList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagStaticRouteListRequest::~DescribeSagStaticRouteListRequest() -{} - -long DescribeSagStaticRouteListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagStaticRouteListRequest; + +DescribeSagStaticRouteListRequest::DescribeSagStaticRouteListRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagStaticRouteList") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagStaticRouteListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagStaticRouteListRequest::~DescribeSagStaticRouteListRequest() {} + +long DescribeSagStaticRouteListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagStaticRouteListRequest::getRegionId()const -{ - return regionId_; +void DescribeSagStaticRouteListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagStaticRouteListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagStaticRouteListRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagStaticRouteListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagStaticRouteListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagStaticRouteListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagStaticRouteListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagStaticRouteListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagStaticRouteListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagStaticRouteListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagStaticRouteListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagStaticRouteListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagStaticRouteListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagStaticRouteListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagStaticRouteListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagStaticRouteListRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagStaticRouteListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagStaticRouteListRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagStaticRouteListRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagStaticRouteListRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagStaticRouteListRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagStaticRouteListRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagStaticRouteListRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagStaticRouteListRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagStaticRouteListResult.cc b/smartag/src/model/DescribeSagStaticRouteListResult.cc index 5c0dafbf8..fae7d05ab 100644 --- a/smartag/src/model/DescribeSagStaticRouteListResult.cc +++ b/smartag/src/model/DescribeSagStaticRouteListResult.cc @@ -39,44 +39,44 @@ void DescribeSagStaticRouteListResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allTaskStatesNode = value["TaskStates"]["TaskState"]; - for (auto valueTaskStatesTaskState : allTaskStatesNode) - { - TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); - if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) - taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); - taskStates_.push_back(taskStatesObject); - } auto allStaticRoutesNode = value["StaticRoutes"]["StaticRoute"]; for (auto valueStaticRoutesStaticRoute : allStaticRoutesNode) { StaticRoute staticRoutesObject; if(!valueStaticRoutesStaticRoute["NextHop"].isNull()) staticRoutesObject.nextHop = valueStaticRoutesStaticRoute["NextHop"].asString(); - if(!valueStaticRoutesStaticRoute["Vlan"].isNull()) - staticRoutesObject.vlan = valueStaticRoutesStaticRoute["Vlan"].asString(); - if(!valueStaticRoutesStaticRoute["PortName"].isNull()) - staticRoutesObject.portName = valueStaticRoutesStaticRoute["PortName"].asString(); if(!valueStaticRoutesStaticRoute["DestinationCidr"].isNull()) staticRoutesObject.destinationCidr = valueStaticRoutesStaticRoute["DestinationCidr"].asString(); + if(!valueStaticRoutesStaticRoute["PortName"].isNull()) + staticRoutesObject.portName = valueStaticRoutesStaticRoute["PortName"].asString(); + if(!valueStaticRoutesStaticRoute["Vlan"].isNull()) + staticRoutesObject.vlan = valueStaticRoutesStaticRoute["Vlan"].asString(); staticRoutes_.push_back(staticRoutesObject); } + auto allTaskStatesNode = value["TaskStates"]["TaskState"]; + for (auto valueTaskStatesTaskState : allTaskStatesNode) + { + TaskState taskStatesObject; + if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) + taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); + taskStates_.push_back(taskStatesObject); + } } -std::vector DescribeSagStaticRouteListResult::getTaskStates()const -{ - return taskStates_; -} - std::vector DescribeSagStaticRouteListResult::getStaticRoutes()const { return staticRoutes_; } +std::vector DescribeSagStaticRouteListResult::getTaskStates()const +{ + return taskStates_; +} + diff --git a/smartag/src/model/DescribeSagTrafficTopNRequest.cc b/smartag/src/model/DescribeSagTrafficTopNRequest.cc index e4f40100d..d1c4fb1da 100644 --- a/smartag/src/model/DescribeSagTrafficTopNRequest.cc +++ b/smartag/src/model/DescribeSagTrafficTopNRequest.cc @@ -1,95 +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::Smartag::Model::DescribeSagTrafficTopNRequest; - -DescribeSagTrafficTopNRequest::DescribeSagTrafficTopNRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagTrafficTopN") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagTrafficTopNRequest::~DescribeSagTrafficTopNRequest() -{} - -long DescribeSagTrafficTopNRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagTrafficTopNRequest; + +DescribeSagTrafficTopNRequest::DescribeSagTrafficTopNRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagTrafficTopN") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagTrafficTopNRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagTrafficTopNRequest::~DescribeSagTrafficTopNRequest() {} + +long DescribeSagTrafficTopNRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagTrafficTopNRequest::getRegionId()const -{ - return regionId_; +void DescribeSagTrafficTopNRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagTrafficTopNRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagTrafficTopNRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagTrafficTopNRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagTrafficTopNRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagTrafficTopNRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagTrafficTopNRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagTrafficTopNRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagTrafficTopNRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagTrafficTopNRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagTrafficTopNRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagTrafficTopNRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagTrafficTopNRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagTrafficTopNRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagTrafficTopNRequest::getOwnerId() const { + return ownerId_; } -int DescribeSagTrafficTopNRequest::getSize()const -{ - return size_; +void DescribeSagTrafficTopNRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagTrafficTopNRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +int DescribeSagTrafficTopNRequest::getSize() const { + return size_; +} + +void DescribeSagTrafficTopNRequest::setSize(int size) { + size_ = size; + setParameter(std::string("Size"), std::to_string(size)); } diff --git a/smartag/src/model/DescribeSagTrafficTopNResult.cc b/smartag/src/model/DescribeSagTrafficTopNResult.cc index fa0d27033..178f66575 100644 --- a/smartag/src/model/DescribeSagTrafficTopNResult.cc +++ b/smartag/src/model/DescribeSagTrafficTopNResult.cc @@ -43,14 +43,14 @@ void DescribeSagTrafficTopNResult::parse(const std::string &payload) for (auto valueTrafficTopNTrafficTopNItem : allTrafficTopNNode) { TrafficTopNItem trafficTopNObject; - if(!valueTrafficTopNTrafficTopNItem["InstanceId"].isNull()) - trafficTopNObject.instanceId = valueTrafficTopNTrafficTopNItem["InstanceId"].asString(); if(!valueTrafficTopNTrafficTopNItem["TrafficRate"].isNull()) trafficTopNObject.trafficRate = valueTrafficTopNTrafficTopNItem["TrafficRate"].asString(); - if(!valueTrafficTopNTrafficTopNItem["RegionId"].isNull()) - trafficTopNObject.regionId = valueTrafficTopNTrafficTopNItem["RegionId"].asString(); + if(!valueTrafficTopNTrafficTopNItem["InstanceId"].isNull()) + trafficTopNObject.instanceId = valueTrafficTopNTrafficTopNItem["InstanceId"].asString(); if(!valueTrafficTopNTrafficTopNItem["Name"].isNull()) trafficTopNObject.name = valueTrafficTopNTrafficTopNItem["Name"].asString(); + if(!valueTrafficTopNTrafficTopNItem["RegionId"].isNull()) + trafficTopNObject.regionId = valueTrafficTopNTrafficTopNItem["RegionId"].asString(); trafficTopN_.push_back(trafficTopNObject); } diff --git a/smartag/src/model/DescribeSagUserDnsRequest.cc b/smartag/src/model/DescribeSagUserDnsRequest.cc index eebbbf9c0..430e29d68 100644 --- a/smartag/src/model/DescribeSagUserDnsRequest.cc +++ b/smartag/src/model/DescribeSagUserDnsRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagUserDnsRequest; - -DescribeSagUserDnsRequest::DescribeSagUserDnsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagUserDns") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagUserDnsRequest::~DescribeSagUserDnsRequest() -{} - -long DescribeSagUserDnsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagUserDnsRequest; + +DescribeSagUserDnsRequest::DescribeSagUserDnsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagUserDns") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagUserDnsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagUserDnsRequest::~DescribeSagUserDnsRequest() {} + +long DescribeSagUserDnsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagUserDnsRequest::getRegionId()const -{ - return regionId_; +void DescribeSagUserDnsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagUserDnsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagUserDnsRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagUserDnsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagUserDnsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagUserDnsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagUserDnsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagUserDnsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagUserDnsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagUserDnsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagUserDnsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagUserDnsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagUserDnsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagUserDnsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagUserDnsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagUserDnsRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagUserDnsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagUserDnsRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagUserDnsRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagUserDnsRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagUserDnsRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagUserDnsRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagUserDnsRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagUserDnsRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagUserDnsResult.cc b/smartag/src/model/DescribeSagUserDnsResult.cc index f287dbe58..b435bc2ec 100644 --- a/smartag/src/model/DescribeSagUserDnsResult.cc +++ b/smartag/src/model/DescribeSagUserDnsResult.cc @@ -43,14 +43,14 @@ void DescribeSagUserDnsResult::parse(const std::string &payload) for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["SlaveDns"].isNull()) diff --git a/smartag/src/model/DescribeSagVbrRelationsRequest.cc b/smartag/src/model/DescribeSagVbrRelationsRequest.cc index d55a6131c..8fae28e13 100644 --- a/smartag/src/model/DescribeSagVbrRelationsRequest.cc +++ b/smartag/src/model/DescribeSagVbrRelationsRequest.cc @@ -1,108 +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::Smartag::Model::DescribeSagVbrRelationsRequest; - -DescribeSagVbrRelationsRequest::DescribeSagVbrRelationsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagVbrRelations") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagVbrRelationsRequest::~DescribeSagVbrRelationsRequest() -{} - -long DescribeSagVbrRelationsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagVbrRelationsRequest; + +DescribeSagVbrRelationsRequest::DescribeSagVbrRelationsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagVbrRelations") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagVbrRelationsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagVbrRelationsRequest::~DescribeSagVbrRelationsRequest() {} + +long DescribeSagVbrRelationsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector DescribeSagVbrRelationsRequest::getVbrInstanceIds()const -{ - return vbrInstanceIds_; +void DescribeSagVbrRelationsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagVbrRelationsRequest::setVbrInstanceIds(const std::vector& vbrInstanceIds) -{ - vbrInstanceIds_ = vbrInstanceIds; - for(int dep1 = 0; dep1!= vbrInstanceIds.size(); dep1++) { - setParameter("VbrInstanceIds."+ std::to_string(dep1), vbrInstanceIds.at(dep1)); - } +std::vector DescribeSagVbrRelationsRequest::getVbrInstanceIds() const { + return vbrInstanceIds_; } -std::string DescribeSagVbrRelationsRequest::getVbrRegionId()const -{ - return vbrRegionId_; +void DescribeSagVbrRelationsRequest::setVbrInstanceIds(const std::vector &vbrInstanceIds) { + vbrInstanceIds_ = vbrInstanceIds; } -void DescribeSagVbrRelationsRequest::setVbrRegionId(const std::string& vbrRegionId) -{ - vbrRegionId_ = vbrRegionId; - setParameter("VbrRegionId", vbrRegionId); +std::string DescribeSagVbrRelationsRequest::getVbrRegionId() const { + return vbrRegionId_; } -std::string DescribeSagVbrRelationsRequest::getRegionId()const -{ - return regionId_; +void DescribeSagVbrRelationsRequest::setVbrRegionId(const std::string &vbrRegionId) { + vbrRegionId_ = vbrRegionId; + setParameter(std::string("VbrRegionId"), vbrRegionId); } -void DescribeSagVbrRelationsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagVbrRelationsRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagVbrRelationsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagVbrRelationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagVbrRelationsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagVbrRelationsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagVbrRelationsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagVbrRelationsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagVbrRelationsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagVbrRelationsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagVbrRelationsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagVbrRelationsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagVbrRelationsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagVbrRelationsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSagVbrRelationsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/smartag/src/model/DescribeSagVbrRelationsResult.cc b/smartag/src/model/DescribeSagVbrRelationsResult.cc index 7ed94775b..dd39a02a8 100644 --- a/smartag/src/model/DescribeSagVbrRelationsResult.cc +++ b/smartag/src/model/DescribeSagVbrRelationsResult.cc @@ -45,10 +45,10 @@ void DescribeSagVbrRelationsResult::parse(const std::string &payload) SagVbrRelation sagVbrRelationsObject; if(!valueSagVbrRelationsSagVbrRelation["VbrInstanceId"].isNull()) sagVbrRelationsObject.vbrInstanceId = valueSagVbrRelationsSagVbrRelation["VbrInstanceId"].asString(); - if(!valueSagVbrRelationsSagVbrRelation["SagInstanceId"].isNull()) - sagVbrRelationsObject.sagInstanceId = valueSagVbrRelationsSagVbrRelation["SagInstanceId"].asString(); if(!valueSagVbrRelationsSagVbrRelation["SagUid"].isNull()) sagVbrRelationsObject.sagUid = valueSagVbrRelationsSagVbrRelation["SagUid"].asString(); + if(!valueSagVbrRelationsSagVbrRelation["SagInstanceId"].isNull()) + sagVbrRelationsObject.sagInstanceId = valueSagVbrRelationsSagVbrRelation["SagInstanceId"].asString(); sagVbrRelations_.push_back(sagVbrRelationsObject); } diff --git a/smartag/src/model/DescribeSagWan4GRequest.cc b/smartag/src/model/DescribeSagWan4GRequest.cc index 7d46c872d..fef8bf1b2 100644 --- a/smartag/src/model/DescribeSagWan4GRequest.cc +++ b/smartag/src/model/DescribeSagWan4GRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagWan4GRequest; - -DescribeSagWan4GRequest::DescribeSagWan4GRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagWan4G") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagWan4GRequest::~DescribeSagWan4GRequest() -{} - -long DescribeSagWan4GRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagWan4GRequest; + +DescribeSagWan4GRequest::DescribeSagWan4GRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagWan4G") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagWan4GRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagWan4GRequest::~DescribeSagWan4GRequest() {} + +long DescribeSagWan4GRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagWan4GRequest::getRegionId()const -{ - return regionId_; +void DescribeSagWan4GRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagWan4GRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagWan4GRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagWan4GRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagWan4GRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagWan4GRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagWan4GRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagWan4GRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagWan4GRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagWan4GRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagWan4GRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagWan4GRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagWan4GRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagWan4GRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagWan4GRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagWan4GRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagWan4GRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagWan4GRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagWan4GRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagWan4GRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagWan4GRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagWan4GRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagWan4GRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagWan4GRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagWan4GResult.cc b/smartag/src/model/DescribeSagWan4GResult.cc index 3daefe614..32a190c8d 100644 --- a/smartag/src/model/DescribeSagWan4GResult.cc +++ b/smartag/src/model/DescribeSagWan4GResult.cc @@ -47,10 +47,10 @@ void DescribeSagWan4GResult::parse(const std::string &payload) priority_ = std::stoi(value["Priority"].asString()); if(!value["Ip"].isNull()) ip_ = value["Ip"].asString(); - if(!value["Mac"].isNull()) - mac_ = value["Mac"].asString(); if(!value["Strength"].isNull()) strength_ = value["Strength"].asString(); + if(!value["Mac"].isNull()) + mac_ = value["Mac"].asString(); } @@ -74,13 +74,13 @@ std::string DescribeSagWan4GResult::getIp()const return ip_; } -std::string DescribeSagWan4GResult::getMac()const -{ - return mac_; -} - std::string DescribeSagWan4GResult::getStrength()const { return strength_; } +std::string DescribeSagWan4GResult::getMac()const +{ + return mac_; +} + diff --git a/smartag/src/model/DescribeSagWanListRequest.cc b/smartag/src/model/DescribeSagWanListRequest.cc index d6193c700..31eb68b25 100644 --- a/smartag/src/model/DescribeSagWanListRequest.cc +++ b/smartag/src/model/DescribeSagWanListRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagWanListRequest; - -DescribeSagWanListRequest::DescribeSagWanListRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagWanList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagWanListRequest::~DescribeSagWanListRequest() -{} - -long DescribeSagWanListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagWanListRequest; + +DescribeSagWanListRequest::DescribeSagWanListRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagWanList") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagWanListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagWanListRequest::~DescribeSagWanListRequest() {} + +long DescribeSagWanListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagWanListRequest::getRegionId()const -{ - return regionId_; +void DescribeSagWanListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagWanListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagWanListRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagWanListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagWanListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagWanListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagWanListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagWanListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagWanListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagWanListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagWanListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagWanListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagWanListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagWanListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagWanListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagWanListRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagWanListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagWanListRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagWanListRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagWanListRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagWanListRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagWanListRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagWanListRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagWanListRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagWanListResult.cc b/smartag/src/model/DescribeSagWanListResult.cc index 4602a3713..a61cdff53 100644 --- a/smartag/src/model/DescribeSagWanListResult.cc +++ b/smartag/src/model/DescribeSagWanListResult.cc @@ -43,50 +43,50 @@ void DescribeSagWanListResult::parse(const std::string &payload) for (auto valueWansWan : allWansNode) { Wan wansObject; - if(!valueWansWan["IPType"].isNull()) - wansObject.iPType = valueWansWan["IPType"].asString(); - if(!valueWansWan["TrafficState"].isNull()) - wansObject.trafficState = valueWansWan["TrafficState"].asString(); - if(!valueWansWan["Priority"].isNull()) - wansObject.priority = std::stoi(valueWansWan["Priority"].asString()); - if(!valueWansWan["SourceIps"].isNull()) - wansObject.sourceIps = valueWansWan["SourceIps"].asString(); - if(!valueWansWan["ISP"].isNull()) - wansObject.iSP = valueWansWan["ISP"].asString(); - if(!valueWansWan["IP"].isNull()) - wansObject.iP = valueWansWan["IP"].asString(); - if(!valueWansWan["Mask"].isNull()) - wansObject.mask = valueWansWan["Mask"].asString(); - if(!valueWansWan["StartIp"].isNull()) - wansObject.startIp = valueWansWan["StartIp"].asString(); - if(!valueWansWan["Vlan"].isNull()) - wansObject.vlan = valueWansWan["Vlan"].asString(); - if(!valueWansWan["PortName"].isNull()) - wansObject.portName = valueWansWan["PortName"].asString(); if(!valueWansWan["Weight"].isNull()) wansObject.weight = std::stoi(valueWansWan["Weight"].asString()); - if(!valueWansWan["StopIp"].isNull()) - wansObject.stopIp = valueWansWan["StopIp"].asString(); - if(!valueWansWan["BandWidth"].isNull()) - wansObject.bandWidth = std::stoi(valueWansWan["BandWidth"].asString()); - if(!valueWansWan["Username"].isNull()) - wansObject.username = valueWansWan["Username"].asString(); + if(!valueWansWan["Mask"].isNull()) + wansObject.mask = valueWansWan["Mask"].asString(); if(!valueWansWan["Gateway"].isNull()) wansObject.gateway = valueWansWan["Gateway"].asString(); + if(!valueWansWan["PortName"].isNull()) + wansObject.portName = valueWansWan["PortName"].asString(); + if(!valueWansWan["IPType"].isNull()) + wansObject.iPType = valueWansWan["IPType"].asString(); + if(!valueWansWan["Priority"].isNull()) + wansObject.priority = std::stoi(valueWansWan["Priority"].asString()); + if(!valueWansWan["BandWidth"].isNull()) + wansObject.bandWidth = std::stoi(valueWansWan["BandWidth"].asString()); + if(!valueWansWan["TrafficState"].isNull()) + wansObject.trafficState = valueWansWan["TrafficState"].asString(); + if(!valueWansWan["IP"].isNull()) + wansObject.iP = valueWansWan["IP"].asString(); + if(!valueWansWan["ISP"].isNull()) + wansObject.iSP = valueWansWan["ISP"].asString(); + if(!valueWansWan["Username"].isNull()) + wansObject.username = valueWansWan["Username"].asString(); + if(!valueWansWan["Vlan"].isNull()) + wansObject.vlan = valueWansWan["Vlan"].asString(); + if(!valueWansWan["SourceIps"].isNull()) + wansObject.sourceIps = valueWansWan["SourceIps"].asString(); + if(!valueWansWan["StartIp"].isNull()) + wansObject.startIp = valueWansWan["StartIp"].asString(); + if(!valueWansWan["StopIp"].isNull()) + wansObject.stopIp = valueWansWan["StopIp"].asString(); wans_.push_back(wansObject); } auto allTaskStatesNode = value["TaskStates"]["TaskState"]; for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } diff --git a/smartag/src/model/DescribeSagWanSnatRequest.cc b/smartag/src/model/DescribeSagWanSnatRequest.cc index a60e4acbd..f2ac14ef4 100644 --- a/smartag/src/model/DescribeSagWanSnatRequest.cc +++ b/smartag/src/model/DescribeSagWanSnatRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagWanSnatRequest; - -DescribeSagWanSnatRequest::DescribeSagWanSnatRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagWanSnat") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagWanSnatRequest::~DescribeSagWanSnatRequest() -{} - -long DescribeSagWanSnatRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagWanSnatRequest; + +DescribeSagWanSnatRequest::DescribeSagWanSnatRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagWanSnat") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagWanSnatRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagWanSnatRequest::~DescribeSagWanSnatRequest() {} + +long DescribeSagWanSnatRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagWanSnatRequest::getRegionId()const -{ - return regionId_; +void DescribeSagWanSnatRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagWanSnatRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagWanSnatRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagWanSnatRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagWanSnatRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagWanSnatRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagWanSnatRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagWanSnatRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagWanSnatRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagWanSnatRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagWanSnatRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagWanSnatRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagWanSnatRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagWanSnatRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagWanSnatRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagWanSnatRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagWanSnatRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagWanSnatRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagWanSnatRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagWanSnatRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagWanSnatRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagWanSnatRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagWanSnatRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagWanSnatRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagWanSnatResult.cc b/smartag/src/model/DescribeSagWanSnatResult.cc index bd0b0fbbd..3c0c39790 100644 --- a/smartag/src/model/DescribeSagWanSnatResult.cc +++ b/smartag/src/model/DescribeSagWanSnatResult.cc @@ -43,14 +43,14 @@ void DescribeSagWanSnatResult::parse(const std::string &payload) for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["Snat"].isNull()) diff --git a/smartag/src/model/DescribeSagWifiRequest.cc b/smartag/src/model/DescribeSagWifiRequest.cc index e9c110d03..da841e854 100644 --- a/smartag/src/model/DescribeSagWifiRequest.cc +++ b/smartag/src/model/DescribeSagWifiRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeSagWifiRequest; - -DescribeSagWifiRequest::DescribeSagWifiRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSagWifi") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSagWifiRequest::~DescribeSagWifiRequest() -{} - -long DescribeSagWifiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSagWifiRequest; + +DescribeSagWifiRequest::DescribeSagWifiRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSagWifi") { + setMethod(HttpRequest::Method::Post); } -void DescribeSagWifiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSagWifiRequest::~DescribeSagWifiRequest() {} + +long DescribeSagWifiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSagWifiRequest::getRegionId()const -{ - return regionId_; +void DescribeSagWifiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSagWifiRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSagWifiRequest::getRegionId() const { + return regionId_; } -std::string DescribeSagWifiRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSagWifiRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSagWifiRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSagWifiRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSagWifiRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSagWifiRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSagWifiRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSagWifiRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSagWifiRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSagWifiRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSagWifiRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSagWifiRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSagWifiRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSagWifiRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSagWifiRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSagWifiRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSagWifiRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSagWifiRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSagWifiRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSagWifiRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSagWifiRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSagWifiResult.cc b/smartag/src/model/DescribeSagWifiResult.cc index eae2c0d83..560ab82c3 100644 --- a/smartag/src/model/DescribeSagWifiResult.cc +++ b/smartag/src/model/DescribeSagWifiResult.cc @@ -43,32 +43,32 @@ void DescribeSagWifiResult::parse(const std::string &payload) for (auto valueTaskStatesTaskState : allTaskStatesNode) { TaskState taskStatesObject; - if(!valueTaskStatesTaskState["State"].isNull()) - taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); - if(!valueTaskStatesTaskState["CreateTime"].isNull()) - taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); - if(!valueTaskStatesTaskState["ErrorCode"].isNull()) - taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); if(!valueTaskStatesTaskState["ErrorMessage"].isNull()) taskStatesObject.errorMessage = valueTaskStatesTaskState["ErrorMessage"].asString(); + if(!valueTaskStatesTaskState["State"].isNull()) + taskStatesObject.state = valueTaskStatesTaskState["State"].asString(); + if(!valueTaskStatesTaskState["ErrorCode"].isNull()) + taskStatesObject.errorCode = valueTaskStatesTaskState["ErrorCode"].asString(); + if(!valueTaskStatesTaskState["CreateTime"].isNull()) + taskStatesObject.createTime = valueTaskStatesTaskState["CreateTime"].asString(); taskStates_.push_back(taskStatesObject); } if(!value["IsEnable"].isNull()) isEnable_ = value["IsEnable"].asString(); - if(!value["Channel"].isNull()) - channel_ = value["Channel"].asString(); - if(!value["Bandwidth"].isNull()) - bandwidth_ = value["Bandwidth"].asString(); if(!value["IsAuth"].isNull()) isAuth_ = value["IsAuth"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = value["Bandwidth"].asString(); + if(!value["Channel"].isNull()) + channel_ = value["Channel"].asString(); if(!value["Ssid"].isNull()) ssid_ = value["Ssid"].asString(); - if(!value["IsBroadcast"].isNull()) - isBroadcast_ = value["IsBroadcast"].asString(); - if(!value["EncryptAlgorithm"].isNull()) - encryptAlgorithm_ = value["EncryptAlgorithm"].asString(); if(!value["AuthenticationType"].isNull()) authenticationType_ = value["AuthenticationType"].asString(); + if(!value["EncryptAlgorithm"].isNull()) + encryptAlgorithm_ = value["EncryptAlgorithm"].asString(); + if(!value["IsBroadcast"].isNull()) + isBroadcast_ = value["IsBroadcast"].asString(); } @@ -77,9 +77,9 @@ std::string DescribeSagWifiResult::getIsEnable()const return isEnable_; } -std::string DescribeSagWifiResult::getChannel()const +std::string DescribeSagWifiResult::getIsAuth()const { - return channel_; + return isAuth_; } std::string DescribeSagWifiResult::getBandwidth()const @@ -87,9 +87,9 @@ std::string DescribeSagWifiResult::getBandwidth()const return bandwidth_; } -std::string DescribeSagWifiResult::getIsAuth()const +std::string DescribeSagWifiResult::getChannel()const { - return isAuth_; + return channel_; } std::vector DescribeSagWifiResult::getTaskStates()const @@ -102,9 +102,9 @@ std::string DescribeSagWifiResult::getSsid()const return ssid_; } -std::string DescribeSagWifiResult::getIsBroadcast()const +std::string DescribeSagWifiResult::getAuthenticationType()const { - return isBroadcast_; + return authenticationType_; } std::string DescribeSagWifiResult::getEncryptAlgorithm()const @@ -112,8 +112,8 @@ std::string DescribeSagWifiResult::getEncryptAlgorithm()const return encryptAlgorithm_; } -std::string DescribeSagWifiResult::getAuthenticationType()const +std::string DescribeSagWifiResult::getIsBroadcast()const { - return authenticationType_; + return isBroadcast_; } diff --git a/smartag/src/model/DescribeSmartAccessGatewayAttributeRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayAttributeRequest.cc index be386c1b7..60057e554 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayAttributeRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayAttributeRequest.cc @@ -1,95 +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::Smartag::Model::DescribeSmartAccessGatewayAttributeRequest; - -DescribeSmartAccessGatewayAttributeRequest::DescribeSmartAccessGatewayAttributeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSmartAccessGatewayAttributeRequest::~DescribeSmartAccessGatewayAttributeRequest() -{} - -long DescribeSmartAccessGatewayAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSmartAccessGatewayAttributeRequest; + +DescribeSmartAccessGatewayAttributeRequest::DescribeSmartAccessGatewayAttributeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeSmartAccessGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSmartAccessGatewayAttributeRequest::~DescribeSmartAccessGatewayAttributeRequest() {} + +long DescribeSmartAccessGatewayAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSmartAccessGatewayAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeSmartAccessGatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSmartAccessGatewayAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSmartAccessGatewayAttributeRequest::getRegionId() const { + return regionId_; } -std::string DescribeSmartAccessGatewayAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSmartAccessGatewayAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSmartAccessGatewayAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSmartAccessGatewayAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSmartAccessGatewayAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSmartAccessGatewayAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSmartAccessGatewayAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSmartAccessGatewayAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSmartAccessGatewayAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSmartAccessGatewayAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSmartAccessGatewayAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSmartAccessGatewayAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSmartAccessGatewayAttributeRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSmartAccessGatewayAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSmartAccessGatewayAttributeRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSmartAccessGatewayAttributeRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeSmartAccessGatewayAttributeRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc b/smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc index 293217259..99ef98289 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayAttributeResult.cc @@ -39,52 +39,57 @@ void DescribeSmartAccessGatewayAttributeResult::parse(const std::string &payload Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allLinksNode = value["Links"]["Link"]; - for (auto valueLinksLink : allLinksNode) - { - Link linksObject; - if(!valueLinksLink["Status"].isNull()) - linksObject.status = valueLinksLink["Status"].asString(); - if(!valueLinksLink["Type"].isNull()) - linksObject.type = valueLinksLink["Type"].asString(); - if(!valueLinksLink["EndTime"].isNull()) - linksObject.endTime = std::stol(valueLinksLink["EndTime"].asString()); - if(!valueLinksLink["InstanceId"].isNull()) - linksObject.instanceId = valueLinksLink["InstanceId"].asString(); - if(!valueLinksLink["RelateInstanceId"].isNull()) - linksObject.relateInstanceId = valueLinksLink["RelateInstanceId"].asString(); - if(!valueLinksLink["Bandwidth"].isNull()) - linksObject.bandwidth = valueLinksLink["Bandwidth"].asString(); - if(!valueLinksLink["CommodityType"].isNull()) - linksObject.commodityType = valueLinksLink["CommodityType"].asString(); - if(!valueLinksLink["RelateInstanceRegionId"].isNull()) - linksObject.relateInstanceRegionId = valueLinksLink["RelateInstanceRegionId"].asString(); - if(!valueLinksLink["HealthCheckTargetIp"].isNull()) - linksObject.healthCheckTargetIp = valueLinksLink["HealthCheckTargetIp"].asString(); - links_.push_back(linksObject); - } auto allDevicesNode = value["Devices"]["Device"]; for (auto valueDevicesDevice : allDevicesNode) { Device devicesObject; - if(!valueDevicesDevice["MonitorVersion"].isNull()) - devicesObject.monitorVersion = valueDevicesDevice["MonitorVersion"].asString(); - if(!valueDevicesDevice["SecretKey"].isNull()) - devicesObject.secretKey = valueDevicesDevice["SecretKey"].asString(); - if(!valueDevicesDevice["SoftwareVersion"].isNull()) - devicesObject.softwareVersion = valueDevicesDevice["SoftwareVersion"].asString(); if(!valueDevicesDevice["SerialNumber"].isNull()) devicesObject.serialNumber = valueDevicesDevice["SerialNumber"].asString(); - if(!valueDevicesDevice["DistributeSkStatus"].isNull()) - devicesObject.distributeSkStatus = std::stoi(valueDevicesDevice["DistributeSkStatus"].asString()); - if(!valueDevicesDevice["DpiSignatureDbVersion"].isNull()) - devicesObject.dpiSignatureDbVersion = valueDevicesDevice["DpiSignatureDbVersion"].asString(); if(!valueDevicesDevice["HaState"].isNull()) devicesObject.haState = valueDevicesDevice["HaState"].asString(); + if(!valueDevicesDevice["SecretKey"].isNull()) + devicesObject.secretKey = valueDevicesDevice["SecretKey"].asString(); + if(!valueDevicesDevice["DpiSignatureDbVersion"].isNull()) + devicesObject.dpiSignatureDbVersion = valueDevicesDevice["DpiSignatureDbVersion"].asString(); + if(!valueDevicesDevice["SoftwareVersion"].isNull()) + devicesObject.softwareVersion = valueDevicesDevice["SoftwareVersion"].asString(); + if(!valueDevicesDevice["DistributeSkStatus"].isNull()) + devicesObject.distributeSkStatus = std::stoi(valueDevicesDevice["DistributeSkStatus"].asString()); + if(!valueDevicesDevice["MonitorVersion"].isNull()) + devicesObject.monitorVersion = valueDevicesDevice["MonitorVersion"].asString(); if(!valueDevicesDevice["HcState"].isNull()) devicesObject.hcState = valueDevicesDevice["HcState"].asString(); devices_.push_back(devicesObject); } + auto allLinksNode = value["Links"]["Link"]; + for (auto valueLinksLink : allLinksNode) + { + Link linksObject; + if(!valueLinksLink["HealthCheckTargetIp"].isNull()) + linksObject.healthCheckTargetIp = valueLinksLink["HealthCheckTargetIp"].asString(); + if(!valueLinksLink["EndTime"].isNull()) + linksObject.endTime = std::stol(valueLinksLink["EndTime"].asString()); + if(!valueLinksLink["Status"].isNull()) + linksObject.status = valueLinksLink["Status"].asString(); + if(!valueLinksLink["Type"].isNull()) + linksObject.type = valueLinksLink["Type"].asString(); + if(!valueLinksLink["Bandwidth"].isNull()) + linksObject.bandwidth = valueLinksLink["Bandwidth"].asString(); + if(!valueLinksLink["RelateInstanceRegionId"].isNull()) + linksObject.relateInstanceRegionId = valueLinksLink["RelateInstanceRegionId"].asString(); + if(!valueLinksLink["RelateInstanceId"].isNull()) + linksObject.relateInstanceId = valueLinksLink["RelateInstanceId"].asString(); + if(!valueLinksLink["InstanceId"].isNull()) + linksObject.instanceId = valueLinksLink["InstanceId"].asString(); + if(!valueLinksLink["CommodityType"].isNull()) + linksObject.commodityType = valueLinksLink["CommodityType"].asString(); + links_.push_back(linksObject); + } + auto applicationBandwidthPackageOperationLocksNode = value["ApplicationBandwidthPackageOperationLocks"]; + if(!applicationBandwidthPackageOperationLocksNode["LockType"].isNull()) + applicationBandwidthPackageOperationLocks_.lockType = applicationBandwidthPackageOperationLocksNode["LockType"].asString(); + if(!applicationBandwidthPackageOperationLocksNode["LockReason"].isNull()) + applicationBandwidthPackageOperationLocks_.lockReason = applicationBandwidthPackageOperationLocksNode["LockReason"].asString(); auto allQosIds = value["QosIds"]["QosId"]; for (const auto &item : allQosIds) qosIds_.push_back(item.asString()); @@ -94,28 +99,28 @@ void DescribeSmartAccessGatewayAttributeResult::parse(const std::string &payload auto allAclIds = value["AclIds"]["AclId"]; for (const auto &item : allAclIds) aclIds_.push_back(item.asString()); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); if(!value["UpBandwidth4G"].isNull()) upBandwidth4G_ = std::stoi(value["UpBandwidth4G"].asString()); - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); if(!value["EndTime"].isNull()) endTime_ = std::stol(value["EndTime"].asString()); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); if(!value["UserCount"].isNull()) userCount_ = std::stoi(value["UserCount"].asString()); - if(!value["VpnStatus"].isNull()) - vpnStatus_ = value["VpnStatus"].asString(); - if(!value["MaxBandwidth"].isNull()) - maxBandwidth_ = value["MaxBandwidth"].asString(); if(!value["AssociatedCcnName"].isNull()) associatedCcnName_ = value["AssociatedCcnName"].asString(); + if(!value["MaxBandwidth"].isNull()) + maxBandwidth_ = value["MaxBandwidth"].asString(); + if(!value["VpnStatus"].isNull()) + vpnStatus_ = value["VpnStatus"].asString(); if(!value["BoxControllerIp"].isNull()) boxControllerIp_ = value["BoxControllerIp"].asString(); - if(!value["CidrBlock"].isNull()) - cidrBlock_ = value["CidrBlock"].asString(); if(!value["UpBandwidthWan"].isNull()) upBandwidthWan_ = std::stoi(value["UpBandwidthWan"].asString()); + if(!value["CidrBlock"].isNull()) + cidrBlock_ = value["CidrBlock"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); if(!value["OptimizationType"].isNull()) @@ -126,14 +131,14 @@ void DescribeSmartAccessGatewayAttributeResult::parse(const std::string &payload routingStrategy_ = value["RoutingStrategy"].asString(); if(!value["AssociatedCcnId"].isNull()) associatedCcnId_ = value["AssociatedCcnId"].asString(); - if(!value["InstanceType"].isNull()) - instanceType_ = value["InstanceType"].asString(); if(!value["SmartAGId"].isNull()) smartAGId_ = value["SmartAGId"].asString(); - if(!value["SecurityLockThreshold"].isNull()) - securityLockThreshold_ = std::stoi(value["SecurityLockThreshold"].asString()); + if(!value["InstanceType"].isNull()) + instanceType_ = value["InstanceType"].asString(); if(!value["ResellerUid"].isNull()) resellerUid_ = value["ResellerUid"].asString(); + if(!value["SecurityLockThreshold"].isNull()) + securityLockThreshold_ = std::stoi(value["SecurityLockThreshold"].asString()); if(!value["Status"].isNull()) status_ = value["Status"].asString(); if(!value["CreateTime"].isNull()) @@ -146,30 +151,33 @@ void DescribeSmartAccessGatewayAttributeResult::parse(const std::string &payload city_ = value["City"].asString(); if(!value["ResellerInstanceId"].isNull()) resellerInstanceId_ = value["ResellerInstanceId"].asString(); - if(!value["BackupBoxControllerIp"].isNull()) - backupBoxControllerIp_ = value["BackupBoxControllerIp"].asString(); if(!value["SerialNumber"].isNull()) serialNumber_ = value["SerialNumber"].asString(); + if(!value["BackupBoxControllerIp"].isNull()) + backupBoxControllerIp_ = value["BackupBoxControllerIp"].asString(); if(!value["TrafficMasterSn"].isNull()) trafficMasterSn_ = value["TrafficMasterSn"].asString(); if(!value["AccessPointId"].isNull()) accessPointId_ = value["AccessPointId"].asString(); + if(!value["ApplicationBandwidthPackageId"].isNull()) + applicationBandwidthPackageId_ = value["ApplicationBandwidthPackageId"].asString(); + if(!value["ApplicationBandwidthPackageName"].isNull()) + applicationBandwidthPackageName_ = value["ApplicationBandwidthPackageName"].asString(); + if(!value["AccelerateBandwidth"].isNull()) + accelerateBandwidth_ = std::stol(value["AccelerateBandwidth"].asString()); + if(!value["ApplicationBandwidthPackageBussinessStatus"].isNull()) + applicationBandwidthPackageBussinessStatus_ = value["ApplicationBandwidthPackageBussinessStatus"].asString(); } -std::string DescribeSmartAccessGatewayAttributeResult::getDescription()const -{ - return description_; -} - int DescribeSmartAccessGatewayAttributeResult::getUpBandwidth4G()const { return upBandwidth4G_; } -std::string DescribeSmartAccessGatewayAttributeResult::getResourceGroupId()const +std::string DescribeSmartAccessGatewayAttributeResult::getDescription()const { - return resourceGroupId_; + return description_; } long DescribeSmartAccessGatewayAttributeResult::getEndTime()const @@ -177,14 +185,19 @@ long DescribeSmartAccessGatewayAttributeResult::getEndTime()const return endTime_; } +std::string DescribeSmartAccessGatewayAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + int DescribeSmartAccessGatewayAttributeResult::getUserCount()const { return userCount_; } -std::string DescribeSmartAccessGatewayAttributeResult::getVpnStatus()const +std::string DescribeSmartAccessGatewayAttributeResult::getAssociatedCcnName()const { - return vpnStatus_; + return associatedCcnName_; } std::string DescribeSmartAccessGatewayAttributeResult::getMaxBandwidth()const @@ -192,9 +205,9 @@ std::string DescribeSmartAccessGatewayAttributeResult::getMaxBandwidth()const return maxBandwidth_; } -std::string DescribeSmartAccessGatewayAttributeResult::getAssociatedCcnName()const +std::string DescribeSmartAccessGatewayAttributeResult::getVpnStatus()const { - return associatedCcnName_; + return vpnStatus_; } std::string DescribeSmartAccessGatewayAttributeResult::getBoxControllerIp()const @@ -207,16 +220,16 @@ std::vector DescribeSmartAccessGatewayAttributeResult::getQosIds()c return qosIds_; } -std::string DescribeSmartAccessGatewayAttributeResult::getCidrBlock()const -{ - return cidrBlock_; -} - int DescribeSmartAccessGatewayAttributeResult::getUpBandwidthWan()const { return upBandwidthWan_; } +std::string DescribeSmartAccessGatewayAttributeResult::getCidrBlock()const +{ + return cidrBlock_; +} + std::vector DescribeSmartAccessGatewayAttributeResult::getDevices()const { return devices_; @@ -232,6 +245,11 @@ bool DescribeSmartAccessGatewayAttributeResult::getOptimizationType()const return optimizationType_; } +std::string DescribeSmartAccessGatewayAttributeResult::getApplicationBandwidthPackageName()const +{ + return applicationBandwidthPackageName_; +} + std::string DescribeSmartAccessGatewayAttributeResult::getIpsecStatus()const { return ipsecStatus_; @@ -242,6 +260,11 @@ std::string DescribeSmartAccessGatewayAttributeResult::getRoutingStrategy()const return routingStrategy_; } +std::string DescribeSmartAccessGatewayAttributeResult::getApplicationBandwidthPackageId()const +{ + return applicationBandwidthPackageId_; +} + std::vector DescribeSmartAccessGatewayAttributeResult::getFlowLogIds()const { return flowLogIds_; @@ -252,19 +275,14 @@ std::string DescribeSmartAccessGatewayAttributeResult::getAssociatedCcnId()const return associatedCcnId_; } -std::string DescribeSmartAccessGatewayAttributeResult::getInstanceType()const -{ - return instanceType_; -} - std::string DescribeSmartAccessGatewayAttributeResult::getSmartAGId()const { return smartAGId_; } -int DescribeSmartAccessGatewayAttributeResult::getSecurityLockThreshold()const +std::string DescribeSmartAccessGatewayAttributeResult::getInstanceType()const { - return securityLockThreshold_; + return instanceType_; } std::string DescribeSmartAccessGatewayAttributeResult::getResellerUid()const @@ -272,6 +290,11 @@ std::string DescribeSmartAccessGatewayAttributeResult::getResellerUid()const return resellerUid_; } +int DescribeSmartAccessGatewayAttributeResult::getSecurityLockThreshold()const +{ + return securityLockThreshold_; +} + std::string DescribeSmartAccessGatewayAttributeResult::getStatus()const { return status_; @@ -292,26 +315,41 @@ bool DescribeSmartAccessGatewayAttributeResult::getEnableOptimization()const return enableOptimization_; } +std::string DescribeSmartAccessGatewayAttributeResult::getApplicationBandwidthPackageBussinessStatus()const +{ + return applicationBandwidthPackageBussinessStatus_; +} + std::string DescribeSmartAccessGatewayAttributeResult::getCity()const { return city_; } +DescribeSmartAccessGatewayAttributeResult::ApplicationBandwidthPackageOperationLocks DescribeSmartAccessGatewayAttributeResult::getApplicationBandwidthPackageOperationLocks()const +{ + return applicationBandwidthPackageOperationLocks_; +} + +long DescribeSmartAccessGatewayAttributeResult::getAccelerateBandwidth()const +{ + return accelerateBandwidth_; +} + std::string DescribeSmartAccessGatewayAttributeResult::getResellerInstanceId()const { return resellerInstanceId_; } -std::string DescribeSmartAccessGatewayAttributeResult::getBackupBoxControllerIp()const -{ - return backupBoxControllerIp_; -} - std::string DescribeSmartAccessGatewayAttributeResult::getSerialNumber()const { return serialNumber_; } +std::string DescribeSmartAccessGatewayAttributeResult::getBackupBoxControllerIp()const +{ + return backupBoxControllerIp_; +} + std::string DescribeSmartAccessGatewayAttributeResult::getTrafficMasterSn()const { return trafficMasterSn_; diff --git a/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc index c70fa17e4..7a8698fdc 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayClientUsersRequest.cc @@ -1,139 +1,135 @@ /* * 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::Smartag::Model::DescribeSmartAccessGatewayClientUsersRequest; - -DescribeSmartAccessGatewayClientUsersRequest::DescribeSmartAccessGatewayClientUsersRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayClientUsers") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSmartAccessGatewayClientUsersRequest::~DescribeSmartAccessGatewayClientUsersRequest() -{} - -long DescribeSmartAccessGatewayClientUsersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSmartAccessGatewayClientUsersRequest; + +DescribeSmartAccessGatewayClientUsersRequest::DescribeSmartAccessGatewayClientUsersRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayClientUsers") { + setMethod(HttpRequest::Method::Post); } -void DescribeSmartAccessGatewayClientUsersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSmartAccessGatewayClientUsersRequest::~DescribeSmartAccessGatewayClientUsersRequest() {} + +long DescribeSmartAccessGatewayClientUsersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeSmartAccessGatewayClientUsersRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSmartAccessGatewayClientUsersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSmartAccessGatewayClientUsersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSmartAccessGatewayClientUsersRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSmartAccessGatewayClientUsersRequest::getRegionId()const -{ - return regionId_; +void DescribeSmartAccessGatewayClientUsersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSmartAccessGatewayClientUsersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSmartAccessGatewayClientUsersRequest::getRegionId() const { + return regionId_; } -int DescribeSmartAccessGatewayClientUsersRequest::getPageSize()const -{ - return pageSize_; +void DescribeSmartAccessGatewayClientUsersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSmartAccessGatewayClientUsersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSmartAccessGatewayClientUsersRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSmartAccessGatewayClientUsersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSmartAccessGatewayClientUsersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSmartAccessGatewayClientUsersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +long DescribeSmartAccessGatewayClientUsersRequest::getEndLoginTime() const { + return endLoginTime_; } -std::string DescribeSmartAccessGatewayClientUsersRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSmartAccessGatewayClientUsersRequest::setEndLoginTime(long endLoginTime) { + endLoginTime_ = endLoginTime; + setParameter(std::string("EndLoginTime"), std::to_string(endLoginTime)); } -void DescribeSmartAccessGatewayClientUsersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSmartAccessGatewayClientUsersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSmartAccessGatewayClientUsersRequest::getUserMail()const -{ - return userMail_; +void DescribeSmartAccessGatewayClientUsersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSmartAccessGatewayClientUsersRequest::setUserMail(const std::string& userMail) -{ - userMail_ = userMail; - setParameter("UserMail", userMail); +std::string DescribeSmartAccessGatewayClientUsersRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSmartAccessGatewayClientUsersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSmartAccessGatewayClientUsersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSmartAccessGatewayClientUsersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeSmartAccessGatewayClientUsersRequest::getUserMail() const { + return userMail_; } -std::string DescribeSmartAccessGatewayClientUsersRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSmartAccessGatewayClientUsersRequest::setUserMail(const std::string &userMail) { + userMail_ = userMail; + setParameter(std::string("UserMail"), userMail); } -void DescribeSmartAccessGatewayClientUsersRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +long DescribeSmartAccessGatewayClientUsersRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSmartAccessGatewayClientUsersRequest::getUserName()const -{ - return userName_; +void DescribeSmartAccessGatewayClientUsersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSmartAccessGatewayClientUsersRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +long DescribeSmartAccessGatewayClientUsersRequest::getBeginLoginTime() const { + return beginLoginTime_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setBeginLoginTime(long beginLoginTime) { + beginLoginTime_ = beginLoginTime; + setParameter(std::string("BeginLoginTime"), std::to_string(beginLoginTime)); +} + +std::string DescribeSmartAccessGatewayClientUsersRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); +} + +std::string DescribeSmartAccessGatewayClientUsersRequest::getUserName() const { + return userName_; +} + +void DescribeSmartAccessGatewayClientUsersRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc b/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc index fe31918db..8b2fd1396 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayClientUsersResult.cc @@ -43,16 +43,18 @@ void DescribeSmartAccessGatewayClientUsersResult::parse(const std::string &paylo for (auto valueUsersUser : allUsersNode) { User usersObject; + if(!valueUsersUser["Bandwidth"].isNull()) + usersObject.bandwidth = std::stoi(valueUsersUser["Bandwidth"].asString()); + if(!valueUsersUser["State"].isNull()) + usersObject.state = std::stoi(valueUsersUser["State"].asString()); + if(!valueUsersUser["ClientIp"].isNull()) + usersObject.clientIp = valueUsersUser["ClientIp"].asString(); if(!valueUsersUser["UserName"].isNull()) usersObject.userName = valueUsersUser["UserName"].asString(); if(!valueUsersUser["UserMail"].isNull()) usersObject.userMail = valueUsersUser["UserMail"].asString(); - if(!valueUsersUser["State"].isNull()) - usersObject.state = std::stoi(valueUsersUser["State"].asString()); - if(!valueUsersUser["Bandwidth"].isNull()) - usersObject.bandwidth = std::stoi(valueUsersUser["Bandwidth"].asString()); - if(!valueUsersUser["ClientIp"].isNull()) - usersObject.clientIp = valueUsersUser["ClientIp"].asString(); + if(!valueUsersUser["AccelerateBandwidth"].isNull()) + usersObject.accelerateBandwidth = std::stol(valueUsersUser["AccelerateBandwidth"].asString()); users_.push_back(usersObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc index 4a405a555..369afe6cb 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayHaRequest.cc @@ -1,95 +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::Smartag::Model::DescribeSmartAccessGatewayHaRequest; - -DescribeSmartAccessGatewayHaRequest::DescribeSmartAccessGatewayHaRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayHa") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSmartAccessGatewayHaRequest::~DescribeSmartAccessGatewayHaRequest() -{} - -long DescribeSmartAccessGatewayHaRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSmartAccessGatewayHaRequest; + +DescribeSmartAccessGatewayHaRequest::DescribeSmartAccessGatewayHaRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayHa") { + setMethod(HttpRequest::Method::Post); } -void DescribeSmartAccessGatewayHaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSmartAccessGatewayHaRequest::~DescribeSmartAccessGatewayHaRequest() {} + +long DescribeSmartAccessGatewayHaRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSmartAccessGatewayHaRequest::getRegionId()const -{ - return regionId_; +void DescribeSmartAccessGatewayHaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSmartAccessGatewayHaRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSmartAccessGatewayHaRequest::getRegionId() const { + return regionId_; } -std::string DescribeSmartAccessGatewayHaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSmartAccessGatewayHaRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSmartAccessGatewayHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSmartAccessGatewayHaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSmartAccessGatewayHaRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSmartAccessGatewayHaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSmartAccessGatewayHaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSmartAccessGatewayHaRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSmartAccessGatewayHaRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSmartAccessGatewayHaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSmartAccessGatewayHaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSmartAccessGatewayHaRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSmartAccessGatewayHaRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSmartAccessGatewayHaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSmartAccessGatewayHaRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSmartAccessGatewayHaRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeSmartAccessGatewayHaRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc b/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc index 185777424..2e5566c50 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayHaResult.cc @@ -43,18 +43,18 @@ void DescribeSmartAccessGatewayHaResult::parse(const std::string &payload) for (auto valueLinkBackupInfoListLinkBackupInfoListItem : allLinkBackupInfoListNode) { LinkBackupInfoListItem linkBackupInfoListObject; - if(!valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkState"].isNull()) - linkBackupInfoListObject.backupLinkState = valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkState"].asString(); - if(!valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkState"].isNull()) - linkBackupInfoListObject.mainLinkState = valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkState"].asString(); - if(!valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkId"].isNull()) - linkBackupInfoListObject.backupLinkId = valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkId"].asString(); - if(!valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupType"].isNull()) - linkBackupInfoListObject.linkLevelBackupType = valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupType"].asString(); if(!valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkId"].isNull()) linkBackupInfoListObject.mainLinkId = valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkId"].asString(); + if(!valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkState"].isNull()) + linkBackupInfoListObject.backupLinkState = valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkState"].asString(); if(!valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupState"].isNull()) linkBackupInfoListObject.linkLevelBackupState = valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupState"].asString(); + if(!valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkId"].isNull()) + linkBackupInfoListObject.backupLinkId = valueLinkBackupInfoListLinkBackupInfoListItem["BackupLinkId"].asString(); + if(!valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkState"].isNull()) + linkBackupInfoListObject.mainLinkState = valueLinkBackupInfoListLinkBackupInfoListItem["MainLinkState"].asString(); + if(!valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupType"].isNull()) + linkBackupInfoListObject.linkLevelBackupType = valueLinkBackupInfoListLinkBackupInfoListItem["LinkLevelBackupType"].asString(); linkBackupInfoList_.push_back(linkBackupInfoListObject); } if(!value["DeviceLevelBackupState"].isNull()) diff --git a/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc b/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc index 2f575735b..7b6c6d73e 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayVersionsRequest.cc @@ -1,117 +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::Smartag::Model::DescribeSmartAccessGatewayVersionsRequest; - -DescribeSmartAccessGatewayVersionsRequest::DescribeSmartAccessGatewayVersionsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayVersions") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSmartAccessGatewayVersionsRequest::~DescribeSmartAccessGatewayVersionsRequest() -{} - -long DescribeSmartAccessGatewayVersionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSmartAccessGatewayVersionsRequest; + +DescribeSmartAccessGatewayVersionsRequest::DescribeSmartAccessGatewayVersionsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGatewayVersions") { + setMethod(HttpRequest::Method::Post); } -void DescribeSmartAccessGatewayVersionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSmartAccessGatewayVersionsRequest::~DescribeSmartAccessGatewayVersionsRequest() {} + +long DescribeSmartAccessGatewayVersionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSmartAccessGatewayVersionsRequest::getRegionId()const -{ - return regionId_; +void DescribeSmartAccessGatewayVersionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSmartAccessGatewayVersionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSmartAccessGatewayVersionsRequest::getRegionId() const { + return regionId_; } -std::string DescribeSmartAccessGatewayVersionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSmartAccessGatewayVersionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSmartAccessGatewayVersionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSmartAccessGatewayVersionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSmartAccessGatewayVersionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSmartAccessGatewayVersionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSmartAccessGatewayVersionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSmartAccessGatewayVersionsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSmartAccessGatewayVersionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSmartAccessGatewayVersionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSmartAccessGatewayVersionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSmartAccessGatewayVersionsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSmartAccessGatewayVersionsRequest::getVersionType()const -{ - return versionType_; +void DescribeSmartAccessGatewayVersionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSmartAccessGatewayVersionsRequest::setVersionType(const std::string& versionType) -{ - versionType_ = versionType; - setParameter("VersionType", versionType); +std::string DescribeSmartAccessGatewayVersionsRequest::getVersionType() const { + return versionType_; } -std::string DescribeSmartAccessGatewayVersionsRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSmartAccessGatewayVersionsRequest::setVersionType(const std::string &versionType) { + versionType_ = versionType; + setParameter(std::string("VersionType"), versionType); } -void DescribeSmartAccessGatewayVersionsRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSmartAccessGatewayVersionsRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeSmartAccessGatewayVersionsRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DescribeSmartAccessGatewayVersionsRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeSmartAccessGatewayVersionsRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DescribeSmartAccessGatewayVersionsRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DescribeSmartAccessGatewayVersionsRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc b/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc index 6975487eb..256c69d90 100644 --- a/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewayVersionsResult.cc @@ -43,14 +43,14 @@ void DescribeSmartAccessGatewayVersionsResult::parse(const std::string &payload) for (auto valueSmartAGVersionsSmartAGVersion : allSmartAGVersionsNode) { SmartAGVersion smartAGVersionsObject; - if(!valueSmartAGVersionsSmartAGVersion["VersionCode"].isNull()) - smartAGVersionsObject.versionCode = valueSmartAGVersionsSmartAGVersion["VersionCode"].asString(); if(!valueSmartAGVersionsSmartAGVersion["Type"].isNull()) smartAGVersionsObject.type = valueSmartAGVersionsSmartAGVersion["Type"].asString(); if(!valueSmartAGVersionsSmartAGVersion["CreateTime"].isNull()) smartAGVersionsObject.createTime = std::stol(valueSmartAGVersionsSmartAGVersion["CreateTime"].asString()); if(!valueSmartAGVersionsSmartAGVersion["VersionName"].isNull()) smartAGVersionsObject.versionName = valueSmartAGVersionsSmartAGVersion["VersionName"].asString(); + if(!valueSmartAGVersionsSmartAGVersion["VersionCode"].isNull()) + smartAGVersionsObject.versionCode = valueSmartAGVersionsSmartAGVersion["VersionCode"].asString(); smartAGVersions_.push_back(smartAGVersionsObject); } diff --git a/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc b/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc index 4ed79bba2..8f52abca9 100644 --- a/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc +++ b/smartag/src/model/DescribeSmartAccessGatewaysRequest.cc @@ -1,273 +1,233 @@ /* * 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::Smartag::Model::DescribeSmartAccessGatewaysRequest; - -DescribeSmartAccessGatewaysRequest::DescribeSmartAccessGatewaysRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGateways") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSmartAccessGatewaysRequest::~DescribeSmartAccessGatewaysRequest() -{} - -long DescribeSmartAccessGatewaysRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSmartAccessGatewaysRequest; + +DescribeSmartAccessGatewaysRequest::DescribeSmartAccessGatewaysRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSmartAccessGateways") { + setMethod(HttpRequest::Method::Post); } -void DescribeSmartAccessGatewaysRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSmartAccessGatewaysRequest::~DescribeSmartAccessGatewaysRequest() {} + +long DescribeSmartAccessGatewaysRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSmartAccessGatewaysRequest::getAclIds()const -{ - return aclIds_; +void DescribeSmartAccessGatewaysRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSmartAccessGatewaysRequest::setAclIds(const std::string& aclIds) -{ - aclIds_ = aclIds; - setParameter("AclIds", aclIds); +std::string DescribeSmartAccessGatewaysRequest::getAclIds() const { + return aclIds_; } -bool DescribeSmartAccessGatewaysRequest::getCanAssociateQos()const -{ - return canAssociateQos_; +void DescribeSmartAccessGatewaysRequest::setAclIds(const std::string &aclIds) { + aclIds_ = aclIds; + setParameter(std::string("AclIds"), aclIds); } -void DescribeSmartAccessGatewaysRequest::setCanAssociateQos(bool canAssociateQos) -{ - canAssociateQos_ = canAssociateQos; - setParameter("CanAssociateQos", canAssociateQos ? "true" : "false"); +bool DescribeSmartAccessGatewaysRequest::getCanAssociateQos() const { + return canAssociateQos_; } -std::string DescribeSmartAccessGatewaysRequest::getSoftwareVersion()const -{ - return softwareVersion_; +void DescribeSmartAccessGatewaysRequest::setCanAssociateQos(bool canAssociateQos) { + canAssociateQos_ = canAssociateQos; + setParameter(std::string("CanAssociateQos"), canAssociateQos ? "true" : "false"); } -void DescribeSmartAccessGatewaysRequest::setSoftwareVersion(const std::string& softwareVersion) -{ - softwareVersion_ = softwareVersion; - setParameter("SoftwareVersion", softwareVersion); +std::string DescribeSmartAccessGatewaysRequest::getSoftwareVersion() const { + return softwareVersion_; } -std::string DescribeSmartAccessGatewaysRequest::getUnboundAclIds()const -{ - return unboundAclIds_; +void DescribeSmartAccessGatewaysRequest::setSoftwareVersion(const std::string &softwareVersion) { + softwareVersion_ = softwareVersion; + setParameter(std::string("SoftwareVersion"), softwareVersion); } -void DescribeSmartAccessGatewaysRequest::setUnboundAclIds(const std::string& unboundAclIds) -{ - unboundAclIds_ = unboundAclIds; - setParameter("UnboundAclIds", unboundAclIds); +std::string DescribeSmartAccessGatewaysRequest::getUnboundAclIds() const { + return unboundAclIds_; } -int DescribeSmartAccessGatewaysRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSmartAccessGatewaysRequest::setUnboundAclIds(const std::string &unboundAclIds) { + unboundAclIds_ = unboundAclIds; + setParameter(std::string("UnboundAclIds"), unboundAclIds); } -void DescribeSmartAccessGatewaysRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSmartAccessGatewaysRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSmartAccessGatewaysRequest::getVersionComparator()const -{ - return versionComparator_; +void DescribeSmartAccessGatewaysRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSmartAccessGatewaysRequest::setVersionComparator(const std::string& versionComparator) -{ - versionComparator_ = versionComparator; - setParameter("VersionComparator", versionComparator); +std::string DescribeSmartAccessGatewaysRequest::getVersionComparator() const { + return versionComparator_; } -std::string DescribeSmartAccessGatewaysRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeSmartAccessGatewaysRequest::setVersionComparator(const std::string &versionComparator) { + versionComparator_ = versionComparator; + setParameter(std::string("VersionComparator"), versionComparator); } -void DescribeSmartAccessGatewaysRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeSmartAccessGatewaysRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeSmartAccessGatewaysRequest::getRegionId()const -{ - return regionId_; +void DescribeSmartAccessGatewaysRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeSmartAccessGatewaysRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSmartAccessGatewaysRequest::getRegionId() const { + return regionId_; } -int DescribeSmartAccessGatewaysRequest::getPageSize()const -{ - return pageSize_; +void DescribeSmartAccessGatewaysRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSmartAccessGatewaysRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSmartAccessGatewaysRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSmartAccessGatewaysRequest::getInstanceType()const -{ - return instanceType_; +void DescribeSmartAccessGatewaysRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSmartAccessGatewaysRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeSmartAccessGatewaysRequest::getInstanceType() const { + return instanceType_; } -std::string DescribeSmartAccessGatewaysRequest::getHardwareType()const -{ - return hardwareType_; +void DescribeSmartAccessGatewaysRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeSmartAccessGatewaysRequest::setHardwareType(const std::string& hardwareType) -{ - hardwareType_ = hardwareType; - setParameter("HardwareType", hardwareType); +std::string DescribeSmartAccessGatewaysRequest::getHardwareType() const { + return hardwareType_; } -std::vector DescribeSmartAccessGatewaysRequest::getSmartAGIds()const -{ - return smartAGIds_; +void DescribeSmartAccessGatewaysRequest::setHardwareType(const std::string &hardwareType) { + hardwareType_ = hardwareType; + setParameter(std::string("HardwareType"), hardwareType); } -void DescribeSmartAccessGatewaysRequest::setSmartAGIds(const std::vector& smartAGIds) -{ - smartAGIds_ = smartAGIds; - for(int dep1 = 0; dep1!= smartAGIds.size(); dep1++) { - setParameter("SmartAGIds."+ std::to_string(dep1), smartAGIds.at(dep1)); - } +std::vector DescribeSmartAccessGatewaysRequest::getSmartAGIds() const { + return smartAGIds_; } -std::string DescribeSmartAccessGatewaysRequest::getSerialNumber()const -{ - return serialNumber_; +void DescribeSmartAccessGatewaysRequest::setSmartAGIds(const std::vector &smartAGIds) { + smartAGIds_ = smartAGIds; } -void DescribeSmartAccessGatewaysRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +std::string DescribeSmartAccessGatewaysRequest::getApplicationBandwidthPackageId() const { + return applicationBandwidthPackageId_; } -std::string DescribeSmartAccessGatewaysRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSmartAccessGatewaysRequest::setApplicationBandwidthPackageId(const std::string &applicationBandwidthPackageId) { + applicationBandwidthPackageId_ = applicationBandwidthPackageId; + setParameter(std::string("ApplicationBandwidthPackageId"), applicationBandwidthPackageId); } -void DescribeSmartAccessGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSmartAccessGatewaysRequest::getSerialNumber() const { + return serialNumber_; } -std::string DescribeSmartAccessGatewaysRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSmartAccessGatewaysRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } -void DescribeSmartAccessGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSmartAccessGatewaysRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSmartAccessGatewaysRequest::getAssociatedCcnId()const -{ - return associatedCcnId_; +void DescribeSmartAccessGatewaysRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSmartAccessGatewaysRequest::setAssociatedCcnId(const std::string& associatedCcnId) -{ - associatedCcnId_ = associatedCcnId; - setParameter("AssociatedCcnId", associatedCcnId); +std::string DescribeSmartAccessGatewaysRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSmartAccessGatewaysRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSmartAccessGatewaysRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSmartAccessGatewaysRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeSmartAccessGatewaysRequest::getAssociatedCcnId() const { + return associatedCcnId_; } -std::string DescribeSmartAccessGatewaysRequest::getBusinessState()const -{ - return businessState_; +void DescribeSmartAccessGatewaysRequest::setAssociatedCcnId(const std::string &associatedCcnId) { + associatedCcnId_ = associatedCcnId; + setParameter(std::string("AssociatedCcnId"), associatedCcnId); } -void DescribeSmartAccessGatewaysRequest::setBusinessState(const std::string& businessState) -{ - businessState_ = businessState; - setParameter("BusinessState", businessState); +long DescribeSmartAccessGatewaysRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSmartAccessGatewaysRequest::getName()const -{ - return name_; +void DescribeSmartAccessGatewaysRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSmartAccessGatewaysRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeSmartAccessGatewaysRequest::getBusinessState() const { + return businessState_; } -std::string DescribeSmartAccessGatewaysRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSmartAccessGatewaysRequest::setBusinessState(const std::string &businessState) { + businessState_ = businessState; + setParameter(std::string("BusinessState"), businessState); } -void DescribeSmartAccessGatewaysRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSmartAccessGatewaysRequest::getName() const { + return name_; } -std::string DescribeSmartAccessGatewaysRequest::getStatus()const -{ - return status_; +void DescribeSmartAccessGatewaysRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeSmartAccessGatewaysRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeSmartAccessGatewaysRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeSmartAccessGatewaysRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); +} + +std::string DescribeSmartAccessGatewaysRequest::getStatus() const { + return status_; +} + +void DescribeSmartAccessGatewaysRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/smartag/src/model/DescribeSmartAccessGatewaysResult.cc b/smartag/src/model/DescribeSmartAccessGatewaysResult.cc index d0c3e4ab9..f28efcfe6 100644 --- a/smartag/src/model/DescribeSmartAccessGatewaysResult.cc +++ b/smartag/src/model/DescribeSmartAccessGatewaysResult.cc @@ -43,98 +43,102 @@ void DescribeSmartAccessGatewaysResult::parse(const std::string &payload) for (auto valueSmartAccessGatewaysSmartAccessGateway : allSmartAccessGatewaysNode) { SmartAccessGateway smartAccessGatewaysObject; - if(!valueSmartAccessGatewaysSmartAccessGateway["Description"].isNull()) - smartAccessGatewaysObject.description = valueSmartAccessGatewaysSmartAccessGateway["Description"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["UpBandwidth4G"].isNull()) - smartAccessGatewaysObject.upBandwidth4G = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["UpBandwidth4G"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["ResourceGroupId"].isNull()) - smartAccessGatewaysObject.resourceGroupId = valueSmartAccessGatewaysSmartAccessGateway["ResourceGroupId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["EndTime"].isNull()) - smartAccessGatewaysObject.endTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["EndTime"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["UserCount"].isNull()) - smartAccessGatewaysObject.userCount = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["UserCount"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["VpnStatus"].isNull()) - smartAccessGatewaysObject.vpnStatus = valueSmartAccessGatewaysSmartAccessGateway["VpnStatus"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].isNull()) - smartAccessGatewaysObject.maxBandwidth = valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnName"].isNull()) - smartAccessGatewaysObject.associatedCcnName = valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnName"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["DpiMonitorStatus"].isNull()) - smartAccessGatewaysObject.dpiMonitorStatus = valueSmartAccessGatewaysSmartAccessGateway["DpiMonitorStatus"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["CidrBlock"].isNull()) - smartAccessGatewaysObject.cidrBlock = valueSmartAccessGatewaysSmartAccessGateway["CidrBlock"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["QosIds"].isNull()) - smartAccessGatewaysObject.qosIds = valueSmartAccessGatewaysSmartAccessGateway["QosIds"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["UpBandwidthWan"].isNull()) - smartAccessGatewaysObject.upBandwidthWan = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["UpBandwidthWan"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["Name"].isNull()) - smartAccessGatewaysObject.name = valueSmartAccessGatewaysSmartAccessGateway["Name"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["IpsecStatus"].isNull()) - smartAccessGatewaysObject.ipsecStatus = valueSmartAccessGatewaysSmartAccessGateway["IpsecStatus"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].isNull()) - smartAccessGatewaysObject.routingStrategy = valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].isNull()) - smartAccessGatewaysObject.associatedCcnId = valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["BackupSoftwareVersion"].isNull()) - smartAccessGatewaysObject.backupSoftwareVersion = valueSmartAccessGatewaysSmartAccessGateway["BackupSoftwareVersion"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].isNull()) - smartAccessGatewaysObject.smartAGId = valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["DpiStatus"].isNull()) - smartAccessGatewaysObject.dpiStatus = valueSmartAccessGatewaysSmartAccessGateway["DpiStatus"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["EnterpriseCode"].isNull()) - smartAccessGatewaysObject.enterpriseCode = valueSmartAccessGatewaysSmartAccessGateway["EnterpriseCode"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["SecurityLockThreshold"].isNull()) - smartAccessGatewaysObject.securityLockThreshold = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["SecurityLockThreshold"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["ResellerUid"].isNull()) - smartAccessGatewaysObject.resellerUid = valueSmartAccessGatewaysSmartAccessGateway["ResellerUid"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["Status"].isNull()) - smartAccessGatewaysObject.status = valueSmartAccessGatewaysSmartAccessGateway["Status"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["IdaasId"].isNull()) - smartAccessGatewaysObject.idaasId = valueSmartAccessGatewaysSmartAccessGateway["IdaasId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["IdaasApplicationId"].isNull()) - smartAccessGatewaysObject.idaasApplicationId = valueSmartAccessGatewaysSmartAccessGateway["IdaasApplicationId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].isNull()) - smartAccessGatewaysObject.createTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["DataPlan"].isNull()) - smartAccessGatewaysObject.dataPlan = std::stol(valueSmartAccessGatewaysSmartAccessGateway["DataPlan"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["City"].isNull()) - smartAccessGatewaysObject.city = valueSmartAccessGatewaysSmartAccessGateway["City"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].isNull()) - smartAccessGatewaysObject.hardwareVersion = valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].isNull()) - smartAccessGatewaysObject.smartAGUid = std::stol(valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGateway["ResellerInstanceId"].isNull()) - smartAccessGatewaysObject.resellerInstanceId = valueSmartAccessGatewaysSmartAccessGateway["ResellerInstanceId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["SoftwareVersion"].isNull()) - smartAccessGatewaysObject.softwareVersion = valueSmartAccessGatewaysSmartAccessGateway["SoftwareVersion"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["SerialNumber"].isNull()) smartAccessGatewaysObject.serialNumber = valueSmartAccessGatewaysSmartAccessGateway["SerialNumber"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["AccessPointId"].isNull()) - smartAccessGatewaysObject.accessPointId = valueSmartAccessGatewaysSmartAccessGateway["AccessPointId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["AclIds"].isNull()) - smartAccessGatewaysObject.aclIds = valueSmartAccessGatewaysSmartAccessGateway["AclIds"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["Status"].isNull()) + smartAccessGatewaysObject.status = valueSmartAccessGatewaysSmartAccessGateway["Status"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["UpBandwidth4G"].isNull()) + smartAccessGatewaysObject.upBandwidth4G = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["UpBandwidth4G"].asString()); if(!valueSmartAccessGatewaysSmartAccessGateway["BackupStatus"].isNull()) smartAccessGatewaysObject.backupStatus = valueSmartAccessGatewaysSmartAccessGateway["BackupStatus"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["IdaasApplicationId"].isNull()) + smartAccessGatewaysObject.idaasApplicationId = valueSmartAccessGatewaysSmartAccessGateway["IdaasApplicationId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SoftwareVersion"].isNull()) + smartAccessGatewaysObject.softwareVersion = valueSmartAccessGatewaysSmartAccessGateway["SoftwareVersion"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].isNull()) + smartAccessGatewaysObject.createTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["CreateTime"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].isNull()) + smartAccessGatewaysObject.smartAGId = valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["UpBandwidthWan"].isNull()) + smartAccessGatewaysObject.upBandwidthWan = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["UpBandwidthWan"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["City"].isNull()) + smartAccessGatewaysObject.city = valueSmartAccessGatewaysSmartAccessGateway["City"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["AclIds"].isNull()) + smartAccessGatewaysObject.aclIds = valueSmartAccessGatewaysSmartAccessGateway["AclIds"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["QosIds"].isNull()) + smartAccessGatewaysObject.qosIds = valueSmartAccessGatewaysSmartAccessGateway["QosIds"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["CidrBlock"].isNull()) + smartAccessGatewaysObject.cidrBlock = valueSmartAccessGatewaysSmartAccessGateway["CidrBlock"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["Description"].isNull()) + smartAccessGatewaysObject.description = valueSmartAccessGatewaysSmartAccessGateway["Description"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["IpsecStatus"].isNull()) + smartAccessGatewaysObject.ipsecStatus = valueSmartAccessGatewaysSmartAccessGateway["IpsecStatus"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["EnterpriseCode"].isNull()) + smartAccessGatewaysObject.enterpriseCode = valueSmartAccessGatewaysSmartAccessGateway["EnterpriseCode"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["DpiStatus"].isNull()) + smartAccessGatewaysObject.dpiStatus = valueSmartAccessGatewaysSmartAccessGateway["DpiStatus"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].isNull()) + smartAccessGatewaysObject.associatedCcnId = valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["Name"].isNull()) + smartAccessGatewaysObject.name = valueSmartAccessGatewaysSmartAccessGateway["Name"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].isNull()) + smartAccessGatewaysObject.hardwareVersion = valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["IdaasId"].isNull()) + smartAccessGatewaysObject.idaasId = valueSmartAccessGatewaysSmartAccessGateway["IdaasId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["DataPlan"].isNull()) + smartAccessGatewaysObject.dataPlan = std::stol(valueSmartAccessGatewaysSmartAccessGateway["DataPlan"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnName"].isNull()) + smartAccessGatewaysObject.associatedCcnName = valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnName"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["ResellerUid"].isNull()) + smartAccessGatewaysObject.resellerUid = valueSmartAccessGatewaysSmartAccessGateway["ResellerUid"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["DpiMonitorStatus"].isNull()) + smartAccessGatewaysObject.dpiMonitorStatus = valueSmartAccessGatewaysSmartAccessGateway["DpiMonitorStatus"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].isNull()) + smartAccessGatewaysObject.maxBandwidth = valueSmartAccessGatewaysSmartAccessGateway["MaxBandwidth"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].isNull()) + smartAccessGatewaysObject.smartAGUid = std::stol(valueSmartAccessGatewaysSmartAccessGateway["SmartAGUid"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["BackupSoftwareVersion"].isNull()) + smartAccessGatewaysObject.backupSoftwareVersion = valueSmartAccessGatewaysSmartAccessGateway["BackupSoftwareVersion"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["EndTime"].isNull()) + smartAccessGatewaysObject.endTime = std::stol(valueSmartAccessGatewaysSmartAccessGateway["EndTime"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["ResellerInstanceId"].isNull()) + smartAccessGatewaysObject.resellerInstanceId = valueSmartAccessGatewaysSmartAccessGateway["ResellerInstanceId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["VpnStatus"].isNull()) + smartAccessGatewaysObject.vpnStatus = valueSmartAccessGatewaysSmartAccessGateway["VpnStatus"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].isNull()) + smartAccessGatewaysObject.routingStrategy = valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SecurityLockThreshold"].isNull()) + smartAccessGatewaysObject.securityLockThreshold = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["SecurityLockThreshold"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["ResourceGroupId"].isNull()) + smartAccessGatewaysObject.resourceGroupId = valueSmartAccessGatewaysSmartAccessGateway["ResourceGroupId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["UserCount"].isNull()) + smartAccessGatewaysObject.userCount = std::stoi(valueSmartAccessGatewaysSmartAccessGateway["UserCount"].asString()); + if(!valueSmartAccessGatewaysSmartAccessGateway["AccessPointId"].isNull()) + smartAccessGatewaysObject.accessPointId = valueSmartAccessGatewaysSmartAccessGateway["AccessPointId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["ApplicationBandwidthPackageId"].isNull()) + smartAccessGatewaysObject.applicationBandwidthPackageId = valueSmartAccessGatewaysSmartAccessGateway["ApplicationBandwidthPackageId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["AccelerateBandwidth"].isNull()) + smartAccessGatewaysObject.accelerateBandwidth = std::stol(valueSmartAccessGatewaysSmartAccessGateway["AccelerateBandwidth"].asString()); auto allLinksNode = valueSmartAccessGatewaysSmartAccessGateway["Links"]["Link"]; for (auto valueSmartAccessGatewaysSmartAccessGatewayLinksLink : allLinksNode) { SmartAccessGateway::Link linksObject; - if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Status"].isNull()) - linksObject.status = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Status"].asString(); if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Type"].isNull()) linksObject.type = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Type"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Status"].isNull()) + linksObject.status = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Status"].asString(); if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["EndTime"].isNull()) linksObject.endTime = std::stol(valueSmartAccessGatewaysSmartAccessGatewayLinksLink["EndTime"].asString()); - if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["InstanceId"].isNull()) - linksObject.instanceId = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["InstanceId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["RelateInstanceId"].isNull()) - linksObject.relateInstanceId = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["RelateInstanceId"].asString(); if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Bandwidth"].isNull()) linksObject.bandwidth = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["Bandwidth"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["CommodityType"].isNull()) - linksObject.commodityType = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["CommodityType"].asString(); if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["RelateInstanceRegionId"].isNull()) linksObject.relateInstanceRegionId = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["RelateInstanceRegionId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["RelateInstanceId"].isNull()) + linksObject.relateInstanceId = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["RelateInstanceId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["InstanceId"].isNull()) + linksObject.instanceId = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["InstanceId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGatewayLinksLink["CommodityType"].isNull()) + linksObject.commodityType = valueSmartAccessGatewaysSmartAccessGatewayLinksLink["CommodityType"].asString(); smartAccessGatewaysObject.links.push_back(linksObject); } smartAccessGateways_.push_back(smartAccessGatewaysObject); diff --git a/smartag/src/model/DescribeSnatEntriesRequest.cc b/smartag/src/model/DescribeSnatEntriesRequest.cc index 85af12293..d45f5f87f 100644 --- a/smartag/src/model/DescribeSnatEntriesRequest.cc +++ b/smartag/src/model/DescribeSnatEntriesRequest.cc @@ -1,117 +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::Smartag::Model::DescribeSnatEntriesRequest; - -DescribeSnatEntriesRequest::DescribeSnatEntriesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeSnatEntries") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSnatEntriesRequest::~DescribeSnatEntriesRequest() -{} - -long DescribeSnatEntriesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeSnatEntriesRequest; + +DescribeSnatEntriesRequest::DescribeSnatEntriesRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeSnatEntries") { + setMethod(HttpRequest::Method::Post); } -void DescribeSnatEntriesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSnatEntriesRequest::~DescribeSnatEntriesRequest() {} + +long DescribeSnatEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeSnatEntriesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSnatEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSnatEntriesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSnatEntriesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSnatEntriesRequest::getRegionId()const -{ - return regionId_; +void DescribeSnatEntriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSnatEntriesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSnatEntriesRequest::getRegionId() const { + return regionId_; } -int DescribeSnatEntriesRequest::getPageSize()const -{ - return pageSize_; +void DescribeSnatEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSnatEntriesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSnatEntriesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSnatEntriesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSnatEntriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSnatEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSnatEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSnatEntriesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSnatEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSnatEntriesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSnatEntriesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSnatEntriesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSnatEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSnatEntriesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSnatEntriesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSnatEntriesRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeSnatEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSnatEntriesRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeSnatEntriesRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeSnatEntriesRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeSnatEntriesResult.cc b/smartag/src/model/DescribeSnatEntriesResult.cc index 466d50c4c..0fb86bf38 100644 --- a/smartag/src/model/DescribeSnatEntriesResult.cc +++ b/smartag/src/model/DescribeSnatEntriesResult.cc @@ -43,12 +43,12 @@ void DescribeSnatEntriesResult::parse(const std::string &payload) for (auto valueSnatEntriesSnatEntry : allSnatEntriesNode) { SnatEntry snatEntriesObject; - if(!valueSnatEntriesSnatEntry["InstanceId"].isNull()) - snatEntriesObject.instanceId = valueSnatEntriesSnatEntry["InstanceId"].asString(); - if(!valueSnatEntriesSnatEntry["CreateTime"].isNull()) - snatEntriesObject.createTime = std::stol(valueSnatEntriesSnatEntry["CreateTime"].asString()); if(!valueSnatEntriesSnatEntry["CidrBlock"].isNull()) snatEntriesObject.cidrBlock = valueSnatEntriesSnatEntry["CidrBlock"].asString(); + if(!valueSnatEntriesSnatEntry["CreateTime"].isNull()) + snatEntriesObject.createTime = std::stol(valueSnatEntriesSnatEntry["CreateTime"].asString()); + if(!valueSnatEntriesSnatEntry["InstanceId"].isNull()) + snatEntriesObject.instanceId = valueSnatEntriesSnatEntry["InstanceId"].asString(); if(!valueSnatEntriesSnatEntry["SnatIp"].isNull()) snatEntriesObject.snatIp = valueSnatEntriesSnatEntry["SnatIp"].asString(); snatEntries_.push_back(snatEntriesObject); diff --git a/smartag/src/model/DescribeUnbindFlowLogSagsRequest.cc b/smartag/src/model/DescribeUnbindFlowLogSagsRequest.cc index b4caaf99d..33aefd310 100644 --- a/smartag/src/model/DescribeUnbindFlowLogSagsRequest.cc +++ b/smartag/src/model/DescribeUnbindFlowLogSagsRequest.cc @@ -1,84 +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::Smartag::Model::DescribeUnbindFlowLogSagsRequest; - -DescribeUnbindFlowLogSagsRequest::DescribeUnbindFlowLogSagsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeUnbindFlowLogSags") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeUnbindFlowLogSagsRequest::~DescribeUnbindFlowLogSagsRequest() -{} - -long DescribeUnbindFlowLogSagsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeUnbindFlowLogSagsRequest; + +DescribeUnbindFlowLogSagsRequest::DescribeUnbindFlowLogSagsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeUnbindFlowLogSags") { + setMethod(HttpRequest::Method::Post); } -void DescribeUnbindFlowLogSagsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeUnbindFlowLogSagsRequest::~DescribeUnbindFlowLogSagsRequest() {} + +long DescribeUnbindFlowLogSagsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeUnbindFlowLogSagsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeUnbindFlowLogSagsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeUnbindFlowLogSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeUnbindFlowLogSagsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeUnbindFlowLogSagsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeUnbindFlowLogSagsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeUnbindFlowLogSagsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeUnbindFlowLogSagsRequest::getRegionId() const { + return regionId_; } -long DescribeUnbindFlowLogSagsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeUnbindFlowLogSagsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeUnbindFlowLogSagsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeUnbindFlowLogSagsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeUnbindFlowLogSagsRequest::getRegionId()const -{ - return regionId_; +void DescribeUnbindFlowLogSagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeUnbindFlowLogSagsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeUnbindFlowLogSagsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeUnbindFlowLogSagsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeUnbindFlowLogSagsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeUnbindFlowLogSagsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/smartag/src/model/DescribeUserFlowStatisticsRequest.cc b/smartag/src/model/DescribeUserFlowStatisticsRequest.cc index cfbf89bc4..ed8aa792a 100644 --- a/smartag/src/model/DescribeUserFlowStatisticsRequest.cc +++ b/smartag/src/model/DescribeUserFlowStatisticsRequest.cc @@ -1,119 +1,98 @@ /* * 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::Smartag::Model::DescribeUserFlowStatisticsRequest; - -DescribeUserFlowStatisticsRequest::DescribeUserFlowStatisticsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeUserFlowStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeUserFlowStatisticsRequest::~DescribeUserFlowStatisticsRequest() -{} - -long DescribeUserFlowStatisticsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeUserFlowStatisticsRequest; + +DescribeUserFlowStatisticsRequest::DescribeUserFlowStatisticsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeUserFlowStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeUserFlowStatisticsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeUserFlowStatisticsRequest::~DescribeUserFlowStatisticsRequest() {} + +long DescribeUserFlowStatisticsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeUserFlowStatisticsRequest::getRegionId()const -{ - return regionId_; +void DescribeUserFlowStatisticsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeUserFlowStatisticsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeUserFlowStatisticsRequest::getRegionId() const { + return regionId_; } -std::vector DescribeUserFlowStatisticsRequest::getUserNames()const -{ - return userNames_; +void DescribeUserFlowStatisticsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeUserFlowStatisticsRequest::setUserNames(const std::vector& userNames) -{ - userNames_ = userNames; - for(int dep1 = 0; dep1!= userNames.size(); dep1++) { - setParameter("UserNames."+ std::to_string(dep1), userNames.at(dep1)); - } +std::vector DescribeUserFlowStatisticsRequest::getUserNames() const { + return userNames_; } -std::string DescribeUserFlowStatisticsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeUserFlowStatisticsRequest::setUserNames(const std::vector &userNames) { + userNames_ = userNames; } -void DescribeUserFlowStatisticsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeUserFlowStatisticsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeUserFlowStatisticsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeUserFlowStatisticsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeUserFlowStatisticsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeUserFlowStatisticsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeUserFlowStatisticsRequest::getStatisticsDate()const -{ - return statisticsDate_; +void DescribeUserFlowStatisticsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeUserFlowStatisticsRequest::setStatisticsDate(const std::string& statisticsDate) -{ - statisticsDate_ = statisticsDate; - setParameter("StatisticsDate", statisticsDate); +std::string DescribeUserFlowStatisticsRequest::getStatisticsDate() const { + return statisticsDate_; } -long DescribeUserFlowStatisticsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeUserFlowStatisticsRequest::setStatisticsDate(const std::string &statisticsDate) { + statisticsDate_ = statisticsDate; + setParameter(std::string("StatisticsDate"), statisticsDate); } -void DescribeUserFlowStatisticsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeUserFlowStatisticsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeUserFlowStatisticsRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeUserFlowStatisticsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeUserFlowStatisticsRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeUserFlowStatisticsRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeUserFlowStatisticsRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeUserFlowStatisticsResult.cc b/smartag/src/model/DescribeUserFlowStatisticsResult.cc index 689af64ad..5eee6aae9 100644 --- a/smartag/src/model/DescribeUserFlowStatisticsResult.cc +++ b/smartag/src/model/DescribeUserFlowStatisticsResult.cc @@ -43,10 +43,10 @@ void DescribeUserFlowStatisticsResult::parse(const std::string &payload) for (auto valueSagStatisticsStatistics : allSagStatisticsNode) { Statistics sagStatisticsObject; - if(!valueSagStatisticsStatistics["UserName"].isNull()) - sagStatisticsObject.userName = valueSagStatisticsStatistics["UserName"].asString(); if(!valueSagStatisticsStatistics["TotalBytes"].isNull()) sagStatisticsObject.totalBytes = valueSagStatisticsStatistics["TotalBytes"].asString(); + if(!valueSagStatisticsStatistics["UserName"].isNull()) + sagStatisticsObject.userName = valueSagStatisticsStatistics["UserName"].asString(); sagStatistics_.push_back(sagStatisticsObject); } diff --git a/smartag/src/model/DescribeUserOnlineClientStatisticsRequest.cc b/smartag/src/model/DescribeUserOnlineClientStatisticsRequest.cc index 2e60c7541..8ce8ffc88 100644 --- a/smartag/src/model/DescribeUserOnlineClientStatisticsRequest.cc +++ b/smartag/src/model/DescribeUserOnlineClientStatisticsRequest.cc @@ -1,108 +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::Smartag::Model::DescribeUserOnlineClientStatisticsRequest; - -DescribeUserOnlineClientStatisticsRequest::DescribeUserOnlineClientStatisticsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeUserOnlineClientStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeUserOnlineClientStatisticsRequest::~DescribeUserOnlineClientStatisticsRequest() -{} - -long DescribeUserOnlineClientStatisticsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeUserOnlineClientStatisticsRequest; + +DescribeUserOnlineClientStatisticsRequest::DescribeUserOnlineClientStatisticsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeUserOnlineClientStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeUserOnlineClientStatisticsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeUserOnlineClientStatisticsRequest::~DescribeUserOnlineClientStatisticsRequest() {} + +long DescribeUserOnlineClientStatisticsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeUserOnlineClientStatisticsRequest::getRegionId()const -{ - return regionId_; +void DescribeUserOnlineClientStatisticsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeUserOnlineClientStatisticsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeUserOnlineClientStatisticsRequest::getRegionId() const { + return regionId_; } -std::vector DescribeUserOnlineClientStatisticsRequest::getUserNames()const -{ - return userNames_; +void DescribeUserOnlineClientStatisticsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeUserOnlineClientStatisticsRequest::setUserNames(const std::vector& userNames) -{ - userNames_ = userNames; - for(int dep1 = 0; dep1!= userNames.size(); dep1++) { - setParameter("UserNames."+ std::to_string(dep1), userNames.at(dep1)); - } +std::vector DescribeUserOnlineClientStatisticsRequest::getUserNames() const { + return userNames_; } -std::string DescribeUserOnlineClientStatisticsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeUserOnlineClientStatisticsRequest::setUserNames(const std::vector &userNames) { + userNames_ = userNames; } -void DescribeUserOnlineClientStatisticsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeUserOnlineClientStatisticsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeUserOnlineClientStatisticsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeUserOnlineClientStatisticsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeUserOnlineClientStatisticsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeUserOnlineClientStatisticsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeUserOnlineClientStatisticsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeUserOnlineClientStatisticsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeUserOnlineClientStatisticsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeUserOnlineClientStatisticsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeUserOnlineClientStatisticsRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeUserOnlineClientStatisticsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeUserOnlineClientStatisticsRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeUserOnlineClientStatisticsRequest::getSmartAGId() const { + return smartAGId_; +} + +void DescribeUserOnlineClientStatisticsRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DescribeUserOnlineClientStatisticsResult.cc b/smartag/src/model/DescribeUserOnlineClientStatisticsResult.cc index f7699a9de..1e16f5c7f 100644 --- a/smartag/src/model/DescribeUserOnlineClientStatisticsResult.cc +++ b/smartag/src/model/DescribeUserOnlineClientStatisticsResult.cc @@ -43,10 +43,10 @@ void DescribeUserOnlineClientStatisticsResult::parse(const std::string &payload) for (auto valueUserStatisticsStatistics : allUserStatisticsNode) { Statistics userStatisticsObject; - if(!valueUserStatisticsStatistics["UserName"].isNull()) - userStatisticsObject.userName = valueUserStatisticsStatistics["UserName"].asString(); if(!valueUserStatisticsStatistics["OnlineCount"].isNull()) userStatisticsObject.onlineCount = valueUserStatisticsStatistics["OnlineCount"].asString(); + if(!valueUserStatisticsStatistics["UserName"].isNull()) + userStatisticsObject.userName = valueUserStatisticsStatistics["UserName"].asString(); userStatistics_.push_back(userStatisticsObject); } diff --git a/smartag/src/model/DescribeUserOnlineClientsRequest.cc b/smartag/src/model/DescribeUserOnlineClientsRequest.cc index fee69023a..4a04e1bd8 100644 --- a/smartag/src/model/DescribeUserOnlineClientsRequest.cc +++ b/smartag/src/model/DescribeUserOnlineClientsRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DescribeUserOnlineClientsRequest; - -DescribeUserOnlineClientsRequest::DescribeUserOnlineClientsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DescribeUserOnlineClients") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeUserOnlineClientsRequest::~DescribeUserOnlineClientsRequest() -{} - -long DescribeUserOnlineClientsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DescribeUserOnlineClientsRequest; + +DescribeUserOnlineClientsRequest::DescribeUserOnlineClientsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DescribeUserOnlineClients") { + setMethod(HttpRequest::Method::Post); } -void DescribeUserOnlineClientsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeUserOnlineClientsRequest::~DescribeUserOnlineClientsRequest() {} + +long DescribeUserOnlineClientsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeUserOnlineClientsRequest::getRegionId()const -{ - return regionId_; +void DescribeUserOnlineClientsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeUserOnlineClientsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeUserOnlineClientsRequest::getRegionId() const { + return regionId_; } -std::string DescribeUserOnlineClientsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeUserOnlineClientsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeUserOnlineClientsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeUserOnlineClientsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeUserOnlineClientsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeUserOnlineClientsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeUserOnlineClientsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeUserOnlineClientsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeUserOnlineClientsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeUserOnlineClientsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeUserOnlineClientsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeUserOnlineClientsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeUserOnlineClientsRequest::getSmartAGId()const -{ - return smartAGId_; +void DescribeUserOnlineClientsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeUserOnlineClientsRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DescribeUserOnlineClientsRequest::getSmartAGId() const { + return smartAGId_; } -std::string DescribeUserOnlineClientsRequest::getUserName()const -{ - return userName_; +void DescribeUserOnlineClientsRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DescribeUserOnlineClientsRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string DescribeUserOnlineClientsRequest::getUserName() const { + return userName_; +} + +void DescribeUserOnlineClientsRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/smartag/src/model/DescribeUserOnlineClientsResult.cc b/smartag/src/model/DescribeUserOnlineClientsResult.cc index 45171e622..682ecece7 100644 --- a/smartag/src/model/DescribeUserOnlineClientsResult.cc +++ b/smartag/src/model/DescribeUserOnlineClientsResult.cc @@ -43,10 +43,10 @@ void DescribeUserOnlineClientsResult::parse(const std::string &payload) for (auto valueUsersUser : allUsersNode) { User usersObject; - if(!valueUsersUser["OnlineTime"].isNull()) - usersObject.onlineTime = valueUsersUser["OnlineTime"].asString(); if(!valueUsersUser["ClientIp"].isNull()) usersObject.clientIp = valueUsersUser["ClientIp"].asString(); + if(!valueUsersUser["OnlineTime"].isNull()) + usersObject.onlineTime = valueUsersUser["OnlineTime"].asString(); users_.push_back(usersObject); } diff --git a/smartag/src/model/DetachNetworkOptimizationSagsRequest.cc b/smartag/src/model/DetachNetworkOptimizationSagsRequest.cc deleted file mode 100644 index 05855a45d..000000000 --- a/smartag/src/model/DetachNetworkOptimizationSagsRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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::Smartag::Model::DetachNetworkOptimizationSagsRequest; - -DetachNetworkOptimizationSagsRequest::DetachNetworkOptimizationSagsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DetachNetworkOptimizationSags") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachNetworkOptimizationSagsRequest::~DetachNetworkOptimizationSagsRequest() -{} - -long DetachNetworkOptimizationSagsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DetachNetworkOptimizationSagsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DetachNetworkOptimizationSagsRequest::getRegionId()const -{ - return regionId_; -} - -void DetachNetworkOptimizationSagsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DetachNetworkOptimizationSagsRequest::getNetworkOptId()const -{ - return networkOptId_; -} - -void DetachNetworkOptimizationSagsRequest::setNetworkOptId(const std::string& networkOptId) -{ - networkOptId_ = networkOptId; - setParameter("NetworkOptId", networkOptId); -} - -std::vector DetachNetworkOptimizationSagsRequest::getSmartAGIds()const -{ - return smartAGIds_; -} - -void DetachNetworkOptimizationSagsRequest::setSmartAGIds(const std::vector& smartAGIds) -{ - smartAGIds_ = smartAGIds; - for(int dep1 = 0; dep1!= smartAGIds.size(); dep1++) { - setParameter("SmartAGIds."+ std::to_string(dep1), smartAGIds.at(dep1)); - } -} - -std::string DetachNetworkOptimizationSagsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DetachNetworkOptimizationSagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DetachNetworkOptimizationSagsRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DetachNetworkOptimizationSagsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DetachNetworkOptimizationSagsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DetachNetworkOptimizationSagsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/DetachNetworkOptimizationSagsResult.cc b/smartag/src/model/DetachNetworkOptimizationSagsResult.cc deleted file mode 100644 index 07254c792..000000000 --- a/smartag/src/model/DetachNetworkOptimizationSagsResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -DetachNetworkOptimizationSagsResult::DetachNetworkOptimizationSagsResult() : - ServiceResult() -{} - -DetachNetworkOptimizationSagsResult::DetachNetworkOptimizationSagsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetachNetworkOptimizationSagsResult::~DetachNetworkOptimizationSagsResult() -{} - -void DetachNetworkOptimizationSagsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/DiagnoseSmartAccessGatewayRequest.cc b/smartag/src/model/DiagnoseSmartAccessGatewayRequest.cc index 5163a3d8f..7e234c9ef 100644 --- a/smartag/src/model/DiagnoseSmartAccessGatewayRequest.cc +++ b/smartag/src/model/DiagnoseSmartAccessGatewayRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DiagnoseSmartAccessGatewayRequest; - -DiagnoseSmartAccessGatewayRequest::DiagnoseSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DiagnoseSmartAccessGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -DiagnoseSmartAccessGatewayRequest::~DiagnoseSmartAccessGatewayRequest() -{} - -long DiagnoseSmartAccessGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DiagnoseSmartAccessGatewayRequest; + +DiagnoseSmartAccessGatewayRequest::DiagnoseSmartAccessGatewayRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DiagnoseSmartAccessGateway") { + setMethod(HttpRequest::Method::Post); } -void DiagnoseSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DiagnoseSmartAccessGatewayRequest::~DiagnoseSmartAccessGatewayRequest() {} + +long DiagnoseSmartAccessGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DiagnoseSmartAccessGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DiagnoseSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DiagnoseSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DiagnoseSmartAccessGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DiagnoseSmartAccessGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DiagnoseSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DiagnoseSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DiagnoseSmartAccessGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long DiagnoseSmartAccessGatewayRequest::getOwnerId()const -{ - return ownerId_; +void DiagnoseSmartAccessGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DiagnoseSmartAccessGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DiagnoseSmartAccessGatewayRequest::getOwnerId() const { + return ownerId_; } -std::string DiagnoseSmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; +void DiagnoseSmartAccessGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DiagnoseSmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DiagnoseSmartAccessGatewayRequest::getRegionId() const { + return regionId_; } -std::string DiagnoseSmartAccessGatewayRequest::getSmartAGId()const -{ - return smartAGId_; +void DiagnoseSmartAccessGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DiagnoseSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DiagnoseSmartAccessGatewayRequest::getSmartAGId() const { + return smartAGId_; } -std::string DiagnoseSmartAccessGatewayRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DiagnoseSmartAccessGatewayRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DiagnoseSmartAccessGatewayRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DiagnoseSmartAccessGatewayRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DiagnoseSmartAccessGatewayRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DisableSmartAGDpiMonitorRequest.cc b/smartag/src/model/DisableSmartAGDpiMonitorRequest.cc index 3a3da796b..264e61203 100644 --- a/smartag/src/model/DisableSmartAGDpiMonitorRequest.cc +++ b/smartag/src/model/DisableSmartAGDpiMonitorRequest.cc @@ -1,117 +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::Smartag::Model::DisableSmartAGDpiMonitorRequest; - -DisableSmartAGDpiMonitorRequest::DisableSmartAGDpiMonitorRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DisableSmartAGDpiMonitor") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableSmartAGDpiMonitorRequest::~DisableSmartAGDpiMonitorRequest() -{} - -long DisableSmartAGDpiMonitorRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DisableSmartAGDpiMonitorRequest; + +DisableSmartAGDpiMonitorRequest::DisableSmartAGDpiMonitorRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DisableSmartAGDpiMonitor") { + setMethod(HttpRequest::Method::Post); } -void DisableSmartAGDpiMonitorRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DisableSmartAGDpiMonitorRequest::~DisableSmartAGDpiMonitorRequest() {} + +long DisableSmartAGDpiMonitorRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DisableSmartAGDpiMonitorRequest::getClientToken()const -{ - return clientToken_; +void DisableSmartAGDpiMonitorRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DisableSmartAGDpiMonitorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DisableSmartAGDpiMonitorRequest::getClientToken() const { + return clientToken_; } -std::string DisableSmartAGDpiMonitorRequest::getRegionId()const -{ - return regionId_; +void DisableSmartAGDpiMonitorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DisableSmartAGDpiMonitorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DisableSmartAGDpiMonitorRequest::getRegionId() const { + return regionId_; } -bool DisableSmartAGDpiMonitorRequest::getDryRun()const -{ - return dryRun_; +void DisableSmartAGDpiMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DisableSmartAGDpiMonitorRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DisableSmartAGDpiMonitorRequest::getDryRun() const { + return dryRun_; } -std::string DisableSmartAGDpiMonitorRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DisableSmartAGDpiMonitorRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DisableSmartAGDpiMonitorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DisableSmartAGDpiMonitorRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DisableSmartAGDpiMonitorRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DisableSmartAGDpiMonitorRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DisableSmartAGDpiMonitorRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DisableSmartAGDpiMonitorRequest::getOwnerAccount() const { + return ownerAccount_; } -long DisableSmartAGDpiMonitorRequest::getOwnerId()const -{ - return ownerId_; +void DisableSmartAGDpiMonitorRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DisableSmartAGDpiMonitorRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DisableSmartAGDpiMonitorRequest::getOwnerId() const { + return ownerId_; } -std::string DisableSmartAGDpiMonitorRequest::getSmartAGId()const -{ - return smartAGId_; +void DisableSmartAGDpiMonitorRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DisableSmartAGDpiMonitorRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DisableSmartAGDpiMonitorRequest::getSmartAGId() const { + return smartAGId_; +} + +void DisableSmartAGDpiMonitorRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DisableSmartAccessGatewayUserRequest.cc b/smartag/src/model/DisableSmartAccessGatewayUserRequest.cc index 6e4612ee5..61d596076 100644 --- a/smartag/src/model/DisableSmartAccessGatewayUserRequest.cc +++ b/smartag/src/model/DisableSmartAccessGatewayUserRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DisableSmartAccessGatewayUserRequest; - -DisableSmartAccessGatewayUserRequest::DisableSmartAccessGatewayUserRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DisableSmartAccessGatewayUser") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableSmartAccessGatewayUserRequest::~DisableSmartAccessGatewayUserRequest() -{} - -long DisableSmartAccessGatewayUserRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DisableSmartAccessGatewayUserRequest; + +DisableSmartAccessGatewayUserRequest::DisableSmartAccessGatewayUserRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DisableSmartAccessGatewayUser") { + setMethod(HttpRequest::Method::Post); } -void DisableSmartAccessGatewayUserRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DisableSmartAccessGatewayUserRequest::~DisableSmartAccessGatewayUserRequest() {} + +long DisableSmartAccessGatewayUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DisableSmartAccessGatewayUserRequest::getRegionId()const -{ - return regionId_; +void DisableSmartAccessGatewayUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DisableSmartAccessGatewayUserRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DisableSmartAccessGatewayUserRequest::getRegionId() const { + return regionId_; } -std::string DisableSmartAccessGatewayUserRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DisableSmartAccessGatewayUserRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DisableSmartAccessGatewayUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DisableSmartAccessGatewayUserRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DisableSmartAccessGatewayUserRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DisableSmartAccessGatewayUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DisableSmartAccessGatewayUserRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DisableSmartAccessGatewayUserRequest::getOwnerAccount() const { + return ownerAccount_; } -long DisableSmartAccessGatewayUserRequest::getOwnerId()const -{ - return ownerId_; +void DisableSmartAccessGatewayUserRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DisableSmartAccessGatewayUserRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DisableSmartAccessGatewayUserRequest::getOwnerId() const { + return ownerId_; } -std::string DisableSmartAccessGatewayUserRequest::getSmartAGId()const -{ - return smartAGId_; +void DisableSmartAccessGatewayUserRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DisableSmartAccessGatewayUserRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DisableSmartAccessGatewayUserRequest::getSmartAGId() const { + return smartAGId_; } -std::string DisableSmartAccessGatewayUserRequest::getUserName()const -{ - return userName_; +void DisableSmartAccessGatewayUserRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DisableSmartAccessGatewayUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string DisableSmartAccessGatewayUserRequest::getUserName() const { + return userName_; +} + +void DisableSmartAccessGatewayUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/smartag/src/model/DisassociateACLRequest.cc b/smartag/src/model/DisassociateACLRequest.cc index 16c719688..fe2f0d6ca 100644 --- a/smartag/src/model/DisassociateACLRequest.cc +++ b/smartag/src/model/DisassociateACLRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DisassociateACLRequest; - -DisassociateACLRequest::DisassociateACLRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DisassociateACL") -{ - setMethod(HttpRequest::Method::Post); -} - -DisassociateACLRequest::~DisassociateACLRequest() -{} - -long DisassociateACLRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DisassociateACLRequest; + +DisassociateACLRequest::DisassociateACLRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DisassociateACL") { + setMethod(HttpRequest::Method::Post); } -void DisassociateACLRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DisassociateACLRequest::~DisassociateACLRequest() {} + +long DisassociateACLRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DisassociateACLRequest::getRegionId()const -{ - return regionId_; +void DisassociateACLRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DisassociateACLRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DisassociateACLRequest::getRegionId() const { + return regionId_; } -std::string DisassociateACLRequest::getAclId()const -{ - return aclId_; +void DisassociateACLRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DisassociateACLRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string DisassociateACLRequest::getAclId() const { + return aclId_; } -std::string DisassociateACLRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DisassociateACLRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void DisassociateACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DisassociateACLRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DisassociateACLRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DisassociateACLRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DisassociateACLRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DisassociateACLRequest::getOwnerAccount() const { + return ownerAccount_; } -long DisassociateACLRequest::getOwnerId()const -{ - return ownerId_; +void DisassociateACLRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DisassociateACLRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DisassociateACLRequest::getOwnerId() const { + return ownerId_; } -std::string DisassociateACLRequest::getSmartAGId()const -{ - return smartAGId_; +void DisassociateACLRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DisassociateACLRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DisassociateACLRequest::getSmartAGId() const { + return smartAGId_; +} + +void DisassociateACLRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DisassociateFlowLogRequest.cc b/smartag/src/model/DisassociateFlowLogRequest.cc index ce3a66ea1..c4f41dd41 100644 --- a/smartag/src/model/DisassociateFlowLogRequest.cc +++ b/smartag/src/model/DisassociateFlowLogRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DisassociateFlowLogRequest; - -DisassociateFlowLogRequest::DisassociateFlowLogRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DisassociateFlowLog") -{ - setMethod(HttpRequest::Method::Post); -} - -DisassociateFlowLogRequest::~DisassociateFlowLogRequest() -{} - -long DisassociateFlowLogRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DisassociateFlowLogRequest; + +DisassociateFlowLogRequest::DisassociateFlowLogRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DisassociateFlowLog") { + setMethod(HttpRequest::Method::Post); } -void DisassociateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DisassociateFlowLogRequest::~DisassociateFlowLogRequest() {} + +long DisassociateFlowLogRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DisassociateFlowLogRequest::getRegionId()const -{ - return regionId_; +void DisassociateFlowLogRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DisassociateFlowLogRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DisassociateFlowLogRequest::getRegionId() const { + return regionId_; } -std::string DisassociateFlowLogRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DisassociateFlowLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DisassociateFlowLogRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DisassociateFlowLogRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DisassociateFlowLogRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DisassociateFlowLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DisassociateFlowLogRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DisassociateFlowLogRequest::getOwnerAccount() const { + return ownerAccount_; } -long DisassociateFlowLogRequest::getOwnerId()const -{ - return ownerId_; +void DisassociateFlowLogRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DisassociateFlowLogRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DisassociateFlowLogRequest::getOwnerId() const { + return ownerId_; } -std::string DisassociateFlowLogRequest::getSmartAGId()const -{ - return smartAGId_; +void DisassociateFlowLogRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DisassociateFlowLogRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DisassociateFlowLogRequest::getSmartAGId() const { + return smartAGId_; } -std::string DisassociateFlowLogRequest::getFlowLogId()const -{ - return flowLogId_; +void DisassociateFlowLogRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DisassociateFlowLogRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +std::string DisassociateFlowLogRequest::getFlowLogId() const { + return flowLogId_; +} + +void DisassociateFlowLogRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } diff --git a/smartag/src/model/DisassociateQosRequest.cc b/smartag/src/model/DisassociateQosRequest.cc index 516eed6cb..82bcf5e59 100644 --- a/smartag/src/model/DisassociateQosRequest.cc +++ b/smartag/src/model/DisassociateQosRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DisassociateQosRequest; - -DisassociateQosRequest::DisassociateQosRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DisassociateQos") -{ - setMethod(HttpRequest::Method::Post); -} - -DisassociateQosRequest::~DisassociateQosRequest() -{} - -long DisassociateQosRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DisassociateQosRequest; + +DisassociateQosRequest::DisassociateQosRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DisassociateQos") { + setMethod(HttpRequest::Method::Post); } -void DisassociateQosRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DisassociateQosRequest::~DisassociateQosRequest() {} + +long DisassociateQosRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DisassociateQosRequest::getRegionId()const -{ - return regionId_; +void DisassociateQosRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DisassociateQosRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DisassociateQosRequest::getRegionId() const { + return regionId_; } -std::string DisassociateQosRequest::getQosId()const -{ - return qosId_; +void DisassociateQosRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DisassociateQosRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string DisassociateQosRequest::getQosId() const { + return qosId_; } -std::string DisassociateQosRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DisassociateQosRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void DisassociateQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DisassociateQosRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DisassociateQosRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DisassociateQosRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DisassociateQosRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DisassociateQosRequest::getOwnerAccount() const { + return ownerAccount_; } -long DisassociateQosRequest::getOwnerId()const -{ - return ownerId_; +void DisassociateQosRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DisassociateQosRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DisassociateQosRequest::getOwnerId() const { + return ownerId_; } -std::string DisassociateQosRequest::getSmartAGId()const -{ - return smartAGId_; +void DisassociateQosRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DisassociateQosRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DisassociateQosRequest::getSmartAGId() const { + return smartAGId_; +} + +void DisassociateQosRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.cc b/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.cc index 62119d705..71f2f3699 100644 --- a/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.cc +++ b/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::DiscribeSmartAccessGatewayDiagnosisReportRequest; - -DiscribeSmartAccessGatewayDiagnosisReportRequest::DiscribeSmartAccessGatewayDiagnosisReportRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DiscribeSmartAccessGatewayDiagnosisReport") -{ - setMethod(HttpRequest::Method::Post); -} - -DiscribeSmartAccessGatewayDiagnosisReportRequest::~DiscribeSmartAccessGatewayDiagnosisReportRequest() -{} - -long DiscribeSmartAccessGatewayDiagnosisReportRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DiscribeSmartAccessGatewayDiagnosisReportRequest; + +DiscribeSmartAccessGatewayDiagnosisReportRequest::DiscribeSmartAccessGatewayDiagnosisReportRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DiscribeSmartAccessGatewayDiagnosisReport") { + setMethod(HttpRequest::Method::Post); } -void DiscribeSmartAccessGatewayDiagnosisReportRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DiscribeSmartAccessGatewayDiagnosisReportRequest::~DiscribeSmartAccessGatewayDiagnosisReportRequest() {} + +long DiscribeSmartAccessGatewayDiagnosisReportRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DiscribeSmartAccessGatewayDiagnosisReportRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DiscribeSmartAccessGatewayDiagnosisReportRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getOwnerAccount() const { + return ownerAccount_; } -long DiscribeSmartAccessGatewayDiagnosisReportRequest::getOwnerId()const -{ - return ownerId_; +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DiscribeSmartAccessGatewayDiagnosisReportRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DiscribeSmartAccessGatewayDiagnosisReportRequest::getOwnerId() const { + return ownerId_; } -std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getRegionId()const -{ - return regionId_; +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DiscribeSmartAccessGatewayDiagnosisReportRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getRegionId() const { + return regionId_; } -std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getSmartAGId()const -{ - return smartAGId_; +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DiscribeSmartAccessGatewayDiagnosisReportRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getSmartAGId() const { + return smartAGId_; } -std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getSmartAGSn()const -{ - return smartAGSn_; +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DiscribeSmartAccessGatewayDiagnosisReportRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string DiscribeSmartAccessGatewayDiagnosisReportRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void DiscribeSmartAccessGatewayDiagnosisReportRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportResult.cc b/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportResult.cc index 7572d617f..9bf5fd381 100644 --- a/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportResult.cc +++ b/smartag/src/model/DiscribeSmartAccessGatewayDiagnosisReportResult.cc @@ -40,40 +40,40 @@ void DiscribeSmartAccessGatewayDiagnosisReportResult::parse(const std::string &p reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto diagnoseResultNode = value["DiagnoseResult"]; - if(!diagnoseResultNode["Parameters"].isNull()) - diagnoseResult_.parameters = diagnoseResultNode["Parameters"].asString(); - if(!diagnoseResultNode["EndTime"].isNull()) - diagnoseResult_.endTime = std::stoi(diagnoseResultNode["EndTime"].asString()); - if(!diagnoseResultNode["InstanceId"].isNull()) - diagnoseResult_.instanceId = diagnoseResultNode["InstanceId"].asString(); - if(!diagnoseResultNode["UserLevel"].isNull()) - diagnoseResult_.userLevel = diagnoseResultNode["UserLevel"].asString(); if(!diagnoseResultNode["Percent"].isNull()) diagnoseResult_.percent = std::stoi(diagnoseResultNode["Percent"].asString()); - if(!diagnoseResultNode["StartTime"].isNull()) - diagnoseResult_.startTime = std::stoi(diagnoseResultNode["StartTime"].asString()); - if(!diagnoseResultNode["FinishedNumber"].isNull()) - diagnoseResult_.finishedNumber = std::stoi(diagnoseResultNode["FinishedNumber"].asString()); - if(!diagnoseResultNode["BoxType"].isNull()) - diagnoseResult_.boxType = diagnoseResultNode["BoxType"].asString(); - if(!diagnoseResultNode["StoreType"].isNull()) - diagnoseResult_.storeType = diagnoseResultNode["StoreType"].asString(); - if(!diagnoseResultNode["MonitorVersion"].isNull()) - diagnoseResult_.monitorVersion = diagnoseResultNode["MonitorVersion"].asString(); - if(!diagnoseResultNode["UId"].isNull()) - diagnoseResult_.uId = diagnoseResultNode["UId"].asString(); - if(!diagnoseResultNode["ReportSLSSuccess"].isNull()) - diagnoseResult_.reportSLSSuccess = std::stoi(diagnoseResultNode["ReportSLSSuccess"].asString()); - if(!diagnoseResultNode["State"].isNull()) - diagnoseResult_.state = diagnoseResultNode["State"].asString(); - if(!diagnoseResultNode["DiagnoseId"].isNull()) - diagnoseResult_.diagnoseId = diagnoseResultNode["DiagnoseId"].asString(); - if(!diagnoseResultNode["TotalNumber"].isNull()) - diagnoseResult_.totalNumber = std::stoi(diagnoseResultNode["TotalNumber"].asString()); - if(!diagnoseResultNode["BoxVersion"].isNull()) - diagnoseResult_.boxVersion = diagnoseResultNode["BoxVersion"].asString(); if(!diagnoseResultNode["SN"].isNull()) diagnoseResult_.sN = diagnoseResultNode["SN"].asString(); + if(!diagnoseResultNode["DiagnoseId"].isNull()) + diagnoseResult_.diagnoseId = diagnoseResultNode["DiagnoseId"].asString(); + if(!diagnoseResultNode["State"].isNull()) + diagnoseResult_.state = diagnoseResultNode["State"].asString(); + if(!diagnoseResultNode["UserLevel"].isNull()) + diagnoseResult_.userLevel = diagnoseResultNode["UserLevel"].asString(); + if(!diagnoseResultNode["BoxVersion"].isNull()) + diagnoseResult_.boxVersion = diagnoseResultNode["BoxVersion"].asString(); + if(!diagnoseResultNode["InstanceId"].isNull()) + diagnoseResult_.instanceId = diagnoseResultNode["InstanceId"].asString(); + if(!diagnoseResultNode["BoxType"].isNull()) + diagnoseResult_.boxType = diagnoseResultNode["BoxType"].asString(); + if(!diagnoseResultNode["MonitorVersion"].isNull()) + diagnoseResult_.monitorVersion = diagnoseResultNode["MonitorVersion"].asString(); + if(!diagnoseResultNode["FinishedNumber"].isNull()) + diagnoseResult_.finishedNumber = std::stoi(diagnoseResultNode["FinishedNumber"].asString()); + if(!diagnoseResultNode["UId"].isNull()) + diagnoseResult_.uId = diagnoseResultNode["UId"].asString(); + if(!diagnoseResultNode["EndTime"].isNull()) + diagnoseResult_.endTime = std::stoi(diagnoseResultNode["EndTime"].asString()); + if(!diagnoseResultNode["StartTime"].isNull()) + diagnoseResult_.startTime = std::stoi(diagnoseResultNode["StartTime"].asString()); + if(!diagnoseResultNode["Parameters"].isNull()) + diagnoseResult_.parameters = diagnoseResultNode["Parameters"].asString(); + if(!diagnoseResultNode["StoreType"].isNull()) + diagnoseResult_.storeType = diagnoseResultNode["StoreType"].asString(); + if(!diagnoseResultNode["ReportSLSSuccess"].isNull()) + diagnoseResult_.reportSLSSuccess = std::stoi(diagnoseResultNode["ReportSLSSuccess"].asString()); + if(!diagnoseResultNode["TotalNumber"].isNull()) + diagnoseResult_.totalNumber = std::stoi(diagnoseResultNode["TotalNumber"].asString()); auto allDetailsNode = diagnoseResultNode["Details"]["Detail"]; for (auto diagnoseResultNodeDetailsDetail : allDetailsNode) { @@ -94,59 +94,59 @@ void DiscribeSmartAccessGatewayDiagnosisReportResult::parse(const std::string &p itemsObject.itemName = diagnoseResultNodeDetailsDetailItemsItem["ItemName"].asString(); if(!diagnoseResultNodeDetailsDetailItemsItem["Level"].isNull()) itemsObject.level = diagnoseResultNodeDetailsDetailItemsItem["Level"].asString(); - auto eNNode = value["EN"]; - if(!eNNode["ItemLevel"].isNull()) - itemsObject.eN.itemLevel = eNNode["ItemLevel"].asString(); - if(!eNNode["ItemType"].isNull()) - itemsObject.eN.itemType = eNNode["ItemType"].asString(); - if(!eNNode["ItemName"].isNull()) - itemsObject.eN.itemName = eNNode["ItemName"].asString(); - auto allDetails2 = eNNode["Details"]["Detail"]; - for (auto value : allDetails2) - itemsObject.eN.details2.push_back(value.asString()); - auto allAdvice = eNNode["Advice"]["Advice"]; - for (auto value : allAdvice) - itemsObject.eN.advice.push_back(value.asString()); auto cNNode = value["CN"]; + if(!cNNode["ItemName"].isNull()) + itemsObject.cN.itemName = cNNode["ItemName"].asString(); if(!cNNode["ItemLevel"].isNull()) itemsObject.cN.itemLevel = cNNode["ItemLevel"].asString(); if(!cNNode["ItemType"].isNull()) itemsObject.cN.itemType = cNNode["ItemType"].asString(); - if(!cNNode["ItemName"].isNull()) - itemsObject.cN.itemName = cNNode["ItemName"].asString(); - auto allDetails3 = cNNode["Details"]["Detail"]; - for (auto value : allDetails3) - itemsObject.cN.details3.push_back(value.asString()); - auto allAdvice4 = cNNode["Advice"]["Advice"]; - for (auto value : allAdvice4) - itemsObject.cN.advice4.push_back(value.asString()); + auto allAdvice = cNNode["Advice"]["Advice"]; + for (auto value : allAdvice) + itemsObject.cN.advice.push_back(value.asString()); + auto allDetails2 = cNNode["Details"]["Detail"]; + for (auto value : allDetails2) + itemsObject.cN.details2.push_back(value.asString()); + auto eNNode = value["EN"]; + if(!eNNode["ItemName"].isNull()) + itemsObject.eN.itemName = eNNode["ItemName"].asString(); + if(!eNNode["ItemLevel"].isNull()) + itemsObject.eN.itemLevel = eNNode["ItemLevel"].asString(); + if(!eNNode["ItemType"].isNull()) + itemsObject.eN.itemType = eNNode["ItemType"].asString(); + auto allAdvice3 = eNNode["Advice"]["Advice"]; + for (auto value : allAdvice3) + itemsObject.eN.advice3.push_back(value.asString()); + auto allDetails4 = eNNode["Details"]["Detail"]; + for (auto value : allDetails4) + itemsObject.eN.details4.push_back(value.asString()); detailObject.items.push_back(itemsObject); } auto statistics1Node = value["Statistics"]; if(!statistics1Node["Warning"].isNull()) detailObject.statistics1.warning = std::stoi(statistics1Node["Warning"].asString()); - if(!statistics1Node["Total"].isNull()) - detailObject.statistics1.total = std::stoi(statistics1Node["Total"].asString()); if(!statistics1Node["Error"].isNull()) detailObject.statistics1.error = std::stoi(statistics1Node["Error"].asString()); + if(!statistics1Node["Total"].isNull()) + detailObject.statistics1.total = std::stoi(statistics1Node["Total"].asString()); if(!statistics1Node["Info"].isNull()) detailObject.statistics1.info = std::stoi(statistics1Node["Info"].asString()); diagnoseResult_.details.push_back(detailObject); } auto levelNode = diagnoseResultNode["Level"]; - if(!levelNode["Biz"].isNull()) - diagnoseResult_.level.biz = levelNode["Biz"].asString(); if(!levelNode["Configuration"].isNull()) diagnoseResult_.level.configuration = levelNode["Configuration"].asString(); if(!levelNode["Total"].isNull()) diagnoseResult_.level.total = levelNode["Total"].asString(); + if(!levelNode["Biz"].isNull()) + diagnoseResult_.level.biz = levelNode["Biz"].asString(); auto statisticsNode = diagnoseResultNode["Statistics"]; if(!statisticsNode["Warning"].isNull()) diagnoseResult_.statistics.warning = std::stoi(statisticsNode["Warning"].asString()); - if(!statisticsNode["Total"].isNull()) - diagnoseResult_.statistics.total = std::stoi(statisticsNode["Total"].asString()); if(!statisticsNode["Error"].isNull()) diagnoseResult_.statistics.error = std::stoi(statisticsNode["Error"].asString()); + if(!statisticsNode["Total"].isNull()) + diagnoseResult_.statistics.total = std::stoi(statisticsNode["Total"].asString()); if(!statisticsNode["Info"].isNull()) diagnoseResult_.statistics.info = std::stoi(statisticsNode["Info"].asString()); diff --git a/smartag/src/model/DowngradeSmartAccessGatewayRequest.cc b/smartag/src/model/DowngradeSmartAccessGatewayRequest.cc index d6db15c1b..89d5c8d7c 100644 --- a/smartag/src/model/DowngradeSmartAccessGatewayRequest.cc +++ b/smartag/src/model/DowngradeSmartAccessGatewayRequest.cc @@ -1,139 +1,117 @@ /* * 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::Smartag::Model::DowngradeSmartAccessGatewayRequest; - -DowngradeSmartAccessGatewayRequest::DowngradeSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DowngradeSmartAccessGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -DowngradeSmartAccessGatewayRequest::~DowngradeSmartAccessGatewayRequest() -{} - -long DowngradeSmartAccessGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DowngradeSmartAccessGatewayRequest; + +DowngradeSmartAccessGatewayRequest::DowngradeSmartAccessGatewayRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DowngradeSmartAccessGateway") { + setMethod(HttpRequest::Method::Post); } -void DowngradeSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DowngradeSmartAccessGatewayRequest::~DowngradeSmartAccessGatewayRequest() {} + +long DowngradeSmartAccessGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long DowngradeSmartAccessGatewayRequest::getBandWidthSpec()const -{ - return bandWidthSpec_; +void DowngradeSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DowngradeSmartAccessGatewayRequest::setBandWidthSpec(long bandWidthSpec) -{ - bandWidthSpec_ = bandWidthSpec; - setParameter("BandWidthSpec", std::to_string(bandWidthSpec)); +long DowngradeSmartAccessGatewayRequest::getBandWidthSpec() const { + return bandWidthSpec_; } -std::string DowngradeSmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; +void DowngradeSmartAccessGatewayRequest::setBandWidthSpec(long bandWidthSpec) { + bandWidthSpec_ = bandWidthSpec; + setParameter(std::string("BandWidthSpec"), std::to_string(bandWidthSpec)); } -void DowngradeSmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DowngradeSmartAccessGatewayRequest::getRegionId() const { + return regionId_; } -int DowngradeSmartAccessGatewayRequest::getUserCount()const -{ - return userCount_; +void DowngradeSmartAccessGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DowngradeSmartAccessGatewayRequest::setUserCount(int userCount) -{ - userCount_ = userCount; - setParameter("UserCount", std::to_string(userCount)); +int DowngradeSmartAccessGatewayRequest::getUserCount() const { + return userCount_; } -bool DowngradeSmartAccessGatewayRequest::getAutoPay()const -{ - return autoPay_; +void DowngradeSmartAccessGatewayRequest::setUserCount(int userCount) { + userCount_ = userCount; + setParameter(std::string("UserCount"), std::to_string(userCount)); } -void DowngradeSmartAccessGatewayRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool DowngradeSmartAccessGatewayRequest::getAutoPay() const { + return autoPay_; } -std::string DowngradeSmartAccessGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DowngradeSmartAccessGatewayRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void DowngradeSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DowngradeSmartAccessGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DowngradeSmartAccessGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DowngradeSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DowngradeSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DowngradeSmartAccessGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long DowngradeSmartAccessGatewayRequest::getOwnerId()const -{ - return ownerId_; +void DowngradeSmartAccessGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DowngradeSmartAccessGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DowngradeSmartAccessGatewayRequest::getOwnerId() const { + return ownerId_; } -std::string DowngradeSmartAccessGatewayRequest::getSmartAGId()const -{ - return smartAGId_; +void DowngradeSmartAccessGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DowngradeSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DowngradeSmartAccessGatewayRequest::getSmartAGId() const { + return smartAGId_; } -long DowngradeSmartAccessGatewayRequest::getDataPlan()const -{ - return dataPlan_; +void DowngradeSmartAccessGatewayRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DowngradeSmartAccessGatewayRequest::setDataPlan(long dataPlan) -{ - dataPlan_ = dataPlan; - setParameter("DataPlan", std::to_string(dataPlan)); +long DowngradeSmartAccessGatewayRequest::getDataPlan() const { + return dataPlan_; +} + +void DowngradeSmartAccessGatewayRequest::setDataPlan(long dataPlan) { + dataPlan_ = dataPlan; + setParameter(std::string("DataPlan"), std::to_string(dataPlan)); } diff --git a/smartag/src/model/DowngradeSmartAccessGatewaySoftwareRequest.cc b/smartag/src/model/DowngradeSmartAccessGatewaySoftwareRequest.cc index 7b3fd6879..67839388f 100644 --- a/smartag/src/model/DowngradeSmartAccessGatewaySoftwareRequest.cc +++ b/smartag/src/model/DowngradeSmartAccessGatewaySoftwareRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::DowngradeSmartAccessGatewaySoftwareRequest; - -DowngradeSmartAccessGatewaySoftwareRequest::DowngradeSmartAccessGatewaySoftwareRequest() : - RpcServiceRequest("smartag", "2018-03-13", "DowngradeSmartAccessGatewaySoftware") -{ - setMethod(HttpRequest::Method::Post); -} - -DowngradeSmartAccessGatewaySoftwareRequest::~DowngradeSmartAccessGatewaySoftwareRequest() -{} - -long DowngradeSmartAccessGatewaySoftwareRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::DowngradeSmartAccessGatewaySoftwareRequest; + +DowngradeSmartAccessGatewaySoftwareRequest::DowngradeSmartAccessGatewaySoftwareRequest() + : RpcServiceRequest("smartag", "2018-03-13", "DowngradeSmartAccessGatewaySoftware") { + setMethod(HttpRequest::Method::Post); } -void DowngradeSmartAccessGatewaySoftwareRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DowngradeSmartAccessGatewaySoftwareRequest::~DowngradeSmartAccessGatewaySoftwareRequest() {} + +long DowngradeSmartAccessGatewaySoftwareRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DowngradeSmartAccessGatewaySoftwareRequest::getRegionId()const -{ - return regionId_; +void DowngradeSmartAccessGatewaySoftwareRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DowngradeSmartAccessGatewaySoftwareRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DowngradeSmartAccessGatewaySoftwareRequest::getRegionId() const { + return regionId_; } -int DowngradeSmartAccessGatewaySoftwareRequest::getUserCount()const -{ - return userCount_; +void DowngradeSmartAccessGatewaySoftwareRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DowngradeSmartAccessGatewaySoftwareRequest::setUserCount(int userCount) -{ - userCount_ = userCount; - setParameter("UserCount", std::to_string(userCount)); +int DowngradeSmartAccessGatewaySoftwareRequest::getUserCount() const { + return userCount_; } -bool DowngradeSmartAccessGatewaySoftwareRequest::getAutoPay()const -{ - return autoPay_; +void DowngradeSmartAccessGatewaySoftwareRequest::setUserCount(int userCount) { + userCount_ = userCount; + setParameter(std::string("UserCount"), std::to_string(userCount)); } -void DowngradeSmartAccessGatewaySoftwareRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool DowngradeSmartAccessGatewaySoftwareRequest::getAutoPay() const { + return autoPay_; } -std::string DowngradeSmartAccessGatewaySoftwareRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DowngradeSmartAccessGatewaySoftwareRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void DowngradeSmartAccessGatewaySoftwareRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DowngradeSmartAccessGatewaySoftwareRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DowngradeSmartAccessGatewaySoftwareRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DowngradeSmartAccessGatewaySoftwareRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DowngradeSmartAccessGatewaySoftwareRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DowngradeSmartAccessGatewaySoftwareRequest::getOwnerAccount() const { + return ownerAccount_; } -long DowngradeSmartAccessGatewaySoftwareRequest::getOwnerId()const -{ - return ownerId_; +void DowngradeSmartAccessGatewaySoftwareRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DowngradeSmartAccessGatewaySoftwareRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DowngradeSmartAccessGatewaySoftwareRequest::getOwnerId() const { + return ownerId_; } -std::string DowngradeSmartAccessGatewaySoftwareRequest::getSmartAGId()const -{ - return smartAGId_; +void DowngradeSmartAccessGatewaySoftwareRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DowngradeSmartAccessGatewaySoftwareRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string DowngradeSmartAccessGatewaySoftwareRequest::getSmartAGId() const { + return smartAGId_; } -long DowngradeSmartAccessGatewaySoftwareRequest::getDataPlan()const -{ - return dataPlan_; +void DowngradeSmartAccessGatewaySoftwareRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void DowngradeSmartAccessGatewaySoftwareRequest::setDataPlan(long dataPlan) -{ - dataPlan_ = dataPlan; - setParameter("DataPlan", std::to_string(dataPlan)); +long DowngradeSmartAccessGatewaySoftwareRequest::getDataPlan() const { + return dataPlan_; +} + +void DowngradeSmartAccessGatewaySoftwareRequest::setDataPlan(long dataPlan) { + dataPlan_ = dataPlan; + setParameter(std::string("DataPlan"), std::to_string(dataPlan)); } diff --git a/smartag/src/model/EnableSmartAGDpiMonitorRequest.cc b/smartag/src/model/EnableSmartAGDpiMonitorRequest.cc index b2efb7d5f..a22f1d217 100644 --- a/smartag/src/model/EnableSmartAGDpiMonitorRequest.cc +++ b/smartag/src/model/EnableSmartAGDpiMonitorRequest.cc @@ -1,139 +1,117 @@ /* * 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::Smartag::Model::EnableSmartAGDpiMonitorRequest; - -EnableSmartAGDpiMonitorRequest::EnableSmartAGDpiMonitorRequest() : - RpcServiceRequest("smartag", "2018-03-13", "EnableSmartAGDpiMonitor") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableSmartAGDpiMonitorRequest::~EnableSmartAGDpiMonitorRequest() -{} - -std::string EnableSmartAGDpiMonitorRequest::getSlsLogStore()const -{ - return slsLogStore_; + */ + +#include + +using AlibabaCloud::Smartag::Model::EnableSmartAGDpiMonitorRequest; + +EnableSmartAGDpiMonitorRequest::EnableSmartAGDpiMonitorRequest() + : RpcServiceRequest("smartag", "2018-03-13", "EnableSmartAGDpiMonitor") { + setMethod(HttpRequest::Method::Post); } -void EnableSmartAGDpiMonitorRequest::setSlsLogStore(const std::string& slsLogStore) -{ - slsLogStore_ = slsLogStore; - setParameter("SlsLogStore", slsLogStore); +EnableSmartAGDpiMonitorRequest::~EnableSmartAGDpiMonitorRequest() {} + +std::string EnableSmartAGDpiMonitorRequest::getSlsLogStore() const { + return slsLogStore_; } -long EnableSmartAGDpiMonitorRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void EnableSmartAGDpiMonitorRequest::setSlsLogStore(const std::string &slsLogStore) { + slsLogStore_ = slsLogStore; + setParameter(std::string("SlsLogStore"), slsLogStore); } -void EnableSmartAGDpiMonitorRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long EnableSmartAGDpiMonitorRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string EnableSmartAGDpiMonitorRequest::getClientToken()const -{ - return clientToken_; +void EnableSmartAGDpiMonitorRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void EnableSmartAGDpiMonitorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string EnableSmartAGDpiMonitorRequest::getClientToken() const { + return clientToken_; } -std::string EnableSmartAGDpiMonitorRequest::getRegionId()const -{ - return regionId_; +void EnableSmartAGDpiMonitorRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void EnableSmartAGDpiMonitorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string EnableSmartAGDpiMonitorRequest::getRegionId() const { + return regionId_; } -std::string EnableSmartAGDpiMonitorRequest::getSlsProjectName()const -{ - return slsProjectName_; +void EnableSmartAGDpiMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void EnableSmartAGDpiMonitorRequest::setSlsProjectName(const std::string& slsProjectName) -{ - slsProjectName_ = slsProjectName; - setParameter("SlsProjectName", slsProjectName); +std::string EnableSmartAGDpiMonitorRequest::getSlsProjectName() const { + return slsProjectName_; } -bool EnableSmartAGDpiMonitorRequest::getDryRun()const -{ - return dryRun_; +void EnableSmartAGDpiMonitorRequest::setSlsProjectName(const std::string &slsProjectName) { + slsProjectName_ = slsProjectName; + setParameter(std::string("SlsProjectName"), slsProjectName); } -void EnableSmartAGDpiMonitorRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool EnableSmartAGDpiMonitorRequest::getDryRun() const { + return dryRun_; } -std::string EnableSmartAGDpiMonitorRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void EnableSmartAGDpiMonitorRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void EnableSmartAGDpiMonitorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string EnableSmartAGDpiMonitorRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string EnableSmartAGDpiMonitorRequest::getOwnerAccount()const -{ - return ownerAccount_; +void EnableSmartAGDpiMonitorRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void EnableSmartAGDpiMonitorRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string EnableSmartAGDpiMonitorRequest::getOwnerAccount() const { + return ownerAccount_; } -long EnableSmartAGDpiMonitorRequest::getOwnerId()const -{ - return ownerId_; +void EnableSmartAGDpiMonitorRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void EnableSmartAGDpiMonitorRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long EnableSmartAGDpiMonitorRequest::getOwnerId() const { + return ownerId_; } -std::string EnableSmartAGDpiMonitorRequest::getSmartAGId()const -{ - return smartAGId_; +void EnableSmartAGDpiMonitorRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void EnableSmartAGDpiMonitorRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string EnableSmartAGDpiMonitorRequest::getSmartAGId() const { + return smartAGId_; +} + +void EnableSmartAGDpiMonitorRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/EnableSmartAccessGatewayUserRequest.cc b/smartag/src/model/EnableSmartAccessGatewayUserRequest.cc index e07a9ef73..ec58f8961 100644 --- a/smartag/src/model/EnableSmartAccessGatewayUserRequest.cc +++ b/smartag/src/model/EnableSmartAccessGatewayUserRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::EnableSmartAccessGatewayUserRequest; - -EnableSmartAccessGatewayUserRequest::EnableSmartAccessGatewayUserRequest() : - RpcServiceRequest("smartag", "2018-03-13", "EnableSmartAccessGatewayUser") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableSmartAccessGatewayUserRequest::~EnableSmartAccessGatewayUserRequest() -{} - -long EnableSmartAccessGatewayUserRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::EnableSmartAccessGatewayUserRequest; + +EnableSmartAccessGatewayUserRequest::EnableSmartAccessGatewayUserRequest() + : RpcServiceRequest("smartag", "2018-03-13", "EnableSmartAccessGatewayUser") { + setMethod(HttpRequest::Method::Post); } -void EnableSmartAccessGatewayUserRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +EnableSmartAccessGatewayUserRequest::~EnableSmartAccessGatewayUserRequest() {} + +long EnableSmartAccessGatewayUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string EnableSmartAccessGatewayUserRequest::getRegionId()const -{ - return regionId_; +void EnableSmartAccessGatewayUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void EnableSmartAccessGatewayUserRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string EnableSmartAccessGatewayUserRequest::getRegionId() const { + return regionId_; } -std::string EnableSmartAccessGatewayUserRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void EnableSmartAccessGatewayUserRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void EnableSmartAccessGatewayUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string EnableSmartAccessGatewayUserRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string EnableSmartAccessGatewayUserRequest::getOwnerAccount()const -{ - return ownerAccount_; +void EnableSmartAccessGatewayUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void EnableSmartAccessGatewayUserRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string EnableSmartAccessGatewayUserRequest::getOwnerAccount() const { + return ownerAccount_; } -long EnableSmartAccessGatewayUserRequest::getOwnerId()const -{ - return ownerId_; +void EnableSmartAccessGatewayUserRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void EnableSmartAccessGatewayUserRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long EnableSmartAccessGatewayUserRequest::getOwnerId() const { + return ownerId_; } -std::string EnableSmartAccessGatewayUserRequest::getSmartAGId()const -{ - return smartAGId_; +void EnableSmartAccessGatewayUserRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void EnableSmartAccessGatewayUserRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string EnableSmartAccessGatewayUserRequest::getSmartAGId() const { + return smartAGId_; } -std::string EnableSmartAccessGatewayUserRequest::getUserName()const -{ - return userName_; +void EnableSmartAccessGatewayUserRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void EnableSmartAccessGatewayUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string EnableSmartAccessGatewayUserRequest::getUserName() const { + return userName_; +} + +void EnableSmartAccessGatewayUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/smartag/src/model/GetAclAttributeRequest.cc b/smartag/src/model/GetAclAttributeRequest.cc index 876d5feff..daba22430 100644 --- a/smartag/src/model/GetAclAttributeRequest.cc +++ b/smartag/src/model/GetAclAttributeRequest.cc @@ -1,51 +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::Smartag::Model::GetAclAttributeRequest; - -GetAclAttributeRequest::GetAclAttributeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GetAclAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAclAttributeRequest::~GetAclAttributeRequest() -{} - -std::string GetAclAttributeRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::GetAclAttributeRequest; + +GetAclAttributeRequest::GetAclAttributeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "GetAclAttribute") { + setMethod(HttpRequest::Method::Post); } -void GetAclAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +GetAclAttributeRequest::~GetAclAttributeRequest() {} + +std::string GetAclAttributeRequest::getRegionId() const { + return regionId_; } -std::string GetAclAttributeRequest::getAclId()const -{ - return aclId_; +void GetAclAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GetAclAttributeRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string GetAclAttributeRequest::getAclId() const { + return aclId_; +} + +void GetAclAttributeRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } diff --git a/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc b/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc index 22f04d43e..8a516d5ff 100644 --- a/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc +++ b/smartag/src/model/GetCloudConnectNetworkUseLimitRequest.cc @@ -1,84 +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::Smartag::Model::GetCloudConnectNetworkUseLimitRequest; - -GetCloudConnectNetworkUseLimitRequest::GetCloudConnectNetworkUseLimitRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GetCloudConnectNetworkUseLimit") -{ - setMethod(HttpRequest::Method::Post); -} - -GetCloudConnectNetworkUseLimitRequest::~GetCloudConnectNetworkUseLimitRequest() -{} - -long GetCloudConnectNetworkUseLimitRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::GetCloudConnectNetworkUseLimitRequest; + +GetCloudConnectNetworkUseLimitRequest::GetCloudConnectNetworkUseLimitRequest() + : RpcServiceRequest("smartag", "2018-03-13", "GetCloudConnectNetworkUseLimit") { + setMethod(HttpRequest::Method::Post); } -void GetCloudConnectNetworkUseLimitRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetCloudConnectNetworkUseLimitRequest::~GetCloudConnectNetworkUseLimitRequest() {} + +long GetCloudConnectNetworkUseLimitRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetCloudConnectNetworkUseLimitRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetCloudConnectNetworkUseLimitRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetCloudConnectNetworkUseLimitRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetCloudConnectNetworkUseLimitRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GetCloudConnectNetworkUseLimitRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GetCloudConnectNetworkUseLimitRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetCloudConnectNetworkUseLimitRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GetCloudConnectNetworkUseLimitRequest::getOwnerAccount() const { + return ownerAccount_; } -long GetCloudConnectNetworkUseLimitRequest::getOwnerId()const -{ - return ownerId_; +void GetCloudConnectNetworkUseLimitRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GetCloudConnectNetworkUseLimitRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetCloudConnectNetworkUseLimitRequest::getOwnerId() const { + return ownerId_; } -std::string GetCloudConnectNetworkUseLimitRequest::getRegionId()const -{ - return regionId_; +void GetCloudConnectNetworkUseLimitRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetCloudConnectNetworkUseLimitRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GetCloudConnectNetworkUseLimitRequest::getRegionId() const { + return regionId_; +} + +void GetCloudConnectNetworkUseLimitRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/smartag/src/model/GetQosAttributeRequest.cc b/smartag/src/model/GetQosAttributeRequest.cc index 8565fc37d..bb9578ed1 100644 --- a/smartag/src/model/GetQosAttributeRequest.cc +++ b/smartag/src/model/GetQosAttributeRequest.cc @@ -1,51 +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::Smartag::Model::GetQosAttributeRequest; - -GetQosAttributeRequest::GetQosAttributeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GetQosAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -GetQosAttributeRequest::~GetQosAttributeRequest() -{} - -std::string GetQosAttributeRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::GetQosAttributeRequest; + +GetQosAttributeRequest::GetQosAttributeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "GetQosAttribute") { + setMethod(HttpRequest::Method::Post); } -void GetQosAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +GetQosAttributeRequest::~GetQosAttributeRequest() {} + +std::string GetQosAttributeRequest::getRegionId() const { + return regionId_; } -std::string GetQosAttributeRequest::getQosId()const -{ - return qosId_; +void GetQosAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GetQosAttributeRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string GetQosAttributeRequest::getQosId() const { + return qosId_; +} + +void GetQosAttributeRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } diff --git a/smartag/src/model/GetQosAttributeResult.cc b/smartag/src/model/GetQosAttributeResult.cc index 0c2da3dcc..bc1a14404 100644 --- a/smartag/src/model/GetQosAttributeResult.cc +++ b/smartag/src/model/GetQosAttributeResult.cc @@ -43,52 +43,52 @@ void GetQosAttributeResult::parse(const std::string &payload) for (auto valueQosPoliciesQosPolicy : allQosPoliciesNode) { QosPolicy qosPoliciesObject; - if(!valueQosPoliciesQosPolicy["DestCidr"].isNull()) - qosPoliciesObject.destCidr = valueQosPoliciesQosPolicy["DestCidr"].asString(); - if(!valueQosPoliciesQosPolicy["SourcePortRange"].isNull()) - qosPoliciesObject.sourcePortRange = valueQosPoliciesQosPolicy["SourcePortRange"].asString(); if(!valueQosPoliciesQosPolicy["EndTime"].isNull()) qosPoliciesObject.endTime = std::stol(valueQosPoliciesQosPolicy["EndTime"].asString()); - if(!valueQosPoliciesQosPolicy["SourceCidr"].isNull()) - qosPoliciesObject.sourceCidr = valueQosPoliciesQosPolicy["SourceCidr"].asString(); - if(!valueQosPoliciesQosPolicy["Priority"].isNull()) - qosPoliciesObject.priority = std::stoi(valueQosPoliciesQosPolicy["Priority"].asString()); - if(!valueQosPoliciesQosPolicy["QosPolicieName"].isNull()) - qosPoliciesObject.qosPolicieName = valueQosPoliciesQosPolicy["QosPolicieName"].asString(); - if(!valueQosPoliciesQosPolicy["QosPolicieDescription"].isNull()) - qosPoliciesObject.qosPolicieDescription = valueQosPoliciesQosPolicy["QosPolicieDescription"].asString(); if(!valueQosPoliciesQosPolicy["StartTime"].isNull()) qosPoliciesObject.startTime = std::stol(valueQosPoliciesQosPolicy["StartTime"].asString()); - if(!valueQosPoliciesQosPolicy["IpProtocol"].isNull()) - qosPoliciesObject.ipProtocol = valueQosPoliciesQosPolicy["IpProtocol"].asString(); + if(!valueQosPoliciesQosPolicy["DestCidr"].isNull()) + qosPoliciesObject.destCidr = valueQosPoliciesQosPolicy["DestCidr"].asString(); if(!valueQosPoliciesQosPolicy["DestPortRange"].isNull()) qosPoliciesObject.destPortRange = valueQosPoliciesQosPolicy["DestPortRange"].asString(); + if(!valueQosPoliciesQosPolicy["IpProtocol"].isNull()) + qosPoliciesObject.ipProtocol = valueQosPoliciesQosPolicy["IpProtocol"].asString(); + if(!valueQosPoliciesQosPolicy["Priority"].isNull()) + qosPoliciesObject.priority = std::stoi(valueQosPoliciesQosPolicy["Priority"].asString()); + if(!valueQosPoliciesQosPolicy["QosPolicieDescription"].isNull()) + qosPoliciesObject.qosPolicieDescription = valueQosPoliciesQosPolicy["QosPolicieDescription"].asString(); + if(!valueQosPoliciesQosPolicy["SourceCidr"].isNull()) + qosPoliciesObject.sourceCidr = valueQosPoliciesQosPolicy["SourceCidr"].asString(); + if(!valueQosPoliciesQosPolicy["QosPolicieName"].isNull()) + qosPoliciesObject.qosPolicieName = valueQosPoliciesQosPolicy["QosPolicieName"].asString(); + if(!valueQosPoliciesQosPolicy["SourcePortRange"].isNull()) + qosPoliciesObject.sourcePortRange = valueQosPoliciesQosPolicy["SourcePortRange"].asString(); qosPolicies_.push_back(qosPoliciesObject); } auto allQosCarsNode = value["QosCars"]["QosCar"]; for (auto valueQosCarsQosCar : allQosCarsNode) { QosCar qosCarsObject; - if(!valueQosCarsQosCar["MinBandwidthAbs"].isNull()) - qosCarsObject.minBandwidthAbs = std::stoi(valueQosCarsQosCar["MinBandwidthAbs"].asString()); - if(!valueQosCarsQosCar["QosCarId"].isNull()) - qosCarsObject.qosCarId = valueQosCarsQosCar["QosCarId"].asString(); - if(!valueQosCarsQosCar["Priority"].isNull()) - qosCarsObject.priority = std::stoi(valueQosCarsQosCar["Priority"].asString()); - if(!valueQosCarsQosCar["QosCarDescription"].isNull()) - qosCarsObject.qosCarDescription = valueQosCarsQosCar["QosCarDescription"].asString(); - if(!valueQosCarsQosCar["MaxBandwidthPercent"].isNull()) - qosCarsObject.maxBandwidthPercent = std::stoi(valueQosCarsQosCar["MaxBandwidthPercent"].asString()); if(!valueQosCarsQosCar["MaxBandwidthAbs"].isNull()) qosCarsObject.maxBandwidthAbs = std::stoi(valueQosCarsQosCar["MaxBandwidthAbs"].asString()); if(!valueQosCarsQosCar["QosCarName"].isNull()) qosCarsObject.qosCarName = valueQosCarsQosCar["QosCarName"].asString(); if(!valueQosCarsQosCar["PercentSourceType"].isNull()) qosCarsObject.percentSourceType = valueQosCarsQosCar["PercentSourceType"].asString(); - if(!valueQosCarsQosCar["MinBandwidthPercent"].isNull()) - qosCarsObject.minBandwidthPercent = std::stoi(valueQosCarsQosCar["MinBandwidthPercent"].asString()); + if(!valueQosCarsQosCar["MinBandwidthAbs"].isNull()) + qosCarsObject.minBandwidthAbs = std::stoi(valueQosCarsQosCar["MinBandwidthAbs"].asString()); + if(!valueQosCarsQosCar["MaxBandwidthPercent"].isNull()) + qosCarsObject.maxBandwidthPercent = std::stoi(valueQosCarsQosCar["MaxBandwidthPercent"].asString()); + if(!valueQosCarsQosCar["QosCarDescription"].isNull()) + qosCarsObject.qosCarDescription = valueQosCarsQosCar["QosCarDescription"].asString(); if(!valueQosCarsQosCar["LimitType"].isNull()) qosCarsObject.limitType = valueQosCarsQosCar["LimitType"].asString(); + if(!valueQosCarsQosCar["Priority"].isNull()) + qosCarsObject.priority = std::stoi(valueQosCarsQosCar["Priority"].asString()); + if(!valueQosCarsQosCar["MinBandwidthPercent"].isNull()) + qosCarsObject.minBandwidthPercent = std::stoi(valueQosCarsQosCar["MinBandwidthPercent"].asString()); + if(!valueQosCarsQosCar["QosCarId"].isNull()) + qosCarsObject.qosCarId = valueQosCarsQosCar["QosCarId"].asString(); qosCars_.push_back(qosCarsObject); } if(!value["ErrorConfigSmartAGCount"].isNull()) diff --git a/smartag/src/model/GetSmartAGDpiAttributeRequest.cc b/smartag/src/model/GetSmartAGDpiAttributeRequest.cc index 371289265..87fef552b 100644 --- a/smartag/src/model/GetSmartAGDpiAttributeRequest.cc +++ b/smartag/src/model/GetSmartAGDpiAttributeRequest.cc @@ -1,95 +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::Smartag::Model::GetSmartAGDpiAttributeRequest; - -GetSmartAGDpiAttributeRequest::GetSmartAGDpiAttributeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GetSmartAGDpiAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -GetSmartAGDpiAttributeRequest::~GetSmartAGDpiAttributeRequest() -{} - -long GetSmartAGDpiAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::GetSmartAGDpiAttributeRequest; + +GetSmartAGDpiAttributeRequest::GetSmartAGDpiAttributeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "GetSmartAGDpiAttribute") { + setMethod(HttpRequest::Method::Post); } -void GetSmartAGDpiAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetSmartAGDpiAttributeRequest::~GetSmartAGDpiAttributeRequest() {} + +long GetSmartAGDpiAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetSmartAGDpiAttributeRequest::getRegionId()const -{ - return regionId_; +void GetSmartAGDpiAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetSmartAGDpiAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GetSmartAGDpiAttributeRequest::getRegionId() const { + return regionId_; } -std::string GetSmartAGDpiAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetSmartAGDpiAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GetSmartAGDpiAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetSmartAGDpiAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GetSmartAGDpiAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GetSmartAGDpiAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetSmartAGDpiAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GetSmartAGDpiAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long GetSmartAGDpiAttributeRequest::getOwnerId()const -{ - return ownerId_; +void GetSmartAGDpiAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GetSmartAGDpiAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetSmartAGDpiAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string GetSmartAGDpiAttributeRequest::getSmartAGId()const -{ - return smartAGId_; +void GetSmartAGDpiAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetSmartAGDpiAttributeRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string GetSmartAGDpiAttributeRequest::getSmartAGId() const { + return smartAGId_; +} + +void GetSmartAGDpiAttributeRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc b/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc index d7541c0f3..ecc94e661 100644 --- a/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc +++ b/smartag/src/model/GetSmartAccessGatewayUseLimitRequest.cc @@ -1,84 +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::Smartag::Model::GetSmartAccessGatewayUseLimitRequest; - -GetSmartAccessGatewayUseLimitRequest::GetSmartAccessGatewayUseLimitRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GetSmartAccessGatewayUseLimit") -{ - setMethod(HttpRequest::Method::Post); -} - -GetSmartAccessGatewayUseLimitRequest::~GetSmartAccessGatewayUseLimitRequest() -{} - -long GetSmartAccessGatewayUseLimitRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::GetSmartAccessGatewayUseLimitRequest; + +GetSmartAccessGatewayUseLimitRequest::GetSmartAccessGatewayUseLimitRequest() + : RpcServiceRequest("smartag", "2018-03-13", "GetSmartAccessGatewayUseLimit") { + setMethod(HttpRequest::Method::Post); } -void GetSmartAccessGatewayUseLimitRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetSmartAccessGatewayUseLimitRequest::~GetSmartAccessGatewayUseLimitRequest() {} + +long GetSmartAccessGatewayUseLimitRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetSmartAccessGatewayUseLimitRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetSmartAccessGatewayUseLimitRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetSmartAccessGatewayUseLimitRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetSmartAccessGatewayUseLimitRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GetSmartAccessGatewayUseLimitRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GetSmartAccessGatewayUseLimitRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetSmartAccessGatewayUseLimitRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GetSmartAccessGatewayUseLimitRequest::getOwnerAccount() const { + return ownerAccount_; } -long GetSmartAccessGatewayUseLimitRequest::getOwnerId()const -{ - return ownerId_; +void GetSmartAccessGatewayUseLimitRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GetSmartAccessGatewayUseLimitRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetSmartAccessGatewayUseLimitRequest::getOwnerId() const { + return ownerId_; } -std::string GetSmartAccessGatewayUseLimitRequest::getRegionId()const -{ - return regionId_; +void GetSmartAccessGatewayUseLimitRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetSmartAccessGatewayUseLimitRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GetSmartAccessGatewayUseLimitRequest::getRegionId() const { + return regionId_; +} + +void GetSmartAccessGatewayUseLimitRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/smartag/src/model/GrantInstanceToCbnRequest.cc b/smartag/src/model/GrantInstanceToCbnRequest.cc index 5e918cebb..973a1d9d6 100644 --- a/smartag/src/model/GrantInstanceToCbnRequest.cc +++ b/smartag/src/model/GrantInstanceToCbnRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::GrantInstanceToCbnRequest; - -GrantInstanceToCbnRequest::GrantInstanceToCbnRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GrantInstanceToCbn") -{ - setMethod(HttpRequest::Method::Post); -} - -GrantInstanceToCbnRequest::~GrantInstanceToCbnRequest() -{} - -long GrantInstanceToCbnRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::GrantInstanceToCbnRequest; + +GrantInstanceToCbnRequest::GrantInstanceToCbnRequest() + : RpcServiceRequest("smartag", "2018-03-13", "GrantInstanceToCbn") { + setMethod(HttpRequest::Method::Post); } -void GrantInstanceToCbnRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GrantInstanceToCbnRequest::~GrantInstanceToCbnRequest() {} + +long GrantInstanceToCbnRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GrantInstanceToCbnRequest::getRegionId()const -{ - return regionId_; +void GrantInstanceToCbnRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GrantInstanceToCbnRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GrantInstanceToCbnRequest::getRegionId() const { + return regionId_; } -std::string GrantInstanceToCbnRequest::getCcnInstanceId()const -{ - return ccnInstanceId_; +void GrantInstanceToCbnRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GrantInstanceToCbnRequest::setCcnInstanceId(const std::string& ccnInstanceId) -{ - ccnInstanceId_ = ccnInstanceId; - setParameter("CcnInstanceId", ccnInstanceId); +std::string GrantInstanceToCbnRequest::getCcnInstanceId() const { + return ccnInstanceId_; } -bool GrantInstanceToCbnRequest::getGrantTrafficService()const -{ - return grantTrafficService_; +void GrantInstanceToCbnRequest::setCcnInstanceId(const std::string &ccnInstanceId) { + ccnInstanceId_ = ccnInstanceId; + setParameter(std::string("CcnInstanceId"), ccnInstanceId); } -void GrantInstanceToCbnRequest::setGrantTrafficService(bool grantTrafficService) -{ - grantTrafficService_ = grantTrafficService; - setParameter("GrantTrafficService", grantTrafficService ? "true" : "false"); +bool GrantInstanceToCbnRequest::getGrantTrafficService() const { + return grantTrafficService_; } -std::string GrantInstanceToCbnRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GrantInstanceToCbnRequest::setGrantTrafficService(bool grantTrafficService) { + grantTrafficService_ = grantTrafficService; + setParameter(std::string("GrantTrafficService"), grantTrafficService ? "true" : "false"); } -void GrantInstanceToCbnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GrantInstanceToCbnRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GrantInstanceToCbnRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GrantInstanceToCbnRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GrantInstanceToCbnRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GrantInstanceToCbnRequest::getOwnerAccount() const { + return ownerAccount_; } -long GrantInstanceToCbnRequest::getOwnerId()const -{ - return ownerId_; +void GrantInstanceToCbnRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GrantInstanceToCbnRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GrantInstanceToCbnRequest::getOwnerId() const { + return ownerId_; } -long GrantInstanceToCbnRequest::getCenUid()const -{ - return cenUid_; +void GrantInstanceToCbnRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GrantInstanceToCbnRequest::setCenUid(long cenUid) -{ - cenUid_ = cenUid; - setParameter("CenUid", std::to_string(cenUid)); +long GrantInstanceToCbnRequest::getCenUid() const { + return cenUid_; } -std::string GrantInstanceToCbnRequest::getCenInstanceId()const -{ - return cenInstanceId_; +void GrantInstanceToCbnRequest::setCenUid(long cenUid) { + cenUid_ = cenUid; + setParameter(std::string("CenUid"), std::to_string(cenUid)); } -void GrantInstanceToCbnRequest::setCenInstanceId(const std::string& cenInstanceId) -{ - cenInstanceId_ = cenInstanceId; - setParameter("CenInstanceId", cenInstanceId); +std::string GrantInstanceToCbnRequest::getCenInstanceId() const { + return cenInstanceId_; +} + +void GrantInstanceToCbnRequest::setCenInstanceId(const std::string &cenInstanceId) { + cenInstanceId_ = cenInstanceId; + setParameter(std::string("CenInstanceId"), cenInstanceId); } diff --git a/smartag/src/model/GrantSagInstanceToCcnRequest.cc b/smartag/src/model/GrantSagInstanceToCcnRequest.cc index 0acc0ce2a..6c8fb9800 100644 --- a/smartag/src/model/GrantSagInstanceToCcnRequest.cc +++ b/smartag/src/model/GrantSagInstanceToCcnRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::GrantSagInstanceToCcnRequest; - -GrantSagInstanceToCcnRequest::GrantSagInstanceToCcnRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GrantSagInstanceToCcn") -{ - setMethod(HttpRequest::Method::Post); -} - -GrantSagInstanceToCcnRequest::~GrantSagInstanceToCcnRequest() -{} - -long GrantSagInstanceToCcnRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::GrantSagInstanceToCcnRequest; + +GrantSagInstanceToCcnRequest::GrantSagInstanceToCcnRequest() + : RpcServiceRequest("smartag", "2018-03-13", "GrantSagInstanceToCcn") { + setMethod(HttpRequest::Method::Post); } -void GrantSagInstanceToCcnRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GrantSagInstanceToCcnRequest::~GrantSagInstanceToCcnRequest() {} + +long GrantSagInstanceToCcnRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long GrantSagInstanceToCcnRequest::getCcnUid()const -{ - return ccnUid_; +void GrantSagInstanceToCcnRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GrantSagInstanceToCcnRequest::setCcnUid(long ccnUid) -{ - ccnUid_ = ccnUid; - setParameter("CcnUid", std::to_string(ccnUid)); +long GrantSagInstanceToCcnRequest::getCcnUid() const { + return ccnUid_; } -std::string GrantSagInstanceToCcnRequest::getRegionId()const -{ - return regionId_; +void GrantSagInstanceToCcnRequest::setCcnUid(long ccnUid) { + ccnUid_ = ccnUid; + setParameter(std::string("CcnUid"), std::to_string(ccnUid)); } -void GrantSagInstanceToCcnRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GrantSagInstanceToCcnRequest::getRegionId() const { + return regionId_; } -std::string GrantSagInstanceToCcnRequest::getCcnInstanceId()const -{ - return ccnInstanceId_; +void GrantSagInstanceToCcnRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GrantSagInstanceToCcnRequest::setCcnInstanceId(const std::string& ccnInstanceId) -{ - ccnInstanceId_ = ccnInstanceId; - setParameter("CcnInstanceId", ccnInstanceId); +std::string GrantSagInstanceToCcnRequest::getCcnInstanceId() const { + return ccnInstanceId_; } -bool GrantSagInstanceToCcnRequest::getGrantTrafficService()const -{ - return grantTrafficService_; +void GrantSagInstanceToCcnRequest::setCcnInstanceId(const std::string &ccnInstanceId) { + ccnInstanceId_ = ccnInstanceId; + setParameter(std::string("CcnInstanceId"), ccnInstanceId); } -void GrantSagInstanceToCcnRequest::setGrantTrafficService(bool grantTrafficService) -{ - grantTrafficService_ = grantTrafficService; - setParameter("GrantTrafficService", grantTrafficService ? "true" : "false"); +bool GrantSagInstanceToCcnRequest::getGrantTrafficService() const { + return grantTrafficService_; } -std::string GrantSagInstanceToCcnRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GrantSagInstanceToCcnRequest::setGrantTrafficService(bool grantTrafficService) { + grantTrafficService_ = grantTrafficService; + setParameter(std::string("GrantTrafficService"), grantTrafficService ? "true" : "false"); } -void GrantSagInstanceToCcnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GrantSagInstanceToCcnRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GrantSagInstanceToCcnRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GrantSagInstanceToCcnRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GrantSagInstanceToCcnRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GrantSagInstanceToCcnRequest::getOwnerAccount() const { + return ownerAccount_; } -long GrantSagInstanceToCcnRequest::getOwnerId()const -{ - return ownerId_; +void GrantSagInstanceToCcnRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GrantSagInstanceToCcnRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GrantSagInstanceToCcnRequest::getOwnerId() const { + return ownerId_; } -std::string GrantSagInstanceToCcnRequest::getSmartAGId()const -{ - return smartAGId_; +void GrantSagInstanceToCcnRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GrantSagInstanceToCcnRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string GrantSagInstanceToCcnRequest::getSmartAGId() const { + return smartAGId_; +} + +void GrantSagInstanceToCcnRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/GrantSagInstanceToVbrRequest.cc b/smartag/src/model/GrantSagInstanceToVbrRequest.cc index 7e4ee1668..fd423d71d 100644 --- a/smartag/src/model/GrantSagInstanceToVbrRequest.cc +++ b/smartag/src/model/GrantSagInstanceToVbrRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::GrantSagInstanceToVbrRequest; - -GrantSagInstanceToVbrRequest::GrantSagInstanceToVbrRequest() : - RpcServiceRequest("smartag", "2018-03-13", "GrantSagInstanceToVbr") -{ - setMethod(HttpRequest::Method::Post); -} - -GrantSagInstanceToVbrRequest::~GrantSagInstanceToVbrRequest() -{} - -long GrantSagInstanceToVbrRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::GrantSagInstanceToVbrRequest; + +GrantSagInstanceToVbrRequest::GrantSagInstanceToVbrRequest() + : RpcServiceRequest("smartag", "2018-03-13", "GrantSagInstanceToVbr") { + setMethod(HttpRequest::Method::Post); } -void GrantSagInstanceToVbrRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GrantSagInstanceToVbrRequest::~GrantSagInstanceToVbrRequest() {} + +long GrantSagInstanceToVbrRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GrantSagInstanceToVbrRequest::getVbrRegionId()const -{ - return vbrRegionId_; +void GrantSagInstanceToVbrRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GrantSagInstanceToVbrRequest::setVbrRegionId(const std::string& vbrRegionId) -{ - vbrRegionId_ = vbrRegionId; - setParameter("VbrRegionId", vbrRegionId); +std::string GrantSagInstanceToVbrRequest::getVbrRegionId() const { + return vbrRegionId_; } -std::string GrantSagInstanceToVbrRequest::getRegionId()const -{ - return regionId_; +void GrantSagInstanceToVbrRequest::setVbrRegionId(const std::string &vbrRegionId) { + vbrRegionId_ = vbrRegionId; + setParameter(std::string("VbrRegionId"), vbrRegionId); } -void GrantSagInstanceToVbrRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GrantSagInstanceToVbrRequest::getRegionId() const { + return regionId_; } -std::string GrantSagInstanceToVbrRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GrantSagInstanceToVbrRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GrantSagInstanceToVbrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GrantSagInstanceToVbrRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GrantSagInstanceToVbrRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GrantSagInstanceToVbrRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GrantSagInstanceToVbrRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GrantSagInstanceToVbrRequest::getOwnerAccount() const { + return ownerAccount_; } -long GrantSagInstanceToVbrRequest::getOwnerId()const -{ - return ownerId_; +void GrantSagInstanceToVbrRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GrantSagInstanceToVbrRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GrantSagInstanceToVbrRequest::getOwnerId() const { + return ownerId_; } -std::string GrantSagInstanceToVbrRequest::getVbrInstanceId()const -{ - return vbrInstanceId_; +void GrantSagInstanceToVbrRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GrantSagInstanceToVbrRequest::setVbrInstanceId(const std::string& vbrInstanceId) -{ - vbrInstanceId_ = vbrInstanceId; - setParameter("VbrInstanceId", vbrInstanceId); +std::string GrantSagInstanceToVbrRequest::getVbrInstanceId() const { + return vbrInstanceId_; } -std::string GrantSagInstanceToVbrRequest::getSmartAGId()const -{ - return smartAGId_; +void GrantSagInstanceToVbrRequest::setVbrInstanceId(const std::string &vbrInstanceId) { + vbrInstanceId_ = vbrInstanceId; + setParameter(std::string("VbrInstanceId"), vbrInstanceId); } -void GrantSagInstanceToVbrRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string GrantSagInstanceToVbrRequest::getSmartAGId() const { + return smartAGId_; } -long GrantSagInstanceToVbrRequest::getVbrUid()const -{ - return vbrUid_; +void GrantSagInstanceToVbrRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void GrantSagInstanceToVbrRequest::setVbrUid(long vbrUid) -{ - vbrUid_ = vbrUid; - setParameter("VbrUid", std::to_string(vbrUid)); +long GrantSagInstanceToVbrRequest::getVbrUid() const { + return vbrUid_; +} + +void GrantSagInstanceToVbrRequest::setVbrUid(long vbrUid) { + vbrUid_ = vbrUid; + setParameter(std::string("VbrUid"), std::to_string(vbrUid)); } diff --git a/smartag/src/model/KickOutClientsRequest.cc b/smartag/src/model/KickOutClientsRequest.cc index a7388d25f..9534d4050 100644 --- a/smartag/src/model/KickOutClientsRequest.cc +++ b/smartag/src/model/KickOutClientsRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::KickOutClientsRequest; - -KickOutClientsRequest::KickOutClientsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "KickOutClients") -{ - setMethod(HttpRequest::Method::Post); -} - -KickOutClientsRequest::~KickOutClientsRequest() -{} - -long KickOutClientsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::KickOutClientsRequest; + +KickOutClientsRequest::KickOutClientsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "KickOutClients") { + setMethod(HttpRequest::Method::Post); } -void KickOutClientsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +KickOutClientsRequest::~KickOutClientsRequest() {} + +long KickOutClientsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string KickOutClientsRequest::getRegionId()const -{ - return regionId_; +void KickOutClientsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void KickOutClientsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string KickOutClientsRequest::getRegionId() const { + return regionId_; } -std::string KickOutClientsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void KickOutClientsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void KickOutClientsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string KickOutClientsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string KickOutClientsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void KickOutClientsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void KickOutClientsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string KickOutClientsRequest::getOwnerAccount() const { + return ownerAccount_; } -long KickOutClientsRequest::getOwnerId()const -{ - return ownerId_; +void KickOutClientsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void KickOutClientsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long KickOutClientsRequest::getOwnerId() const { + return ownerId_; } -std::string KickOutClientsRequest::getSmartAGId()const -{ - return smartAGId_; +void KickOutClientsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void KickOutClientsRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string KickOutClientsRequest::getSmartAGId() const { + return smartAGId_; } -std::string KickOutClientsRequest::getUsername()const -{ - return username_; +void KickOutClientsRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void KickOutClientsRequest::setUsername(const std::string& username) -{ - username_ = username; - setParameter("Username", username); +std::string KickOutClientsRequest::getUsername() const { + return username_; +} + +void KickOutClientsRequest::setUsername(const std::string &username) { + username_ = username; + setParameter(std::string("Username"), username); } diff --git a/smartag/src/model/ListAccessPointNetworkQualitiesRequest.cc b/smartag/src/model/ListAccessPointNetworkQualitiesRequest.cc index d935df1a8..6841a1960 100644 --- a/smartag/src/model/ListAccessPointNetworkQualitiesRequest.cc +++ b/smartag/src/model/ListAccessPointNetworkQualitiesRequest.cc @@ -1,95 +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::Smartag::Model::ListAccessPointNetworkQualitiesRequest; - -ListAccessPointNetworkQualitiesRequest::ListAccessPointNetworkQualitiesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ListAccessPointNetworkQualities") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAccessPointNetworkQualitiesRequest::~ListAccessPointNetworkQualitiesRequest() -{} - -long ListAccessPointNetworkQualitiesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ListAccessPointNetworkQualitiesRequest; + +ListAccessPointNetworkQualitiesRequest::ListAccessPointNetworkQualitiesRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ListAccessPointNetworkQualities") { + setMethod(HttpRequest::Method::Post); } -void ListAccessPointNetworkQualitiesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListAccessPointNetworkQualitiesRequest::~ListAccessPointNetworkQualitiesRequest() {} + +long ListAccessPointNetworkQualitiesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListAccessPointNetworkQualitiesRequest::getRegionId()const -{ - return regionId_; +void ListAccessPointNetworkQualitiesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListAccessPointNetworkQualitiesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListAccessPointNetworkQualitiesRequest::getRegionId() const { + return regionId_; } -std::string ListAccessPointNetworkQualitiesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListAccessPointNetworkQualitiesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListAccessPointNetworkQualitiesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListAccessPointNetworkQualitiesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListAccessPointNetworkQualitiesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListAccessPointNetworkQualitiesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListAccessPointNetworkQualitiesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListAccessPointNetworkQualitiesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListAccessPointNetworkQualitiesRequest::getOwnerId()const -{ - return ownerId_; +void ListAccessPointNetworkQualitiesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListAccessPointNetworkQualitiesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListAccessPointNetworkQualitiesRequest::getOwnerId() const { + return ownerId_; } -std::string ListAccessPointNetworkQualitiesRequest::getSmartAGId()const -{ - return smartAGId_; +void ListAccessPointNetworkQualitiesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListAccessPointNetworkQualitiesRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ListAccessPointNetworkQualitiesRequest::getSmartAGId() const { + return smartAGId_; +} + +void ListAccessPointNetworkQualitiesRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/ListAccessPointNetworkQualitiesResult.cc b/smartag/src/model/ListAccessPointNetworkQualitiesResult.cc index 001f7b6b7..764d3e6be 100644 --- a/smartag/src/model/ListAccessPointNetworkQualitiesResult.cc +++ b/smartag/src/model/ListAccessPointNetworkQualitiesResult.cc @@ -43,10 +43,10 @@ void ListAccessPointNetworkQualitiesResult::parse(const std::string &payload) for (auto valueAccessPointNetworkQualitiesAccessPointNetworkQuality : allAccessPointNetworkQualitiesNode) { AccessPointNetworkQuality accessPointNetworkQualitiesObject; - if(!valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Rtt"].isNull()) - accessPointNetworkQualitiesObject.rtt = valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Rtt"].asString(); if(!valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Loss"].isNull()) accessPointNetworkQualitiesObject.loss = valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Loss"].asString(); + if(!valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Rtt"].isNull()) + accessPointNetworkQualitiesObject.rtt = valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Rtt"].asString(); if(!valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Id"].isNull()) accessPointNetworkQualitiesObject.id = std::stoi(valueAccessPointNetworkQualitiesAccessPointNetworkQuality["Id"].asString()); accessPointNetworkQualities_.push_back(accessPointNetworkQualitiesObject); diff --git a/smartag/src/model/ListAccessPointsRequest.cc b/smartag/src/model/ListAccessPointsRequest.cc index 0e6a40ab3..c3f5571cb 100644 --- a/smartag/src/model/ListAccessPointsRequest.cc +++ b/smartag/src/model/ListAccessPointsRequest.cc @@ -1,117 +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::Smartag::Model::ListAccessPointsRequest; - -ListAccessPointsRequest::ListAccessPointsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ListAccessPoints") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAccessPointsRequest::~ListAccessPointsRequest() -{} - -long ListAccessPointsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ListAccessPointsRequest; + +ListAccessPointsRequest::ListAccessPointsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ListAccessPoints") { + setMethod(HttpRequest::Method::Post); } -void ListAccessPointsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListAccessPointsRequest::~ListAccessPointsRequest() {} + +long ListAccessPointsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int ListAccessPointsRequest::getPageNumber()const -{ - return pageNumber_; +void ListAccessPointsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListAccessPointsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListAccessPointsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListAccessPointsRequest::getRegionId()const -{ - return regionId_; +void ListAccessPointsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListAccessPointsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListAccessPointsRequest::getRegionId() const { + return regionId_; } -int ListAccessPointsRequest::getPageSize()const -{ - return pageSize_; +void ListAccessPointsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListAccessPointsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListAccessPointsRequest::getPageSize() const { + return pageSize_; } -std::string ListAccessPointsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListAccessPointsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListAccessPointsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListAccessPointsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListAccessPointsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListAccessPointsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListAccessPointsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListAccessPointsRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListAccessPointsRequest::getOwnerId()const -{ - return ownerId_; +void ListAccessPointsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListAccessPointsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListAccessPointsRequest::getOwnerId() const { + return ownerId_; } -std::string ListAccessPointsRequest::getSmartAGId()const -{ - return smartAGId_; +void ListAccessPointsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListAccessPointsRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ListAccessPointsRequest::getSmartAGId() const { + return smartAGId_; +} + +void ListAccessPointsRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/ListAccessPointsResult.cc b/smartag/src/model/ListAccessPointsResult.cc index b5ddf7a8d..fa957871c 100644 --- a/smartag/src/model/ListAccessPointsResult.cc +++ b/smartag/src/model/ListAccessPointsResult.cc @@ -43,16 +43,16 @@ void ListAccessPointsResult::parse(const std::string &payload) for (auto valueAccessPointsAccessPoint : allAccessPointsNode) { AccessPoint accessPointsObject; - if(!valueAccessPointsAccessPoint["AccessPointId"].isNull()) - accessPointsObject.accessPointId = std::stoi(valueAccessPointsAccessPoint["AccessPointId"].asString()); - if(!valueAccessPointsAccessPoint["ActiveSmartAGCount"].isNull()) - accessPointsObject.activeSmartAGCount = std::stoi(valueAccessPointsAccessPoint["ActiveSmartAGCount"].asString()); - if(!valueAccessPointsAccessPoint["Latitude"].isNull()) - accessPointsObject.latitude = valueAccessPointsAccessPoint["Latitude"].asString(); - if(!valueAccessPointsAccessPoint["InactiveSmartAGCount"].isNull()) - accessPointsObject.inactiveSmartAGCount = std::stoi(valueAccessPointsAccessPoint["InactiveSmartAGCount"].asString()); if(!valueAccessPointsAccessPoint["Longitude"].isNull()) accessPointsObject.longitude = valueAccessPointsAccessPoint["Longitude"].asString(); + if(!valueAccessPointsAccessPoint["ActiveSmartAGCount"].isNull()) + accessPointsObject.activeSmartAGCount = std::stoi(valueAccessPointsAccessPoint["ActiveSmartAGCount"].asString()); + if(!valueAccessPointsAccessPoint["InactiveSmartAGCount"].isNull()) + accessPointsObject.inactiveSmartAGCount = std::stoi(valueAccessPointsAccessPoint["InactiveSmartAGCount"].asString()); + if(!valueAccessPointsAccessPoint["Latitude"].isNull()) + accessPointsObject.latitude = valueAccessPointsAccessPoint["Latitude"].asString(); + if(!valueAccessPointsAccessPoint["AccessPointId"].isNull()) + accessPointsObject.accessPointId = std::stoi(valueAccessPointsAccessPoint["AccessPointId"].asString()); accessPoints_.push_back(accessPointsObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/ListDpiConfigErrorRequest.cc b/smartag/src/model/ListDpiConfigErrorRequest.cc index 94112eee9..5b05ff1cb 100644 --- a/smartag/src/model/ListDpiConfigErrorRequest.cc +++ b/smartag/src/model/ListDpiConfigErrorRequest.cc @@ -1,95 +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::Smartag::Model::ListDpiConfigErrorRequest; - -ListDpiConfigErrorRequest::ListDpiConfigErrorRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ListDpiConfigError") -{ - setMethod(HttpRequest::Method::Post); -} - -ListDpiConfigErrorRequest::~ListDpiConfigErrorRequest() -{} - -std::string ListDpiConfigErrorRequest::getDpiConfigType()const -{ - return dpiConfigType_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ListDpiConfigErrorRequest; + +ListDpiConfigErrorRequest::ListDpiConfigErrorRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ListDpiConfigError") { + setMethod(HttpRequest::Method::Post); } -void ListDpiConfigErrorRequest::setDpiConfigType(const std::string& dpiConfigType) -{ - dpiConfigType_ = dpiConfigType; - setParameter("DpiConfigType", dpiConfigType); +ListDpiConfigErrorRequest::~ListDpiConfigErrorRequest() {} + +std::string ListDpiConfigErrorRequest::getDpiConfigType() const { + return dpiConfigType_; } -std::string ListDpiConfigErrorRequest::getRegionId()const -{ - return regionId_; +void ListDpiConfigErrorRequest::setDpiConfigType(const std::string &dpiConfigType) { + dpiConfigType_ = dpiConfigType; + setParameter(std::string("DpiConfigType"), dpiConfigType); } -void ListDpiConfigErrorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListDpiConfigErrorRequest::getRegionId() const { + return regionId_; } -std::string ListDpiConfigErrorRequest::getNextToken()const -{ - return nextToken_; +void ListDpiConfigErrorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListDpiConfigErrorRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListDpiConfigErrorRequest::getNextToken() const { + return nextToken_; } -std::string ListDpiConfigErrorRequest::getSmartAGId()const -{ - return smartAGId_; +void ListDpiConfigErrorRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListDpiConfigErrorRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ListDpiConfigErrorRequest::getSmartAGId() const { + return smartAGId_; } -std::string ListDpiConfigErrorRequest::getRuleInstanceId()const -{ - return ruleInstanceId_; +void ListDpiConfigErrorRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ListDpiConfigErrorRequest::setRuleInstanceId(const std::string& ruleInstanceId) -{ - ruleInstanceId_ = ruleInstanceId; - setParameter("RuleInstanceId", ruleInstanceId); +std::string ListDpiConfigErrorRequest::getRuleInstanceId() const { + return ruleInstanceId_; } -int ListDpiConfigErrorRequest::getMaxResults()const -{ - return maxResults_; +void ListDpiConfigErrorRequest::setRuleInstanceId(const std::string &ruleInstanceId) { + ruleInstanceId_ = ruleInstanceId; + setParameter(std::string("RuleInstanceId"), ruleInstanceId); } -void ListDpiConfigErrorRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int ListDpiConfigErrorRequest::getMaxResults() const { + return maxResults_; +} + +void ListDpiConfigErrorRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/smartag/src/model/ListDpiConfigErrorResult.cc b/smartag/src/model/ListDpiConfigErrorResult.cc index 3ce7e5261..f93a5e173 100644 --- a/smartag/src/model/ListDpiConfigErrorResult.cc +++ b/smartag/src/model/ListDpiConfigErrorResult.cc @@ -43,12 +43,12 @@ void ListDpiConfigErrorResult::parse(const std::string &payload) for (auto valueDpiConfigErrorDpiConfigErrorItem : allDpiConfigErrorNode) { DpiConfigErrorItem dpiConfigErrorObject; - if(!valueDpiConfigErrorDpiConfigErrorItem["ErrorType"].isNull()) - dpiConfigErrorObject.errorType = valueDpiConfigErrorDpiConfigErrorItem["ErrorType"].asString(); if(!valueDpiConfigErrorDpiConfigErrorItem["SN"].isNull()) dpiConfigErrorObject.sN = valueDpiConfigErrorDpiConfigErrorItem["SN"].asString(); if(!valueDpiConfigErrorDpiConfigErrorItem["SmartAGId"].isNull()) dpiConfigErrorObject.smartAGId = valueDpiConfigErrorDpiConfigErrorItem["SmartAGId"].asString(); + if(!valueDpiConfigErrorDpiConfigErrorItem["ErrorType"].isNull()) + dpiConfigErrorObject.errorType = valueDpiConfigErrorDpiConfigErrorItem["ErrorType"].asString(); auto allRuleConfigErrorListNode = valueDpiConfigErrorDpiConfigErrorItem["RuleConfigErrorList"]["RuleConfigErrorListItem"]; for (auto valueDpiConfigErrorDpiConfigErrorItemRuleConfigErrorListRuleConfigErrorListItem : allRuleConfigErrorListNode) { @@ -67,10 +67,10 @@ void ListDpiConfigErrorResult::parse(const std::string &payload) } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); - if(!value["MaxResults"].isNull()) - maxResults_ = std::stoi(value["MaxResults"].asString()); if(!value["Total"].isNull()) total_ = std::stoi(value["Total"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); } @@ -84,13 +84,13 @@ std::vector ListDpiConfigErrorResu return dpiConfigError_; } -int ListDpiConfigErrorResult::getMaxResults()const -{ - return maxResults_; -} - int ListDpiConfigErrorResult::getTotal()const { return total_; } +int ListDpiConfigErrorResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/smartag/src/model/ListDpiGroupsRequest.cc b/smartag/src/model/ListDpiGroupsRequest.cc index 06ed71c3e..6a03e7a13 100644 --- a/smartag/src/model/ListDpiGroupsRequest.cc +++ b/smartag/src/model/ListDpiGroupsRequest.cc @@ -1,132 +1,106 @@ /* * 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::Smartag::Model::ListDpiGroupsRequest; - -ListDpiGroupsRequest::ListDpiGroupsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ListDpiGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -ListDpiGroupsRequest::~ListDpiGroupsRequest() -{} - -std::vector ListDpiGroupsRequest::getDpiGroupIds()const -{ - return dpiGroupIds_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ListDpiGroupsRequest; + +ListDpiGroupsRequest::ListDpiGroupsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ListDpiGroups") { + setMethod(HttpRequest::Method::Post); } -void ListDpiGroupsRequest::setDpiGroupIds(const std::vector& dpiGroupIds) -{ - dpiGroupIds_ = dpiGroupIds; - for(int dep1 = 0; dep1!= dpiGroupIds.size(); dep1++) { - setParameter("DpiGroupIds."+ std::to_string(dep1), dpiGroupIds.at(dep1)); - } +ListDpiGroupsRequest::~ListDpiGroupsRequest() {} + +std::vector ListDpiGroupsRequest::getDpiGroupIds() const { + return dpiGroupIds_; } -long ListDpiGroupsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ListDpiGroupsRequest::setDpiGroupIds(const std::vector &dpiGroupIds) { + dpiGroupIds_ = dpiGroupIds; } -void ListDpiGroupsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ListDpiGroupsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListDpiGroupsRequest::getRegionId()const -{ - return regionId_; +void ListDpiGroupsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListDpiGroupsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListDpiGroupsRequest::getRegionId() const { + return regionId_; } -std::string ListDpiGroupsRequest::getNextToken()const -{ - return nextToken_; +void ListDpiGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListDpiGroupsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListDpiGroupsRequest::getNextToken() const { + return nextToken_; } -std::string ListDpiGroupsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListDpiGroupsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListDpiGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListDpiGroupsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListDpiGroupsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListDpiGroupsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListDpiGroupsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListDpiGroupsRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListDpiGroupsRequest::getOwnerId()const -{ - return ownerId_; +void ListDpiGroupsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListDpiGroupsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListDpiGroupsRequest::getOwnerId() const { + return ownerId_; } -std::vector ListDpiGroupsRequest::getDpiGroupNames()const -{ - return dpiGroupNames_; +void ListDpiGroupsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListDpiGroupsRequest::setDpiGroupNames(const std::vector& dpiGroupNames) -{ - dpiGroupNames_ = dpiGroupNames; - for(int dep1 = 0; dep1!= dpiGroupNames.size(); dep1++) { - setParameter("DpiGroupNames."+ std::to_string(dep1), dpiGroupNames.at(dep1)); - } +std::vector ListDpiGroupsRequest::getDpiGroupNames() const { + return dpiGroupNames_; } -int ListDpiGroupsRequest::getMaxResults()const -{ - return maxResults_; +void ListDpiGroupsRequest::setDpiGroupNames(const std::vector &dpiGroupNames) { + dpiGroupNames_ = dpiGroupNames; } -void ListDpiGroupsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int ListDpiGroupsRequest::getMaxResults() const { + return maxResults_; +} + +void ListDpiGroupsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/smartag/src/model/ListDpiGroupsResult.cc b/smartag/src/model/ListDpiGroupsResult.cc index 217ca874d..bb6f6a989 100644 --- a/smartag/src/model/ListDpiGroupsResult.cc +++ b/smartag/src/model/ListDpiGroupsResult.cc @@ -43,14 +43,14 @@ void ListDpiGroupsResult::parse(const std::string &payload) for (auto valueDpiGroupDpiGroupItem : allDpiGroupNode) { DpiGroupItem dpiGroupObject; - if(!valueDpiGroupDpiGroupItem["MinEngineVersion"].isNull()) - dpiGroupObject.minEngineVersion = valueDpiGroupDpiGroupItem["MinEngineVersion"].asString(); - if(!valueDpiGroupDpiGroupItem["DpiGroupName"].isNull()) - dpiGroupObject.dpiGroupName = valueDpiGroupDpiGroupItem["DpiGroupName"].asString(); if(!valueDpiGroupDpiGroupItem["MinSignatureDbVersion"].isNull()) dpiGroupObject.minSignatureDbVersion = valueDpiGroupDpiGroupItem["MinSignatureDbVersion"].asString(); + if(!valueDpiGroupDpiGroupItem["DpiGroupName"].isNull()) + dpiGroupObject.dpiGroupName = valueDpiGroupDpiGroupItem["DpiGroupName"].asString(); if(!valueDpiGroupDpiGroupItem["DpiGroupId"].isNull()) dpiGroupObject.dpiGroupId = valueDpiGroupDpiGroupItem["DpiGroupId"].asString(); + if(!valueDpiGroupDpiGroupItem["MinEngineVersion"].isNull()) + dpiGroupObject.minEngineVersion = valueDpiGroupDpiGroupItem["MinEngineVersion"].asString(); dpiGroup_.push_back(dpiGroupObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/ListDpiSignaturesRequest.cc b/smartag/src/model/ListDpiSignaturesRequest.cc index 9451c6864..e2cea3ded 100644 --- a/smartag/src/model/ListDpiSignaturesRequest.cc +++ b/smartag/src/model/ListDpiSignaturesRequest.cc @@ -1,143 +1,115 @@ /* * 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::Smartag::Model::ListDpiSignaturesRequest; - -ListDpiSignaturesRequest::ListDpiSignaturesRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ListDpiSignatures") -{ - setMethod(HttpRequest::Method::Post); -} - -ListDpiSignaturesRequest::~ListDpiSignaturesRequest() -{} - -long ListDpiSignaturesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ListDpiSignaturesRequest; + +ListDpiSignaturesRequest::ListDpiSignaturesRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ListDpiSignatures") { + setMethod(HttpRequest::Method::Post); } -void ListDpiSignaturesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListDpiSignaturesRequest::~ListDpiSignaturesRequest() {} + +long ListDpiSignaturesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector ListDpiSignaturesRequest::getDpiSignatureNames()const -{ - return dpiSignatureNames_; +void ListDpiSignaturesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListDpiSignaturesRequest::setDpiSignatureNames(const std::vector& dpiSignatureNames) -{ - dpiSignatureNames_ = dpiSignatureNames; - for(int dep1 = 0; dep1!= dpiSignatureNames.size(); dep1++) { - setParameter("DpiSignatureNames."+ std::to_string(dep1), dpiSignatureNames.at(dep1)); - } +std::vector ListDpiSignaturesRequest::getDpiSignatureNames() const { + return dpiSignatureNames_; } -std::vector ListDpiSignaturesRequest::getDpiSignatureIds()const -{ - return dpiSignatureIds_; +void ListDpiSignaturesRequest::setDpiSignatureNames(const std::vector &dpiSignatureNames) { + dpiSignatureNames_ = dpiSignatureNames; } -void ListDpiSignaturesRequest::setDpiSignatureIds(const std::vector& dpiSignatureIds) -{ - dpiSignatureIds_ = dpiSignatureIds; - for(int dep1 = 0; dep1!= dpiSignatureIds.size(); dep1++) { - setParameter("DpiSignatureIds."+ std::to_string(dep1), dpiSignatureIds.at(dep1)); - } +std::vector ListDpiSignaturesRequest::getDpiSignatureIds() const { + return dpiSignatureIds_; } -std::string ListDpiSignaturesRequest::getRegionId()const -{ - return regionId_; +void ListDpiSignaturesRequest::setDpiSignatureIds(const std::vector &dpiSignatureIds) { + dpiSignatureIds_ = dpiSignatureIds; } -void ListDpiSignaturesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListDpiSignaturesRequest::getRegionId() const { + return regionId_; } -std::string ListDpiSignaturesRequest::getNextToken()const -{ - return nextToken_; +void ListDpiSignaturesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListDpiSignaturesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListDpiSignaturesRequest::getNextToken() const { + return nextToken_; } -std::string ListDpiSignaturesRequest::getDpiGroupId()const -{ - return dpiGroupId_; +void ListDpiSignaturesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListDpiSignaturesRequest::setDpiGroupId(const std::string& dpiGroupId) -{ - dpiGroupId_ = dpiGroupId; - setParameter("DpiGroupId", dpiGroupId); +std::string ListDpiSignaturesRequest::getDpiGroupId() const { + return dpiGroupId_; } -std::string ListDpiSignaturesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListDpiSignaturesRequest::setDpiGroupId(const std::string &dpiGroupId) { + dpiGroupId_ = dpiGroupId; + setParameter(std::string("DpiGroupId"), dpiGroupId); } -void ListDpiSignaturesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListDpiSignaturesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListDpiSignaturesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListDpiSignaturesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListDpiSignaturesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListDpiSignaturesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListDpiSignaturesRequest::getOwnerId()const -{ - return ownerId_; +void ListDpiSignaturesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListDpiSignaturesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListDpiSignaturesRequest::getOwnerId() const { + return ownerId_; } -int ListDpiSignaturesRequest::getMaxResults()const -{ - return maxResults_; +void ListDpiSignaturesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListDpiSignaturesRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int ListDpiSignaturesRequest::getMaxResults() const { + return maxResults_; +} + +void ListDpiSignaturesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/smartag/src/model/ListDpiSignaturesResult.cc b/smartag/src/model/ListDpiSignaturesResult.cc index af9853487..7e6f8fb9a 100644 --- a/smartag/src/model/ListDpiSignaturesResult.cc +++ b/smartag/src/model/ListDpiSignaturesResult.cc @@ -43,16 +43,16 @@ void ListDpiSignaturesResult::parse(const std::string &payload) for (auto valueDpiSignatureDpiSignatureItem : allDpiSignatureNode) { DpiSignatureItem dpiSignatureObject; - if(!valueDpiSignatureDpiSignatureItem["MinEngineVersion"].isNull()) - dpiSignatureObject.minEngineVersion = valueDpiSignatureDpiSignatureItem["MinEngineVersion"].asString(); - if(!valueDpiSignatureDpiSignatureItem["MinSignatureDbVersion"].isNull()) - dpiSignatureObject.minSignatureDbVersion = valueDpiSignatureDpiSignatureItem["MinSignatureDbVersion"].asString(); if(!valueDpiSignatureDpiSignatureItem["DpiSignatureId"].isNull()) dpiSignatureObject.dpiSignatureId = valueDpiSignatureDpiSignatureItem["DpiSignatureId"].asString(); - if(!valueDpiSignatureDpiSignatureItem["DpiSignatureName"].isNull()) - dpiSignatureObject.dpiSignatureName = valueDpiSignatureDpiSignatureItem["DpiSignatureName"].asString(); + if(!valueDpiSignatureDpiSignatureItem["MinSignatureDbVersion"].isNull()) + dpiSignatureObject.minSignatureDbVersion = valueDpiSignatureDpiSignatureItem["MinSignatureDbVersion"].asString(); if(!valueDpiSignatureDpiSignatureItem["DpiGroupId"].isNull()) dpiSignatureObject.dpiGroupId = valueDpiSignatureDpiSignatureItem["DpiGroupId"].asString(); + if(!valueDpiSignatureDpiSignatureItem["MinEngineVersion"].isNull()) + dpiSignatureObject.minEngineVersion = valueDpiSignatureDpiSignatureItem["MinEngineVersion"].asString(); + if(!valueDpiSignatureDpiSignatureItem["DpiSignatureName"].isNull()) + dpiSignatureObject.dpiSignatureName = valueDpiSignatureDpiSignatureItem["DpiSignatureName"].asString(); dpiSignature_.push_back(dpiSignatureObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/ListEnterpriseCodeRequest.cc b/smartag/src/model/ListEnterpriseCodeRequest.cc index 4bc583d29..177cf3a26 100644 --- a/smartag/src/model/ListEnterpriseCodeRequest.cc +++ b/smartag/src/model/ListEnterpriseCodeRequest.cc @@ -1,84 +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::Smartag::Model::ListEnterpriseCodeRequest; - -ListEnterpriseCodeRequest::ListEnterpriseCodeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ListEnterpriseCode") -{ - setMethod(HttpRequest::Method::Post); -} - -ListEnterpriseCodeRequest::~ListEnterpriseCodeRequest() -{} - -std::string ListEnterpriseCodeRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ListEnterpriseCodeRequest; + +ListEnterpriseCodeRequest::ListEnterpriseCodeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ListEnterpriseCode") { + setMethod(HttpRequest::Method::Post); } -void ListEnterpriseCodeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +ListEnterpriseCodeRequest::~ListEnterpriseCodeRequest() {} + +std::string ListEnterpriseCodeRequest::getRegionId() const { + return regionId_; } -std::string ListEnterpriseCodeRequest::getEnterpriseCode()const -{ - return enterpriseCode_; +void ListEnterpriseCodeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListEnterpriseCodeRequest::setEnterpriseCode(const std::string& enterpriseCode) -{ - enterpriseCode_ = enterpriseCode; - setParameter("EnterpriseCode", enterpriseCode); +std::string ListEnterpriseCodeRequest::getEnterpriseCode() const { + return enterpriseCode_; } -std::string ListEnterpriseCodeRequest::getNextToken()const -{ - return nextToken_; +void ListEnterpriseCodeRequest::setEnterpriseCode(const std::string &enterpriseCode) { + enterpriseCode_ = enterpriseCode; + setParameter(std::string("EnterpriseCode"), enterpriseCode); } -void ListEnterpriseCodeRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListEnterpriseCodeRequest::getNextToken() const { + return nextToken_; } -bool ListEnterpriseCodeRequest::getIsDefault()const -{ - return isDefault_; +void ListEnterpriseCodeRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListEnterpriseCodeRequest::setIsDefault(bool isDefault) -{ - isDefault_ = isDefault; - setParameter("IsDefault", isDefault ? "true" : "false"); +bool ListEnterpriseCodeRequest::getIsDefault() const { + return isDefault_; } -int ListEnterpriseCodeRequest::getMaxResults()const -{ - return maxResults_; +void ListEnterpriseCodeRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); } -void ListEnterpriseCodeRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int ListEnterpriseCodeRequest::getMaxResults() const { + return maxResults_; +} + +void ListEnterpriseCodeRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/smartag/src/model/ListEnterpriseCodeResult.cc b/smartag/src/model/ListEnterpriseCodeResult.cc index a1df0f425..0d1d7404a 100644 --- a/smartag/src/model/ListEnterpriseCodeResult.cc +++ b/smartag/src/model/ListEnterpriseCodeResult.cc @@ -45,10 +45,10 @@ void ListEnterpriseCodeResult::parse(const std::string &payload) EnterpriseCode enterpriseCodesObject; if(!valueEnterpriseCodesEnterpriseCode["IsDefault"].isNull()) enterpriseCodesObject.isDefault = valueEnterpriseCodesEnterpriseCode["IsDefault"].asString() == "true"; - if(!valueEnterpriseCodesEnterpriseCode["EnterpriseCode"].isNull()) - enterpriseCodesObject.enterpriseCode = valueEnterpriseCodesEnterpriseCode["EnterpriseCode"].asString(); if(!valueEnterpriseCodesEnterpriseCode["SmartAGCount"].isNull()) enterpriseCodesObject.smartAGCount = std::stoi(valueEnterpriseCodesEnterpriseCode["SmartAGCount"].asString()); + if(!valueEnterpriseCodesEnterpriseCode["EnterpriseCode"].isNull()) + enterpriseCodesObject.enterpriseCode = valueEnterpriseCodesEnterpriseCode["EnterpriseCode"].asString(); enterpriseCodes_.push_back(enterpriseCodesObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/ListSmartAGApiUnsupportedFeatureRequest.cc b/smartag/src/model/ListSmartAGApiUnsupportedFeatureRequest.cc index 080de0abf..7421dd764 100644 --- a/smartag/src/model/ListSmartAGApiUnsupportedFeatureRequest.cc +++ b/smartag/src/model/ListSmartAGApiUnsupportedFeatureRequest.cc @@ -1,117 +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::Smartag::Model::ListSmartAGApiUnsupportedFeatureRequest; - -ListSmartAGApiUnsupportedFeatureRequest::ListSmartAGApiUnsupportedFeatureRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ListSmartAGApiUnsupportedFeature") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSmartAGApiUnsupportedFeatureRequest::~ListSmartAGApiUnsupportedFeatureRequest() -{} - -long ListSmartAGApiUnsupportedFeatureRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ListSmartAGApiUnsupportedFeatureRequest; + +ListSmartAGApiUnsupportedFeatureRequest::ListSmartAGApiUnsupportedFeatureRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ListSmartAGApiUnsupportedFeature") { + setMethod(HttpRequest::Method::Post); } -void ListSmartAGApiUnsupportedFeatureRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListSmartAGApiUnsupportedFeatureRequest::~ListSmartAGApiUnsupportedFeatureRequest() {} + +long ListSmartAGApiUnsupportedFeatureRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListSmartAGApiUnsupportedFeatureRequest::getRegionId()const -{ - return regionId_; +void ListSmartAGApiUnsupportedFeatureRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListSmartAGApiUnsupportedFeatureRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListSmartAGApiUnsupportedFeatureRequest::getRegionId() const { + return regionId_; } -std::string ListSmartAGApiUnsupportedFeatureRequest::getSerialNumber()const -{ - return serialNumber_; +void ListSmartAGApiUnsupportedFeatureRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListSmartAGApiUnsupportedFeatureRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +std::string ListSmartAGApiUnsupportedFeatureRequest::getSerialNumber() const { + return serialNumber_; } -std::string ListSmartAGApiUnsupportedFeatureRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListSmartAGApiUnsupportedFeatureRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } -void ListSmartAGApiUnsupportedFeatureRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListSmartAGApiUnsupportedFeatureRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListSmartAGApiUnsupportedFeatureRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListSmartAGApiUnsupportedFeatureRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListSmartAGApiUnsupportedFeatureRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListSmartAGApiUnsupportedFeatureRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListSmartAGApiUnsupportedFeatureRequest::getOwnerId()const -{ - return ownerId_; +void ListSmartAGApiUnsupportedFeatureRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListSmartAGApiUnsupportedFeatureRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListSmartAGApiUnsupportedFeatureRequest::getOwnerId() const { + return ownerId_; } -std::string ListSmartAGApiUnsupportedFeatureRequest::getSmartAGId()const -{ - return smartAGId_; +void ListSmartAGApiUnsupportedFeatureRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListSmartAGApiUnsupportedFeatureRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ListSmartAGApiUnsupportedFeatureRequest::getSmartAGId() const { + return smartAGId_; } -std::string ListSmartAGApiUnsupportedFeatureRequest::getOpenApiName()const -{ - return openApiName_; +void ListSmartAGApiUnsupportedFeatureRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ListSmartAGApiUnsupportedFeatureRequest::setOpenApiName(const std::string& openApiName) -{ - openApiName_ = openApiName; - setParameter("OpenApiName", openApiName); +std::string ListSmartAGApiUnsupportedFeatureRequest::getOpenApiName() const { + return openApiName_; +} + +void ListSmartAGApiUnsupportedFeatureRequest::setOpenApiName(const std::string &openApiName) { + openApiName_ = openApiName; + setParameter(std::string("OpenApiName"), openApiName); } diff --git a/smartag/src/model/ListSmartAGByAccessPointRequest.cc b/smartag/src/model/ListSmartAGByAccessPointRequest.cc index f64b17edd..29d2c8f6f 100644 --- a/smartag/src/model/ListSmartAGByAccessPointRequest.cc +++ b/smartag/src/model/ListSmartAGByAccessPointRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::ListSmartAGByAccessPointRequest; - -ListSmartAGByAccessPointRequest::ListSmartAGByAccessPointRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ListSmartAGByAccessPoint") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSmartAGByAccessPointRequest::~ListSmartAGByAccessPointRequest() -{} - -int ListSmartAGByAccessPointRequest::getAccessPointId()const -{ - return accessPointId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ListSmartAGByAccessPointRequest; + +ListSmartAGByAccessPointRequest::ListSmartAGByAccessPointRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ListSmartAGByAccessPoint") { + setMethod(HttpRequest::Method::Post); } -void ListSmartAGByAccessPointRequest::setAccessPointId(int accessPointId) -{ - accessPointId_ = accessPointId; - setParameter("AccessPointId", std::to_string(accessPointId)); +ListSmartAGByAccessPointRequest::~ListSmartAGByAccessPointRequest() {} + +int ListSmartAGByAccessPointRequest::getAccessPointId() const { + return accessPointId_; } -long ListSmartAGByAccessPointRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ListSmartAGByAccessPointRequest::setAccessPointId(int accessPointId) { + accessPointId_ = accessPointId; + setParameter(std::string("AccessPointId"), std::to_string(accessPointId)); } -void ListSmartAGByAccessPointRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ListSmartAGByAccessPointRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int ListSmartAGByAccessPointRequest::getPageNumber()const -{ - return pageNumber_; +void ListSmartAGByAccessPointRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListSmartAGByAccessPointRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListSmartAGByAccessPointRequest::getPageNumber() const { + return pageNumber_; } -std::string ListSmartAGByAccessPointRequest::getRegionId()const -{ - return regionId_; +void ListSmartAGByAccessPointRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListSmartAGByAccessPointRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListSmartAGByAccessPointRequest::getRegionId() const { + return regionId_; } -int ListSmartAGByAccessPointRequest::getPageSize()const -{ - return pageSize_; +void ListSmartAGByAccessPointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListSmartAGByAccessPointRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListSmartAGByAccessPointRequest::getPageSize() const { + return pageSize_; } -std::string ListSmartAGByAccessPointRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListSmartAGByAccessPointRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListSmartAGByAccessPointRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListSmartAGByAccessPointRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListSmartAGByAccessPointRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListSmartAGByAccessPointRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListSmartAGByAccessPointRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListSmartAGByAccessPointRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListSmartAGByAccessPointRequest::getOwnerId()const -{ - return ownerId_; +void ListSmartAGByAccessPointRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListSmartAGByAccessPointRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListSmartAGByAccessPointRequest::getOwnerId() const { + return ownerId_; } -std::string ListSmartAGByAccessPointRequest::getSmartAGStatus()const -{ - return smartAGStatus_; +void ListSmartAGByAccessPointRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListSmartAGByAccessPointRequest::setSmartAGStatus(const std::string& smartAGStatus) -{ - smartAGStatus_ = smartAGStatus; - setParameter("SmartAGStatus", smartAGStatus); +std::string ListSmartAGByAccessPointRequest::getSmartAGStatus() const { + return smartAGStatus_; +} + +void ListSmartAGByAccessPointRequest::setSmartAGStatus(const std::string &smartAGStatus) { + smartAGStatus_ = smartAGStatus; + setParameter(std::string("SmartAGStatus"), smartAGStatus); } diff --git a/smartag/src/model/ListSmartAGByAccessPointResult.cc b/smartag/src/model/ListSmartAGByAccessPointResult.cc index 4286bf107..06ee2e8fd 100644 --- a/smartag/src/model/ListSmartAGByAccessPointResult.cc +++ b/smartag/src/model/ListSmartAGByAccessPointResult.cc @@ -43,20 +43,20 @@ void ListSmartAGByAccessPointResult::parse(const std::string &payload) for (auto valueSmartAccessGatewaysSmartAccessGateway : allSmartAccessGatewaysNode) { SmartAccessGateway smartAccessGatewaysObject; - if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGName"].isNull()) - smartAccessGatewaysObject.smartAGName = valueSmartAccessGatewaysSmartAccessGateway["SmartAGName"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGStatus"].isNull()) - smartAccessGatewaysObject.smartAGStatus = valueSmartAccessGatewaysSmartAccessGateway["SmartAGStatus"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].isNull()) smartAccessGatewaysObject.routingStrategy = valueSmartAccessGatewaysSmartAccessGateway["RoutingStrategy"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].isNull()) - smartAccessGatewaysObject.associatedCcnId = valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGName"].isNull()) + smartAccessGatewaysObject.smartAGName = valueSmartAccessGatewaysSmartAccessGateway["SmartAGName"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].isNull()) smartAccessGatewaysObject.smartAGId = valueSmartAccessGatewaysSmartAccessGateway["SmartAGId"].asString(); - if(!valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].isNull()) - smartAccessGatewaysObject.hardwareVersion = valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGStatus"].isNull()) + smartAccessGatewaysObject.smartAGStatus = valueSmartAccessGatewaysSmartAccessGateway["SmartAGStatus"].asString(); if(!valueSmartAccessGatewaysSmartAccessGateway["SmartAGDescription"].isNull()) smartAccessGatewaysObject.smartAGDescription = valueSmartAccessGatewaysSmartAccessGateway["SmartAGDescription"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].isNull()) + smartAccessGatewaysObject.associatedCcnId = valueSmartAccessGatewaysSmartAccessGateway["AssociatedCcnId"].asString(); + if(!valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].isNull()) + smartAccessGatewaysObject.hardwareVersion = valueSmartAccessGatewaysSmartAccessGateway["HardwareVersion"].asString(); smartAccessGateways_.push_back(smartAccessGatewaysObject); } if(!value["TotalCount"].isNull()) diff --git a/smartag/src/model/ModifyACLRequest.cc b/smartag/src/model/ModifyACLRequest.cc index 072370f29..7ab84de9c 100644 --- a/smartag/src/model/ModifyACLRequest.cc +++ b/smartag/src/model/ModifyACLRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::ModifyACLRequest; - -ModifyACLRequest::ModifyACLRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyACL") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyACLRequest::~ModifyACLRequest() -{} - -long ModifyACLRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyACLRequest; + +ModifyACLRequest::ModifyACLRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifyACL") { + setMethod(HttpRequest::Method::Post); } -void ModifyACLRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyACLRequest::~ModifyACLRequest() {} + +long ModifyACLRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyACLRequest::getRegionId()const -{ - return regionId_; +void ModifyACLRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyACLRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyACLRequest::getRegionId() const { + return regionId_; } -std::string ModifyACLRequest::getAclId()const -{ - return aclId_; +void ModifyACLRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyACLRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string ModifyACLRequest::getAclId() const { + return aclId_; } -std::string ModifyACLRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyACLRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void ModifyACLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyACLRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyACLRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyACLRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyACLRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyACLRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyACLRequest::getOwnerId()const -{ - return ownerId_; +void ModifyACLRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyACLRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyACLRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyACLRequest::getName()const -{ - return name_; +void ModifyACLRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyACLRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyACLRequest::getName() const { + return name_; +} + +void ModifyACLRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/ModifyACLRuleRequest.cc b/smartag/src/model/ModifyACLRuleRequest.cc index 85b449e3c..1a40a4272 100644 --- a/smartag/src/model/ModifyACLRuleRequest.cc +++ b/smartag/src/model/ModifyACLRuleRequest.cc @@ -1,253 +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 - -using AlibabaCloud::Smartag::Model::ModifyACLRuleRequest; - -ModifyACLRuleRequest::ModifyACLRuleRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyACLRule") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyACLRuleRequest::~ModifyACLRuleRequest() -{} - -std::vector ModifyACLRuleRequest::getDpiGroupIds()const -{ - return dpiGroupIds_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyACLRuleRequest; + +ModifyACLRuleRequest::ModifyACLRuleRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifyACLRule") { + setMethod(HttpRequest::Method::Post); } -void ModifyACLRuleRequest::setDpiGroupIds(const std::vector& dpiGroupIds) -{ - dpiGroupIds_ = dpiGroupIds; - for(int dep1 = 0; dep1!= dpiGroupIds.size(); dep1++) { - setParameter("DpiGroupIds."+ std::to_string(dep1), dpiGroupIds.at(dep1)); - } +ModifyACLRuleRequest::~ModifyACLRuleRequest() {} + +std::vector ModifyACLRuleRequest::getDpiGroupIds() const { + return dpiGroupIds_; } -long ModifyACLRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyACLRuleRequest::setDpiGroupIds(const std::vector &dpiGroupIds) { + dpiGroupIds_ = dpiGroupIds; } -void ModifyACLRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyACLRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyACLRuleRequest::getSourcePortRange()const -{ - return sourcePortRange_; +void ModifyACLRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyACLRuleRequest::setSourcePortRange(const std::string& sourcePortRange) -{ - sourcePortRange_ = sourcePortRange; - setParameter("SourcePortRange", sourcePortRange); +std::string ModifyACLRuleRequest::getSourcePortRange() const { + return sourcePortRange_; } -std::string ModifyACLRuleRequest::getSourceCidr()const -{ - return sourceCidr_; +void ModifyACLRuleRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); } -void ModifyACLRuleRequest::setSourceCidr(const std::string& sourceCidr) -{ - sourceCidr_ = sourceCidr; - setParameter("SourceCidr", sourceCidr); +std::string ModifyACLRuleRequest::getSourceCidr() const { + return sourceCidr_; } -std::string ModifyACLRuleRequest::getDescription()const -{ - return description_; +void ModifyACLRuleRequest::setSourceCidr(const std::string &sourceCidr) { + sourceCidr_ = sourceCidr; + setParameter(std::string("SourceCidr"), sourceCidr); } -void ModifyACLRuleRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyACLRuleRequest::getDescription() const { + return description_; } -std::string ModifyACLRuleRequest::getType()const -{ - return type_; +void ModifyACLRuleRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyACLRuleRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string ModifyACLRuleRequest::getType() const { + return type_; } -std::string ModifyACLRuleRequest::getDestCidr()const -{ - return destCidr_; +void ModifyACLRuleRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void ModifyACLRuleRequest::setDestCidr(const std::string& destCidr) -{ - destCidr_ = destCidr; - setParameter("DestCidr", destCidr); +std::string ModifyACLRuleRequest::getDestCidr() const { + return destCidr_; } -std::vector ModifyACLRuleRequest::getDpiSignatureIds()const -{ - return dpiSignatureIds_; +void ModifyACLRuleRequest::setDestCidr(const std::string &destCidr) { + destCidr_ = destCidr; + setParameter(std::string("DestCidr"), destCidr); } -void ModifyACLRuleRequest::setDpiSignatureIds(const std::vector& dpiSignatureIds) -{ - dpiSignatureIds_ = dpiSignatureIds; - for(int dep1 = 0; dep1!= dpiSignatureIds.size(); dep1++) { - setParameter("DpiSignatureIds."+ std::to_string(dep1), dpiSignatureIds.at(dep1)); - } +std::vector ModifyACLRuleRequest::getDpiSignatureIds() const { + return dpiSignatureIds_; } -std::string ModifyACLRuleRequest::getRegionId()const -{ - return regionId_; +void ModifyACLRuleRequest::setDpiSignatureIds(const std::vector &dpiSignatureIds) { + dpiSignatureIds_ = dpiSignatureIds; } -void ModifyACLRuleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyACLRuleRequest::getRegionId() const { + return regionId_; } -std::string ModifyACLRuleRequest::getDirection()const -{ - return direction_; +void ModifyACLRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyACLRuleRequest::setDirection(const std::string& direction) -{ - direction_ = direction; - setParameter("Direction", direction); +std::string ModifyACLRuleRequest::getDirection() const { + return direction_; } -std::string ModifyACLRuleRequest::getPolicy()const -{ - return policy_; +void ModifyACLRuleRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } -void ModifyACLRuleRequest::setPolicy(const std::string& policy) -{ - policy_ = policy; - setParameter("Policy", policy); +std::string ModifyACLRuleRequest::getPolicy() const { + return policy_; } -std::string ModifyACLRuleRequest::getAclId()const -{ - return aclId_; +void ModifyACLRuleRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); } -void ModifyACLRuleRequest::setAclId(const std::string& aclId) -{ - aclId_ = aclId; - setParameter("AclId", aclId); +std::string ModifyACLRuleRequest::getAclId() const { + return aclId_; } -std::string ModifyACLRuleRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyACLRuleRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -void ModifyACLRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyACLRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyACLRuleRequest::getIpProtocol()const -{ - return ipProtocol_; +void ModifyACLRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyACLRuleRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string ModifyACLRuleRequest::getIpProtocol() const { + return ipProtocol_; } -std::string ModifyACLRuleRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyACLRuleRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void ModifyACLRuleRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyACLRuleRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyACLRuleRequest::getOwnerId()const -{ - return ownerId_; +void ModifyACLRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyACLRuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyACLRuleRequest::getOwnerId() const { + return ownerId_; } -int ModifyACLRuleRequest::getPriority()const -{ - return priority_; +void ModifyACLRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyACLRuleRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int ModifyACLRuleRequest::getPriority() const { + return priority_; } -std::string ModifyACLRuleRequest::getAcrId()const -{ - return acrId_; +void ModifyACLRuleRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void ModifyACLRuleRequest::setAcrId(const std::string& acrId) -{ - acrId_ = acrId; - setParameter("AcrId", acrId); +std::string ModifyACLRuleRequest::getAcrId() const { + return acrId_; } -std::string ModifyACLRuleRequest::getDestPortRange()const -{ - return destPortRange_; +void ModifyACLRuleRequest::setAcrId(const std::string &acrId) { + acrId_ = acrId; + setParameter(std::string("AcrId"), acrId); } -void ModifyACLRuleRequest::setDestPortRange(const std::string& destPortRange) -{ - destPortRange_ = destPortRange; - setParameter("DestPortRange", destPortRange); +std::string ModifyACLRuleRequest::getDestPortRange() const { + return destPortRange_; } -std::string ModifyACLRuleRequest::getName()const -{ - return name_; +void ModifyACLRuleRequest::setDestPortRange(const std::string &destPortRange) { + destPortRange_ = destPortRange; + setParameter(std::string("DestPortRange"), destPortRange); } -void ModifyACLRuleRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyACLRuleRequest::getName() const { + return name_; +} + +void ModifyACLRuleRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/ModifyACLRuleResult.cc b/smartag/src/model/ModifyACLRuleResult.cc index 4cb215feb..a9cc59d71 100644 --- a/smartag/src/model/ModifyACLRuleResult.cc +++ b/smartag/src/model/ModifyACLRuleResult.cc @@ -39,12 +39,12 @@ void ModifyACLRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; - for (const auto &item : allDpiSignatureIds) - dpiSignatureIds_.push_back(item.asString()); auto allDpiGroupIds = value["DpiGroupIds"]["DpiGroupId"]; for (const auto &item : allDpiGroupIds) dpiGroupIds_.push_back(item.asString()); + auto allDpiSignatureIds = value["DpiSignatureIds"]["DpiSignatureId"]; + for (const auto &item : allDpiSignatureIds) + dpiSignatureIds_.push_back(item.asString()); if(!value["Policy"].isNull()) policy_ = value["Policy"].asString(); if(!value["Description"].isNull()) diff --git a/smartag/src/model/ModifyClientUserDNSRequest.cc b/smartag/src/model/ModifyClientUserDNSRequest.cc index 8cbdf1944..d2a2d7a94 100644 --- a/smartag/src/model/ModifyClientUserDNSRequest.cc +++ b/smartag/src/model/ModifyClientUserDNSRequest.cc @@ -1,121 +1,97 @@ /* * 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::Smartag::Model::ModifyClientUserDNSRequest; - -ModifyClientUserDNSRequest::ModifyClientUserDNSRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyClientUserDNS") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyClientUserDNSRequest::~ModifyClientUserDNSRequest() -{} - -long ModifyClientUserDNSRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyClientUserDNSRequest; + +ModifyClientUserDNSRequest::ModifyClientUserDNSRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifyClientUserDNS") { + setMethod(HttpRequest::Method::Post); } -void ModifyClientUserDNSRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyClientUserDNSRequest::~ModifyClientUserDNSRequest() {} + +long ModifyClientUserDNSRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector ModifyClientUserDNSRequest::getRecoveredDNS()const -{ - return recoveredDNS_; +void ModifyClientUserDNSRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyClientUserDNSRequest::setRecoveredDNS(const std::vector& recoveredDNS) -{ - recoveredDNS_ = recoveredDNS; - for(int dep1 = 0; dep1!= recoveredDNS.size(); dep1++) { - setParameter("RecoveredDNS."+ std::to_string(dep1), recoveredDNS.at(dep1)); - } +std::vector ModifyClientUserDNSRequest::getRecoveredDNS() const { + return recoveredDNS_; } -std::vector ModifyClientUserDNSRequest::getAppDNS()const -{ - return appDNS_; +void ModifyClientUserDNSRequest::setRecoveredDNS(const std::vector &recoveredDNS) { + recoveredDNS_ = recoveredDNS; } -void ModifyClientUserDNSRequest::setAppDNS(const std::vector& appDNS) -{ - appDNS_ = appDNS; - for(int dep1 = 0; dep1!= appDNS.size(); dep1++) { - setParameter("AppDNS."+ std::to_string(dep1), appDNS.at(dep1)); - } +std::vector ModifyClientUserDNSRequest::getAppDNS() const { + return appDNS_; } -std::string ModifyClientUserDNSRequest::getRegionId()const -{ - return regionId_; +void ModifyClientUserDNSRequest::setAppDNS(const std::vector &appDNS) { + appDNS_ = appDNS; } -void ModifyClientUserDNSRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyClientUserDNSRequest::getRegionId() const { + return regionId_; } -std::string ModifyClientUserDNSRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyClientUserDNSRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyClientUserDNSRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyClientUserDNSRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyClientUserDNSRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyClientUserDNSRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyClientUserDNSRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyClientUserDNSRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyClientUserDNSRequest::getOwnerId()const -{ - return ownerId_; +void ModifyClientUserDNSRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyClientUserDNSRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyClientUserDNSRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyClientUserDNSRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifyClientUserDNSRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyClientUserDNSRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifyClientUserDNSRequest::getSmartAGId() const { + return smartAGId_; +} + +void ModifyClientUserDNSRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/ModifyCloudConnectNetworkRequest.cc b/smartag/src/model/ModifyCloudConnectNetworkRequest.cc index 75dd26c0a..ee45c0f77 100644 --- a/smartag/src/model/ModifyCloudConnectNetworkRequest.cc +++ b/smartag/src/model/ModifyCloudConnectNetworkRequest.cc @@ -1,139 +1,117 @@ /* * 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::Smartag::Model::ModifyCloudConnectNetworkRequest; - -ModifyCloudConnectNetworkRequest::ModifyCloudConnectNetworkRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyCloudConnectNetwork") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyCloudConnectNetworkRequest::~ModifyCloudConnectNetworkRequest() -{} - -long ModifyCloudConnectNetworkRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyCloudConnectNetworkRequest; + +ModifyCloudConnectNetworkRequest::ModifyCloudConnectNetworkRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifyCloudConnectNetwork") { + setMethod(HttpRequest::Method::Post); } -void ModifyCloudConnectNetworkRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyCloudConnectNetworkRequest::~ModifyCloudConnectNetworkRequest() {} + +long ModifyCloudConnectNetworkRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyCloudConnectNetworkRequest::getCcnId()const -{ - return ccnId_; +void ModifyCloudConnectNetworkRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyCloudConnectNetworkRequest::setCcnId(const std::string& ccnId) -{ - ccnId_ = ccnId; - setParameter("CcnId", ccnId); +std::string ModifyCloudConnectNetworkRequest::getCcnId() const { + return ccnId_; } -std::string ModifyCloudConnectNetworkRequest::getDescription()const -{ - return description_; +void ModifyCloudConnectNetworkRequest::setCcnId(const std::string &ccnId) { + ccnId_ = ccnId; + setParameter(std::string("CcnId"), ccnId); } -void ModifyCloudConnectNetworkRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyCloudConnectNetworkRequest::getDescription() const { + return description_; } -std::string ModifyCloudConnectNetworkRequest::getRegionId()const -{ - return regionId_; +void ModifyCloudConnectNetworkRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyCloudConnectNetworkRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyCloudConnectNetworkRequest::getRegionId() const { + return regionId_; } -std::string ModifyCloudConnectNetworkRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyCloudConnectNetworkRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyCloudConnectNetworkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyCloudConnectNetworkRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyCloudConnectNetworkRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyCloudConnectNetworkRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyCloudConnectNetworkRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyCloudConnectNetworkRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyCloudConnectNetworkRequest::getOwnerId()const -{ - return ownerId_; +void ModifyCloudConnectNetworkRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyCloudConnectNetworkRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyCloudConnectNetworkRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyCloudConnectNetworkRequest::getName()const -{ - return name_; +void ModifyCloudConnectNetworkRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyCloudConnectNetworkRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyCloudConnectNetworkRequest::getName() const { + return name_; } -std::string ModifyCloudConnectNetworkRequest::getCidrBlock()const -{ - return cidrBlock_; +void ModifyCloudConnectNetworkRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void ModifyCloudConnectNetworkRequest::setCidrBlock(const std::string& cidrBlock) -{ - cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); +std::string ModifyCloudConnectNetworkRequest::getCidrBlock() const { + return cidrBlock_; } -std::string ModifyCloudConnectNetworkRequest::getInterworkingStatus()const -{ - return interworkingStatus_; +void ModifyCloudConnectNetworkRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); } -void ModifyCloudConnectNetworkRequest::setInterworkingStatus(const std::string& interworkingStatus) -{ - interworkingStatus_ = interworkingStatus; - setParameter("InterworkingStatus", interworkingStatus); +std::string ModifyCloudConnectNetworkRequest::getInterworkingStatus() const { + return interworkingStatus_; +} + +void ModifyCloudConnectNetworkRequest::setInterworkingStatus(const std::string &interworkingStatus) { + interworkingStatus_ = interworkingStatus; + setParameter(std::string("InterworkingStatus"), interworkingStatus); } diff --git a/smartag/src/model/ModifyDeviceAutoUpgradePolicyRequest.cc b/smartag/src/model/ModifyDeviceAutoUpgradePolicyRequest.cc index 7c6012bfe..623fa819b 100644 --- a/smartag/src/model/ModifyDeviceAutoUpgradePolicyRequest.cc +++ b/smartag/src/model/ModifyDeviceAutoUpgradePolicyRequest.cc @@ -1,161 +1,135 @@ /* * 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::Smartag::Model::ModifyDeviceAutoUpgradePolicyRequest; - -ModifyDeviceAutoUpgradePolicyRequest::ModifyDeviceAutoUpgradePolicyRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyDeviceAutoUpgradePolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDeviceAutoUpgradePolicyRequest::~ModifyDeviceAutoUpgradePolicyRequest() -{} - -long ModifyDeviceAutoUpgradePolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyDeviceAutoUpgradePolicyRequest; + +ModifyDeviceAutoUpgradePolicyRequest::ModifyDeviceAutoUpgradePolicyRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifyDeviceAutoUpgradePolicy") { + setMethod(HttpRequest::Method::Post); } -void ModifyDeviceAutoUpgradePolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDeviceAutoUpgradePolicyRequest::~ModifyDeviceAutoUpgradePolicyRequest() {} + +long ModifyDeviceAutoUpgradePolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDeviceAutoUpgradePolicyRequest::getCronExpression()const -{ - return cronExpression_; +void ModifyDeviceAutoUpgradePolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDeviceAutoUpgradePolicyRequest::setCronExpression(const std::string& cronExpression) -{ - cronExpression_ = cronExpression; - setParameter("CronExpression", cronExpression); +std::string ModifyDeviceAutoUpgradePolicyRequest::getCronExpression() const { + return cronExpression_; } -std::string ModifyDeviceAutoUpgradePolicyRequest::getTimeZone()const -{ - return timeZone_; +void ModifyDeviceAutoUpgradePolicyRequest::setCronExpression(const std::string &cronExpression) { + cronExpression_ = cronExpression; + setParameter(std::string("CronExpression"), cronExpression); } -void ModifyDeviceAutoUpgradePolicyRequest::setTimeZone(const std::string& timeZone) -{ - timeZone_ = timeZone; - setParameter("TimeZone", timeZone); +std::string ModifyDeviceAutoUpgradePolicyRequest::getTimeZone() const { + return timeZone_; } -std::string ModifyDeviceAutoUpgradePolicyRequest::getUpgradeType()const -{ - return upgradeType_; +void ModifyDeviceAutoUpgradePolicyRequest::setTimeZone(const std::string &timeZone) { + timeZone_ = timeZone; + setParameter(std::string("TimeZone"), timeZone); } -void ModifyDeviceAutoUpgradePolicyRequest::setUpgradeType(const std::string& upgradeType) -{ - upgradeType_ = upgradeType; - setParameter("UpgradeType", upgradeType); +std::string ModifyDeviceAutoUpgradePolicyRequest::getUpgradeType() const { + return upgradeType_; } -int ModifyDeviceAutoUpgradePolicyRequest::getDuration()const -{ - return duration_; +void ModifyDeviceAutoUpgradePolicyRequest::setUpgradeType(const std::string &upgradeType) { + upgradeType_ = upgradeType; + setParameter(std::string("UpgradeType"), upgradeType); } -void ModifyDeviceAutoUpgradePolicyRequest::setDuration(int duration) -{ - duration_ = duration; - setParameter("Duration", std::to_string(duration)); +int ModifyDeviceAutoUpgradePolicyRequest::getDuration() const { + return duration_; } -std::string ModifyDeviceAutoUpgradePolicyRequest::getRegionId()const -{ - return regionId_; +void ModifyDeviceAutoUpgradePolicyRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); } -void ModifyDeviceAutoUpgradePolicyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyDeviceAutoUpgradePolicyRequest::getRegionId() const { + return regionId_; } -std::string ModifyDeviceAutoUpgradePolicyRequest::getSerialNumber()const -{ - return serialNumber_; +void ModifyDeviceAutoUpgradePolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyDeviceAutoUpgradePolicyRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +std::string ModifyDeviceAutoUpgradePolicyRequest::getSerialNumber() const { + return serialNumber_; } -std::string ModifyDeviceAutoUpgradePolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDeviceAutoUpgradePolicyRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } -void ModifyDeviceAutoUpgradePolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDeviceAutoUpgradePolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDeviceAutoUpgradePolicyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDeviceAutoUpgradePolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDeviceAutoUpgradePolicyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDeviceAutoUpgradePolicyRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDeviceAutoUpgradePolicyRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDeviceAutoUpgradePolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDeviceAutoUpgradePolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDeviceAutoUpgradePolicyRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyDeviceAutoUpgradePolicyRequest::getVersionType()const -{ - return versionType_; +void ModifyDeviceAutoUpgradePolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyDeviceAutoUpgradePolicyRequest::setVersionType(const std::string& versionType) -{ - versionType_ = versionType; - setParameter("VersionType", versionType); +std::string ModifyDeviceAutoUpgradePolicyRequest::getVersionType() const { + return versionType_; } -std::string ModifyDeviceAutoUpgradePolicyRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifyDeviceAutoUpgradePolicyRequest::setVersionType(const std::string &versionType) { + versionType_ = versionType; + setParameter(std::string("VersionType"), versionType); } -void ModifyDeviceAutoUpgradePolicyRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifyDeviceAutoUpgradePolicyRequest::getSmartAGId() const { + return smartAGId_; +} + +void ModifyDeviceAutoUpgradePolicyRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/ModifyFlowLogAttributeRequest.cc b/smartag/src/model/ModifyFlowLogAttributeRequest.cc index 6ffa99af4..bb62dd0d6 100644 --- a/smartag/src/model/ModifyFlowLogAttributeRequest.cc +++ b/smartag/src/model/ModifyFlowLogAttributeRequest.cc @@ -1,216 +1,180 @@ /* * 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::Smartag::Model::ModifyFlowLogAttributeRequest; - -ModifyFlowLogAttributeRequest::ModifyFlowLogAttributeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyFlowLogAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyFlowLogAttributeRequest::~ModifyFlowLogAttributeRequest() -{} - -long ModifyFlowLogAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyFlowLogAttributeRequest; + +ModifyFlowLogAttributeRequest::ModifyFlowLogAttributeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifyFlowLogAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyFlowLogAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyFlowLogAttributeRequest::~ModifyFlowLogAttributeRequest() {} + +long ModifyFlowLogAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyFlowLogAttributeRequest::getNetflowVersion()const -{ - return netflowVersion_; +void ModifyFlowLogAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyFlowLogAttributeRequest::setNetflowVersion(const std::string& netflowVersion) -{ - netflowVersion_ = netflowVersion; - setParameter("NetflowVersion", netflowVersion); +std::string ModifyFlowLogAttributeRequest::getNetflowVersion() const { + return netflowVersion_; } -std::string ModifyFlowLogAttributeRequest::getDescription()const -{ - return description_; +void ModifyFlowLogAttributeRequest::setNetflowVersion(const std::string &netflowVersion) { + netflowVersion_ = netflowVersion; + setParameter(std::string("NetflowVersion"), netflowVersion); } -void ModifyFlowLogAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyFlowLogAttributeRequest::getDescription() const { + return description_; } -int ModifyFlowLogAttributeRequest::getInactiveAging()const -{ - return inactiveAging_; +void ModifyFlowLogAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyFlowLogAttributeRequest::setInactiveAging(int inactiveAging) -{ - inactiveAging_ = inactiveAging; - setParameter("InactiveAging", std::to_string(inactiveAging)); +int ModifyFlowLogAttributeRequest::getInactiveAging() const { + return inactiveAging_; } -std::string ModifyFlowLogAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyFlowLogAttributeRequest::setInactiveAging(int inactiveAging) { + inactiveAging_ = inactiveAging; + setParameter(std::string("InactiveAging"), std::to_string(inactiveAging)); } -void ModifyFlowLogAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyFlowLogAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyFlowLogAttributeRequest::getSlsRegionId()const -{ - return slsRegionId_; +void ModifyFlowLogAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyFlowLogAttributeRequest::setSlsRegionId(const std::string& slsRegionId) -{ - slsRegionId_ = slsRegionId; - setParameter("SlsRegionId", slsRegionId); +std::string ModifyFlowLogAttributeRequest::getSlsRegionId() const { + return slsRegionId_; } -int ModifyFlowLogAttributeRequest::getActiveAging()const -{ - return activeAging_; +void ModifyFlowLogAttributeRequest::setSlsRegionId(const std::string &slsRegionId) { + slsRegionId_ = slsRegionId; + setParameter(std::string("SlsRegionId"), slsRegionId); } -void ModifyFlowLogAttributeRequest::setActiveAging(int activeAging) -{ - activeAging_ = activeAging; - setParameter("ActiveAging", std::to_string(activeAging)); +int ModifyFlowLogAttributeRequest::getActiveAging() const { + return activeAging_; } -std::string ModifyFlowLogAttributeRequest::getOutputType()const -{ - return outputType_; +void ModifyFlowLogAttributeRequest::setActiveAging(int activeAging) { + activeAging_ = activeAging; + setParameter(std::string("ActiveAging"), std::to_string(activeAging)); } -void ModifyFlowLogAttributeRequest::setOutputType(const std::string& outputType) -{ - outputType_ = outputType; - setParameter("OutputType", outputType); +std::string ModifyFlowLogAttributeRequest::getOutputType() const { + return outputType_; } -std::string ModifyFlowLogAttributeRequest::getProjectName()const -{ - return projectName_; +void ModifyFlowLogAttributeRequest::setOutputType(const std::string &outputType) { + outputType_ = outputType; + setParameter(std::string("OutputType"), outputType); } -void ModifyFlowLogAttributeRequest::setProjectName(const std::string& projectName) -{ - projectName_ = projectName; - setParameter("ProjectName", projectName); +std::string ModifyFlowLogAttributeRequest::getProjectName() const { + return projectName_; } -std::string ModifyFlowLogAttributeRequest::getLogstoreName()const -{ - return logstoreName_; +void ModifyFlowLogAttributeRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } -void ModifyFlowLogAttributeRequest::setLogstoreName(const std::string& logstoreName) -{ - logstoreName_ = logstoreName; - setParameter("LogstoreName", logstoreName); +std::string ModifyFlowLogAttributeRequest::getLogstoreName() const { + return logstoreName_; } -std::string ModifyFlowLogAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyFlowLogAttributeRequest::setLogstoreName(const std::string &logstoreName) { + logstoreName_ = logstoreName; + setParameter(std::string("LogstoreName"), logstoreName); } -void ModifyFlowLogAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyFlowLogAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyFlowLogAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyFlowLogAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyFlowLogAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyFlowLogAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -int ModifyFlowLogAttributeRequest::getNetflowServerPort()const -{ - return netflowServerPort_; +void ModifyFlowLogAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyFlowLogAttributeRequest::setNetflowServerPort(int netflowServerPort) -{ - netflowServerPort_ = netflowServerPort; - setParameter("NetflowServerPort", std::to_string(netflowServerPort)); +int ModifyFlowLogAttributeRequest::getNetflowServerPort() const { + return netflowServerPort_; } -long ModifyFlowLogAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyFlowLogAttributeRequest::setNetflowServerPort(int netflowServerPort) { + netflowServerPort_ = netflowServerPort; + setParameter(std::string("NetflowServerPort"), std::to_string(netflowServerPort)); } -void ModifyFlowLogAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyFlowLogAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyFlowLogAttributeRequest::getNetflowServerIp()const -{ - return netflowServerIp_; +void ModifyFlowLogAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyFlowLogAttributeRequest::setNetflowServerIp(const std::string& netflowServerIp) -{ - netflowServerIp_ = netflowServerIp; - setParameter("NetflowServerIp", netflowServerIp); +std::string ModifyFlowLogAttributeRequest::getNetflowServerIp() const { + return netflowServerIp_; } -std::string ModifyFlowLogAttributeRequest::getName()const -{ - return name_; +void ModifyFlowLogAttributeRequest::setNetflowServerIp(const std::string &netflowServerIp) { + netflowServerIp_ = netflowServerIp; + setParameter(std::string("NetflowServerIp"), netflowServerIp); } -void ModifyFlowLogAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyFlowLogAttributeRequest::getName() const { + return name_; } -std::string ModifyFlowLogAttributeRequest::getFlowLogId()const -{ - return flowLogId_; +void ModifyFlowLogAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void ModifyFlowLogAttributeRequest::setFlowLogId(const std::string& flowLogId) -{ - flowLogId_ = flowLogId; - setParameter("FlowLogId", flowLogId); +std::string ModifyFlowLogAttributeRequest::getFlowLogId() const { + return flowLogId_; +} + +void ModifyFlowLogAttributeRequest::setFlowLogId(const std::string &flowLogId) { + flowLogId_ = flowLogId; + setParameter(std::string("FlowLogId"), flowLogId); } diff --git a/smartag/src/model/ModifyHealthCheckRequest.cc b/smartag/src/model/ModifyHealthCheckRequest.cc index 583cca75c..b9842bc3e 100644 --- a/smartag/src/model/ModifyHealthCheckRequest.cc +++ b/smartag/src/model/ModifyHealthCheckRequest.cc @@ -1,249 +1,207 @@ /* * 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::Smartag::Model::ModifyHealthCheckRequest; - -ModifyHealthCheckRequest::ModifyHealthCheckRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyHealthCheck") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyHealthCheckRequest::~ModifyHealthCheckRequest() -{} - -int ModifyHealthCheckRequest::getProbeInterval()const -{ - return probeInterval_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyHealthCheckRequest; + +ModifyHealthCheckRequest::ModifyHealthCheckRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifyHealthCheck") { + setMethod(HttpRequest::Method::Post); } -void ModifyHealthCheckRequest::setProbeInterval(int probeInterval) -{ - probeInterval_ = probeInterval; - setParameter("ProbeInterval", std::to_string(probeInterval)); +ModifyHealthCheckRequest::~ModifyHealthCheckRequest() {} + +int ModifyHealthCheckRequest::getProbeInterval() const { + return probeInterval_; } -long ModifyHealthCheckRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyHealthCheckRequest::setProbeInterval(int probeInterval) { + probeInterval_ = probeInterval; + setParameter(std::string("ProbeInterval"), std::to_string(probeInterval)); } -void ModifyHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyHealthCheckRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int ModifyHealthCheckRequest::getDstPort()const -{ - return dstPort_; +void ModifyHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyHealthCheckRequest::setDstPort(int dstPort) -{ - dstPort_ = dstPort; - setParameter("DstPort", std::to_string(dstPort)); +int ModifyHealthCheckRequest::getDstPort() const { + return dstPort_; } -std::string ModifyHealthCheckRequest::getDescription()const -{ - return description_; +void ModifyHealthCheckRequest::setDstPort(int dstPort) { + dstPort_ = dstPort; + setParameter(std::string("DstPort"), std::to_string(dstPort)); } -void ModifyHealthCheckRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyHealthCheckRequest::getDescription() const { + return description_; } -std::string ModifyHealthCheckRequest::getHcInstanceId()const -{ - return hcInstanceId_; +void ModifyHealthCheckRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyHealthCheckRequest::setHcInstanceId(const std::string& hcInstanceId) -{ - hcInstanceId_ = hcInstanceId; - setParameter("HcInstanceId", hcInstanceId); +std::string ModifyHealthCheckRequest::getHcInstanceId() const { + return hcInstanceId_; } -std::string ModifyHealthCheckRequest::getType()const -{ - return type_; +void ModifyHealthCheckRequest::setHcInstanceId(const std::string &hcInstanceId) { + hcInstanceId_ = hcInstanceId; + setParameter(std::string("HcInstanceId"), hcInstanceId); } -void ModifyHealthCheckRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string ModifyHealthCheckRequest::getType() const { + return type_; } -int ModifyHealthCheckRequest::getFailCountThreshold()const -{ - return failCountThreshold_; +void ModifyHealthCheckRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void ModifyHealthCheckRequest::setFailCountThreshold(int failCountThreshold) -{ - failCountThreshold_ = failCountThreshold; - setParameter("FailCountThreshold", std::to_string(failCountThreshold)); +int ModifyHealthCheckRequest::getFailCountThreshold() const { + return failCountThreshold_; } -int ModifyHealthCheckRequest::getProbeTimeout()const -{ - return probeTimeout_; +void ModifyHealthCheckRequest::setFailCountThreshold(int failCountThreshold) { + failCountThreshold_ = failCountThreshold; + setParameter(std::string("FailCountThreshold"), std::to_string(failCountThreshold)); } -void ModifyHealthCheckRequest::setProbeTimeout(int probeTimeout) -{ - probeTimeout_ = probeTimeout; - setParameter("ProbeTimeout", std::to_string(probeTimeout)); +int ModifyHealthCheckRequest::getProbeTimeout() const { + return probeTimeout_; } -int ModifyHealthCheckRequest::getRttFailThreshold()const -{ - return rttFailThreshold_; +void ModifyHealthCheckRequest::setProbeTimeout(int probeTimeout) { + probeTimeout_ = probeTimeout; + setParameter(std::string("ProbeTimeout"), std::to_string(probeTimeout)); } -void ModifyHealthCheckRequest::setRttFailThreshold(int rttFailThreshold) -{ - rttFailThreshold_ = rttFailThreshold; - setParameter("RttFailThreshold", std::to_string(rttFailThreshold)); +int ModifyHealthCheckRequest::getRttFailThreshold() const { + return rttFailThreshold_; } -std::string ModifyHealthCheckRequest::getRegionId()const -{ - return regionId_; +void ModifyHealthCheckRequest::setRttFailThreshold(int rttFailThreshold) { + rttFailThreshold_ = rttFailThreshold; + setParameter(std::string("RttFailThreshold"), std::to_string(rttFailThreshold)); } -void ModifyHealthCheckRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyHealthCheckRequest::getRegionId() const { + return regionId_; } -int ModifyHealthCheckRequest::getRttThreshold()const -{ - return rttThreshold_; +void ModifyHealthCheckRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyHealthCheckRequest::setRttThreshold(int rttThreshold) -{ - rttThreshold_ = rttThreshold; - setParameter("RttThreshold", std::to_string(rttThreshold)); +int ModifyHealthCheckRequest::getRttThreshold() const { + return rttThreshold_; } -std::string ModifyHealthCheckRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyHealthCheckRequest::setRttThreshold(int rttThreshold) { + rttThreshold_ = rttThreshold; + setParameter(std::string("RttThreshold"), std::to_string(rttThreshold)); } -void ModifyHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyHealthCheckRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyHealthCheckRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyHealthCheckRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyHealthCheckRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyHealthCheckRequest::getDstIpAddr()const -{ - return dstIpAddr_; +void ModifyHealthCheckRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyHealthCheckRequest::setDstIpAddr(const std::string& dstIpAddr) -{ - dstIpAddr_ = dstIpAddr; - setParameter("DstIpAddr", dstIpAddr); +std::string ModifyHealthCheckRequest::getDstIpAddr() const { + return dstIpAddr_; } -long ModifyHealthCheckRequest::getOwnerId()const -{ - return ownerId_; +void ModifyHealthCheckRequest::setDstIpAddr(const std::string &dstIpAddr) { + dstIpAddr_ = dstIpAddr; + setParameter(std::string("DstIpAddr"), dstIpAddr); } -void ModifyHealthCheckRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyHealthCheckRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyHealthCheckRequest::getSrcIpAddr()const -{ - return srcIpAddr_; +void ModifyHealthCheckRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyHealthCheckRequest::setSrcIpAddr(const std::string& srcIpAddr) -{ - srcIpAddr_ = srcIpAddr; - setParameter("SrcIpAddr", srcIpAddr); +std::string ModifyHealthCheckRequest::getSrcIpAddr() const { + return srcIpAddr_; } -std::string ModifyHealthCheckRequest::getName()const -{ - return name_; +void ModifyHealthCheckRequest::setSrcIpAddr(const std::string &srcIpAddr) { + srcIpAddr_ = srcIpAddr; + setParameter(std::string("SrcIpAddr"), srcIpAddr); } -void ModifyHealthCheckRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyHealthCheckRequest::getName() const { + return name_; } -std::string ModifyHealthCheckRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifyHealthCheckRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void ModifyHealthCheckRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifyHealthCheckRequest::getSmartAGId() const { + return smartAGId_; } -int ModifyHealthCheckRequest::getSrcPort()const -{ - return srcPort_; +void ModifyHealthCheckRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifyHealthCheckRequest::setSrcPort(int srcPort) -{ - srcPort_ = srcPort; - setParameter("SrcPort", std::to_string(srcPort)); +int ModifyHealthCheckRequest::getSrcPort() const { + return srcPort_; } -int ModifyHealthCheckRequest::getProbeCount()const -{ - return probeCount_; +void ModifyHealthCheckRequest::setSrcPort(int srcPort) { + srcPort_ = srcPort; + setParameter(std::string("SrcPort"), std::to_string(srcPort)); } -void ModifyHealthCheckRequest::setProbeCount(int probeCount) -{ - probeCount_ = probeCount; - setParameter("ProbeCount", std::to_string(probeCount)); +int ModifyHealthCheckRequest::getProbeCount() const { + return probeCount_; +} + +void ModifyHealthCheckRequest::setProbeCount(int probeCount) { + probeCount_ = probeCount; + setParameter(std::string("ProbeCount"), std::to_string(probeCount)); } diff --git a/smartag/src/model/ModifyNetworkOptimizationRequest.cc b/smartag/src/model/ModifyNetworkOptimizationRequest.cc deleted file mode 100644 index ae4e26c1f..000000000 --- a/smartag/src/model/ModifyNetworkOptimizationRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * 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::Smartag::Model::ModifyNetworkOptimizationRequest; - -ModifyNetworkOptimizationRequest::ModifyNetworkOptimizationRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyNetworkOptimization") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyNetworkOptimizationRequest::~ModifyNetworkOptimizationRequest() -{} - -long ModifyNetworkOptimizationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void ModifyNetworkOptimizationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string ModifyNetworkOptimizationRequest::getRegionId()const -{ - return regionId_; -} - -void ModifyNetworkOptimizationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string ModifyNetworkOptimizationRequest::getNetworkOptId()const -{ - return networkOptId_; -} - -void ModifyNetworkOptimizationRequest::setNetworkOptId(const std::string& networkOptId) -{ - networkOptId_ = networkOptId; - setParameter("NetworkOptId", networkOptId); -} - -std::string ModifyNetworkOptimizationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void ModifyNetworkOptimizationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string ModifyNetworkOptimizationRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void ModifyNetworkOptimizationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long ModifyNetworkOptimizationRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifyNetworkOptimizationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifyNetworkOptimizationRequest::getName()const -{ - return name_; -} - -void ModifyNetworkOptimizationRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/smartag/src/model/ModifyNetworkOptimizationResult.cc b/smartag/src/model/ModifyNetworkOptimizationResult.cc deleted file mode 100644 index 4e95ea185..000000000 --- a/smartag/src/model/ModifyNetworkOptimizationResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifyNetworkOptimizationResult::ModifyNetworkOptimizationResult() : - ServiceResult() -{} - -ModifyNetworkOptimizationResult::ModifyNetworkOptimizationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyNetworkOptimizationResult::~ModifyNetworkOptimizationResult() -{} - -void ModifyNetworkOptimizationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/ModifyQosCarRequest.cc b/smartag/src/model/ModifyQosCarRequest.cc index a9e185d3b..436ade619 100644 --- a/smartag/src/model/ModifyQosCarRequest.cc +++ b/smartag/src/model/ModifyQosCarRequest.cc @@ -1,205 +1,171 @@ /* * 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::Smartag::Model::ModifyQosCarRequest; - -ModifyQosCarRequest::ModifyQosCarRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyQosCar") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyQosCarRequest::~ModifyQosCarRequest() -{} - -long ModifyQosCarRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyQosCarRequest; + +ModifyQosCarRequest::ModifyQosCarRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifyQosCar") { + setMethod(HttpRequest::Method::Post); } -void ModifyQosCarRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyQosCarRequest::~ModifyQosCarRequest() {} + +long ModifyQosCarRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int ModifyQosCarRequest::getMinBandwidthAbs()const -{ - return minBandwidthAbs_; +void ModifyQosCarRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyQosCarRequest::setMinBandwidthAbs(int minBandwidthAbs) -{ - minBandwidthAbs_ = minBandwidthAbs; - setParameter("MinBandwidthAbs", std::to_string(minBandwidthAbs)); +int ModifyQosCarRequest::getMinBandwidthAbs() const { + return minBandwidthAbs_; } -std::string ModifyQosCarRequest::getDescription()const -{ - return description_; +void ModifyQosCarRequest::setMinBandwidthAbs(int minBandwidthAbs) { + minBandwidthAbs_ = minBandwidthAbs; + setParameter(std::string("MinBandwidthAbs"), std::to_string(minBandwidthAbs)); } -void ModifyQosCarRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyQosCarRequest::getDescription() const { + return description_; } -std::string ModifyQosCarRequest::getRegionId()const -{ - return regionId_; +void ModifyQosCarRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyQosCarRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyQosCarRequest::getRegionId() const { + return regionId_; } -std::string ModifyQosCarRequest::getPercentSourceType()const -{ - return percentSourceType_; +void ModifyQosCarRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyQosCarRequest::setPercentSourceType(const std::string& percentSourceType) -{ - percentSourceType_ = percentSourceType; - setParameter("PercentSourceType", percentSourceType); +std::string ModifyQosCarRequest::getPercentSourceType() const { + return percentSourceType_; } -std::string ModifyQosCarRequest::getQosId()const -{ - return qosId_; +void ModifyQosCarRequest::setPercentSourceType(const std::string &percentSourceType) { + percentSourceType_ = percentSourceType; + setParameter(std::string("PercentSourceType"), percentSourceType); } -void ModifyQosCarRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string ModifyQosCarRequest::getQosId() const { + return qosId_; } -int ModifyQosCarRequest::getMaxBandwidthAbs()const -{ - return maxBandwidthAbs_; +void ModifyQosCarRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void ModifyQosCarRequest::setMaxBandwidthAbs(int maxBandwidthAbs) -{ - maxBandwidthAbs_ = maxBandwidthAbs; - setParameter("MaxBandwidthAbs", std::to_string(maxBandwidthAbs)); +int ModifyQosCarRequest::getMaxBandwidthAbs() const { + return maxBandwidthAbs_; } -std::string ModifyQosCarRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyQosCarRequest::setMaxBandwidthAbs(int maxBandwidthAbs) { + maxBandwidthAbs_ = maxBandwidthAbs; + setParameter(std::string("MaxBandwidthAbs"), std::to_string(maxBandwidthAbs)); } -void ModifyQosCarRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyQosCarRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int ModifyQosCarRequest::getMaxBandwidthPercent()const -{ - return maxBandwidthPercent_; +void ModifyQosCarRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyQosCarRequest::setMaxBandwidthPercent(int maxBandwidthPercent) -{ - maxBandwidthPercent_ = maxBandwidthPercent; - setParameter("MaxBandwidthPercent", std::to_string(maxBandwidthPercent)); +int ModifyQosCarRequest::getMaxBandwidthPercent() const { + return maxBandwidthPercent_; } -std::string ModifyQosCarRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyQosCarRequest::setMaxBandwidthPercent(int maxBandwidthPercent) { + maxBandwidthPercent_ = maxBandwidthPercent; + setParameter(std::string("MaxBandwidthPercent"), std::to_string(maxBandwidthPercent)); } -void ModifyQosCarRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyQosCarRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyQosCarRequest::getOwnerId()const -{ - return ownerId_; +void ModifyQosCarRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyQosCarRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyQosCarRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyQosCarRequest::getQosCarId()const -{ - return qosCarId_; +void ModifyQosCarRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyQosCarRequest::setQosCarId(const std::string& qosCarId) -{ - qosCarId_ = qosCarId; - setParameter("QosCarId", qosCarId); +std::string ModifyQosCarRequest::getQosCarId() const { + return qosCarId_; } -int ModifyQosCarRequest::getPriority()const -{ - return priority_; +void ModifyQosCarRequest::setQosCarId(const std::string &qosCarId) { + qosCarId_ = qosCarId; + setParameter(std::string("QosCarId"), qosCarId); } -void ModifyQosCarRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int ModifyQosCarRequest::getPriority() const { + return priority_; } -int ModifyQosCarRequest::getMinBandwidthPercent()const -{ - return minBandwidthPercent_; +void ModifyQosCarRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void ModifyQosCarRequest::setMinBandwidthPercent(int minBandwidthPercent) -{ - minBandwidthPercent_ = minBandwidthPercent; - setParameter("MinBandwidthPercent", std::to_string(minBandwidthPercent)); +int ModifyQosCarRequest::getMinBandwidthPercent() const { + return minBandwidthPercent_; } -std::string ModifyQosCarRequest::getLimitType()const -{ - return limitType_; +void ModifyQosCarRequest::setMinBandwidthPercent(int minBandwidthPercent) { + minBandwidthPercent_ = minBandwidthPercent; + setParameter(std::string("MinBandwidthPercent"), std::to_string(minBandwidthPercent)); } -void ModifyQosCarRequest::setLimitType(const std::string& limitType) -{ - limitType_ = limitType; - setParameter("LimitType", limitType); +std::string ModifyQosCarRequest::getLimitType() const { + return limitType_; } -std::string ModifyQosCarRequest::getName()const -{ - return name_; +void ModifyQosCarRequest::setLimitType(const std::string &limitType) { + limitType_ = limitType; + setParameter(std::string("LimitType"), limitType); } -void ModifyQosCarRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyQosCarRequest::getName() const { + return name_; +} + +void ModifyQosCarRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/ModifyQosPolicyRequest.cc b/smartag/src/model/ModifyQosPolicyRequest.cc index dfd301edf..5235b078b 100644 --- a/smartag/src/model/ModifyQosPolicyRequest.cc +++ b/smartag/src/model/ModifyQosPolicyRequest.cc @@ -1,242 +1,196 @@ /* * 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::Smartag::Model::ModifyQosPolicyRequest; - -ModifyQosPolicyRequest::ModifyQosPolicyRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyQosPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyQosPolicyRequest::~ModifyQosPolicyRequest() -{} - -std::vector ModifyQosPolicyRequest::getDpiGroupIds()const -{ - return dpiGroupIds_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyQosPolicyRequest; + +ModifyQosPolicyRequest::ModifyQosPolicyRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifyQosPolicy") { + setMethod(HttpRequest::Method::Post); } -void ModifyQosPolicyRequest::setDpiGroupIds(const std::vector& dpiGroupIds) -{ - dpiGroupIds_ = dpiGroupIds; - for(int dep1 = 0; dep1!= dpiGroupIds.size(); dep1++) { - setParameter("DpiGroupIds."+ std::to_string(dep1), dpiGroupIds.at(dep1)); - } +ModifyQosPolicyRequest::~ModifyQosPolicyRequest() {} + +std::vector ModifyQosPolicyRequest::getDpiGroupIds() const { + return dpiGroupIds_; } -long ModifyQosPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyQosPolicyRequest::setDpiGroupIds(const std::vector &dpiGroupIds) { + dpiGroupIds_ = dpiGroupIds; } -void ModifyQosPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyQosPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyQosPolicyRequest::getSourcePortRange()const -{ - return sourcePortRange_; +void ModifyQosPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyQosPolicyRequest::setSourcePortRange(const std::string& sourcePortRange) -{ - sourcePortRange_ = sourcePortRange; - setParameter("SourcePortRange", sourcePortRange); +std::string ModifyQosPolicyRequest::getSourcePortRange() const { + return sourcePortRange_; } -std::string ModifyQosPolicyRequest::getQosPolicyId()const -{ - return qosPolicyId_; +void ModifyQosPolicyRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); } -void ModifyQosPolicyRequest::setQosPolicyId(const std::string& qosPolicyId) -{ - qosPolicyId_ = qosPolicyId; - setParameter("QosPolicyId", qosPolicyId); +std::string ModifyQosPolicyRequest::getQosPolicyId() const { + return qosPolicyId_; } -std::string ModifyQosPolicyRequest::getSourceCidr()const -{ - return sourceCidr_; +void ModifyQosPolicyRequest::setQosPolicyId(const std::string &qosPolicyId) { + qosPolicyId_ = qosPolicyId; + setParameter(std::string("QosPolicyId"), qosPolicyId); } -void ModifyQosPolicyRequest::setSourceCidr(const std::string& sourceCidr) -{ - sourceCidr_ = sourceCidr; - setParameter("SourceCidr", sourceCidr); +std::string ModifyQosPolicyRequest::getSourceCidr() const { + return sourceCidr_; } -std::string ModifyQosPolicyRequest::getDescription()const -{ - return description_; +void ModifyQosPolicyRequest::setSourceCidr(const std::string &sourceCidr) { + sourceCidr_ = sourceCidr; + setParameter(std::string("SourceCidr"), sourceCidr); } -void ModifyQosPolicyRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyQosPolicyRequest::getDescription() const { + return description_; } -std::string ModifyQosPolicyRequest::getStartTime()const -{ - return startTime_; +void ModifyQosPolicyRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyQosPolicyRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string ModifyQosPolicyRequest::getStartTime() const { + return startTime_; } -std::string ModifyQosPolicyRequest::getDestCidr()const -{ - return destCidr_; +void ModifyQosPolicyRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void ModifyQosPolicyRequest::setDestCidr(const std::string& destCidr) -{ - destCidr_ = destCidr; - setParameter("DestCidr", destCidr); +std::string ModifyQosPolicyRequest::getDestCidr() const { + return destCidr_; } -std::vector ModifyQosPolicyRequest::getDpiSignatureIds()const -{ - return dpiSignatureIds_; +void ModifyQosPolicyRequest::setDestCidr(const std::string &destCidr) { + destCidr_ = destCidr; + setParameter(std::string("DestCidr"), destCidr); } -void ModifyQosPolicyRequest::setDpiSignatureIds(const std::vector& dpiSignatureIds) -{ - dpiSignatureIds_ = dpiSignatureIds; - for(int dep1 = 0; dep1!= dpiSignatureIds.size(); dep1++) { - setParameter("DpiSignatureIds."+ std::to_string(dep1), dpiSignatureIds.at(dep1)); - } +std::vector ModifyQosPolicyRequest::getDpiSignatureIds() const { + return dpiSignatureIds_; } -std::string ModifyQosPolicyRequest::getRegionId()const -{ - return regionId_; +void ModifyQosPolicyRequest::setDpiSignatureIds(const std::vector &dpiSignatureIds) { + dpiSignatureIds_ = dpiSignatureIds; } -void ModifyQosPolicyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyQosPolicyRequest::getRegionId() const { + return regionId_; } -std::string ModifyQosPolicyRequest::getQosId()const -{ - return qosId_; +void ModifyQosPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyQosPolicyRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string ModifyQosPolicyRequest::getQosId() const { + return qosId_; } -std::string ModifyQosPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyQosPolicyRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void ModifyQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyQosPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyQosPolicyRequest::getIpProtocol()const -{ - return ipProtocol_; +void ModifyQosPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyQosPolicyRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string ModifyQosPolicyRequest::getIpProtocol() const { + return ipProtocol_; } -std::string ModifyQosPolicyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyQosPolicyRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void ModifyQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyQosPolicyRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyQosPolicyRequest::getEndTime()const -{ - return endTime_; +void ModifyQosPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyQosPolicyRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string ModifyQosPolicyRequest::getEndTime() const { + return endTime_; } -long ModifyQosPolicyRequest::getOwnerId()const -{ - return ownerId_; +void ModifyQosPolicyRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void ModifyQosPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyQosPolicyRequest::getOwnerId() const { + return ownerId_; } -int ModifyQosPolicyRequest::getPriority()const -{ - return priority_; +void ModifyQosPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyQosPolicyRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int ModifyQosPolicyRequest::getPriority() const { + return priority_; } -std::string ModifyQosPolicyRequest::getDestPortRange()const -{ - return destPortRange_; +void ModifyQosPolicyRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void ModifyQosPolicyRequest::setDestPortRange(const std::string& destPortRange) -{ - destPortRange_ = destPortRange; - setParameter("DestPortRange", destPortRange); +std::string ModifyQosPolicyRequest::getDestPortRange() const { + return destPortRange_; } -std::string ModifyQosPolicyRequest::getName()const -{ - return name_; +void ModifyQosPolicyRequest::setDestPortRange(const std::string &destPortRange) { + destPortRange_ = destPortRange; + setParameter(std::string("DestPortRange"), destPortRange); } -void ModifyQosPolicyRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyQosPolicyRequest::getName() const { + return name_; +} + +void ModifyQosPolicyRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/smartag/src/model/ModifyQosRequest.cc b/smartag/src/model/ModifyQosRequest.cc index 164060bd8..9f8e59f3d 100644 --- a/smartag/src/model/ModifyQosRequest.cc +++ b/smartag/src/model/ModifyQosRequest.cc @@ -1,117 +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::Smartag::Model::ModifyQosRequest; - -ModifyQosRequest::ModifyQosRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyQos") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyQosRequest::~ModifyQosRequest() -{} - -long ModifyQosRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyQosRequest; + +ModifyQosRequest::ModifyQosRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifyQos") { + setMethod(HttpRequest::Method::Post); } -void ModifyQosRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyQosRequest::~ModifyQosRequest() {} + +long ModifyQosRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyQosRequest::getRegionId()const -{ - return regionId_; +void ModifyQosRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyQosRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyQosRequest::getRegionId() const { + return regionId_; } -std::string ModifyQosRequest::getQosId()const -{ - return qosId_; +void ModifyQosRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyQosRequest::setQosId(const std::string& qosId) -{ - qosId_ = qosId; - setParameter("QosId", qosId); +std::string ModifyQosRequest::getQosId() const { + return qosId_; } -std::string ModifyQosRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyQosRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); } -void ModifyQosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyQosRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyQosRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyQosRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyQosRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyQosRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyQosRequest::getOwnerId()const -{ - return ownerId_; +void ModifyQosRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyQosRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyQosRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyQosRequest::getQosName()const -{ - return qosName_; +void ModifyQosRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyQosRequest::setQosName(const std::string& qosName) -{ - qosName_ = qosName; - setParameter("QosName", qosName); +std::string ModifyQosRequest::getQosName() const { + return qosName_; } -std::string ModifyQosRequest::getQosDescription()const -{ - return qosDescription_; +void ModifyQosRequest::setQosName(const std::string &qosName) { + qosName_ = qosName; + setParameter(std::string("QosName"), qosName); } -void ModifyQosRequest::setQosDescription(const std::string& qosDescription) -{ - qosDescription_ = qosDescription; - setParameter("QosDescription", qosDescription); +std::string ModifyQosRequest::getQosDescription() const { + return qosDescription_; +} + +void ModifyQosRequest::setQosDescription(const std::string &qosDescription) { + qosDescription_ = qosDescription; + setParameter(std::string("QosDescription"), qosDescription); } diff --git a/smartag/src/model/ModifyRouteDistributionStrategyRequest.cc b/smartag/src/model/ModifyRouteDistributionStrategyRequest.cc index 384299c48..689386edc 100644 --- a/smartag/src/model/ModifyRouteDistributionStrategyRequest.cc +++ b/smartag/src/model/ModifyRouteDistributionStrategyRequest.cc @@ -1,150 +1,126 @@ /* * 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::Smartag::Model::ModifyRouteDistributionStrategyRequest; - -ModifyRouteDistributionStrategyRequest::ModifyRouteDistributionStrategyRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifyRouteDistributionStrategy") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyRouteDistributionStrategyRequest::~ModifyRouteDistributionStrategyRequest() -{} - -std::string ModifyRouteDistributionStrategyRequest::getRouteSource()const -{ - return routeSource_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifyRouteDistributionStrategyRequest; + +ModifyRouteDistributionStrategyRequest::ModifyRouteDistributionStrategyRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifyRouteDistributionStrategy") { + setMethod(HttpRequest::Method::Post); } -void ModifyRouteDistributionStrategyRequest::setRouteSource(const std::string& routeSource) -{ - routeSource_ = routeSource; - setParameter("RouteSource", routeSource); +ModifyRouteDistributionStrategyRequest::~ModifyRouteDistributionStrategyRequest() {} + +std::string ModifyRouteDistributionStrategyRequest::getRouteSource() const { + return routeSource_; } -long ModifyRouteDistributionStrategyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyRouteDistributionStrategyRequest::setRouteSource(const std::string &routeSource) { + routeSource_ = routeSource; + setParameter(std::string("RouteSource"), routeSource); } -void ModifyRouteDistributionStrategyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyRouteDistributionStrategyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyRouteDistributionStrategyRequest::getHcInstanceId()const -{ - return hcInstanceId_; +void ModifyRouteDistributionStrategyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyRouteDistributionStrategyRequest::setHcInstanceId(const std::string& hcInstanceId) -{ - hcInstanceId_ = hcInstanceId; - setParameter("HcInstanceId", hcInstanceId); +std::string ModifyRouteDistributionStrategyRequest::getHcInstanceId() const { + return hcInstanceId_; } -std::string ModifyRouteDistributionStrategyRequest::getRegionId()const -{ - return regionId_; +void ModifyRouteDistributionStrategyRequest::setHcInstanceId(const std::string &hcInstanceId) { + hcInstanceId_ = hcInstanceId; + setParameter(std::string("HcInstanceId"), hcInstanceId); } -void ModifyRouteDistributionStrategyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyRouteDistributionStrategyRequest::getRegionId() const { + return regionId_; } -std::string ModifyRouteDistributionStrategyRequest::getSourceType()const -{ - return sourceType_; +void ModifyRouteDistributionStrategyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyRouteDistributionStrategyRequest::setSourceType(const std::string& sourceType) -{ - sourceType_ = sourceType; - setParameter("SourceType", sourceType); +std::string ModifyRouteDistributionStrategyRequest::getSourceType() const { + return sourceType_; } -std::string ModifyRouteDistributionStrategyRequest::getDestCidrBlock()const -{ - return destCidrBlock_; +void ModifyRouteDistributionStrategyRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); } -void ModifyRouteDistributionStrategyRequest::setDestCidrBlock(const std::string& destCidrBlock) -{ - destCidrBlock_ = destCidrBlock; - setParameter("DestCidrBlock", destCidrBlock); +std::string ModifyRouteDistributionStrategyRequest::getDestCidrBlock() const { + return destCidrBlock_; } -std::string ModifyRouteDistributionStrategyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyRouteDistributionStrategyRequest::setDestCidrBlock(const std::string &destCidrBlock) { + destCidrBlock_ = destCidrBlock; + setParameter(std::string("DestCidrBlock"), destCidrBlock); } -void ModifyRouteDistributionStrategyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyRouteDistributionStrategyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyRouteDistributionStrategyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyRouteDistributionStrategyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyRouteDistributionStrategyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyRouteDistributionStrategyRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyRouteDistributionStrategyRequest::getRouteDistribution()const -{ - return routeDistribution_; +void ModifyRouteDistributionStrategyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyRouteDistributionStrategyRequest::setRouteDistribution(const std::string& routeDistribution) -{ - routeDistribution_ = routeDistribution; - setParameter("RouteDistribution", routeDistribution); +std::string ModifyRouteDistributionStrategyRequest::getRouteDistribution() const { + return routeDistribution_; } -long ModifyRouteDistributionStrategyRequest::getOwnerId()const -{ - return ownerId_; +void ModifyRouteDistributionStrategyRequest::setRouteDistribution(const std::string &routeDistribution) { + routeDistribution_ = routeDistribution; + setParameter(std::string("RouteDistribution"), routeDistribution); } -void ModifyRouteDistributionStrategyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyRouteDistributionStrategyRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyRouteDistributionStrategyRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifyRouteDistributionStrategyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyRouteDistributionStrategyRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifyRouteDistributionStrategyRequest::getSmartAGId() const { + return smartAGId_; +} + +void ModifyRouteDistributionStrategyRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/ModifySAGAdminPasswordRequest.cc b/smartag/src/model/ModifySAGAdminPasswordRequest.cc index 27920cc2c..b0a9d0780 100644 --- a/smartag/src/model/ModifySAGAdminPasswordRequest.cc +++ b/smartag/src/model/ModifySAGAdminPasswordRequest.cc @@ -1,117 +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::Smartag::Model::ModifySAGAdminPasswordRequest; - -ModifySAGAdminPasswordRequest::ModifySAGAdminPasswordRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySAGAdminPassword") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySAGAdminPasswordRequest::~ModifySAGAdminPasswordRequest() -{} - -long ModifySAGAdminPasswordRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySAGAdminPasswordRequest; + +ModifySAGAdminPasswordRequest::ModifySAGAdminPasswordRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySAGAdminPassword") { + setMethod(HttpRequest::Method::Post); } -void ModifySAGAdminPasswordRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySAGAdminPasswordRequest::~ModifySAGAdminPasswordRequest() {} + +long ModifySAGAdminPasswordRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySAGAdminPasswordRequest::getPassword()const -{ - return password_; +void ModifySAGAdminPasswordRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySAGAdminPasswordRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +std::string ModifySAGAdminPasswordRequest::getPassword() const { + return password_; } -std::string ModifySAGAdminPasswordRequest::getRegionId()const -{ - return regionId_; +void ModifySAGAdminPasswordRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void ModifySAGAdminPasswordRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySAGAdminPasswordRequest::getRegionId() const { + return regionId_; } -std::string ModifySAGAdminPasswordRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySAGAdminPasswordRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySAGAdminPasswordRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySAGAdminPasswordRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySAGAdminPasswordRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySAGAdminPasswordRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySAGAdminPasswordRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySAGAdminPasswordRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySAGAdminPasswordRequest::getOwnerId()const -{ - return ownerId_; +void ModifySAGAdminPasswordRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySAGAdminPasswordRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySAGAdminPasswordRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySAGAdminPasswordRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySAGAdminPasswordRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySAGAdminPasswordRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySAGAdminPasswordRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySAGAdminPasswordRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySAGAdminPasswordRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySAGAdminPasswordRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySAGAdminPasswordRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void ModifySAGAdminPasswordRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/ModifySagCidrRequest.cc b/smartag/src/model/ModifySagCidrRequest.cc deleted file mode 100644 index 31a0e2eba..000000000 --- a/smartag/src/model/ModifySagCidrRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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::Smartag::Model::ModifySagCidrRequest; - -ModifySagCidrRequest::ModifySagCidrRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagCidr") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagCidrRequest::~ModifySagCidrRequest() -{} - -long ModifySagCidrRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void ModifySagCidrRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string ModifySagCidrRequest::getRegionId()const -{ - return regionId_; -} - -void ModifySagCidrRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string ModifySagCidrRequest::getCidr()const -{ - return cidr_; -} - -void ModifySagCidrRequest::setCidr(const std::string& cidr) -{ - cidr_ = cidr; - setParameter("Cidr", cidr); -} - -std::string ModifySagCidrRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void ModifySagCidrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string ModifySagCidrRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void ModifySagCidrRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long ModifySagCidrRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifySagCidrRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -bool ModifySagCidrRequest::getEnableBackup()const -{ - return enableBackup_; -} - -void ModifySagCidrRequest::setEnableBackup(bool enableBackup) -{ - enableBackup_ = enableBackup; - setParameter("EnableBackup", enableBackup ? "true" : "false"); -} - -std::string ModifySagCidrRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void ModifySagCidrRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); -} - diff --git a/smartag/src/model/ModifySagCidrResult.cc b/smartag/src/model/ModifySagCidrResult.cc deleted file mode 100644 index e200773c2..000000000 --- a/smartag/src/model/ModifySagCidrResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifySagCidrResult::ModifySagCidrResult() : - ServiceResult() -{} - -ModifySagCidrResult::ModifySagCidrResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySagCidrResult::~ModifySagCidrResult() -{} - -void ModifySagCidrResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/ModifySagECRouteBackupRequest.cc b/smartag/src/model/ModifySagECRouteBackupRequest.cc deleted file mode 100644 index b9bbbcca0..000000000 --- a/smartag/src/model/ModifySagECRouteBackupRequest.cc +++ /dev/null @@ -1,139 +0,0 @@ -/* - * 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::Smartag::Model::ModifySagECRouteBackupRequest; - -ModifySagECRouteBackupRequest::ModifySagECRouteBackupRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagECRouteBackup") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagECRouteBackupRequest::~ModifySagECRouteBackupRequest() -{} - -long ModifySagECRouteBackupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void ModifySagECRouteBackupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string ModifySagECRouteBackupRequest::getExpressConnectionInterface()const -{ - return expressConnectionInterface_; -} - -void ModifySagECRouteBackupRequest::setExpressConnectionInterface(const std::string& expressConnectionInterface) -{ - expressConnectionInterface_ = expressConnectionInterface; - setParameter("ExpressConnectionInterface", expressConnectionInterface); -} - -std::string ModifySagECRouteBackupRequest::getHcIp()const -{ - return hcIp_; -} - -void ModifySagECRouteBackupRequest::setHcIp(const std::string& hcIp) -{ - hcIp_ = hcIp; - setParameter("HcIp", hcIp); -} - -std::string ModifySagECRouteBackupRequest::getRegionId()const -{ - return regionId_; -} - -void ModifySagECRouteBackupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -bool ModifySagECRouteBackupRequest::getRouteBackup()const -{ - return routeBackup_; -} - -void ModifySagECRouteBackupRequest::setRouteBackup(bool routeBackup) -{ - routeBackup_ = routeBackup; - setParameter("RouteBackup", routeBackup ? "true" : "false"); -} - -std::string ModifySagECRouteBackupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void ModifySagECRouteBackupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string ModifySagECRouteBackupRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void ModifySagECRouteBackupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long ModifySagECRouteBackupRequest::getOwnerId()const -{ - return ownerId_; -} - -void ModifySagECRouteBackupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string ModifySagECRouteBackupRequest::getSmartAGId()const -{ - return smartAGId_; -} - -void ModifySagECRouteBackupRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); -} - -std::string ModifySagECRouteBackupRequest::getExpressConnectionNexthop()const -{ - return expressConnectionNexthop_; -} - -void ModifySagECRouteBackupRequest::setExpressConnectionNexthop(const std::string& expressConnectionNexthop) -{ - expressConnectionNexthop_ = expressConnectionNexthop; - setParameter("ExpressConnectionNexthop", expressConnectionNexthop); -} - diff --git a/smartag/src/model/ModifySagECRouteBackupResult.cc b/smartag/src/model/ModifySagECRouteBackupResult.cc deleted file mode 100644 index 83adec561..000000000 --- a/smartag/src/model/ModifySagECRouteBackupResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -ModifySagECRouteBackupResult::ModifySagECRouteBackupResult() : - ServiceResult() -{} - -ModifySagECRouteBackupResult::ModifySagECRouteBackupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySagECRouteBackupResult::~ModifySagECRouteBackupResult() -{} - -void ModifySagECRouteBackupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/ModifySagExpressConnectInterfaceRequest.cc b/smartag/src/model/ModifySagExpressConnectInterfaceRequest.cc index f50bc3158..830037782 100644 --- a/smartag/src/model/ModifySagExpressConnectInterfaceRequest.cc +++ b/smartag/src/model/ModifySagExpressConnectInterfaceRequest.cc @@ -1,150 +1,126 @@ /* * 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::Smartag::Model::ModifySagExpressConnectInterfaceRequest; - -ModifySagExpressConnectInterfaceRequest::ModifySagExpressConnectInterfaceRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagExpressConnectInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagExpressConnectInterfaceRequest::~ModifySagExpressConnectInterfaceRequest() -{} - -long ModifySagExpressConnectInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagExpressConnectInterfaceRequest; + +ModifySagExpressConnectInterfaceRequest::ModifySagExpressConnectInterfaceRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagExpressConnectInterface") { + setMethod(HttpRequest::Method::Post); } -void ModifySagExpressConnectInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagExpressConnectInterfaceRequest::~ModifySagExpressConnectInterfaceRequest() {} + +long ModifySagExpressConnectInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagExpressConnectInterfaceRequest::getVlan()const -{ - return vlan_; +void ModifySagExpressConnectInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagExpressConnectInterfaceRequest::setVlan(const std::string& vlan) -{ - vlan_ = vlan; - setParameter("Vlan", vlan); +std::string ModifySagExpressConnectInterfaceRequest::getVlan() const { + return vlan_; } -std::string ModifySagExpressConnectInterfaceRequest::getRegionId()const -{ - return regionId_; +void ModifySagExpressConnectInterfaceRequest::setVlan(const std::string &vlan) { + vlan_ = vlan; + setParameter(std::string("Vlan"), vlan); } -void ModifySagExpressConnectInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagExpressConnectInterfaceRequest::getRegionId() const { + return regionId_; } -std::string ModifySagExpressConnectInterfaceRequest::getMask()const -{ - return mask_; +void ModifySagExpressConnectInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagExpressConnectInterfaceRequest::setMask(const std::string& mask) -{ - mask_ = mask; - setParameter("Mask", mask); +std::string ModifySagExpressConnectInterfaceRequest::getMask() const { + return mask_; } -std::string ModifySagExpressConnectInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagExpressConnectInterfaceRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); } -void ModifySagExpressConnectInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagExpressConnectInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagExpressConnectInterfaceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagExpressConnectInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagExpressConnectInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagExpressConnectInterfaceRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifySagExpressConnectInterfaceRequest::getIP()const -{ - return iP_; +void ModifySagExpressConnectInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagExpressConnectInterfaceRequest::setIP(const std::string& iP) -{ - iP_ = iP; - setParameter("IP", iP); +std::string ModifySagExpressConnectInterfaceRequest::getIP() const { + return iP_; } -long ModifySagExpressConnectInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagExpressConnectInterfaceRequest::setIP(const std::string &iP) { + iP_ = iP; + setParameter(std::string("IP"), iP); } -void ModifySagExpressConnectInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagExpressConnectInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagExpressConnectInterfaceRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagExpressConnectInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagExpressConnectInterfaceRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagExpressConnectInterfaceRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagExpressConnectInterfaceRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagExpressConnectInterfaceRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagExpressConnectInterfaceRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagExpressConnectInterfaceRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string ModifySagExpressConnectInterfaceRequest::getPortName()const -{ - return portName_; +void ModifySagExpressConnectInterfaceRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void ModifySagExpressConnectInterfaceRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string ModifySagExpressConnectInterfaceRequest::getPortName() const { + return portName_; +} + +void ModifySagExpressConnectInterfaceRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } diff --git a/smartag/src/model/ModifySagGlobalRouteProtocolRequest.cc b/smartag/src/model/ModifySagGlobalRouteProtocolRequest.cc index 425a5549b..d3bc8cb4a 100644 --- a/smartag/src/model/ModifySagGlobalRouteProtocolRequest.cc +++ b/smartag/src/model/ModifySagGlobalRouteProtocolRequest.cc @@ -1,117 +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::Smartag::Model::ModifySagGlobalRouteProtocolRequest; - -ModifySagGlobalRouteProtocolRequest::ModifySagGlobalRouteProtocolRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagGlobalRouteProtocol") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagGlobalRouteProtocolRequest::~ModifySagGlobalRouteProtocolRequest() -{} - -long ModifySagGlobalRouteProtocolRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagGlobalRouteProtocolRequest; + +ModifySagGlobalRouteProtocolRequest::ModifySagGlobalRouteProtocolRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagGlobalRouteProtocol") { + setMethod(HttpRequest::Method::Post); } -void ModifySagGlobalRouteProtocolRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagGlobalRouteProtocolRequest::~ModifySagGlobalRouteProtocolRequest() {} + +long ModifySagGlobalRouteProtocolRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagGlobalRouteProtocolRequest::getRegionId()const -{ - return regionId_; +void ModifySagGlobalRouteProtocolRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagGlobalRouteProtocolRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagGlobalRouteProtocolRequest::getRegionId() const { + return regionId_; } -std::string ModifySagGlobalRouteProtocolRequest::getRouteProtocol()const -{ - return routeProtocol_; +void ModifySagGlobalRouteProtocolRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagGlobalRouteProtocolRequest::setRouteProtocol(const std::string& routeProtocol) -{ - routeProtocol_ = routeProtocol; - setParameter("RouteProtocol", routeProtocol); +std::string ModifySagGlobalRouteProtocolRequest::getRouteProtocol() const { + return routeProtocol_; } -std::string ModifySagGlobalRouteProtocolRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagGlobalRouteProtocolRequest::setRouteProtocol(const std::string &routeProtocol) { + routeProtocol_ = routeProtocol; + setParameter(std::string("RouteProtocol"), routeProtocol); } -void ModifySagGlobalRouteProtocolRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagGlobalRouteProtocolRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagGlobalRouteProtocolRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagGlobalRouteProtocolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagGlobalRouteProtocolRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagGlobalRouteProtocolRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySagGlobalRouteProtocolRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagGlobalRouteProtocolRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagGlobalRouteProtocolRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagGlobalRouteProtocolRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagGlobalRouteProtocolRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagGlobalRouteProtocolRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagGlobalRouteProtocolRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagGlobalRouteProtocolRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagGlobalRouteProtocolRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagGlobalRouteProtocolRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagGlobalRouteProtocolRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagGlobalRouteProtocolRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void ModifySagGlobalRouteProtocolRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/ModifySagHaRequest.cc b/smartag/src/model/ModifySagHaRequest.cc index 055f8e250..a5b0691d2 100644 --- a/smartag/src/model/ModifySagHaRequest.cc +++ b/smartag/src/model/ModifySagHaRequest.cc @@ -1,139 +1,117 @@ /* * 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::Smartag::Model::ModifySagHaRequest; - -ModifySagHaRequest::ModifySagHaRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagHa") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagHaRequest::~ModifySagHaRequest() -{} - -long ModifySagHaRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagHaRequest; + +ModifySagHaRequest::ModifySagHaRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagHa") { + setMethod(HttpRequest::Method::Post); } -void ModifySagHaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagHaRequest::~ModifySagHaRequest() {} + +long ModifySagHaRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagHaRequest::getVirtualIp()const -{ - return virtualIp_; +void ModifySagHaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagHaRequest::setVirtualIp(const std::string& virtualIp) -{ - virtualIp_ = virtualIp; - setParameter("VirtualIp", virtualIp); +std::string ModifySagHaRequest::getVirtualIp() const { + return virtualIp_; } -std::string ModifySagHaRequest::getMode()const -{ - return mode_; +void ModifySagHaRequest::setVirtualIp(const std::string &virtualIp) { + virtualIp_ = virtualIp; + setParameter(std::string("VirtualIp"), virtualIp); } -void ModifySagHaRequest::setMode(const std::string& mode) -{ - mode_ = mode; - setParameter("Mode", mode); +std::string ModifySagHaRequest::getMode() const { + return mode_; } -std::string ModifySagHaRequest::getRegionId()const -{ - return regionId_; +void ModifySagHaRequest::setMode(const std::string &mode) { + mode_ = mode; + setParameter(std::string("Mode"), mode); } -void ModifySagHaRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagHaRequest::getRegionId() const { + return regionId_; } -std::string ModifySagHaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagHaRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagHaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagHaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagHaRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagHaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagHaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagHaRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySagHaRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagHaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagHaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagHaRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagHaRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagHaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagHaRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagHaRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagHaRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagHaRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagHaRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagHaRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string ModifySagHaRequest::getPortName()const -{ - return portName_; +void ModifySagHaRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void ModifySagHaRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string ModifySagHaRequest::getPortName() const { + return portName_; +} + +void ModifySagHaRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } diff --git a/smartag/src/model/ModifySagLanRequest.cc b/smartag/src/model/ModifySagLanRequest.cc index ced1ae478..06fcaafac 100644 --- a/smartag/src/model/ModifySagLanRequest.cc +++ b/smartag/src/model/ModifySagLanRequest.cc @@ -1,183 +1,153 @@ /* * 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::Smartag::Model::ModifySagLanRequest; - -ModifySagLanRequest::ModifySagLanRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagLan") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagLanRequest::~ModifySagLanRequest() -{} - -std::string ModifySagLanRequest::getEndIp()const -{ - return endIp_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagLanRequest; + +ModifySagLanRequest::ModifySagLanRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagLan") { + setMethod(HttpRequest::Method::Post); } -void ModifySagLanRequest::setEndIp(const std::string& endIp) -{ - endIp_ = endIp; - setParameter("EndIp", endIp); +ModifySagLanRequest::~ModifySagLanRequest() {} + +std::string ModifySagLanRequest::getEndIp() const { + return endIp_; } -long ModifySagLanRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifySagLanRequest::setEndIp(const std::string &endIp) { + endIp_ = endIp; + setParameter(std::string("EndIp"), endIp); } -void ModifySagLanRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifySagLanRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagLanRequest::getRegionId()const -{ - return regionId_; +void ModifySagLanRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagLanRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagLanRequest::getRegionId() const { + return regionId_; } -std::string ModifySagLanRequest::getMask()const -{ - return mask_; +void ModifySagLanRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagLanRequest::setMask(const std::string& mask) -{ - mask_ = mask; - setParameter("Mask", mask); +std::string ModifySagLanRequest::getMask() const { + return mask_; } -std::string ModifySagLanRequest::getStartIp()const -{ - return startIp_; +void ModifySagLanRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); } -void ModifySagLanRequest::setStartIp(const std::string& startIp) -{ - startIp_ = startIp; - setParameter("StartIp", startIp); +std::string ModifySagLanRequest::getStartIp() const { + return startIp_; } -std::string ModifySagLanRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagLanRequest::setStartIp(const std::string &startIp) { + startIp_ = startIp; + setParameter(std::string("StartIp"), startIp); } -void ModifySagLanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagLanRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagLanRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagLanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagLanRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagLanRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifySagLanRequest::getIP()const -{ - return iP_; +void ModifySagLanRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagLanRequest::setIP(const std::string& iP) -{ - iP_ = iP; - setParameter("IP", iP); +std::string ModifySagLanRequest::getIP() const { + return iP_; } -long ModifySagLanRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagLanRequest::setIP(const std::string &iP) { + iP_ = iP; + setParameter(std::string("IP"), iP); } -void ModifySagLanRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagLanRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagLanRequest::getIPType()const -{ - return iPType_; +void ModifySagLanRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagLanRequest::setIPType(const std::string& iPType) -{ - iPType_ = iPType; - setParameter("IPType", iPType); +std::string ModifySagLanRequest::getIPType() const { + return iPType_; } -std::string ModifySagLanRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagLanRequest::setIPType(const std::string &iPType) { + iPType_ = iPType; + setParameter(std::string("IPType"), iPType); } -void ModifySagLanRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagLanRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagLanRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagLanRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagLanRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagLanRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string ModifySagLanRequest::getPortName()const -{ - return portName_; +void ModifySagLanRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void ModifySagLanRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string ModifySagLanRequest::getPortName() const { + return portName_; } -std::string ModifySagLanRequest::getLease()const -{ - return lease_; +void ModifySagLanRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } -void ModifySagLanRequest::setLease(const std::string& lease) -{ - lease_ = lease; - setParameter("Lease", lease); +std::string ModifySagLanRequest::getLease() const { + return lease_; +} + +void ModifySagLanRequest::setLease(const std::string &lease) { + lease_ = lease; + setParameter(std::string("Lease"), lease); } diff --git a/smartag/src/model/ModifySagManagementPortRequest.cc b/smartag/src/model/ModifySagManagementPortRequest.cc index fd2edfa2d..3d5cfad34 100644 --- a/smartag/src/model/ModifySagManagementPortRequest.cc +++ b/smartag/src/model/ModifySagManagementPortRequest.cc @@ -1,139 +1,117 @@ /* * 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::Smartag::Model::ModifySagManagementPortRequest; - -ModifySagManagementPortRequest::ModifySagManagementPortRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagManagementPort") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagManagementPortRequest::~ModifySagManagementPortRequest() -{} - -long ModifySagManagementPortRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagManagementPortRequest; + +ModifySagManagementPortRequest::ModifySagManagementPortRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagManagementPort") { + setMethod(HttpRequest::Method::Post); } -void ModifySagManagementPortRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagManagementPortRequest::~ModifySagManagementPortRequest() {} + +long ModifySagManagementPortRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagManagementPortRequest::getRegionId()const -{ - return regionId_; +void ModifySagManagementPortRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagManagementPortRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagManagementPortRequest::getRegionId() const { + return regionId_; } -std::string ModifySagManagementPortRequest::getMask()const -{ - return mask_; +void ModifySagManagementPortRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagManagementPortRequest::setMask(const std::string& mask) -{ - mask_ = mask; - setParameter("Mask", mask); +std::string ModifySagManagementPortRequest::getMask() const { + return mask_; } -std::string ModifySagManagementPortRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagManagementPortRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); } -void ModifySagManagementPortRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagManagementPortRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagManagementPortRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagManagementPortRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagManagementPortRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagManagementPortRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifySagManagementPortRequest::getIP()const -{ - return iP_; +void ModifySagManagementPortRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagManagementPortRequest::setIP(const std::string& iP) -{ - iP_ = iP; - setParameter("IP", iP); +std::string ModifySagManagementPortRequest::getIP() const { + return iP_; } -long ModifySagManagementPortRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagManagementPortRequest::setIP(const std::string &iP) { + iP_ = iP; + setParameter(std::string("IP"), iP); } -void ModifySagManagementPortRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagManagementPortRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagManagementPortRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagManagementPortRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagManagementPortRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagManagementPortRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagManagementPortRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagManagementPortRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagManagementPortRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagManagementPortRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string ModifySagManagementPortRequest::getGateway()const -{ - return gateway_; +void ModifySagManagementPortRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void ModifySagManagementPortRequest::setGateway(const std::string& gateway) -{ - gateway_ = gateway; - setParameter("Gateway", gateway); +std::string ModifySagManagementPortRequest::getGateway() const { + return gateway_; +} + +void ModifySagManagementPortRequest::setGateway(const std::string &gateway) { + gateway_ = gateway; + setParameter(std::string("Gateway"), gateway); } diff --git a/smartag/src/model/ModifySagPortRoleRequest.cc b/smartag/src/model/ModifySagPortRoleRequest.cc index e6b0aaf5b..b3520b171 100644 --- a/smartag/src/model/ModifySagPortRoleRequest.cc +++ b/smartag/src/model/ModifySagPortRoleRequest.cc @@ -1,139 +1,117 @@ /* * 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::Smartag::Model::ModifySagPortRoleRequest; - -ModifySagPortRoleRequest::ModifySagPortRoleRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagPortRole") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagPortRoleRequest::~ModifySagPortRoleRequest() -{} - -long ModifySagPortRoleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagPortRoleRequest; + +ModifySagPortRoleRequest::ModifySagPortRoleRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagPortRole") { + setMethod(HttpRequest::Method::Post); } -void ModifySagPortRoleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagPortRoleRequest::~ModifySagPortRoleRequest() {} + +long ModifySagPortRoleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagPortRoleRequest::getRole()const -{ - return role_; +void ModifySagPortRoleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagPortRoleRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); +std::string ModifySagPortRoleRequest::getRole() const { + return role_; } -std::string ModifySagPortRoleRequest::getVlan()const -{ - return vlan_; +void ModifySagPortRoleRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); } -void ModifySagPortRoleRequest::setVlan(const std::string& vlan) -{ - vlan_ = vlan; - setParameter("Vlan", vlan); +std::string ModifySagPortRoleRequest::getVlan() const { + return vlan_; } -std::string ModifySagPortRoleRequest::getRegionId()const -{ - return regionId_; +void ModifySagPortRoleRequest::setVlan(const std::string &vlan) { + vlan_ = vlan; + setParameter(std::string("Vlan"), vlan); } -void ModifySagPortRoleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagPortRoleRequest::getRegionId() const { + return regionId_; } -std::string ModifySagPortRoleRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagPortRoleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagPortRoleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagPortRoleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagPortRoleRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagPortRoleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagPortRoleRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagPortRoleRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySagPortRoleRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagPortRoleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagPortRoleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagPortRoleRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagPortRoleRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagPortRoleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagPortRoleRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagPortRoleRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagPortRoleRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagPortRoleRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagPortRoleRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagPortRoleRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string ModifySagPortRoleRequest::getPortName()const -{ - return portName_; +void ModifySagPortRoleRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void ModifySagPortRoleRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string ModifySagPortRoleRequest::getPortName() const { + return portName_; +} + +void ModifySagPortRoleRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } diff --git a/smartag/src/model/ModifySagPortRouteProtocolRequest.cc b/smartag/src/model/ModifySagPortRouteProtocolRequest.cc index c587af6cf..c3960d1b7 100644 --- a/smartag/src/model/ModifySagPortRouteProtocolRequest.cc +++ b/smartag/src/model/ModifySagPortRouteProtocolRequest.cc @@ -1,161 +1,135 @@ /* * 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::Smartag::Model::ModifySagPortRouteProtocolRequest; - -ModifySagPortRouteProtocolRequest::ModifySagPortRouteProtocolRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagPortRouteProtocol") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagPortRouteProtocolRequest::~ModifySagPortRouteProtocolRequest() -{} - -long ModifySagPortRouteProtocolRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagPortRouteProtocolRequest; + +ModifySagPortRouteProtocolRequest::ModifySagPortRouteProtocolRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagPortRouteProtocol") { + setMethod(HttpRequest::Method::Post); } -void ModifySagPortRouteProtocolRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagPortRouteProtocolRequest::~ModifySagPortRouteProtocolRequest() {} + +long ModifySagPortRouteProtocolRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagPortRouteProtocolRequest::getRemoteIp()const -{ - return remoteIp_; +void ModifySagPortRouteProtocolRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagPortRouteProtocolRequest::setRemoteIp(const std::string& remoteIp) -{ - remoteIp_ = remoteIp; - setParameter("RemoteIp", remoteIp); +std::string ModifySagPortRouteProtocolRequest::getRemoteIp() const { + return remoteIp_; } -std::string ModifySagPortRouteProtocolRequest::getVlan()const -{ - return vlan_; +void ModifySagPortRouteProtocolRequest::setRemoteIp(const std::string &remoteIp) { + remoteIp_ = remoteIp; + setParameter(std::string("RemoteIp"), remoteIp); } -void ModifySagPortRouteProtocolRequest::setVlan(const std::string& vlan) -{ - vlan_ = vlan; - setParameter("Vlan", vlan); +std::string ModifySagPortRouteProtocolRequest::getVlan() const { + return vlan_; } -std::string ModifySagPortRouteProtocolRequest::getRegionId()const -{ - return regionId_; +void ModifySagPortRouteProtocolRequest::setVlan(const std::string &vlan) { + vlan_ = vlan; + setParameter(std::string("Vlan"), vlan); } -void ModifySagPortRouteProtocolRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagPortRouteProtocolRequest::getRegionId() const { + return regionId_; } -std::string ModifySagPortRouteProtocolRequest::getRemoteAs()const -{ - return remoteAs_; +void ModifySagPortRouteProtocolRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagPortRouteProtocolRequest::setRemoteAs(const std::string& remoteAs) -{ - remoteAs_ = remoteAs; - setParameter("RemoteAs", remoteAs); +std::string ModifySagPortRouteProtocolRequest::getRemoteAs() const { + return remoteAs_; } -std::string ModifySagPortRouteProtocolRequest::getRouteProtocol()const -{ - return routeProtocol_; +void ModifySagPortRouteProtocolRequest::setRemoteAs(const std::string &remoteAs) { + remoteAs_ = remoteAs; + setParameter(std::string("RemoteAs"), remoteAs); } -void ModifySagPortRouteProtocolRequest::setRouteProtocol(const std::string& routeProtocol) -{ - routeProtocol_ = routeProtocol; - setParameter("RouteProtocol", routeProtocol); +std::string ModifySagPortRouteProtocolRequest::getRouteProtocol() const { + return routeProtocol_; } -std::string ModifySagPortRouteProtocolRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagPortRouteProtocolRequest::setRouteProtocol(const std::string &routeProtocol) { + routeProtocol_ = routeProtocol; + setParameter(std::string("RouteProtocol"), routeProtocol); } -void ModifySagPortRouteProtocolRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagPortRouteProtocolRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagPortRouteProtocolRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagPortRouteProtocolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagPortRouteProtocolRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagPortRouteProtocolRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySagPortRouteProtocolRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagPortRouteProtocolRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagPortRouteProtocolRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagPortRouteProtocolRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagPortRouteProtocolRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagPortRouteProtocolRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagPortRouteProtocolRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagPortRouteProtocolRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagPortRouteProtocolRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagPortRouteProtocolRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagPortRouteProtocolRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagPortRouteProtocolRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string ModifySagPortRouteProtocolRequest::getPortName()const -{ - return portName_; +void ModifySagPortRouteProtocolRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void ModifySagPortRouteProtocolRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string ModifySagPortRouteProtocolRequest::getPortName() const { + return portName_; +} + +void ModifySagPortRouteProtocolRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } diff --git a/smartag/src/model/ModifySagRemoteAccessRequest.cc b/smartag/src/model/ModifySagRemoteAccessRequest.cc index 276e75271..dc1b81152 100644 --- a/smartag/src/model/ModifySagRemoteAccessRequest.cc +++ b/smartag/src/model/ModifySagRemoteAccessRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::ModifySagRemoteAccessRequest; - -ModifySagRemoteAccessRequest::ModifySagRemoteAccessRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagRemoteAccess") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagRemoteAccessRequest::~ModifySagRemoteAccessRequest() -{} - -long ModifySagRemoteAccessRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagRemoteAccessRequest; + +ModifySagRemoteAccessRequest::ModifySagRemoteAccessRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagRemoteAccess") { + setMethod(HttpRequest::Method::Post); } -void ModifySagRemoteAccessRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagRemoteAccessRequest::~ModifySagRemoteAccessRequest() {} + +long ModifySagRemoteAccessRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagRemoteAccessRequest::getRemoteAccessIp()const -{ - return remoteAccessIp_; +void ModifySagRemoteAccessRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagRemoteAccessRequest::setRemoteAccessIp(const std::string& remoteAccessIp) -{ - remoteAccessIp_ = remoteAccessIp; - setParameter("RemoteAccessIp", remoteAccessIp); +std::string ModifySagRemoteAccessRequest::getRemoteAccessIp() const { + return remoteAccessIp_; } -std::string ModifySagRemoteAccessRequest::getSerialNumber()const -{ - return serialNumber_; +void ModifySagRemoteAccessRequest::setRemoteAccessIp(const std::string &remoteAccessIp) { + remoteAccessIp_ = remoteAccessIp; + setParameter(std::string("RemoteAccessIp"), remoteAccessIp); } -void ModifySagRemoteAccessRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +std::string ModifySagRemoteAccessRequest::getSerialNumber() const { + return serialNumber_; } -std::string ModifySagRemoteAccessRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagRemoteAccessRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } -void ModifySagRemoteAccessRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagRemoteAccessRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagRemoteAccessRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagRemoteAccessRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagRemoteAccessRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagRemoteAccessRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySagRemoteAccessRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagRemoteAccessRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagRemoteAccessRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagRemoteAccessRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagRemoteAccessRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagRemoteAccessRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagRemoteAccessRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagRemoteAccessRequest::getSmartAGId() const { + return smartAGId_; +} + +void ModifySagRemoteAccessRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/ModifySagRemoteAccessResult.cc b/smartag/src/model/ModifySagRemoteAccessResult.cc index c0ca1a546..933a12e33 100644 --- a/smartag/src/model/ModifySagRemoteAccessResult.cc +++ b/smartag/src/model/ModifySagRemoteAccessResult.cc @@ -39,10 +39,10 @@ void ModifySagRemoteAccessResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["SerialNumber"].isNull()) serialNumber_ = value["SerialNumber"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["RemoteAccessIp"].isNull()) remoteAccessIp_ = value["RemoteAccessIp"].asString(); if(!value["Code"].isNull()) @@ -52,16 +52,16 @@ void ModifySagRemoteAccessResult::parse(const std::string &payload) } -std::string ModifySagRemoteAccessResult::getMessage()const -{ - return message_; -} - std::string ModifySagRemoteAccessResult::getSerialNumber()const { return serialNumber_; } +std::string ModifySagRemoteAccessResult::getMessage()const +{ + return message_; +} + std::string ModifySagRemoteAccessResult::getRemoteAccessIp()const { return remoteAccessIp_; diff --git a/smartag/src/model/ModifySagRouteProtocolBgpRequest.cc b/smartag/src/model/ModifySagRouteProtocolBgpRequest.cc index 69f0e3c18..cd3002acd 100644 --- a/smartag/src/model/ModifySagRouteProtocolBgpRequest.cc +++ b/smartag/src/model/ModifySagRouteProtocolBgpRequest.cc @@ -1,161 +1,135 @@ /* * 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::Smartag::Model::ModifySagRouteProtocolBgpRequest; - -ModifySagRouteProtocolBgpRequest::ModifySagRouteProtocolBgpRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagRouteProtocolBgp") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagRouteProtocolBgpRequest::~ModifySagRouteProtocolBgpRequest() -{} - -long ModifySagRouteProtocolBgpRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagRouteProtocolBgpRequest; + +ModifySagRouteProtocolBgpRequest::ModifySagRouteProtocolBgpRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagRouteProtocolBgp") { + setMethod(HttpRequest::Method::Post); } -void ModifySagRouteProtocolBgpRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagRouteProtocolBgpRequest::~ModifySagRouteProtocolBgpRequest() {} + +long ModifySagRouteProtocolBgpRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int ModifySagRouteProtocolBgpRequest::getKeepAlive()const -{ - return keepAlive_; +void ModifySagRouteProtocolBgpRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagRouteProtocolBgpRequest::setKeepAlive(int keepAlive) -{ - keepAlive_ = keepAlive; - setParameter("KeepAlive", std::to_string(keepAlive)); +int ModifySagRouteProtocolBgpRequest::getKeepAlive() const { + return keepAlive_; } -std::string ModifySagRouteProtocolBgpRequest::getRegionId()const -{ - return regionId_; +void ModifySagRouteProtocolBgpRequest::setKeepAlive(int keepAlive) { + keepAlive_ = keepAlive; + setParameter(std::string("KeepAlive"), std::to_string(keepAlive)); } -void ModifySagRouteProtocolBgpRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagRouteProtocolBgpRequest::getRegionId() const { + return regionId_; } -int ModifySagRouteProtocolBgpRequest::getHoldTime()const -{ - return holdTime_; +void ModifySagRouteProtocolBgpRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagRouteProtocolBgpRequest::setHoldTime(int holdTime) -{ - holdTime_ = holdTime; - setParameter("HoldTime", std::to_string(holdTime)); +int ModifySagRouteProtocolBgpRequest::getHoldTime() const { + return holdTime_; } -std::string ModifySagRouteProtocolBgpRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagRouteProtocolBgpRequest::setHoldTime(int holdTime) { + holdTime_ = holdTime; + setParameter(std::string("HoldTime"), std::to_string(holdTime)); } -void ModifySagRouteProtocolBgpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagRouteProtocolBgpRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagRouteProtocolBgpRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagRouteProtocolBgpRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagRouteProtocolBgpRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagRouteProtocolBgpRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySagRouteProtocolBgpRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagRouteProtocolBgpRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagRouteProtocolBgpRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagRouteProtocolBgpRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagRouteProtocolBgpRequest::getAdvertiseIps()const -{ - return advertiseIps_; +void ModifySagRouteProtocolBgpRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagRouteProtocolBgpRequest::setAdvertiseIps(const std::string& advertiseIps) -{ - advertiseIps_ = advertiseIps; - setParameter("AdvertiseIps", advertiseIps); +std::string ModifySagRouteProtocolBgpRequest::getAdvertiseIps() const { + return advertiseIps_; } -std::string ModifySagRouteProtocolBgpRequest::getRouterId()const -{ - return routerId_; +void ModifySagRouteProtocolBgpRequest::setAdvertiseIps(const std::string &advertiseIps) { + advertiseIps_ = advertiseIps; + setParameter(std::string("AdvertiseIps"), advertiseIps); } -void ModifySagRouteProtocolBgpRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +std::string ModifySagRouteProtocolBgpRequest::getRouterId() const { + return routerId_; } -int ModifySagRouteProtocolBgpRequest::getLocalAs()const -{ - return localAs_; +void ModifySagRouteProtocolBgpRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } -void ModifySagRouteProtocolBgpRequest::setLocalAs(int localAs) -{ - localAs_ = localAs; - setParameter("LocalAs", std::to_string(localAs)); +int ModifySagRouteProtocolBgpRequest::getLocalAs() const { + return localAs_; } -std::string ModifySagRouteProtocolBgpRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagRouteProtocolBgpRequest::setLocalAs(int localAs) { + localAs_ = localAs; + setParameter(std::string("LocalAs"), std::to_string(localAs)); } -void ModifySagRouteProtocolBgpRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagRouteProtocolBgpRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagRouteProtocolBgpRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagRouteProtocolBgpRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagRouteProtocolBgpRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagRouteProtocolBgpRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void ModifySagRouteProtocolBgpRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/ModifySagRouteProtocolOspfRequest.cc b/smartag/src/model/ModifySagRouteProtocolOspfRequest.cc index bcac5cf0e..309b4f2a5 100644 --- a/smartag/src/model/ModifySagRouteProtocolOspfRequest.cc +++ b/smartag/src/model/ModifySagRouteProtocolOspfRequest.cc @@ -1,194 +1,162 @@ /* * 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::Smartag::Model::ModifySagRouteProtocolOspfRequest; - -ModifySagRouteProtocolOspfRequest::ModifySagRouteProtocolOspfRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagRouteProtocolOspf") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagRouteProtocolOspfRequest::~ModifySagRouteProtocolOspfRequest() -{} - -long ModifySagRouteProtocolOspfRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagRouteProtocolOspfRequest; + +ModifySagRouteProtocolOspfRequest::ModifySagRouteProtocolOspfRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagRouteProtocolOspf") { + setMethod(HttpRequest::Method::Post); } -void ModifySagRouteProtocolOspfRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagRouteProtocolOspfRequest::~ModifySagRouteProtocolOspfRequest() {} + +long ModifySagRouteProtocolOspfRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagRouteProtocolOspfRequest::getAuthenticationType()const -{ - return authenticationType_; +void ModifySagRouteProtocolOspfRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagRouteProtocolOspfRequest::setAuthenticationType(const std::string& authenticationType) -{ - authenticationType_ = authenticationType; - setParameter("AuthenticationType", authenticationType); +std::string ModifySagRouteProtocolOspfRequest::getAuthenticationType() const { + return authenticationType_; } -std::string ModifySagRouteProtocolOspfRequest::getPassword()const -{ - return password_; +void ModifySagRouteProtocolOspfRequest::setAuthenticationType(const std::string &authenticationType) { + authenticationType_ = authenticationType; + setParameter(std::string("AuthenticationType"), authenticationType); } -void ModifySagRouteProtocolOspfRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +std::string ModifySagRouteProtocolOspfRequest::getPassword() const { + return password_; } -int ModifySagRouteProtocolOspfRequest::getAreaId()const -{ - return areaId_; +void ModifySagRouteProtocolOspfRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void ModifySagRouteProtocolOspfRequest::setAreaId(int areaId) -{ - areaId_ = areaId; - setParameter("AreaId", std::to_string(areaId)); +int ModifySagRouteProtocolOspfRequest::getAreaId() const { + return areaId_; } -std::string ModifySagRouteProtocolOspfRequest::getRegionId()const -{ - return regionId_; +void ModifySagRouteProtocolOspfRequest::setAreaId(int areaId) { + areaId_ = areaId; + setParameter(std::string("AreaId"), std::to_string(areaId)); } -void ModifySagRouteProtocolOspfRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagRouteProtocolOspfRequest::getRegionId() const { + return regionId_; } -std::string ModifySagRouteProtocolOspfRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagRouteProtocolOspfRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagRouteProtocolOspfRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagRouteProtocolOspfRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagRouteProtocolOspfRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagRouteProtocolOspfRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagRouteProtocolOspfRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagRouteProtocolOspfRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySagRouteProtocolOspfRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagRouteProtocolOspfRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagRouteProtocolOspfRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagRouteProtocolOspfRequest::getOwnerId() const { + return ownerId_; } -int ModifySagRouteProtocolOspfRequest::getMd5KeyId()const -{ - return md5KeyId_; +void ModifySagRouteProtocolOspfRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagRouteProtocolOspfRequest::setMd5KeyId(int md5KeyId) -{ - md5KeyId_ = md5KeyId; - setParameter("Md5KeyId", std::to_string(md5KeyId)); +int ModifySagRouteProtocolOspfRequest::getMd5KeyId() const { + return md5KeyId_; } -std::string ModifySagRouteProtocolOspfRequest::getRouterId()const -{ - return routerId_; +void ModifySagRouteProtocolOspfRequest::setMd5KeyId(int md5KeyId) { + md5KeyId_ = md5KeyId; + setParameter(std::string("Md5KeyId"), std::to_string(md5KeyId)); } -void ModifySagRouteProtocolOspfRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +std::string ModifySagRouteProtocolOspfRequest::getRouterId() const { + return routerId_; } -std::string ModifySagRouteProtocolOspfRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagRouteProtocolOspfRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } -void ModifySagRouteProtocolOspfRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagRouteProtocolOspfRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagRouteProtocolOspfRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagRouteProtocolOspfRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagRouteProtocolOspfRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagRouteProtocolOspfRequest::getSmartAGSn() const { + return smartAGSn_; } -int ModifySagRouteProtocolOspfRequest::getDeadTime()const -{ - return deadTime_; +void ModifySagRouteProtocolOspfRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void ModifySagRouteProtocolOspfRequest::setDeadTime(int deadTime) -{ - deadTime_ = deadTime; - setParameter("DeadTime", std::to_string(deadTime)); +int ModifySagRouteProtocolOspfRequest::getDeadTime() const { + return deadTime_; } -std::string ModifySagRouteProtocolOspfRequest::getMd5Key()const -{ - return md5Key_; +void ModifySagRouteProtocolOspfRequest::setDeadTime(int deadTime) { + deadTime_ = deadTime; + setParameter(std::string("DeadTime"), std::to_string(deadTime)); } -void ModifySagRouteProtocolOspfRequest::setMd5Key(const std::string& md5Key) -{ - md5Key_ = md5Key; - setParameter("Md5Key", md5Key); +std::string ModifySagRouteProtocolOspfRequest::getMd5Key() const { + return md5Key_; } -int ModifySagRouteProtocolOspfRequest::getHelloTime()const -{ - return helloTime_; +void ModifySagRouteProtocolOspfRequest::setMd5Key(const std::string &md5Key) { + md5Key_ = md5Key; + setParameter(std::string("Md5Key"), md5Key); } -void ModifySagRouteProtocolOspfRequest::setHelloTime(int helloTime) -{ - helloTime_ = helloTime; - setParameter("HelloTime", std::to_string(helloTime)); +int ModifySagRouteProtocolOspfRequest::getHelloTime() const { + return helloTime_; +} + +void ModifySagRouteProtocolOspfRequest::setHelloTime(int helloTime) { + helloTime_ = helloTime; + setParameter(std::string("HelloTime"), std::to_string(helloTime)); } diff --git a/smartag/src/model/ModifySagStaticRouteRequest.cc b/smartag/src/model/ModifySagStaticRouteRequest.cc index 6c5a8bd60..8620fccd1 100644 --- a/smartag/src/model/ModifySagStaticRouteRequest.cc +++ b/smartag/src/model/ModifySagStaticRouteRequest.cc @@ -1,150 +1,126 @@ /* * 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::Smartag::Model::ModifySagStaticRouteRequest; - -ModifySagStaticRouteRequest::ModifySagStaticRouteRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagStaticRoute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagStaticRouteRequest::~ModifySagStaticRouteRequest() -{} - -long ModifySagStaticRouteRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagStaticRouteRequest; + +ModifySagStaticRouteRequest::ModifySagStaticRouteRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagStaticRoute") { + setMethod(HttpRequest::Method::Post); } -void ModifySagStaticRouteRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagStaticRouteRequest::~ModifySagStaticRouteRequest() {} + +long ModifySagStaticRouteRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagStaticRouteRequest::getVlan()const -{ - return vlan_; +void ModifySagStaticRouteRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagStaticRouteRequest::setVlan(const std::string& vlan) -{ - vlan_ = vlan; - setParameter("Vlan", vlan); +std::string ModifySagStaticRouteRequest::getVlan() const { + return vlan_; } -std::string ModifySagStaticRouteRequest::getRegionId()const -{ - return regionId_; +void ModifySagStaticRouteRequest::setVlan(const std::string &vlan) { + vlan_ = vlan; + setParameter(std::string("Vlan"), vlan); } -void ModifySagStaticRouteRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagStaticRouteRequest::getRegionId() const { + return regionId_; } -std::string ModifySagStaticRouteRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagStaticRouteRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagStaticRouteRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagStaticRouteRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagStaticRouteRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagStaticRouteRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagStaticRouteRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagStaticRouteRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySagStaticRouteRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagStaticRouteRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagStaticRouteRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagStaticRouteRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagStaticRouteRequest::getNextHop()const -{ - return nextHop_; +void ModifySagStaticRouteRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagStaticRouteRequest::setNextHop(const std::string& nextHop) -{ - nextHop_ = nextHop; - setParameter("NextHop", nextHop); +std::string ModifySagStaticRouteRequest::getNextHop() const { + return nextHop_; } -std::string ModifySagStaticRouteRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagStaticRouteRequest::setNextHop(const std::string &nextHop) { + nextHop_ = nextHop; + setParameter(std::string("NextHop"), nextHop); } -void ModifySagStaticRouteRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagStaticRouteRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagStaticRouteRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagStaticRouteRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagStaticRouteRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagStaticRouteRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string ModifySagStaticRouteRequest::getPortName()const -{ - return portName_; +void ModifySagStaticRouteRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void ModifySagStaticRouteRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string ModifySagStaticRouteRequest::getPortName() const { + return portName_; } -std::string ModifySagStaticRouteRequest::getDestinationCidr()const -{ - return destinationCidr_; +void ModifySagStaticRouteRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } -void ModifySagStaticRouteRequest::setDestinationCidr(const std::string& destinationCidr) -{ - destinationCidr_ = destinationCidr; - setParameter("DestinationCidr", destinationCidr); +std::string ModifySagStaticRouteRequest::getDestinationCidr() const { + return destinationCidr_; +} + +void ModifySagStaticRouteRequest::setDestinationCidr(const std::string &destinationCidr) { + destinationCidr_ = destinationCidr; + setParameter(std::string("DestinationCidr"), destinationCidr); } diff --git a/smartag/src/model/ModifySagUserDnsRequest.cc b/smartag/src/model/ModifySagUserDnsRequest.cc index dd8ee2cf8..39ec4ace7 100644 --- a/smartag/src/model/ModifySagUserDnsRequest.cc +++ b/smartag/src/model/ModifySagUserDnsRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::ModifySagUserDnsRequest; - -ModifySagUserDnsRequest::ModifySagUserDnsRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagUserDns") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagUserDnsRequest::~ModifySagUserDnsRequest() -{} - -long ModifySagUserDnsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagUserDnsRequest; + +ModifySagUserDnsRequest::ModifySagUserDnsRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagUserDns") { + setMethod(HttpRequest::Method::Post); } -void ModifySagUserDnsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagUserDnsRequest::~ModifySagUserDnsRequest() {} + +long ModifySagUserDnsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagUserDnsRequest::getSlaveDns()const -{ - return slaveDns_; +void ModifySagUserDnsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagUserDnsRequest::setSlaveDns(const std::string& slaveDns) -{ - slaveDns_ = slaveDns; - setParameter("SlaveDns", slaveDns); +std::string ModifySagUserDnsRequest::getSlaveDns() const { + return slaveDns_; } -std::string ModifySagUserDnsRequest::getRegionId()const -{ - return regionId_; +void ModifySagUserDnsRequest::setSlaveDns(const std::string &slaveDns) { + slaveDns_ = slaveDns; + setParameter(std::string("SlaveDns"), slaveDns); } -void ModifySagUserDnsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagUserDnsRequest::getRegionId() const { + return regionId_; } -std::string ModifySagUserDnsRequest::getMasterDns()const -{ - return masterDns_; +void ModifySagUserDnsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagUserDnsRequest::setMasterDns(const std::string& masterDns) -{ - masterDns_ = masterDns; - setParameter("MasterDns", masterDns); +std::string ModifySagUserDnsRequest::getMasterDns() const { + return masterDns_; } -std::string ModifySagUserDnsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagUserDnsRequest::setMasterDns(const std::string &masterDns) { + masterDns_ = masterDns; + setParameter(std::string("MasterDns"), masterDns); } -void ModifySagUserDnsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagUserDnsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagUserDnsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagUserDnsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagUserDnsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagUserDnsRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySagUserDnsRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagUserDnsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagUserDnsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagUserDnsRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagUserDnsRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagUserDnsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagUserDnsRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagUserDnsRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagUserDnsRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagUserDnsRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagUserDnsRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagUserDnsRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void ModifySagUserDnsRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/ModifySagWanRequest.cc b/smartag/src/model/ModifySagWanRequest.cc index 4d816d141..812a70acd 100644 --- a/smartag/src/model/ModifySagWanRequest.cc +++ b/smartag/src/model/ModifySagWanRequest.cc @@ -1,271 +1,225 @@ /* * 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::Smartag::Model::ModifySagWanRequest; - -ModifySagWanRequest::ModifySagWanRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagWan") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagWanRequest::~ModifySagWanRequest() -{} - -long ModifySagWanRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagWanRequest; + +ModifySagWanRequest::ModifySagWanRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagWan") { + setMethod(HttpRequest::Method::Post); } -void ModifySagWanRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagWanRequest::~ModifySagWanRequest() {} + +long ModifySagWanRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagWanRequest::getISP()const -{ - return iSP_; +void ModifySagWanRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagWanRequest::setISP(const std::string& iSP) -{ - iSP_ = iSP; - setParameter("ISP", iSP); +std::string ModifySagWanRequest::getISP() const { + return iSP_; } -std::string ModifySagWanRequest::getPassword()const -{ - return password_; +void ModifySagWanRequest::setISP(const std::string &iSP) { + iSP_ = iSP; + setParameter(std::string("ISP"), iSP); } -void ModifySagWanRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +std::string ModifySagWanRequest::getPassword() const { + return password_; } -std::string ModifySagWanRequest::getVlan()const -{ - return vlan_; +void ModifySagWanRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void ModifySagWanRequest::setVlan(const std::string& vlan) -{ - vlan_ = vlan; - setParameter("Vlan", vlan); +std::string ModifySagWanRequest::getVlan() const { + return vlan_; } -std::string ModifySagWanRequest::getRegionId()const -{ - return regionId_; +void ModifySagWanRequest::setVlan(const std::string &vlan) { + vlan_ = vlan; + setParameter(std::string("Vlan"), vlan); } -void ModifySagWanRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagWanRequest::getRegionId() const { + return regionId_; } -std::string ModifySagWanRequest::getMask()const -{ - return mask_; +void ModifySagWanRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagWanRequest::setMask(const std::string& mask) -{ - mask_ = mask; - setParameter("Mask", mask); +std::string ModifySagWanRequest::getMask() const { + return mask_; } -std::string ModifySagWanRequest::getStartIp()const -{ - return startIp_; +void ModifySagWanRequest::setMask(const std::string &mask) { + mask_ = mask; + setParameter(std::string("Mask"), mask); } -void ModifySagWanRequest::setStartIp(const std::string& startIp) -{ - startIp_ = startIp; - setParameter("StartIp", startIp); +std::string ModifySagWanRequest::getStartIp() const { + return startIp_; } -std::string ModifySagWanRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagWanRequest::setStartIp(const std::string &startIp) { + startIp_ = startIp; + setParameter(std::string("StartIp"), startIp); } -void ModifySagWanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagWanRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int ModifySagWanRequest::getBandwidth()const -{ - return bandwidth_; +void ModifySagWanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagWanRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int ModifySagWanRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifySagWanRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagWanRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void ModifySagWanRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagWanRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifySagWanRequest::getIP()const -{ - return iP_; +void ModifySagWanRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagWanRequest::setIP(const std::string& iP) -{ - iP_ = iP; - setParameter("IP", iP); +std::string ModifySagWanRequest::getIP() const { + return iP_; } -int ModifySagWanRequest::getWeight()const -{ - return weight_; +void ModifySagWanRequest::setIP(const std::string &iP) { + iP_ = iP; + setParameter(std::string("IP"), iP); } -void ModifySagWanRequest::setWeight(int weight) -{ - weight_ = weight; - setParameter("Weight", std::to_string(weight)); +int ModifySagWanRequest::getWeight() const { + return weight_; } -long ModifySagWanRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagWanRequest::setWeight(int weight) { + weight_ = weight; + setParameter(std::string("Weight"), std::to_string(weight)); } -void ModifySagWanRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagWanRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagWanRequest::getIPType()const -{ - return iPType_; +void ModifySagWanRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagWanRequest::setIPType(const std::string& iPType) -{ - iPType_ = iPType; - setParameter("IPType", iPType); +std::string ModifySagWanRequest::getIPType() const { + return iPType_; } -int ModifySagWanRequest::getPriority()const -{ - return priority_; +void ModifySagWanRequest::setIPType(const std::string &iPType) { + iPType_ = iPType; + setParameter(std::string("IPType"), iPType); } -void ModifySagWanRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int ModifySagWanRequest::getPriority() const { + return priority_; } -std::string ModifySagWanRequest::getSourceIps()const -{ - return sourceIps_; +void ModifySagWanRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void ModifySagWanRequest::setSourceIps(const std::string& sourceIps) -{ - sourceIps_ = sourceIps; - setParameter("SourceIps", sourceIps); +std::string ModifySagWanRequest::getSourceIps() const { + return sourceIps_; } -std::string ModifySagWanRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagWanRequest::setSourceIps(const std::string &sourceIps) { + sourceIps_ = sourceIps; + setParameter(std::string("SourceIps"), sourceIps); } -void ModifySagWanRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagWanRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagWanRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagWanRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagWanRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagWanRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string ModifySagWanRequest::getPortName()const -{ - return portName_; +void ModifySagWanRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void ModifySagWanRequest::setPortName(const std::string& portName) -{ - portName_ = portName; - setParameter("PortName", portName); +std::string ModifySagWanRequest::getPortName() const { + return portName_; } -std::string ModifySagWanRequest::getStopIp()const -{ - return stopIp_; +void ModifySagWanRequest::setPortName(const std::string &portName) { + portName_ = portName; + setParameter(std::string("PortName"), portName); } -void ModifySagWanRequest::setStopIp(const std::string& stopIp) -{ - stopIp_ = stopIp; - setParameter("StopIp", stopIp); +std::string ModifySagWanRequest::getStopIp() const { + return stopIp_; } -std::string ModifySagWanRequest::getGateway()const -{ - return gateway_; +void ModifySagWanRequest::setStopIp(const std::string &stopIp) { + stopIp_ = stopIp; + setParameter(std::string("StopIp"), stopIp); } -void ModifySagWanRequest::setGateway(const std::string& gateway) -{ - gateway_ = gateway; - setParameter("Gateway", gateway); +std::string ModifySagWanRequest::getGateway() const { + return gateway_; } -std::string ModifySagWanRequest::getUsername()const -{ - return username_; +void ModifySagWanRequest::setGateway(const std::string &gateway) { + gateway_ = gateway; + setParameter(std::string("Gateway"), gateway); } -void ModifySagWanRequest::setUsername(const std::string& username) -{ - username_ = username; - setParameter("Username", username); +std::string ModifySagWanRequest::getUsername() const { + return username_; +} + +void ModifySagWanRequest::setUsername(const std::string &username) { + username_ = username; + setParameter(std::string("Username"), username); } diff --git a/smartag/src/model/ModifySagWanSnatRequest.cc b/smartag/src/model/ModifySagWanSnatRequest.cc index 4c54210fe..7d4ffd726 100644 --- a/smartag/src/model/ModifySagWanSnatRequest.cc +++ b/smartag/src/model/ModifySagWanSnatRequest.cc @@ -1,117 +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::Smartag::Model::ModifySagWanSnatRequest; - -ModifySagWanSnatRequest::ModifySagWanSnatRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagWanSnat") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagWanSnatRequest::~ModifySagWanSnatRequest() -{} - -long ModifySagWanSnatRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagWanSnatRequest; + +ModifySagWanSnatRequest::ModifySagWanSnatRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagWanSnat") { + setMethod(HttpRequest::Method::Post); } -void ModifySagWanSnatRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagWanSnatRequest::~ModifySagWanSnatRequest() {} + +long ModifySagWanSnatRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagWanSnatRequest::getRegionId()const -{ - return regionId_; +void ModifySagWanSnatRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagWanSnatRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagWanSnatRequest::getRegionId() const { + return regionId_; } -std::string ModifySagWanSnatRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagWanSnatRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagWanSnatRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagWanSnatRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagWanSnatRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagWanSnatRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagWanSnatRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagWanSnatRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySagWanSnatRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagWanSnatRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagWanSnatRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagWanSnatRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagWanSnatRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagWanSnatRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagWanSnatRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagWanSnatRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagWanSnatRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagWanSnatRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagWanSnatRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagWanSnatRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string ModifySagWanSnatRequest::getSnat()const -{ - return snat_; +void ModifySagWanSnatRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void ModifySagWanSnatRequest::setSnat(const std::string& snat) -{ - snat_ = snat; - setParameter("Snat", snat); +std::string ModifySagWanSnatRequest::getSnat() const { + return snat_; +} + +void ModifySagWanSnatRequest::setSnat(const std::string &snat) { + snat_ = snat; + setParameter(std::string("Snat"), snat); } diff --git a/smartag/src/model/ModifySagWifiRequest.cc b/smartag/src/model/ModifySagWifiRequest.cc index 835e64b4b..cb915a6ad 100644 --- a/smartag/src/model/ModifySagWifiRequest.cc +++ b/smartag/src/model/ModifySagWifiRequest.cc @@ -1,205 +1,171 @@ /* * 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::Smartag::Model::ModifySagWifiRequest; - -ModifySagWifiRequest::ModifySagWifiRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySagWifi") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySagWifiRequest::~ModifySagWifiRequest() -{} - -long ModifySagWifiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySagWifiRequest; + +ModifySagWifiRequest::ModifySagWifiRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySagWifi") { + setMethod(HttpRequest::Method::Post); } -void ModifySagWifiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySagWifiRequest::~ModifySagWifiRequest() {} + +long ModifySagWifiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySagWifiRequest::getEncryptAlgorithm()const -{ - return encryptAlgorithm_; +void ModifySagWifiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySagWifiRequest::setEncryptAlgorithm(const std::string& encryptAlgorithm) -{ - encryptAlgorithm_ = encryptAlgorithm; - setParameter("EncryptAlgorithm", encryptAlgorithm); +std::string ModifySagWifiRequest::getEncryptAlgorithm() const { + return encryptAlgorithm_; } -std::string ModifySagWifiRequest::getChannel()const -{ - return channel_; +void ModifySagWifiRequest::setEncryptAlgorithm(const std::string &encryptAlgorithm) { + encryptAlgorithm_ = encryptAlgorithm; + setParameter(std::string("EncryptAlgorithm"), encryptAlgorithm); } -void ModifySagWifiRequest::setChannel(const std::string& channel) -{ - channel_ = channel; - setParameter("Channel", channel); +std::string ModifySagWifiRequest::getChannel() const { + return channel_; } -std::string ModifySagWifiRequest::getAuthenticationType()const -{ - return authenticationType_; +void ModifySagWifiRequest::setChannel(const std::string &channel) { + channel_ = channel; + setParameter(std::string("Channel"), channel); } -void ModifySagWifiRequest::setAuthenticationType(const std::string& authenticationType) -{ - authenticationType_ = authenticationType; - setParameter("AuthenticationType", authenticationType); +std::string ModifySagWifiRequest::getAuthenticationType() const { + return authenticationType_; } -std::string ModifySagWifiRequest::getSSID()const -{ - return sSID_; +void ModifySagWifiRequest::setAuthenticationType(const std::string &authenticationType) { + authenticationType_ = authenticationType; + setParameter(std::string("AuthenticationType"), authenticationType); } -void ModifySagWifiRequest::setSSID(const std::string& sSID) -{ - sSID_ = sSID; - setParameter("SSID", sSID); +std::string ModifySagWifiRequest::getSSID() const { + return sSID_; } -std::string ModifySagWifiRequest::getPassword()const -{ - return password_; +void ModifySagWifiRequest::setSSID(const std::string &sSID) { + sSID_ = sSID; + setParameter(std::string("SSID"), sSID); } -void ModifySagWifiRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +std::string ModifySagWifiRequest::getPassword() const { + return password_; } -std::string ModifySagWifiRequest::getRegionId()const -{ - return regionId_; +void ModifySagWifiRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void ModifySagWifiRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySagWifiRequest::getRegionId() const { + return regionId_; } -std::string ModifySagWifiRequest::getIsBroadcast()const -{ - return isBroadcast_; +void ModifySagWifiRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySagWifiRequest::setIsBroadcast(const std::string& isBroadcast) -{ - isBroadcast_ = isBroadcast; - setParameter("IsBroadcast", isBroadcast); +std::string ModifySagWifiRequest::getIsBroadcast() const { + return isBroadcast_; } -std::string ModifySagWifiRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySagWifiRequest::setIsBroadcast(const std::string &isBroadcast) { + isBroadcast_ = isBroadcast; + setParameter(std::string("IsBroadcast"), isBroadcast); } -void ModifySagWifiRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySagWifiRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySagWifiRequest::getBandwidth()const -{ - return bandwidth_; +void ModifySagWifiRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySagWifiRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string ModifySagWifiRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifySagWifiRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySagWifiRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void ModifySagWifiRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySagWifiRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySagWifiRequest::getOwnerId()const -{ - return ownerId_; +void ModifySagWifiRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySagWifiRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySagWifiRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySagWifiRequest::getIsEnable()const -{ - return isEnable_; +void ModifySagWifiRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySagWifiRequest::setIsEnable(const std::string& isEnable) -{ - isEnable_ = isEnable; - setParameter("IsEnable", isEnable); +std::string ModifySagWifiRequest::getIsEnable() const { + return isEnable_; } -std::string ModifySagWifiRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySagWifiRequest::setIsEnable(const std::string &isEnable) { + isEnable_ = isEnable; + setParameter(std::string("IsEnable"), isEnable); } -void ModifySagWifiRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySagWifiRequest::getSmartAGId() const { + return smartAGId_; } -std::string ModifySagWifiRequest::getSmartAGSn()const -{ - return smartAGSn_; +void ModifySagWifiRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ModifySagWifiRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string ModifySagWifiRequest::getSmartAGSn() const { + return smartAGSn_; } -std::string ModifySagWifiRequest::getIsAuth()const -{ - return isAuth_; +void ModifySagWifiRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } -void ModifySagWifiRequest::setIsAuth(const std::string& isAuth) -{ - isAuth_ = isAuth; - setParameter("IsAuth", isAuth); +std::string ModifySagWifiRequest::getIsAuth() const { + return isAuth_; +} + +void ModifySagWifiRequest::setIsAuth(const std::string &isAuth) { + isAuth_ = isAuth; + setParameter(std::string("IsAuth"), isAuth); } diff --git a/smartag/src/model/ModifySmartAccessGatewayClientUserRequest.cc b/smartag/src/model/ModifySmartAccessGatewayClientUserRequest.cc index 28d0177b1..3ed52b642 100644 --- a/smartag/src/model/ModifySmartAccessGatewayClientUserRequest.cc +++ b/smartag/src/model/ModifySmartAccessGatewayClientUserRequest.cc @@ -1,128 +1,126 @@ /* * 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::Smartag::Model::ModifySmartAccessGatewayClientUserRequest; - -ModifySmartAccessGatewayClientUserRequest::ModifySmartAccessGatewayClientUserRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGatewayClientUser") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySmartAccessGatewayClientUserRequest::~ModifySmartAccessGatewayClientUserRequest() -{} - -long ModifySmartAccessGatewayClientUserRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySmartAccessGatewayClientUserRequest; + +ModifySmartAccessGatewayClientUserRequest::ModifySmartAccessGatewayClientUserRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGatewayClientUser") { + setMethod(HttpRequest::Method::Post); } -void ModifySmartAccessGatewayClientUserRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySmartAccessGatewayClientUserRequest::~ModifySmartAccessGatewayClientUserRequest() {} + +long ModifySmartAccessGatewayClientUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySmartAccessGatewayClientUserRequest::getRegionId()const -{ - return regionId_; +void ModifySmartAccessGatewayClientUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySmartAccessGatewayClientUserRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySmartAccessGatewayClientUserRequest::getRegionId() const { + return regionId_; } -std::string ModifySmartAccessGatewayClientUserRequest::getEmail()const -{ - return email_; +void ModifySmartAccessGatewayClientUserRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySmartAccessGatewayClientUserRequest::setEmail(const std::string& email) -{ - email_ = email; - setParameter("Email", email); +std::string ModifySmartAccessGatewayClientUserRequest::getClientIp() const { + return clientIp_; } -std::string ModifySmartAccessGatewayClientUserRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySmartAccessGatewayClientUserRequest::setClientIp(const std::string &clientIp) { + clientIp_ = clientIp; + setParameter(std::string("ClientIp"), clientIp); } -void ModifySmartAccessGatewayClientUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySmartAccessGatewayClientUserRequest::getEmail() const { + return email_; } -int ModifySmartAccessGatewayClientUserRequest::getBandwidth()const -{ - return bandwidth_; +void ModifySmartAccessGatewayClientUserRequest::setEmail(const std::string &email) { + email_ = email; + setParameter(std::string("Email"), email); } -void ModifySmartAccessGatewayClientUserRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +bool ModifySmartAccessGatewayClientUserRequest::getEnableStaticIp() const { + return enableStaticIp_; } -std::string ModifySmartAccessGatewayClientUserRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySmartAccessGatewayClientUserRequest::setEnableStaticIp(bool enableStaticIp) { + enableStaticIp_ = enableStaticIp; + setParameter(std::string("EnableStaticIp"), enableStaticIp ? "true" : "false"); } -void ModifySmartAccessGatewayClientUserRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySmartAccessGatewayClientUserRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ModifySmartAccessGatewayClientUserRequest::getOwnerId()const -{ - return ownerId_; +void ModifySmartAccessGatewayClientUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySmartAccessGatewayClientUserRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +int ModifySmartAccessGatewayClientUserRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifySmartAccessGatewayClientUserRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySmartAccessGatewayClientUserRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } -void ModifySmartAccessGatewayClientUserRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySmartAccessGatewayClientUserRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifySmartAccessGatewayClientUserRequest::getUserName()const -{ - return userName_; +void ModifySmartAccessGatewayClientUserRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySmartAccessGatewayClientUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +long ModifySmartAccessGatewayClientUserRequest::getOwnerId() const { + return ownerId_; +} + +void ModifySmartAccessGatewayClientUserRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifySmartAccessGatewayClientUserRequest::getSmartAGId() const { + return smartAGId_; +} + +void ModifySmartAccessGatewayClientUserRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); +} + +std::string ModifySmartAccessGatewayClientUserRequest::getUserName() const { + return userName_; +} + +void ModifySmartAccessGatewayClientUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/smartag/src/model/ModifySmartAccessGatewayRequest.cc b/smartag/src/model/ModifySmartAccessGatewayRequest.cc index 91aabad86..959bb822a 100644 --- a/smartag/src/model/ModifySmartAccessGatewayRequest.cc +++ b/smartag/src/model/ModifySmartAccessGatewayRequest.cc @@ -1,161 +1,135 @@ /* * 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::Smartag::Model::ModifySmartAccessGatewayRequest; - -ModifySmartAccessGatewayRequest::ModifySmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySmartAccessGatewayRequest::~ModifySmartAccessGatewayRequest() -{} - -long ModifySmartAccessGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySmartAccessGatewayRequest; + +ModifySmartAccessGatewayRequest::ModifySmartAccessGatewayRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGateway") { + setMethod(HttpRequest::Method::Post); } -void ModifySmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySmartAccessGatewayRequest::~ModifySmartAccessGatewayRequest() {} + +long ModifySmartAccessGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySmartAccessGatewayRequest::getCity()const -{ - return city_; +void ModifySmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySmartAccessGatewayRequest::setCity(const std::string& city) -{ - city_ = city; - setParameter("City", city); +std::string ModifySmartAccessGatewayRequest::getCity() const { + return city_; } -std::string ModifySmartAccessGatewayRequest::getDescription()const -{ - return description_; +void ModifySmartAccessGatewayRequest::setCity(const std::string &city) { + city_ = city; + setParameter(std::string("City"), city); } -void ModifySmartAccessGatewayRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifySmartAccessGatewayRequest::getDescription() const { + return description_; } -int ModifySmartAccessGatewayRequest::getSecurityLockThreshold()const -{ - return securityLockThreshold_; +void ModifySmartAccessGatewayRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifySmartAccessGatewayRequest::setSecurityLockThreshold(int securityLockThreshold) -{ - securityLockThreshold_ = securityLockThreshold; - setParameter("SecurityLockThreshold", std::to_string(securityLockThreshold)); +int ModifySmartAccessGatewayRequest::getSecurityLockThreshold() const { + return securityLockThreshold_; } -std::string ModifySmartAccessGatewayRequest::getRoutingStrategy()const -{ - return routingStrategy_; +void ModifySmartAccessGatewayRequest::setSecurityLockThreshold(int securityLockThreshold) { + securityLockThreshold_ = securityLockThreshold; + setParameter(std::string("SecurityLockThreshold"), std::to_string(securityLockThreshold)); } -void ModifySmartAccessGatewayRequest::setRoutingStrategy(const std::string& routingStrategy) -{ - routingStrategy_ = routingStrategy; - setParameter("RoutingStrategy", routingStrategy); +std::string ModifySmartAccessGatewayRequest::getRoutingStrategy() const { + return routingStrategy_; } -std::string ModifySmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; +void ModifySmartAccessGatewayRequest::setRoutingStrategy(const std::string &routingStrategy) { + routingStrategy_ = routingStrategy; + setParameter(std::string("RoutingStrategy"), routingStrategy); } -void ModifySmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySmartAccessGatewayRequest::getRegionId() const { + return regionId_; } -std::string ModifySmartAccessGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySmartAccessGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySmartAccessGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySmartAccessGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySmartAccessGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySmartAccessGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySmartAccessGatewayRequest::getOwnerId()const -{ - return ownerId_; +void ModifySmartAccessGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySmartAccessGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySmartAccessGatewayRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySmartAccessGatewayRequest::getName()const -{ - return name_; +void ModifySmartAccessGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySmartAccessGatewayRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifySmartAccessGatewayRequest::getName() const { + return name_; } -std::string ModifySmartAccessGatewayRequest::getCidrBlock()const -{ - return cidrBlock_; +void ModifySmartAccessGatewayRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void ModifySmartAccessGatewayRequest::setCidrBlock(const std::string& cidrBlock) -{ - cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); +std::string ModifySmartAccessGatewayRequest::getCidrBlock() const { + return cidrBlock_; } -std::string ModifySmartAccessGatewayRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySmartAccessGatewayRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); } -void ModifySmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySmartAccessGatewayRequest::getSmartAGId() const { + return smartAGId_; +} + +void ModifySmartAccessGatewayRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/ModifySmartAccessGatewayUpBandwidthRequest.cc b/smartag/src/model/ModifySmartAccessGatewayUpBandwidthRequest.cc index 072fe55c4..fd2378085 100644 --- a/smartag/src/model/ModifySmartAccessGatewayUpBandwidthRequest.cc +++ b/smartag/src/model/ModifySmartAccessGatewayUpBandwidthRequest.cc @@ -1,117 +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::Smartag::Model::ModifySmartAccessGatewayUpBandwidthRequest; - -ModifySmartAccessGatewayUpBandwidthRequest::ModifySmartAccessGatewayUpBandwidthRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGatewayUpBandwidth") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySmartAccessGatewayUpBandwidthRequest::~ModifySmartAccessGatewayUpBandwidthRequest() -{} - -long ModifySmartAccessGatewayUpBandwidthRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ModifySmartAccessGatewayUpBandwidthRequest; + +ModifySmartAccessGatewayUpBandwidthRequest::ModifySmartAccessGatewayUpBandwidthRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ModifySmartAccessGatewayUpBandwidth") { + setMethod(HttpRequest::Method::Post); } -void ModifySmartAccessGatewayUpBandwidthRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySmartAccessGatewayUpBandwidthRequest::~ModifySmartAccessGatewayUpBandwidthRequest() {} + +long ModifySmartAccessGatewayUpBandwidthRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySmartAccessGatewayUpBandwidthRequest::getRegionId()const -{ - return regionId_; +void ModifySmartAccessGatewayUpBandwidthRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySmartAccessGatewayUpBandwidthRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySmartAccessGatewayUpBandwidthRequest::getRegionId() const { + return regionId_; } -int ModifySmartAccessGatewayUpBandwidthRequest::getUpBandwidthWan()const -{ - return upBandwidthWan_; +void ModifySmartAccessGatewayUpBandwidthRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySmartAccessGatewayUpBandwidthRequest::setUpBandwidthWan(int upBandwidthWan) -{ - upBandwidthWan_ = upBandwidthWan; - setParameter("UpBandwidthWan", std::to_string(upBandwidthWan)); +int ModifySmartAccessGatewayUpBandwidthRequest::getUpBandwidthWan() const { + return upBandwidthWan_; } -std::string ModifySmartAccessGatewayUpBandwidthRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySmartAccessGatewayUpBandwidthRequest::setUpBandwidthWan(int upBandwidthWan) { + upBandwidthWan_ = upBandwidthWan; + setParameter(std::string("UpBandwidthWan"), std::to_string(upBandwidthWan)); } -void ModifySmartAccessGatewayUpBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySmartAccessGatewayUpBandwidthRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySmartAccessGatewayUpBandwidthRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySmartAccessGatewayUpBandwidthRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySmartAccessGatewayUpBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySmartAccessGatewayUpBandwidthRequest::getOwnerAccount() const { + return ownerAccount_; } -int ModifySmartAccessGatewayUpBandwidthRequest::getUpBandwidth4G()const -{ - return upBandwidth4G_; +void ModifySmartAccessGatewayUpBandwidthRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySmartAccessGatewayUpBandwidthRequest::setUpBandwidth4G(int upBandwidth4G) -{ - upBandwidth4G_ = upBandwidth4G; - setParameter("UpBandwidth4G", std::to_string(upBandwidth4G)); +int ModifySmartAccessGatewayUpBandwidthRequest::getUpBandwidth4G() const { + return upBandwidth4G_; } -long ModifySmartAccessGatewayUpBandwidthRequest::getOwnerId()const -{ - return ownerId_; +void ModifySmartAccessGatewayUpBandwidthRequest::setUpBandwidth4G(int upBandwidth4G) { + upBandwidth4G_ = upBandwidth4G; + setParameter(std::string("UpBandwidth4G"), std::to_string(upBandwidth4G)); } -void ModifySmartAccessGatewayUpBandwidthRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySmartAccessGatewayUpBandwidthRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySmartAccessGatewayUpBandwidthRequest::getSmartAGId()const -{ - return smartAGId_; +void ModifySmartAccessGatewayUpBandwidthRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySmartAccessGatewayUpBandwidthRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ModifySmartAccessGatewayUpBandwidthRequest::getSmartAGId() const { + return smartAGId_; +} + +void ModifySmartAccessGatewayUpBandwidthRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/MoveResourceGroupRequest.cc b/smartag/src/model/MoveResourceGroupRequest.cc index 15ce3b246..e021a8590 100644 --- a/smartag/src/model/MoveResourceGroupRequest.cc +++ b/smartag/src/model/MoveResourceGroupRequest.cc @@ -1,117 +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::Smartag::Model::MoveResourceGroupRequest; - -MoveResourceGroupRequest::MoveResourceGroupRequest() : - RpcServiceRequest("smartag", "2018-03-13", "MoveResourceGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -MoveResourceGroupRequest::~MoveResourceGroupRequest() -{} - -long MoveResourceGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::MoveResourceGroupRequest; + +MoveResourceGroupRequest::MoveResourceGroupRequest() + : RpcServiceRequest("smartag", "2018-03-13", "MoveResourceGroup") { + setMethod(HttpRequest::Method::Post); } -void MoveResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +MoveResourceGroupRequest::~MoveResourceGroupRequest() {} + +long MoveResourceGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string MoveResourceGroupRequest::getRegionId()const -{ - return regionId_; +void MoveResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void MoveResourceGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string MoveResourceGroupRequest::getRegionId() const { + return regionId_; } -std::string MoveResourceGroupRequest::getResourceId()const -{ - return resourceId_; +void MoveResourceGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void MoveResourceGroupRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string MoveResourceGroupRequest::getResourceId() const { + return resourceId_; } -std::string MoveResourceGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void MoveResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void MoveResourceGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string MoveResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string MoveResourceGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void MoveResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void MoveResourceGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string MoveResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long MoveResourceGroupRequest::getOwnerId()const -{ - return ownerId_; +void MoveResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void MoveResourceGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long MoveResourceGroupRequest::getOwnerId() const { + return ownerId_; } -std::string MoveResourceGroupRequest::getResourceType()const -{ - return resourceType_; +void MoveResourceGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void MoveResourceGroupRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string MoveResourceGroupRequest::getResourceType() const { + return resourceType_; } -std::string MoveResourceGroupRequest::getNewResourceGroupId()const -{ - return newResourceGroupId_; +void MoveResourceGroupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void MoveResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId) -{ - newResourceGroupId_ = newResourceGroupId; - setParameter("NewResourceGroupId", newResourceGroupId); +std::string MoveResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void MoveResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); } diff --git a/smartag/src/model/OrchestrateSagECRouteBackupRequest.cc b/smartag/src/model/OrchestrateSagECRouteBackupRequest.cc deleted file mode 100644 index 8202830b9..000000000 --- a/smartag/src/model/OrchestrateSagECRouteBackupRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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::Smartag::Model::OrchestrateSagECRouteBackupRequest; - -OrchestrateSagECRouteBackupRequest::OrchestrateSagECRouteBackupRequest() : - RpcServiceRequest("smartag", "2018-03-13", "OrchestrateSagECRouteBackup") -{ - setMethod(HttpRequest::Method::Post); -} - -OrchestrateSagECRouteBackupRequest::~OrchestrateSagECRouteBackupRequest() -{} - -long OrchestrateSagECRouteBackupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void OrchestrateSagECRouteBackupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string OrchestrateSagECRouteBackupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void OrchestrateSagECRouteBackupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string OrchestrateSagECRouteBackupRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void OrchestrateSagECRouteBackupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long OrchestrateSagECRouteBackupRequest::getOwnerId()const -{ - return ownerId_; -} - -void OrchestrateSagECRouteBackupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string OrchestrateSagECRouteBackupRequest::getRegionId()const -{ - return regionId_; -} - -void OrchestrateSagECRouteBackupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - diff --git a/smartag/src/model/OrchestrateSagECRouteBackupResult.cc b/smartag/src/model/OrchestrateSagECRouteBackupResult.cc deleted file mode 100644 index 7e308d02d..000000000 --- a/smartag/src/model/OrchestrateSagECRouteBackupResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -OrchestrateSagECRouteBackupResult::OrchestrateSagECRouteBackupResult() : - ServiceResult() -{} - -OrchestrateSagECRouteBackupResult::OrchestrateSagECRouteBackupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -OrchestrateSagECRouteBackupResult::~OrchestrateSagECRouteBackupResult() -{} - -void OrchestrateSagECRouteBackupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/ProbeAccessPointNetworkQualityRequest.cc b/smartag/src/model/ProbeAccessPointNetworkQualityRequest.cc index 640491c67..8eb6bcacd 100644 --- a/smartag/src/model/ProbeAccessPointNetworkQualityRequest.cc +++ b/smartag/src/model/ProbeAccessPointNetworkQualityRequest.cc @@ -1,108 +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::Smartag::Model::ProbeAccessPointNetworkQualityRequest; - -ProbeAccessPointNetworkQualityRequest::ProbeAccessPointNetworkQualityRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ProbeAccessPointNetworkQuality") -{ - setMethod(HttpRequest::Method::Post); -} - -ProbeAccessPointNetworkQualityRequest::~ProbeAccessPointNetworkQualityRequest() -{} - -long ProbeAccessPointNetworkQualityRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ProbeAccessPointNetworkQualityRequest; + +ProbeAccessPointNetworkQualityRequest::ProbeAccessPointNetworkQualityRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ProbeAccessPointNetworkQuality") { + setMethod(HttpRequest::Method::Post); } -void ProbeAccessPointNetworkQualityRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ProbeAccessPointNetworkQualityRequest::~ProbeAccessPointNetworkQualityRequest() {} + +long ProbeAccessPointNetworkQualityRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ProbeAccessPointNetworkQualityRequest::getRegionId()const -{ - return regionId_; +void ProbeAccessPointNetworkQualityRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ProbeAccessPointNetworkQualityRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ProbeAccessPointNetworkQualityRequest::getRegionId() const { + return regionId_; } -std::string ProbeAccessPointNetworkQualityRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ProbeAccessPointNetworkQualityRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ProbeAccessPointNetworkQualityRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ProbeAccessPointNetworkQualityRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ProbeAccessPointNetworkQualityRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ProbeAccessPointNetworkQualityRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ProbeAccessPointNetworkQualityRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ProbeAccessPointNetworkQualityRequest::getOwnerAccount() const { + return ownerAccount_; } -std::vector ProbeAccessPointNetworkQualityRequest::getAccessPointIds()const -{ - return accessPointIds_; +void ProbeAccessPointNetworkQualityRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ProbeAccessPointNetworkQualityRequest::setAccessPointIds(const std::vector& accessPointIds) -{ - accessPointIds_ = accessPointIds; - for(int dep1 = 0; dep1!= accessPointIds.size(); dep1++) { - setParameter("AccessPointIds."+ std::to_string(dep1), std::to_string(accessPointIds.at(dep1))); - } +std::vector ProbeAccessPointNetworkQualityRequest::getAccessPointIds() const { + return accessPointIds_; } -long ProbeAccessPointNetworkQualityRequest::getOwnerId()const -{ - return ownerId_; +void ProbeAccessPointNetworkQualityRequest::setAccessPointIds(const std::vector &accessPointIds) { + accessPointIds_ = accessPointIds; } -void ProbeAccessPointNetworkQualityRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ProbeAccessPointNetworkQualityRequest::getOwnerId() const { + return ownerId_; } -std::string ProbeAccessPointNetworkQualityRequest::getSmartAGId()const -{ - return smartAGId_; +void ProbeAccessPointNetworkQualityRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ProbeAccessPointNetworkQualityRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ProbeAccessPointNetworkQualityRequest::getSmartAGId() const { + return smartAGId_; +} + +void ProbeAccessPointNetworkQualityRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/RebootSmartAccessGatewayRequest.cc b/smartag/src/model/RebootSmartAccessGatewayRequest.cc index c705be511..f84bf0730 100644 --- a/smartag/src/model/RebootSmartAccessGatewayRequest.cc +++ b/smartag/src/model/RebootSmartAccessGatewayRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::RebootSmartAccessGatewayRequest; - -RebootSmartAccessGatewayRequest::RebootSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "RebootSmartAccessGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -RebootSmartAccessGatewayRequest::~RebootSmartAccessGatewayRequest() -{} - -long RebootSmartAccessGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::RebootSmartAccessGatewayRequest; + +RebootSmartAccessGatewayRequest::RebootSmartAccessGatewayRequest() + : RpcServiceRequest("smartag", "2018-03-13", "RebootSmartAccessGateway") { + setMethod(HttpRequest::Method::Post); } -void RebootSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RebootSmartAccessGatewayRequest::~RebootSmartAccessGatewayRequest() {} + +long RebootSmartAccessGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RebootSmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; +void RebootSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RebootSmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RebootSmartAccessGatewayRequest::getRegionId() const { + return regionId_; } -std::string RebootSmartAccessGatewayRequest::getSerialNumber()const -{ - return serialNumber_; +void RebootSmartAccessGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RebootSmartAccessGatewayRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +std::string RebootSmartAccessGatewayRequest::getSerialNumber() const { + return serialNumber_; } -std::string RebootSmartAccessGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RebootSmartAccessGatewayRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } -void RebootSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RebootSmartAccessGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RebootSmartAccessGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RebootSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RebootSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RebootSmartAccessGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long RebootSmartAccessGatewayRequest::getOwnerId()const -{ - return ownerId_; +void RebootSmartAccessGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RebootSmartAccessGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RebootSmartAccessGatewayRequest::getOwnerId() const { + return ownerId_; } -std::string RebootSmartAccessGatewayRequest::getSmartAGId()const -{ - return smartAGId_; +void RebootSmartAccessGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RebootSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string RebootSmartAccessGatewayRequest::getSmartAGId() const { + return smartAGId_; +} + +void RebootSmartAccessGatewayRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc b/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc index 426afadcc..9976144c6 100644 --- a/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc +++ b/smartag/src/model/ResetSmartAccessGatewayClientUserPasswordRequest.cc @@ -1,117 +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::Smartag::Model::ResetSmartAccessGatewayClientUserPasswordRequest; - -ResetSmartAccessGatewayClientUserPasswordRequest::ResetSmartAccessGatewayClientUserPasswordRequest() : - RpcServiceRequest("smartag", "2018-03-13", "ResetSmartAccessGatewayClientUserPassword") -{ - setMethod(HttpRequest::Method::Post); -} - -ResetSmartAccessGatewayClientUserPasswordRequest::~ResetSmartAccessGatewayClientUserPasswordRequest() -{} - -long ResetSmartAccessGatewayClientUserPasswordRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::ResetSmartAccessGatewayClientUserPasswordRequest; + +ResetSmartAccessGatewayClientUserPasswordRequest::ResetSmartAccessGatewayClientUserPasswordRequest() + : RpcServiceRequest("smartag", "2018-03-13", "ResetSmartAccessGatewayClientUserPassword") { + setMethod(HttpRequest::Method::Post); } -void ResetSmartAccessGatewayClientUserPasswordRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ResetSmartAccessGatewayClientUserPasswordRequest::~ResetSmartAccessGatewayClientUserPasswordRequest() {} + +long ResetSmartAccessGatewayClientUserPasswordRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ResetSmartAccessGatewayClientUserPasswordRequest::getPassword()const -{ - return password_; +void ResetSmartAccessGatewayClientUserPasswordRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ResetSmartAccessGatewayClientUserPasswordRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +std::string ResetSmartAccessGatewayClientUserPasswordRequest::getPassword() const { + return password_; } -std::string ResetSmartAccessGatewayClientUserPasswordRequest::getRegionId()const -{ - return regionId_; +void ResetSmartAccessGatewayClientUserPasswordRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void ResetSmartAccessGatewayClientUserPasswordRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ResetSmartAccessGatewayClientUserPasswordRequest::getRegionId() const { + return regionId_; } -std::string ResetSmartAccessGatewayClientUserPasswordRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ResetSmartAccessGatewayClientUserPasswordRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ResetSmartAccessGatewayClientUserPasswordRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ResetSmartAccessGatewayClientUserPasswordRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ResetSmartAccessGatewayClientUserPasswordRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ResetSmartAccessGatewayClientUserPasswordRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ResetSmartAccessGatewayClientUserPasswordRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ResetSmartAccessGatewayClientUserPasswordRequest::getOwnerAccount() const { + return ownerAccount_; } -long ResetSmartAccessGatewayClientUserPasswordRequest::getOwnerId()const -{ - return ownerId_; +void ResetSmartAccessGatewayClientUserPasswordRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ResetSmartAccessGatewayClientUserPasswordRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ResetSmartAccessGatewayClientUserPasswordRequest::getOwnerId() const { + return ownerId_; } -std::string ResetSmartAccessGatewayClientUserPasswordRequest::getSmartAGId()const -{ - return smartAGId_; +void ResetSmartAccessGatewayClientUserPasswordRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ResetSmartAccessGatewayClientUserPasswordRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string ResetSmartAccessGatewayClientUserPasswordRequest::getSmartAGId() const { + return smartAGId_; } -std::string ResetSmartAccessGatewayClientUserPasswordRequest::getUserName()const -{ - return userName_; +void ResetSmartAccessGatewayClientUserPasswordRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void ResetSmartAccessGatewayClientUserPasswordRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string ResetSmartAccessGatewayClientUserPasswordRequest::getUserName() const { + return userName_; +} + +void ResetSmartAccessGatewayClientUserPasswordRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/smartag/src/model/RevokeInstanceFromCbnRequest.cc b/smartag/src/model/RevokeInstanceFromCbnRequest.cc index b7c8db4bd..fe4c9011e 100644 --- a/smartag/src/model/RevokeInstanceFromCbnRequest.cc +++ b/smartag/src/model/RevokeInstanceFromCbnRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::RevokeInstanceFromCbnRequest; - -RevokeInstanceFromCbnRequest::RevokeInstanceFromCbnRequest() : - RpcServiceRequest("smartag", "2018-03-13", "RevokeInstanceFromCbn") -{ - setMethod(HttpRequest::Method::Post); -} - -RevokeInstanceFromCbnRequest::~RevokeInstanceFromCbnRequest() -{} - -long RevokeInstanceFromCbnRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::RevokeInstanceFromCbnRequest; + +RevokeInstanceFromCbnRequest::RevokeInstanceFromCbnRequest() + : RpcServiceRequest("smartag", "2018-03-13", "RevokeInstanceFromCbn") { + setMethod(HttpRequest::Method::Post); } -void RevokeInstanceFromCbnRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RevokeInstanceFromCbnRequest::~RevokeInstanceFromCbnRequest() {} + +long RevokeInstanceFromCbnRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RevokeInstanceFromCbnRequest::getRegionId()const -{ - return regionId_; +void RevokeInstanceFromCbnRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RevokeInstanceFromCbnRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RevokeInstanceFromCbnRequest::getRegionId() const { + return regionId_; } -std::string RevokeInstanceFromCbnRequest::getCcnInstanceId()const -{ - return ccnInstanceId_; +void RevokeInstanceFromCbnRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RevokeInstanceFromCbnRequest::setCcnInstanceId(const std::string& ccnInstanceId) -{ - ccnInstanceId_ = ccnInstanceId; - setParameter("CcnInstanceId", ccnInstanceId); +std::string RevokeInstanceFromCbnRequest::getCcnInstanceId() const { + return ccnInstanceId_; } -std::string RevokeInstanceFromCbnRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RevokeInstanceFromCbnRequest::setCcnInstanceId(const std::string &ccnInstanceId) { + ccnInstanceId_ = ccnInstanceId; + setParameter(std::string("CcnInstanceId"), ccnInstanceId); } -void RevokeInstanceFromCbnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RevokeInstanceFromCbnRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RevokeInstanceFromCbnRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RevokeInstanceFromCbnRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RevokeInstanceFromCbnRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RevokeInstanceFromCbnRequest::getOwnerAccount() const { + return ownerAccount_; } -long RevokeInstanceFromCbnRequest::getOwnerId()const -{ - return ownerId_; +void RevokeInstanceFromCbnRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RevokeInstanceFromCbnRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RevokeInstanceFromCbnRequest::getOwnerId() const { + return ownerId_; } -std::string RevokeInstanceFromCbnRequest::getCenInstanceId()const -{ - return cenInstanceId_; +void RevokeInstanceFromCbnRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RevokeInstanceFromCbnRequest::setCenInstanceId(const std::string& cenInstanceId) -{ - cenInstanceId_ = cenInstanceId; - setParameter("CenInstanceId", cenInstanceId); +std::string RevokeInstanceFromCbnRequest::getCenInstanceId() const { + return cenInstanceId_; +} + +void RevokeInstanceFromCbnRequest::setCenInstanceId(const std::string &cenInstanceId) { + cenInstanceId_ = cenInstanceId; + setParameter(std::string("CenInstanceId"), cenInstanceId); } diff --git a/smartag/src/model/RevokeInstanceFromVbrRequest.cc b/smartag/src/model/RevokeInstanceFromVbrRequest.cc index 5361d64a4..58e1dc474 100644 --- a/smartag/src/model/RevokeInstanceFromVbrRequest.cc +++ b/smartag/src/model/RevokeInstanceFromVbrRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::RevokeInstanceFromVbrRequest; - -RevokeInstanceFromVbrRequest::RevokeInstanceFromVbrRequest() : - RpcServiceRequest("smartag", "2018-03-13", "RevokeInstanceFromVbr") -{ - setMethod(HttpRequest::Method::Post); -} - -RevokeInstanceFromVbrRequest::~RevokeInstanceFromVbrRequest() -{} - -long RevokeInstanceFromVbrRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::RevokeInstanceFromVbrRequest; + +RevokeInstanceFromVbrRequest::RevokeInstanceFromVbrRequest() + : RpcServiceRequest("smartag", "2018-03-13", "RevokeInstanceFromVbr") { + setMethod(HttpRequest::Method::Post); } -void RevokeInstanceFromVbrRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RevokeInstanceFromVbrRequest::~RevokeInstanceFromVbrRequest() {} + +long RevokeInstanceFromVbrRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RevokeInstanceFromVbrRequest::getRegionId()const -{ - return regionId_; +void RevokeInstanceFromVbrRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RevokeInstanceFromVbrRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RevokeInstanceFromVbrRequest::getRegionId() const { + return regionId_; } -std::string RevokeInstanceFromVbrRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RevokeInstanceFromVbrRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RevokeInstanceFromVbrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RevokeInstanceFromVbrRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RevokeInstanceFromVbrRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RevokeInstanceFromVbrRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RevokeInstanceFromVbrRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RevokeInstanceFromVbrRequest::getOwnerAccount() const { + return ownerAccount_; } -long RevokeInstanceFromVbrRequest::getOwnerId()const -{ - return ownerId_; +void RevokeInstanceFromVbrRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RevokeInstanceFromVbrRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RevokeInstanceFromVbrRequest::getOwnerId() const { + return ownerId_; } -std::string RevokeInstanceFromVbrRequest::getVbrInstanceId()const -{ - return vbrInstanceId_; +void RevokeInstanceFromVbrRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RevokeInstanceFromVbrRequest::setVbrInstanceId(const std::string& vbrInstanceId) -{ - vbrInstanceId_ = vbrInstanceId; - setParameter("VbrInstanceId", vbrInstanceId); +std::string RevokeInstanceFromVbrRequest::getVbrInstanceId() const { + return vbrInstanceId_; } -std::string RevokeInstanceFromVbrRequest::getSmartAGId()const -{ - return smartAGId_; +void RevokeInstanceFromVbrRequest::setVbrInstanceId(const std::string &vbrInstanceId) { + vbrInstanceId_ = vbrInstanceId; + setParameter(std::string("VbrInstanceId"), vbrInstanceId); } -void RevokeInstanceFromVbrRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string RevokeInstanceFromVbrRequest::getSmartAGId() const { + return smartAGId_; +} + +void RevokeInstanceFromVbrRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/RevokeSagInstanceFromCcnRequest.cc b/smartag/src/model/RevokeSagInstanceFromCcnRequest.cc index 699b7ceed..e963ef4ee 100644 --- a/smartag/src/model/RevokeSagInstanceFromCcnRequest.cc +++ b/smartag/src/model/RevokeSagInstanceFromCcnRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::RevokeSagInstanceFromCcnRequest; - -RevokeSagInstanceFromCcnRequest::RevokeSagInstanceFromCcnRequest() : - RpcServiceRequest("smartag", "2018-03-13", "RevokeSagInstanceFromCcn") -{ - setMethod(HttpRequest::Method::Post); -} - -RevokeSagInstanceFromCcnRequest::~RevokeSagInstanceFromCcnRequest() -{} - -long RevokeSagInstanceFromCcnRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::RevokeSagInstanceFromCcnRequest; + +RevokeSagInstanceFromCcnRequest::RevokeSagInstanceFromCcnRequest() + : RpcServiceRequest("smartag", "2018-03-13", "RevokeSagInstanceFromCcn") { + setMethod(HttpRequest::Method::Post); } -void RevokeSagInstanceFromCcnRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RevokeSagInstanceFromCcnRequest::~RevokeSagInstanceFromCcnRequest() {} + +long RevokeSagInstanceFromCcnRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RevokeSagInstanceFromCcnRequest::getRegionId()const -{ - return regionId_; +void RevokeSagInstanceFromCcnRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RevokeSagInstanceFromCcnRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RevokeSagInstanceFromCcnRequest::getRegionId() const { + return regionId_; } -std::string RevokeSagInstanceFromCcnRequest::getCcnInstanceId()const -{ - return ccnInstanceId_; +void RevokeSagInstanceFromCcnRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RevokeSagInstanceFromCcnRequest::setCcnInstanceId(const std::string& ccnInstanceId) -{ - ccnInstanceId_ = ccnInstanceId; - setParameter("CcnInstanceId", ccnInstanceId); +std::string RevokeSagInstanceFromCcnRequest::getCcnInstanceId() const { + return ccnInstanceId_; } -std::string RevokeSagInstanceFromCcnRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RevokeSagInstanceFromCcnRequest::setCcnInstanceId(const std::string &ccnInstanceId) { + ccnInstanceId_ = ccnInstanceId; + setParameter(std::string("CcnInstanceId"), ccnInstanceId); } -void RevokeSagInstanceFromCcnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RevokeSagInstanceFromCcnRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RevokeSagInstanceFromCcnRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RevokeSagInstanceFromCcnRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RevokeSagInstanceFromCcnRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RevokeSagInstanceFromCcnRequest::getOwnerAccount() const { + return ownerAccount_; } -long RevokeSagInstanceFromCcnRequest::getOwnerId()const -{ - return ownerId_; +void RevokeSagInstanceFromCcnRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RevokeSagInstanceFromCcnRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RevokeSagInstanceFromCcnRequest::getOwnerId() const { + return ownerId_; } -std::string RevokeSagInstanceFromCcnRequest::getSmartAGId()const -{ - return smartAGId_; +void RevokeSagInstanceFromCcnRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RevokeSagInstanceFromCcnRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string RevokeSagInstanceFromCcnRequest::getSmartAGId() const { + return smartAGId_; +} + +void RevokeSagInstanceFromCcnRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/RoamClientUserRequest.cc b/smartag/src/model/RoamClientUserRequest.cc index b82be5466..8cedb7de4 100644 --- a/smartag/src/model/RoamClientUserRequest.cc +++ b/smartag/src/model/RoamClientUserRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::RoamClientUserRequest; - -RoamClientUserRequest::RoamClientUserRequest() : - RpcServiceRequest("smartag", "2018-03-13", "RoamClientUser") -{ - setMethod(HttpRequest::Method::Post); -} - -RoamClientUserRequest::~RoamClientUserRequest() -{} - -long RoamClientUserRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::RoamClientUserRequest; + +RoamClientUserRequest::RoamClientUserRequest() + : RpcServiceRequest("smartag", "2018-03-13", "RoamClientUser") { + setMethod(HttpRequest::Method::Post); } -void RoamClientUserRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RoamClientUserRequest::~RoamClientUserRequest() {} + +long RoamClientUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RoamClientUserRequest::getOriginSmartAGId()const -{ - return originSmartAGId_; +void RoamClientUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RoamClientUserRequest::setOriginSmartAGId(const std::string& originSmartAGId) -{ - originSmartAGId_ = originSmartAGId; - setParameter("OriginSmartAGId", originSmartAGId); +std::string RoamClientUserRequest::getOriginSmartAGId() const { + return originSmartAGId_; } -std::string RoamClientUserRequest::getRegionId()const -{ - return regionId_; +void RoamClientUserRequest::setOriginSmartAGId(const std::string &originSmartAGId) { + originSmartAGId_ = originSmartAGId; + setParameter(std::string("OriginSmartAGId"), originSmartAGId); } -void RoamClientUserRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RoamClientUserRequest::getRegionId() const { + return regionId_; } -std::string RoamClientUserRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RoamClientUserRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RoamClientUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RoamClientUserRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RoamClientUserRequest::getTargetSmartAGId()const -{ - return targetSmartAGId_; +void RoamClientUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RoamClientUserRequest::setTargetSmartAGId(const std::string& targetSmartAGId) -{ - targetSmartAGId_ = targetSmartAGId; - setParameter("TargetSmartAGId", targetSmartAGId); +std::string RoamClientUserRequest::getTargetSmartAGId() const { + return targetSmartAGId_; } -std::string RoamClientUserRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RoamClientUserRequest::setTargetSmartAGId(const std::string &targetSmartAGId) { + targetSmartAGId_ = targetSmartAGId; + setParameter(std::string("TargetSmartAGId"), targetSmartAGId); } -void RoamClientUserRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RoamClientUserRequest::getOwnerAccount() const { + return ownerAccount_; } -long RoamClientUserRequest::getOwnerId()const -{ - return ownerId_; +void RoamClientUserRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RoamClientUserRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RoamClientUserRequest::getOwnerId() const { + return ownerId_; } -std::string RoamClientUserRequest::getOriginRegionId()const -{ - return originRegionId_; +void RoamClientUserRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RoamClientUserRequest::setOriginRegionId(const std::string& originRegionId) -{ - originRegionId_ = originRegionId; - setParameter("OriginRegionId", originRegionId); +std::string RoamClientUserRequest::getOriginRegionId() const { + return originRegionId_; } -std::string RoamClientUserRequest::getUserName()const -{ - return userName_; +void RoamClientUserRequest::setOriginRegionId(const std::string &originRegionId) { + originRegionId_ = originRegionId; + setParameter(std::string("OriginRegionId"), originRegionId); } -void RoamClientUserRequest::setUserName(const std::string& userName) -{ - userName_ = userName; - setParameter("UserName", userName); +std::string RoamClientUserRequest::getUserName() const { + return userName_; +} + +void RoamClientUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); } diff --git a/smartag/src/model/SetSagRouteableAddressRequest.cc b/smartag/src/model/SetSagRouteableAddressRequest.cc deleted file mode 100644 index d3557be5d..000000000 --- a/smartag/src/model/SetSagRouteableAddressRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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::Smartag::Model::SetSagRouteableAddressRequest; - -SetSagRouteableAddressRequest::SetSagRouteableAddressRequest() : - RpcServiceRequest("smartag", "2018-03-13", "SetSagRouteableAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -SetSagRouteableAddressRequest::~SetSagRouteableAddressRequest() -{} - -std::string SetSagRouteableAddressRequest::getAccess_key_id()const -{ - return access_key_id_; -} - -void SetSagRouteableAddressRequest::setAccess_key_id(const std::string& access_key_id) -{ - access_key_id_ = access_key_id; - setParameter("Access_key_id", access_key_id); -} - -long SetSagRouteableAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void SetSagRouteableAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string SetSagRouteableAddressRequest::getRouteableAddress()const -{ - return routeableAddress_; -} - -void SetSagRouteableAddressRequest::setRouteableAddress(const std::string& routeableAddress) -{ - routeableAddress_ = routeableAddress; - setParameter("RouteableAddress", routeableAddress); -} - -std::string SetSagRouteableAddressRequest::getRegionId()const -{ - return regionId_; -} - -void SetSagRouteableAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string SetSagRouteableAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void SetSagRouteableAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string SetSagRouteableAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void SetSagRouteableAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long SetSagRouteableAddressRequest::getOwnerId()const -{ - return ownerId_; -} - -void SetSagRouteableAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string SetSagRouteableAddressRequest::getSagId()const -{ - return sagId_; -} - -void SetSagRouteableAddressRequest::setSagId(const std::string& sagId) -{ - sagId_ = sagId; - setParameter("SagId", sagId); -} - diff --git a/smartag/src/model/SetSagRouteableAddressResult.cc b/smartag/src/model/SetSagRouteableAddressResult.cc deleted file mode 100644 index c5dfae6ad..000000000 --- a/smartag/src/model/SetSagRouteableAddressResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -SetSagRouteableAddressResult::SetSagRouteableAddressResult() : - ServiceResult() -{} - -SetSagRouteableAddressResult::SetSagRouteableAddressResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SetSagRouteableAddressResult::~SetSagRouteableAddressResult() -{} - -void SetSagRouteableAddressResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/smartag/src/model/SynchronizeSmartAGWebConfigRequest.cc b/smartag/src/model/SynchronizeSmartAGWebConfigRequest.cc index 45c3b1259..244bb9742 100644 --- a/smartag/src/model/SynchronizeSmartAGWebConfigRequest.cc +++ b/smartag/src/model/SynchronizeSmartAGWebConfigRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::SynchronizeSmartAGWebConfigRequest; - -SynchronizeSmartAGWebConfigRequest::SynchronizeSmartAGWebConfigRequest() : - RpcServiceRequest("smartag", "2018-03-13", "SynchronizeSmartAGWebConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -SynchronizeSmartAGWebConfigRequest::~SynchronizeSmartAGWebConfigRequest() -{} - -long SynchronizeSmartAGWebConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::SynchronizeSmartAGWebConfigRequest; + +SynchronizeSmartAGWebConfigRequest::SynchronizeSmartAGWebConfigRequest() + : RpcServiceRequest("smartag", "2018-03-13", "SynchronizeSmartAGWebConfig") { + setMethod(HttpRequest::Method::Post); } -void SynchronizeSmartAGWebConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SynchronizeSmartAGWebConfigRequest::~SynchronizeSmartAGWebConfigRequest() {} + +long SynchronizeSmartAGWebConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SynchronizeSmartAGWebConfigRequest::getRegionId()const -{ - return regionId_; +void SynchronizeSmartAGWebConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SynchronizeSmartAGWebConfigRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string SynchronizeSmartAGWebConfigRequest::getRegionId() const { + return regionId_; } -std::string SynchronizeSmartAGWebConfigRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SynchronizeSmartAGWebConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void SynchronizeSmartAGWebConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SynchronizeSmartAGWebConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SynchronizeSmartAGWebConfigRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SynchronizeSmartAGWebConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SynchronizeSmartAGWebConfigRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SynchronizeSmartAGWebConfigRequest::getOwnerAccount() const { + return ownerAccount_; } -long SynchronizeSmartAGWebConfigRequest::getOwnerId()const -{ - return ownerId_; +void SynchronizeSmartAGWebConfigRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SynchronizeSmartAGWebConfigRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SynchronizeSmartAGWebConfigRequest::getOwnerId() const { + return ownerId_; } -std::string SynchronizeSmartAGWebConfigRequest::getSmartAGId()const -{ - return smartAGId_; +void SynchronizeSmartAGWebConfigRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SynchronizeSmartAGWebConfigRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string SynchronizeSmartAGWebConfigRequest::getSmartAGId() const { + return smartAGId_; } -std::string SynchronizeSmartAGWebConfigRequest::getSmartAGSn()const -{ - return smartAGSn_; +void SynchronizeSmartAGWebConfigRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void SynchronizeSmartAGWebConfigRequest::setSmartAGSn(const std::string& smartAGSn) -{ - smartAGSn_ = smartAGSn; - setParameter("SmartAGSn", smartAGSn); +std::string SynchronizeSmartAGWebConfigRequest::getSmartAGSn() const { + return smartAGSn_; +} + +void SynchronizeSmartAGWebConfigRequest::setSmartAGSn(const std::string &smartAGSn) { + smartAGSn_ = smartAGSn; + setParameter(std::string("SmartAGSn"), smartAGSn); } diff --git a/smartag/src/model/UnbindSerialNumberRequest.cc b/smartag/src/model/UnbindSerialNumberRequest.cc index f6cf49724..26bb36087 100644 --- a/smartag/src/model/UnbindSerialNumberRequest.cc +++ b/smartag/src/model/UnbindSerialNumberRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::UnbindSerialNumberRequest; - -UnbindSerialNumberRequest::UnbindSerialNumberRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnbindSerialNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -UnbindSerialNumberRequest::~UnbindSerialNumberRequest() -{} - -long UnbindSerialNumberRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::UnbindSerialNumberRequest; + +UnbindSerialNumberRequest::UnbindSerialNumberRequest() + : RpcServiceRequest("smartag", "2018-03-13", "UnbindSerialNumber") { + setMethod(HttpRequest::Method::Post); } -void UnbindSerialNumberRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnbindSerialNumberRequest::~UnbindSerialNumberRequest() {} + +long UnbindSerialNumberRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnbindSerialNumberRequest::getRegionId()const -{ - return regionId_; +void UnbindSerialNumberRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnbindSerialNumberRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnbindSerialNumberRequest::getRegionId() const { + return regionId_; } -std::string UnbindSerialNumberRequest::getSerialNumber()const -{ - return serialNumber_; +void UnbindSerialNumberRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnbindSerialNumberRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +std::string UnbindSerialNumberRequest::getSerialNumber() const { + return serialNumber_; } -std::string UnbindSerialNumberRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnbindSerialNumberRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } -void UnbindSerialNumberRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnbindSerialNumberRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnbindSerialNumberRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnbindSerialNumberRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnbindSerialNumberRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnbindSerialNumberRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnbindSerialNumberRequest::getOwnerId()const -{ - return ownerId_; +void UnbindSerialNumberRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnbindSerialNumberRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnbindSerialNumberRequest::getOwnerId() const { + return ownerId_; } -std::string UnbindSerialNumberRequest::getSmartAGId()const -{ - return smartAGId_; +void UnbindSerialNumberRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnbindSerialNumberRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string UnbindSerialNumberRequest::getSmartAGId() const { + return smartAGId_; +} + +void UnbindSerialNumberRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/UnbindSmartAccessGatewayRequest.cc b/smartag/src/model/UnbindSmartAccessGatewayRequest.cc index 2c42d4e44..f18b14fee 100644 --- a/smartag/src/model/UnbindSmartAccessGatewayRequest.cc +++ b/smartag/src/model/UnbindSmartAccessGatewayRequest.cc @@ -1,117 +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::Smartag::Model::UnbindSmartAccessGatewayRequest; - -UnbindSmartAccessGatewayRequest::UnbindSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnbindSmartAccessGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -UnbindSmartAccessGatewayRequest::~UnbindSmartAccessGatewayRequest() -{} - -long UnbindSmartAccessGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::UnbindSmartAccessGatewayRequest; + +UnbindSmartAccessGatewayRequest::UnbindSmartAccessGatewayRequest() + : RpcServiceRequest("smartag", "2018-03-13", "UnbindSmartAccessGateway") { + setMethod(HttpRequest::Method::Post); } -void UnbindSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnbindSmartAccessGatewayRequest::~UnbindSmartAccessGatewayRequest() {} + +long UnbindSmartAccessGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnbindSmartAccessGatewayRequest::getCcnId()const -{ - return ccnId_; +void UnbindSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnbindSmartAccessGatewayRequest::setCcnId(const std::string& ccnId) -{ - ccnId_ = ccnId; - setParameter("CcnId", ccnId); +std::string UnbindSmartAccessGatewayRequest::getCcnId() const { + return ccnId_; } -std::string UnbindSmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; +void UnbindSmartAccessGatewayRequest::setCcnId(const std::string &ccnId) { + ccnId_ = ccnId; + setParameter(std::string("CcnId"), ccnId); } -void UnbindSmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnbindSmartAccessGatewayRequest::getRegionId() const { + return regionId_; } -std::string UnbindSmartAccessGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnbindSmartAccessGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnbindSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnbindSmartAccessGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnbindSmartAccessGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnbindSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnbindSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnbindSmartAccessGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnbindSmartAccessGatewayRequest::getOwnerId()const -{ - return ownerId_; +void UnbindSmartAccessGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnbindSmartAccessGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnbindSmartAccessGatewayRequest::getOwnerId() const { + return ownerId_; } -long UnbindSmartAccessGatewayRequest::getSmartAGUid()const -{ - return smartAGUid_; +void UnbindSmartAccessGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnbindSmartAccessGatewayRequest::setSmartAGUid(long smartAGUid) -{ - smartAGUid_ = smartAGUid; - setParameter("SmartAGUid", std::to_string(smartAGUid)); +long UnbindSmartAccessGatewayRequest::getSmartAGUid() const { + return smartAGUid_; } -std::string UnbindSmartAccessGatewayRequest::getSmartAGId()const -{ - return smartAGId_; +void UnbindSmartAccessGatewayRequest::setSmartAGUid(long smartAGUid) { + smartAGUid_ = smartAGUid; + setParameter(std::string("SmartAGUid"), std::to_string(smartAGUid)); } -void UnbindSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string UnbindSmartAccessGatewayRequest::getSmartAGId() const { + return smartAGId_; +} + +void UnbindSmartAccessGatewayRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/UnbindVbrRequest.cc b/smartag/src/model/UnbindVbrRequest.cc index f6856c3f5..00a67a1f4 100644 --- a/smartag/src/model/UnbindVbrRequest.cc +++ b/smartag/src/model/UnbindVbrRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::UnbindVbrRequest; - -UnbindVbrRequest::UnbindVbrRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnbindVbr") -{ - setMethod(HttpRequest::Method::Post); -} - -UnbindVbrRequest::~UnbindVbrRequest() -{} - -long UnbindVbrRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::UnbindVbrRequest; + +UnbindVbrRequest::UnbindVbrRequest() + : RpcServiceRequest("smartag", "2018-03-13", "UnbindVbr") { + setMethod(HttpRequest::Method::Post); } -void UnbindVbrRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnbindVbrRequest::~UnbindVbrRequest() {} + +long UnbindVbrRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnbindVbrRequest::getVbrId()const -{ - return vbrId_; +void UnbindVbrRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnbindVbrRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string UnbindVbrRequest::getVbrId() const { + return vbrId_; } -std::string UnbindVbrRequest::getVbrRegionId()const -{ - return vbrRegionId_; +void UnbindVbrRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void UnbindVbrRequest::setVbrRegionId(const std::string& vbrRegionId) -{ - vbrRegionId_ = vbrRegionId; - setParameter("VbrRegionId", vbrRegionId); +std::string UnbindVbrRequest::getVbrRegionId() const { + return vbrRegionId_; } -std::string UnbindVbrRequest::getRegionId()const -{ - return regionId_; +void UnbindVbrRequest::setVbrRegionId(const std::string &vbrRegionId) { + vbrRegionId_ = vbrRegionId; + setParameter(std::string("VbrRegionId"), vbrRegionId); } -void UnbindVbrRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnbindVbrRequest::getRegionId() const { + return regionId_; } -std::string UnbindVbrRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnbindVbrRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnbindVbrRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnbindVbrRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnbindVbrRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnbindVbrRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnbindVbrRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnbindVbrRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnbindVbrRequest::getOwnerId()const -{ - return ownerId_; +void UnbindVbrRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnbindVbrRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnbindVbrRequest::getOwnerId() const { + return ownerId_; } -long UnbindVbrRequest::getSmartAGUid()const -{ - return smartAGUid_; +void UnbindVbrRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnbindVbrRequest::setSmartAGUid(long smartAGUid) -{ - smartAGUid_ = smartAGUid; - setParameter("SmartAGUid", std::to_string(smartAGUid)); +long UnbindVbrRequest::getSmartAGUid() const { + return smartAGUid_; } -std::string UnbindVbrRequest::getSmartAGId()const -{ - return smartAGId_; +void UnbindVbrRequest::setSmartAGUid(long smartAGUid) { + smartAGUid_ = smartAGUid; + setParameter(std::string("SmartAGUid"), std::to_string(smartAGUid)); } -void UnbindVbrRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string UnbindVbrRequest::getSmartAGId() const { + return smartAGId_; +} + +void UnbindVbrRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/UnicomOrderConfirmRequest.cc b/smartag/src/model/UnicomOrderConfirmRequest.cc deleted file mode 100644 index 13885f5cf..000000000 --- a/smartag/src/model/UnicomOrderConfirmRequest.cc +++ /dev/null @@ -1,163 +0,0 @@ -/* - * 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::Smartag::Model::UnicomOrderConfirmRequest; - -UnicomOrderConfirmRequest::UnicomOrderConfirmRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnicomOrderConfirm") -{ - setMethod(HttpRequest::Method::Post); -} - -UnicomOrderConfirmRequest::~UnicomOrderConfirmRequest() -{} - -long UnicomOrderConfirmRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void UnicomOrderConfirmRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string UnicomOrderConfirmRequest::getTmsCode()const -{ - return tmsCode_; -} - -void UnicomOrderConfirmRequest::setTmsCode(const std::string& tmsCode) -{ - tmsCode_ = tmsCode; - setParameter("TmsCode", tmsCode); -} - -std::vector UnicomOrderConfirmRequest::getOrderItem()const -{ - return orderItem_; -} - -void UnicomOrderConfirmRequest::setOrderItem(const std::vector& orderItem) -{ - orderItem_ = orderItem; - for(int dep1 = 0; dep1!= orderItem.size(); dep1++) { - auto orderItemObj = orderItem.at(dep1); - std::string orderItemObjStr = "OrderItem." + std::to_string(dep1 + 1); - setParameter(orderItemObjStr + ".ScItemName", orderItemObj.scItemName); - setParameter(orderItemObjStr + ".ItemAmount", orderItemObj.itemAmount); - for(int dep2 = 0; dep2!= orderItemObj.snList.size(); dep2++) { - setParameter(orderItemObjStr + ".SnList."+ std::to_string(dep2), orderItemObj.snList.at(dep2)); - } - setParameter(orderItemObjStr + ".OrderItemId", orderItemObj.orderItemId); - setParameter(orderItemObjStr + ".ScItemCode", orderItemObj.scItemCode); - setParameter(orderItemObjStr + ".ItemQuantity", std::to_string(orderItemObj.itemQuantity)); - setParameter(orderItemObjStr + ".TradeId", orderItemObj.tradeId); - setParameter(orderItemObjStr + ".TradeItemId", orderItemObj.tradeItemId); - } -} - -std::string UnicomOrderConfirmRequest::getRegionId()const -{ - return regionId_; -} - -void UnicomOrderConfirmRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -long UnicomOrderConfirmRequest::getOrderPostFee()const -{ - return orderPostFee_; -} - -void UnicomOrderConfirmRequest::setOrderPostFee(long orderPostFee) -{ - orderPostFee_ = orderPostFee; - setParameter("OrderPostFee", std::to_string(orderPostFee)); -} - -std::string UnicomOrderConfirmRequest::getTradeId()const -{ - return tradeId_; -} - -void UnicomOrderConfirmRequest::setTradeId(const std::string& tradeId) -{ - tradeId_ = tradeId; - setParameter("TradeId", tradeId); -} - -std::string UnicomOrderConfirmRequest::getOwnerUserId()const -{ - return ownerUserId_; -} - -void UnicomOrderConfirmRequest::setOwnerUserId(const std::string& ownerUserId) -{ - ownerUserId_ = ownerUserId; - setParameter("OwnerUserId", ownerUserId); -} - -std::string UnicomOrderConfirmRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void UnicomOrderConfirmRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string UnicomOrderConfirmRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void UnicomOrderConfirmRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long UnicomOrderConfirmRequest::getOwnerId()const -{ - return ownerId_; -} - -void UnicomOrderConfirmRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string UnicomOrderConfirmRequest::getTmsOrderCode()const -{ - return tmsOrderCode_; -} - -void UnicomOrderConfirmRequest::setTmsOrderCode(const std::string& tmsOrderCode) -{ - tmsOrderCode_ = tmsOrderCode; - setParameter("TmsOrderCode", tmsOrderCode); -} - diff --git a/smartag/src/model/UnicomOrderConfirmResult.cc b/smartag/src/model/UnicomOrderConfirmResult.cc deleted file mode 100644 index cb1b22f91..000000000 --- a/smartag/src/model/UnicomOrderConfirmResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -UnicomOrderConfirmResult::UnicomOrderConfirmResult() : - ServiceResult() -{} - -UnicomOrderConfirmResult::UnicomOrderConfirmResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnicomOrderConfirmResult::~UnicomOrderConfirmResult() -{} - -void UnicomOrderConfirmResult::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 UnicomOrderConfirmResult::getMessage()const -{ - return message_; -} - -std::string UnicomOrderConfirmResult::getCode()const -{ - return code_; -} - -bool UnicomOrderConfirmResult::getSuccess()const -{ - return success_; -} - diff --git a/smartag/src/model/UnicomSignConfirmRequest.cc b/smartag/src/model/UnicomSignConfirmRequest.cc deleted file mode 100644 index 2dfbbe72f..000000000 --- a/smartag/src/model/UnicomSignConfirmRequest.cc +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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::Smartag::Model::UnicomSignConfirmRequest; - -UnicomSignConfirmRequest::UnicomSignConfirmRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnicomSignConfirm") -{ - setMethod(HttpRequest::Method::Post); -} - -UnicomSignConfirmRequest::~UnicomSignConfirmRequest() -{} - -long UnicomSignConfirmRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void UnicomSignConfirmRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string UnicomSignConfirmRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void UnicomSignConfirmRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string UnicomSignConfirmRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void UnicomSignConfirmRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -std::vector UnicomSignConfirmRequest::getTmsOrder()const -{ - return tmsOrder_; -} - -void UnicomSignConfirmRequest::setTmsOrder(const std::vector& tmsOrder) -{ - tmsOrder_ = tmsOrder; - for(int dep1 = 0; dep1!= tmsOrder.size(); dep1++) { - auto tmsOrderObj = tmsOrder.at(dep1); - std::string tmsOrderObjStr = "TmsOrder." + std::to_string(dep1 + 1); - setParameter(tmsOrderObjStr + ".TmsCode", tmsOrderObj.tmsCode); - setParameter(tmsOrderObjStr + ".SigningTime", tmsOrderObj.signingTime); - setParameter(tmsOrderObjStr + ".TmsOrderCode", tmsOrderObj.tmsOrderCode); - setParameter(tmsOrderObjStr + ".TradeId", tmsOrderObj.tradeId); - } -} - -long UnicomSignConfirmRequest::getOwnerId()const -{ - return ownerId_; -} - -void UnicomSignConfirmRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/smartag/src/model/UnicomSignConfirmResult.cc b/smartag/src/model/UnicomSignConfirmResult.cc deleted file mode 100644 index 7ba9771d4..000000000 --- a/smartag/src/model/UnicomSignConfirmResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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::Smartag; -using namespace AlibabaCloud::Smartag::Model; - -UnicomSignConfirmResult::UnicomSignConfirmResult() : - ServiceResult() -{} - -UnicomSignConfirmResult::UnicomSignConfirmResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnicomSignConfirmResult::~UnicomSignConfirmResult() -{} - -void UnicomSignConfirmResult::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 UnicomSignConfirmResult::getMessage()const -{ - return message_; -} - -std::string UnicomSignConfirmResult::getCode()const -{ - return code_; -} - -bool UnicomSignConfirmResult::getSuccess()const -{ - return success_; -} - diff --git a/smartag/src/model/UnlockSmartAccessGatewayRequest.cc b/smartag/src/model/UnlockSmartAccessGatewayRequest.cc index f00922713..f926ab1ab 100644 --- a/smartag/src/model/UnlockSmartAccessGatewayRequest.cc +++ b/smartag/src/model/UnlockSmartAccessGatewayRequest.cc @@ -1,95 +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::Smartag::Model::UnlockSmartAccessGatewayRequest; - -UnlockSmartAccessGatewayRequest::UnlockSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UnlockSmartAccessGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -UnlockSmartAccessGatewayRequest::~UnlockSmartAccessGatewayRequest() -{} - -long UnlockSmartAccessGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::UnlockSmartAccessGatewayRequest; + +UnlockSmartAccessGatewayRequest::UnlockSmartAccessGatewayRequest() + : RpcServiceRequest("smartag", "2018-03-13", "UnlockSmartAccessGateway") { + setMethod(HttpRequest::Method::Post); } -void UnlockSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnlockSmartAccessGatewayRequest::~UnlockSmartAccessGatewayRequest() {} + +long UnlockSmartAccessGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnlockSmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; +void UnlockSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnlockSmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnlockSmartAccessGatewayRequest::getRegionId() const { + return regionId_; } -std::string UnlockSmartAccessGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnlockSmartAccessGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnlockSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnlockSmartAccessGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnlockSmartAccessGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnlockSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnlockSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnlockSmartAccessGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnlockSmartAccessGatewayRequest::getOwnerId()const -{ - return ownerId_; +void UnlockSmartAccessGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnlockSmartAccessGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnlockSmartAccessGatewayRequest::getOwnerId() const { + return ownerId_; } -std::string UnlockSmartAccessGatewayRequest::getSmartAGId()const -{ - return smartAGId_; +void UnlockSmartAccessGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnlockSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string UnlockSmartAccessGatewayRequest::getSmartAGId() const { + return smartAGId_; +} + +void UnlockSmartAccessGatewayRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/UpdateEnterpriseCodeRequest.cc b/smartag/src/model/UpdateEnterpriseCodeRequest.cc index 3cfd562c0..023dca501 100644 --- a/smartag/src/model/UpdateEnterpriseCodeRequest.cc +++ b/smartag/src/model/UpdateEnterpriseCodeRequest.cc @@ -1,84 +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::Smartag::Model::UpdateEnterpriseCodeRequest; - -UpdateEnterpriseCodeRequest::UpdateEnterpriseCodeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UpdateEnterpriseCode") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateEnterpriseCodeRequest::~UpdateEnterpriseCodeRequest() -{} - -std::string UpdateEnterpriseCodeRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Smartag::Model::UpdateEnterpriseCodeRequest; + +UpdateEnterpriseCodeRequest::UpdateEnterpriseCodeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "UpdateEnterpriseCode") { + setMethod(HttpRequest::Method::Post); } -void UpdateEnterpriseCodeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +UpdateEnterpriseCodeRequest::~UpdateEnterpriseCodeRequest() {} + +std::string UpdateEnterpriseCodeRequest::getClientToken() const { + return clientToken_; } -std::string UpdateEnterpriseCodeRequest::getRegionId()const -{ - return regionId_; +void UpdateEnterpriseCodeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateEnterpriseCodeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateEnterpriseCodeRequest::getRegionId() const { + return regionId_; } -std::string UpdateEnterpriseCodeRequest::getEnterpriseCode()const -{ - return enterpriseCode_; +void UpdateEnterpriseCodeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateEnterpriseCodeRequest::setEnterpriseCode(const std::string& enterpriseCode) -{ - enterpriseCode_ = enterpriseCode; - setParameter("EnterpriseCode", enterpriseCode); +std::string UpdateEnterpriseCodeRequest::getEnterpriseCode() const { + return enterpriseCode_; } -bool UpdateEnterpriseCodeRequest::getIsDefault()const -{ - return isDefault_; +void UpdateEnterpriseCodeRequest::setEnterpriseCode(const std::string &enterpriseCode) { + enterpriseCode_ = enterpriseCode; + setParameter(std::string("EnterpriseCode"), enterpriseCode); } -void UpdateEnterpriseCodeRequest::setIsDefault(bool isDefault) -{ - isDefault_ = isDefault; - setParameter("IsDefault", isDefault ? "true" : "false"); +bool UpdateEnterpriseCodeRequest::getIsDefault() const { + return isDefault_; } -bool UpdateEnterpriseCodeRequest::getDryRun()const -{ - return dryRun_; +void UpdateEnterpriseCodeRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); } -void UpdateEnterpriseCodeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool UpdateEnterpriseCodeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateEnterpriseCodeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } diff --git a/smartag/src/model/UpdateSmartAGAccessPointRequest.cc b/smartag/src/model/UpdateSmartAGAccessPointRequest.cc index f88106f32..ead314c45 100644 --- a/smartag/src/model/UpdateSmartAGAccessPointRequest.cc +++ b/smartag/src/model/UpdateSmartAGAccessPointRequest.cc @@ -1,106 +1,90 @@ /* * 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::Smartag::Model::UpdateSmartAGAccessPointRequest; - -UpdateSmartAGAccessPointRequest::UpdateSmartAGAccessPointRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAGAccessPoint") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateSmartAGAccessPointRequest::~UpdateSmartAGAccessPointRequest() -{} - -int UpdateSmartAGAccessPointRequest::getAccessPointId()const -{ - return accessPointId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::UpdateSmartAGAccessPointRequest; + +UpdateSmartAGAccessPointRequest::UpdateSmartAGAccessPointRequest() + : RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAGAccessPoint") { + setMethod(HttpRequest::Method::Post); } -void UpdateSmartAGAccessPointRequest::setAccessPointId(int accessPointId) -{ - accessPointId_ = accessPointId; - setParameter("AccessPointId", std::to_string(accessPointId)); +UpdateSmartAGAccessPointRequest::~UpdateSmartAGAccessPointRequest() {} + +int UpdateSmartAGAccessPointRequest::getAccessPointId() const { + return accessPointId_; } -long UpdateSmartAGAccessPointRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void UpdateSmartAGAccessPointRequest::setAccessPointId(int accessPointId) { + accessPointId_ = accessPointId; + setParameter(std::string("AccessPointId"), std::to_string(accessPointId)); } -void UpdateSmartAGAccessPointRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long UpdateSmartAGAccessPointRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateSmartAGAccessPointRequest::getRegionId()const -{ - return regionId_; +void UpdateSmartAGAccessPointRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateSmartAGAccessPointRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateSmartAGAccessPointRequest::getRegionId() const { + return regionId_; } -std::string UpdateSmartAGAccessPointRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateSmartAGAccessPointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateSmartAGAccessPointRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateSmartAGAccessPointRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateSmartAGAccessPointRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateSmartAGAccessPointRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateSmartAGAccessPointRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateSmartAGAccessPointRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateSmartAGAccessPointRequest::getOwnerId()const -{ - return ownerId_; +void UpdateSmartAGAccessPointRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateSmartAGAccessPointRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateSmartAGAccessPointRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateSmartAGAccessPointRequest::getSmartAGId()const -{ - return smartAGId_; +void UpdateSmartAGAccessPointRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateSmartAGAccessPointRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string UpdateSmartAGAccessPointRequest::getSmartAGId() const { + return smartAGId_; +} + +void UpdateSmartAGAccessPointRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/UpdateSmartAGDpiAttributeRequest.cc b/smartag/src/model/UpdateSmartAGDpiAttributeRequest.cc index 69d22b1a4..1cec3a37c 100644 --- a/smartag/src/model/UpdateSmartAGDpiAttributeRequest.cc +++ b/smartag/src/model/UpdateSmartAGDpiAttributeRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::UpdateSmartAGDpiAttributeRequest; - -UpdateSmartAGDpiAttributeRequest::UpdateSmartAGDpiAttributeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAGDpiAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateSmartAGDpiAttributeRequest::~UpdateSmartAGDpiAttributeRequest() -{} - -long UpdateSmartAGDpiAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::UpdateSmartAGDpiAttributeRequest; + +UpdateSmartAGDpiAttributeRequest::UpdateSmartAGDpiAttributeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAGDpiAttribute") { + setMethod(HttpRequest::Method::Post); } -void UpdateSmartAGDpiAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateSmartAGDpiAttributeRequest::~UpdateSmartAGDpiAttributeRequest() {} + +long UpdateSmartAGDpiAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateSmartAGDpiAttributeRequest::getClientToken()const -{ - return clientToken_; +void UpdateSmartAGDpiAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateSmartAGDpiAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UpdateSmartAGDpiAttributeRequest::getClientToken() const { + return clientToken_; } -bool UpdateSmartAGDpiAttributeRequest::getDpiEnabled()const -{ - return dpiEnabled_; +void UpdateSmartAGDpiAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateSmartAGDpiAttributeRequest::setDpiEnabled(bool dpiEnabled) -{ - dpiEnabled_ = dpiEnabled; - setParameter("DpiEnabled", dpiEnabled ? "true" : "false"); +bool UpdateSmartAGDpiAttributeRequest::getDpiEnabled() const { + return dpiEnabled_; } -std::string UpdateSmartAGDpiAttributeRequest::getRegionId()const -{ - return regionId_; +void UpdateSmartAGDpiAttributeRequest::setDpiEnabled(bool dpiEnabled) { + dpiEnabled_ = dpiEnabled; + setParameter(std::string("DpiEnabled"), dpiEnabled ? "true" : "false"); } -void UpdateSmartAGDpiAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateSmartAGDpiAttributeRequest::getRegionId() const { + return regionId_; } -bool UpdateSmartAGDpiAttributeRequest::getDryRun()const -{ - return dryRun_; +void UpdateSmartAGDpiAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateSmartAGDpiAttributeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool UpdateSmartAGDpiAttributeRequest::getDryRun() const { + return dryRun_; } -std::string UpdateSmartAGDpiAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateSmartAGDpiAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void UpdateSmartAGDpiAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateSmartAGDpiAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateSmartAGDpiAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateSmartAGDpiAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateSmartAGDpiAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateSmartAGDpiAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateSmartAGDpiAttributeRequest::getOwnerId()const -{ - return ownerId_; +void UpdateSmartAGDpiAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateSmartAGDpiAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateSmartAGDpiAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateSmartAGDpiAttributeRequest::getSmartAGId()const -{ - return smartAGId_; +void UpdateSmartAGDpiAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateSmartAGDpiAttributeRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string UpdateSmartAGDpiAttributeRequest::getSmartAGId() const { + return smartAGId_; +} + +void UpdateSmartAGDpiAttributeRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/UpdateSmartAGEnterpriseCodeRequest.cc b/smartag/src/model/UpdateSmartAGEnterpriseCodeRequest.cc index 7d307ba6c..c30b1b87c 100644 --- a/smartag/src/model/UpdateSmartAGEnterpriseCodeRequest.cc +++ b/smartag/src/model/UpdateSmartAGEnterpriseCodeRequest.cc @@ -1,84 +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::Smartag::Model::UpdateSmartAGEnterpriseCodeRequest; - -UpdateSmartAGEnterpriseCodeRequest::UpdateSmartAGEnterpriseCodeRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAGEnterpriseCode") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateSmartAGEnterpriseCodeRequest::~UpdateSmartAGEnterpriseCodeRequest() -{} - -std::string UpdateSmartAGEnterpriseCodeRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Smartag::Model::UpdateSmartAGEnterpriseCodeRequest; + +UpdateSmartAGEnterpriseCodeRequest::UpdateSmartAGEnterpriseCodeRequest() + : RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAGEnterpriseCode") { + setMethod(HttpRequest::Method::Post); } -void UpdateSmartAGEnterpriseCodeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +UpdateSmartAGEnterpriseCodeRequest::~UpdateSmartAGEnterpriseCodeRequest() {} + +std::string UpdateSmartAGEnterpriseCodeRequest::getClientToken() const { + return clientToken_; } -std::string UpdateSmartAGEnterpriseCodeRequest::getRegionId()const -{ - return regionId_; +void UpdateSmartAGEnterpriseCodeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UpdateSmartAGEnterpriseCodeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateSmartAGEnterpriseCodeRequest::getRegionId() const { + return regionId_; } -std::string UpdateSmartAGEnterpriseCodeRequest::getEnterpriseCode()const -{ - return enterpriseCode_; +void UpdateSmartAGEnterpriseCodeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateSmartAGEnterpriseCodeRequest::setEnterpriseCode(const std::string& enterpriseCode) -{ - enterpriseCode_ = enterpriseCode; - setParameter("EnterpriseCode", enterpriseCode); +std::string UpdateSmartAGEnterpriseCodeRequest::getEnterpriseCode() const { + return enterpriseCode_; } -bool UpdateSmartAGEnterpriseCodeRequest::getDryRun()const -{ - return dryRun_; +void UpdateSmartAGEnterpriseCodeRequest::setEnterpriseCode(const std::string &enterpriseCode) { + enterpriseCode_ = enterpriseCode; + setParameter(std::string("EnterpriseCode"), enterpriseCode); } -void UpdateSmartAGEnterpriseCodeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool UpdateSmartAGEnterpriseCodeRequest::getDryRun() const { + return dryRun_; } -std::string UpdateSmartAGEnterpriseCodeRequest::getSmartAGId()const -{ - return smartAGId_; +void UpdateSmartAGEnterpriseCodeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void UpdateSmartAGEnterpriseCodeRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string UpdateSmartAGEnterpriseCodeRequest::getSmartAGId() const { + return smartAGId_; +} + +void UpdateSmartAGEnterpriseCodeRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc b/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc index c447c1130..13a7695ac 100644 --- a/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc +++ b/smartag/src/model/UpdateSmartAccessGatewayVersionRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::UpdateSmartAccessGatewayVersionRequest; - -UpdateSmartAccessGatewayVersionRequest::UpdateSmartAccessGatewayVersionRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAccessGatewayVersion") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateSmartAccessGatewayVersionRequest::~UpdateSmartAccessGatewayVersionRequest() -{} - -long UpdateSmartAccessGatewayVersionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::UpdateSmartAccessGatewayVersionRequest; + +UpdateSmartAccessGatewayVersionRequest::UpdateSmartAccessGatewayVersionRequest() + : RpcServiceRequest("smartag", "2018-03-13", "UpdateSmartAccessGatewayVersion") { + setMethod(HttpRequest::Method::Post); } -void UpdateSmartAccessGatewayVersionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateSmartAccessGatewayVersionRequest::~UpdateSmartAccessGatewayVersionRequest() {} + +long UpdateSmartAccessGatewayVersionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateSmartAccessGatewayVersionRequest::getRegionId()const -{ - return regionId_; +void UpdateSmartAccessGatewayVersionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateSmartAccessGatewayVersionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpdateSmartAccessGatewayVersionRequest::getRegionId() const { + return regionId_; } -std::string UpdateSmartAccessGatewayVersionRequest::getVersionCode()const -{ - return versionCode_; +void UpdateSmartAccessGatewayVersionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpdateSmartAccessGatewayVersionRequest::setVersionCode(const std::string& versionCode) -{ - versionCode_ = versionCode; - setParameter("VersionCode", versionCode); +std::string UpdateSmartAccessGatewayVersionRequest::getVersionCode() const { + return versionCode_; } -std::string UpdateSmartAccessGatewayVersionRequest::getSerialNumber()const -{ - return serialNumber_; +void UpdateSmartAccessGatewayVersionRequest::setVersionCode(const std::string &versionCode) { + versionCode_ = versionCode; + setParameter(std::string("VersionCode"), versionCode); } -void UpdateSmartAccessGatewayVersionRequest::setSerialNumber(const std::string& serialNumber) -{ - serialNumber_ = serialNumber; - setParameter("SerialNumber", serialNumber); +std::string UpdateSmartAccessGatewayVersionRequest::getSerialNumber() const { + return serialNumber_; } -std::string UpdateSmartAccessGatewayVersionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateSmartAccessGatewayVersionRequest::setSerialNumber(const std::string &serialNumber) { + serialNumber_ = serialNumber; + setParameter(std::string("SerialNumber"), serialNumber); } -void UpdateSmartAccessGatewayVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateSmartAccessGatewayVersionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateSmartAccessGatewayVersionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateSmartAccessGatewayVersionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateSmartAccessGatewayVersionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateSmartAccessGatewayVersionRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateSmartAccessGatewayVersionRequest::getOwnerId()const -{ - return ownerId_; +void UpdateSmartAccessGatewayVersionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateSmartAccessGatewayVersionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateSmartAccessGatewayVersionRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateSmartAccessGatewayVersionRequest::getVersionType()const -{ - return versionType_; +void UpdateSmartAccessGatewayVersionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateSmartAccessGatewayVersionRequest::setVersionType(const std::string& versionType) -{ - versionType_ = versionType; - setParameter("VersionType", versionType); +std::string UpdateSmartAccessGatewayVersionRequest::getVersionType() const { + return versionType_; } -std::string UpdateSmartAccessGatewayVersionRequest::getSmartAGId()const -{ - return smartAGId_; +void UpdateSmartAccessGatewayVersionRequest::setVersionType(const std::string &versionType) { + versionType_ = versionType; + setParameter(std::string("VersionType"), versionType); } -void UpdateSmartAccessGatewayVersionRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string UpdateSmartAccessGatewayVersionRequest::getSmartAGId() const { + return smartAGId_; +} + +void UpdateSmartAccessGatewayVersionRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } diff --git a/smartag/src/model/UpgradeSmartAccessGatewayRequest.cc b/smartag/src/model/UpgradeSmartAccessGatewayRequest.cc index a8441da17..156fe459a 100644 --- a/smartag/src/model/UpgradeSmartAccessGatewayRequest.cc +++ b/smartag/src/model/UpgradeSmartAccessGatewayRequest.cc @@ -1,139 +1,117 @@ /* * 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::Smartag::Model::UpgradeSmartAccessGatewayRequest; - -UpgradeSmartAccessGatewayRequest::UpgradeSmartAccessGatewayRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UpgradeSmartAccessGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -UpgradeSmartAccessGatewayRequest::~UpgradeSmartAccessGatewayRequest() -{} - -long UpgradeSmartAccessGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::UpgradeSmartAccessGatewayRequest; + +UpgradeSmartAccessGatewayRequest::UpgradeSmartAccessGatewayRequest() + : RpcServiceRequest("smartag", "2018-03-13", "UpgradeSmartAccessGateway") { + setMethod(HttpRequest::Method::Post); } -void UpgradeSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpgradeSmartAccessGatewayRequest::~UpgradeSmartAccessGatewayRequest() {} + +long UpgradeSmartAccessGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long UpgradeSmartAccessGatewayRequest::getBandWidthSpec()const -{ - return bandWidthSpec_; +void UpgradeSmartAccessGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpgradeSmartAccessGatewayRequest::setBandWidthSpec(long bandWidthSpec) -{ - bandWidthSpec_ = bandWidthSpec; - setParameter("BandWidthSpec", std::to_string(bandWidthSpec)); +long UpgradeSmartAccessGatewayRequest::getBandWidthSpec() const { + return bandWidthSpec_; } -std::string UpgradeSmartAccessGatewayRequest::getRegionId()const -{ - return regionId_; +void UpgradeSmartAccessGatewayRequest::setBandWidthSpec(long bandWidthSpec) { + bandWidthSpec_ = bandWidthSpec; + setParameter(std::string("BandWidthSpec"), std::to_string(bandWidthSpec)); } -void UpgradeSmartAccessGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpgradeSmartAccessGatewayRequest::getRegionId() const { + return regionId_; } -int UpgradeSmartAccessGatewayRequest::getUserCount()const -{ - return userCount_; +void UpgradeSmartAccessGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpgradeSmartAccessGatewayRequest::setUserCount(int userCount) -{ - userCount_ = userCount; - setParameter("UserCount", std::to_string(userCount)); +int UpgradeSmartAccessGatewayRequest::getUserCount() const { + return userCount_; } -bool UpgradeSmartAccessGatewayRequest::getAutoPay()const -{ - return autoPay_; +void UpgradeSmartAccessGatewayRequest::setUserCount(int userCount) { + userCount_ = userCount; + setParameter(std::string("UserCount"), std::to_string(userCount)); } -void UpgradeSmartAccessGatewayRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool UpgradeSmartAccessGatewayRequest::getAutoPay() const { + return autoPay_; } -std::string UpgradeSmartAccessGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpgradeSmartAccessGatewayRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void UpgradeSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpgradeSmartAccessGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpgradeSmartAccessGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpgradeSmartAccessGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpgradeSmartAccessGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpgradeSmartAccessGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpgradeSmartAccessGatewayRequest::getOwnerId()const -{ - return ownerId_; +void UpgradeSmartAccessGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpgradeSmartAccessGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpgradeSmartAccessGatewayRequest::getOwnerId() const { + return ownerId_; } -std::string UpgradeSmartAccessGatewayRequest::getSmartAGId()const -{ - return smartAGId_; +void UpgradeSmartAccessGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpgradeSmartAccessGatewayRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string UpgradeSmartAccessGatewayRequest::getSmartAGId() const { + return smartAGId_; } -long UpgradeSmartAccessGatewayRequest::getDataPlan()const -{ - return dataPlan_; +void UpgradeSmartAccessGatewayRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void UpgradeSmartAccessGatewayRequest::setDataPlan(long dataPlan) -{ - dataPlan_ = dataPlan; - setParameter("DataPlan", std::to_string(dataPlan)); +long UpgradeSmartAccessGatewayRequest::getDataPlan() const { + return dataPlan_; +} + +void UpgradeSmartAccessGatewayRequest::setDataPlan(long dataPlan) { + dataPlan_ = dataPlan; + setParameter(std::string("DataPlan"), std::to_string(dataPlan)); } diff --git a/smartag/src/model/UpgradeSmartAccessGatewaySoftwareRequest.cc b/smartag/src/model/UpgradeSmartAccessGatewaySoftwareRequest.cc index 530154bb4..98b560678 100644 --- a/smartag/src/model/UpgradeSmartAccessGatewaySoftwareRequest.cc +++ b/smartag/src/model/UpgradeSmartAccessGatewaySoftwareRequest.cc @@ -1,128 +1,108 @@ /* * 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::Smartag::Model::UpgradeSmartAccessGatewaySoftwareRequest; - -UpgradeSmartAccessGatewaySoftwareRequest::UpgradeSmartAccessGatewaySoftwareRequest() : - RpcServiceRequest("smartag", "2018-03-13", "UpgradeSmartAccessGatewaySoftware") -{ - setMethod(HttpRequest::Method::Post); -} - -UpgradeSmartAccessGatewaySoftwareRequest::~UpgradeSmartAccessGatewaySoftwareRequest() -{} - -long UpgradeSmartAccessGatewaySoftwareRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Smartag::Model::UpgradeSmartAccessGatewaySoftwareRequest; + +UpgradeSmartAccessGatewaySoftwareRequest::UpgradeSmartAccessGatewaySoftwareRequest() + : RpcServiceRequest("smartag", "2018-03-13", "UpgradeSmartAccessGatewaySoftware") { + setMethod(HttpRequest::Method::Post); } -void UpgradeSmartAccessGatewaySoftwareRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpgradeSmartAccessGatewaySoftwareRequest::~UpgradeSmartAccessGatewaySoftwareRequest() {} + +long UpgradeSmartAccessGatewaySoftwareRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpgradeSmartAccessGatewaySoftwareRequest::getRegionId()const -{ - return regionId_; +void UpgradeSmartAccessGatewaySoftwareRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpgradeSmartAccessGatewaySoftwareRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UpgradeSmartAccessGatewaySoftwareRequest::getRegionId() const { + return regionId_; } -int UpgradeSmartAccessGatewaySoftwareRequest::getUserCount()const -{ - return userCount_; +void UpgradeSmartAccessGatewaySoftwareRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UpgradeSmartAccessGatewaySoftwareRequest::setUserCount(int userCount) -{ - userCount_ = userCount; - setParameter("UserCount", std::to_string(userCount)); +int UpgradeSmartAccessGatewaySoftwareRequest::getUserCount() const { + return userCount_; } -bool UpgradeSmartAccessGatewaySoftwareRequest::getAutoPay()const -{ - return autoPay_; +void UpgradeSmartAccessGatewaySoftwareRequest::setUserCount(int userCount) { + userCount_ = userCount; + setParameter(std::string("UserCount"), std::to_string(userCount)); } -void UpgradeSmartAccessGatewaySoftwareRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool UpgradeSmartAccessGatewaySoftwareRequest::getAutoPay() const { + return autoPay_; } -std::string UpgradeSmartAccessGatewaySoftwareRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpgradeSmartAccessGatewaySoftwareRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void UpgradeSmartAccessGatewaySoftwareRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpgradeSmartAccessGatewaySoftwareRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpgradeSmartAccessGatewaySoftwareRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpgradeSmartAccessGatewaySoftwareRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpgradeSmartAccessGatewaySoftwareRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpgradeSmartAccessGatewaySoftwareRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpgradeSmartAccessGatewaySoftwareRequest::getOwnerId()const -{ - return ownerId_; +void UpgradeSmartAccessGatewaySoftwareRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpgradeSmartAccessGatewaySoftwareRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpgradeSmartAccessGatewaySoftwareRequest::getOwnerId() const { + return ownerId_; } -std::string UpgradeSmartAccessGatewaySoftwareRequest::getSmartAGId()const -{ - return smartAGId_; +void UpgradeSmartAccessGatewaySoftwareRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpgradeSmartAccessGatewaySoftwareRequest::setSmartAGId(const std::string& smartAGId) -{ - smartAGId_ = smartAGId; - setParameter("SmartAGId", smartAGId); +std::string UpgradeSmartAccessGatewaySoftwareRequest::getSmartAGId() const { + return smartAGId_; } -long UpgradeSmartAccessGatewaySoftwareRequest::getDataPlan()const -{ - return dataPlan_; +void UpgradeSmartAccessGatewaySoftwareRequest::setSmartAGId(const std::string &smartAGId) { + smartAGId_ = smartAGId; + setParameter(std::string("SmartAGId"), smartAGId); } -void UpgradeSmartAccessGatewaySoftwareRequest::setDataPlan(long dataPlan) -{ - dataPlan_ = dataPlan; - setParameter("DataPlan", std::to_string(dataPlan)); +long UpgradeSmartAccessGatewaySoftwareRequest::getDataPlan() const { + return dataPlan_; +} + +void UpgradeSmartAccessGatewaySoftwareRequest::setDataPlan(long dataPlan) { + dataPlan_ = dataPlan; + setParameter(std::string("DataPlan"), std::to_string(dataPlan)); }