diff --git a/CHANGELOG b/CHANGELOG index dba2e7352..403268f87 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-03-14 Version: 1.34.16 +1, Update Dependency + 2019-03-13 Version: 1.34.15 1, Update Dependency diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c9b1ea37..f6fed4899 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,4 +92,5 @@ add_subdirectory(lubancloud) add_subdirectory(alimt) add_subdirectory(xspace) -add_subdirectory(jarvis-public) \ No newline at end of file +add_subdirectory(jarvis-public) +add_subdirectory(cbn) \ No newline at end of file diff --git a/VERSION b/VERSION index 4b21d704b..452d5995c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.34.15 \ No newline at end of file +1.34.16 \ No newline at end of file diff --git a/cbn/CMakeLists.txt b/cbn/CMakeLists.txt new file mode 100644 index 000000000..3ebb6d540 --- /dev/null +++ b/cbn/CMakeLists.txt @@ -0,0 +1,230 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(cbn_public_header + include/alibabacloud/cbn/CbnClient.h + include/alibabacloud/cbn/CbnExport.h ) + +set(cbn_public_header_model + include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenRequest.h + include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenResult.h + include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h + include/alibabacloud/cbn/model/CreateCenBandwidthPackageResult.h + include/alibabacloud/cbn/model/WithdrawPublishedRouteEntriesRequest.h + include/alibabacloud/cbn/model/WithdrawPublishedRouteEntriesResult.h + include/alibabacloud/cbn/model/DescribePublishedRouteEntriesRequest.h + include/alibabacloud/cbn/model/DescribePublishedRouteEntriesResult.h + include/alibabacloud/cbn/model/DescribeGrantRulesToCenRequest.h + include/alibabacloud/cbn/model/DescribeGrantRulesToCenResult.h + include/alibabacloud/cbn/model/DescribeCenPrivateZoneRoutesRequest.h + include/alibabacloud/cbn/model/DescribeCenPrivateZoneRoutesResult.h + include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeRequest.h + include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeResult.h + include/alibabacloud/cbn/model/UntagResourcesRequest.h + include/alibabacloud/cbn/model/UntagResourcesResult.h + include/alibabacloud/cbn/model/DisableCenVbrHealthCheckRequest.h + include/alibabacloud/cbn/model/DisableCenVbrHealthCheckResult.h + include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcRequest.h + include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcResult.h + include/alibabacloud/cbn/model/CreateCenRequest.h + include/alibabacloud/cbn/model/CreateCenResult.h + include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckRequest.h + include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckResult.h + include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcRequest.h + include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcResult.h + include/alibabacloud/cbn/model/DescribeCenGeographicSpansRequest.h + include/alibabacloud/cbn/model/DescribeCenGeographicSpansResult.h + include/alibabacloud/cbn/model/DescribeCensRequest.h + include/alibabacloud/cbn/model/DescribeCensResult.h + include/alibabacloud/cbn/model/EnableCenVbrHealthCheckRequest.h + include/alibabacloud/cbn/model/EnableCenVbrHealthCheckResult.h + include/alibabacloud/cbn/model/DeleteCenRequest.h + include/alibabacloud/cbn/model/DeleteCenResult.h + include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsRequest.h + include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsResult.h + include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageRequest.h + include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageResult.h + include/alibabacloud/cbn/model/DescribeChildInstanceRegionsRequest.h + include/alibabacloud/cbn/model/DescribeChildInstanceRegionsResult.h + include/alibabacloud/cbn/model/DetachCenChildInstanceRequest.h + include/alibabacloud/cbn/model/DetachCenChildInstanceResult.h + include/alibabacloud/cbn/model/AttachCenChildInstanceRequest.h + include/alibabacloud/cbn/model/AttachCenChildInstanceResult.h + include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitRequest.h + include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitResult.h + include/alibabacloud/cbn/model/DeleteCenBandwidthPackageRequest.h + include/alibabacloud/cbn/model/DeleteCenBandwidthPackageResult.h + include/alibabacloud/cbn/model/ModifyCenAttributeRequest.h + include/alibabacloud/cbn/model/ModifyCenAttributeResult.h + include/alibabacloud/cbn/model/DescribeGeographicRegionMembershipRequest.h + include/alibabacloud/cbn/model/DescribeGeographicRegionMembershipResult.h + include/alibabacloud/cbn/model/DescribeRouteServicesInCenRequest.h + include/alibabacloud/cbn/model/DescribeRouteServicesInCenResult.h + include/alibabacloud/cbn/model/DescribeRouteConflictRequest.h + include/alibabacloud/cbn/model/DescribeRouteConflictResult.h + include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h + include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesResult.h + include/alibabacloud/cbn/model/DeleteRouteServiceInCenRequest.h + include/alibabacloud/cbn/model/DeleteRouteServiceInCenResult.h + include/alibabacloud/cbn/model/DescribeCenAttachedChildInstancesRequest.h + include/alibabacloud/cbn/model/DescribeCenAttachedChildInstancesResult.h + include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeRequest.h + include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeResult.h + include/alibabacloud/cbn/model/ModifyCenBandwidthPackageSpecRequest.h + include/alibabacloud/cbn/model/ModifyCenBandwidthPackageSpecResult.h + include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesRequest.h + include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h + include/alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthRequest.h + include/alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthResult.h + include/alibabacloud/cbn/model/PublishRouteEntriesRequest.h + include/alibabacloud/cbn/model/PublishRouteEntriesResult.h + include/alibabacloud/cbn/model/AssociateCenBandwidthPackageRequest.h + include/alibabacloud/cbn/model/AssociateCenBandwidthPackageResult.h ) + +set(cbn_src + src/CbnClient.cc + src/model/ResolveAndRouteServiceInCenRequest.cc + src/model/ResolveAndRouteServiceInCenResult.cc + src/model/CreateCenBandwidthPackageRequest.cc + src/model/CreateCenBandwidthPackageResult.cc + src/model/WithdrawPublishedRouteEntriesRequest.cc + src/model/WithdrawPublishedRouteEntriesResult.cc + src/model/DescribePublishedRouteEntriesRequest.cc + src/model/DescribePublishedRouteEntriesResult.cc + src/model/DescribeGrantRulesToCenRequest.cc + src/model/DescribeGrantRulesToCenResult.cc + src/model/DescribeCenPrivateZoneRoutesRequest.cc + src/model/DescribeCenPrivateZoneRoutesResult.cc + src/model/ModifyCenBandwidthPackageAttributeRequest.cc + src/model/ModifyCenBandwidthPackageAttributeResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/DisableCenVbrHealthCheckRequest.cc + src/model/DisableCenVbrHealthCheckResult.cc + src/model/UnroutePrivateZoneInCenToVpcRequest.cc + src/model/UnroutePrivateZoneInCenToVpcResult.cc + src/model/CreateCenRequest.cc + src/model/CreateCenResult.cc + src/model/DescribeCenVbrHealthCheckRequest.cc + src/model/DescribeCenVbrHealthCheckResult.cc + src/model/RoutePrivateZoneInCenToVpcRequest.cc + src/model/RoutePrivateZoneInCenToVpcResult.cc + src/model/DescribeCenGeographicSpansRequest.cc + src/model/DescribeCenGeographicSpansResult.cc + src/model/DescribeCensRequest.cc + src/model/DescribeCensResult.cc + src/model/EnableCenVbrHealthCheckRequest.cc + src/model/EnableCenVbrHealthCheckResult.cc + src/model/DeleteCenRequest.cc + src/model/DeleteCenResult.cc + src/model/DescribeCenInterRegionBandwidthLimitsRequest.cc + src/model/DescribeCenInterRegionBandwidthLimitsResult.cc + src/model/UnassociateCenBandwidthPackageRequest.cc + src/model/UnassociateCenBandwidthPackageResult.cc + src/model/DescribeChildInstanceRegionsRequest.cc + src/model/DescribeChildInstanceRegionsResult.cc + src/model/DetachCenChildInstanceRequest.cc + src/model/DetachCenChildInstanceResult.cc + src/model/AttachCenChildInstanceRequest.cc + src/model/AttachCenChildInstanceResult.cc + src/model/SetCenInterRegionBandwidthLimitRequest.cc + src/model/SetCenInterRegionBandwidthLimitResult.cc + src/model/DeleteCenBandwidthPackageRequest.cc + src/model/DeleteCenBandwidthPackageResult.cc + src/model/ModifyCenAttributeRequest.cc + src/model/ModifyCenAttributeResult.cc + src/model/DescribeGeographicRegionMembershipRequest.cc + src/model/DescribeGeographicRegionMembershipResult.cc + src/model/DescribeRouteServicesInCenRequest.cc + src/model/DescribeRouteServicesInCenResult.cc + src/model/DescribeRouteConflictRequest.cc + src/model/DescribeRouteConflictResult.cc + src/model/DescribeCenRegionDomainRouteEntriesRequest.cc + src/model/DescribeCenRegionDomainRouteEntriesResult.cc + src/model/DeleteRouteServiceInCenRequest.cc + src/model/DeleteRouteServiceInCenResult.cc + src/model/DescribeCenAttachedChildInstancesRequest.cc + src/model/DescribeCenAttachedChildInstancesResult.cc + src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc + src/model/DescribeCenAttachedChildInstanceAttributeResult.cc + src/model/ModifyCenBandwidthPackageSpecRequest.cc + src/model/ModifyCenBandwidthPackageSpecResult.cc + src/model/DescribeCenBandwidthPackagesRequest.cc + src/model/DescribeCenBandwidthPackagesResult.cc + src/model/DescribeCenGeographicSpanRemainingBandwidthRequest.cc + src/model/DescribeCenGeographicSpanRemainingBandwidthResult.cc + src/model/PublishRouteEntriesRequest.cc + src/model/PublishRouteEntriesResult.cc + src/model/AssociateCenBandwidthPackageRequest.cc + src/model/AssociateCenBandwidthPackageResult.cc ) + +add_library(cbn ${LIB_TYPE} + ${cbn_public_header} + ${cbn_public_header_model} + ${cbn_src}) + +set_target_properties(cbn + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}cbn + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(cbn + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_CBN_LIBRARY) +endif() + +target_include_directories(cbn + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(cbn + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(cbn + jsoncpp) + target_include_directories(cbn + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(cbn + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(cbn + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(cbn + PRIVATE /usr/include/jsoncpp) + target_link_libraries(cbn + jsoncpp) +endif() + +install(FILES ${cbn_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cbn) +install(FILES ${cbn_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cbn/model) +install(TARGETS cbn + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/CbnClient.h b/cbn/include/alibabacloud/cbn/CbnClient.h new file mode 100644 index 000000000..b496048f7 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/CbnClient.h @@ -0,0 +1,342 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_CBNCLIENT_H_ +#define ALIBABACLOUD_CBN_CBNCLIENT_H_ + +#include +#include +#include +#include +#include "CbnExport.h" +#include "model/ResolveAndRouteServiceInCenRequest.h" +#include "model/ResolveAndRouteServiceInCenResult.h" +#include "model/CreateCenBandwidthPackageRequest.h" +#include "model/CreateCenBandwidthPackageResult.h" +#include "model/WithdrawPublishedRouteEntriesRequest.h" +#include "model/WithdrawPublishedRouteEntriesResult.h" +#include "model/DescribePublishedRouteEntriesRequest.h" +#include "model/DescribePublishedRouteEntriesResult.h" +#include "model/DescribeGrantRulesToCenRequest.h" +#include "model/DescribeGrantRulesToCenResult.h" +#include "model/DescribeCenPrivateZoneRoutesRequest.h" +#include "model/DescribeCenPrivateZoneRoutesResult.h" +#include "model/ModifyCenBandwidthPackageAttributeRequest.h" +#include "model/ModifyCenBandwidthPackageAttributeResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/DisableCenVbrHealthCheckRequest.h" +#include "model/DisableCenVbrHealthCheckResult.h" +#include "model/UnroutePrivateZoneInCenToVpcRequest.h" +#include "model/UnroutePrivateZoneInCenToVpcResult.h" +#include "model/CreateCenRequest.h" +#include "model/CreateCenResult.h" +#include "model/DescribeCenVbrHealthCheckRequest.h" +#include "model/DescribeCenVbrHealthCheckResult.h" +#include "model/RoutePrivateZoneInCenToVpcRequest.h" +#include "model/RoutePrivateZoneInCenToVpcResult.h" +#include "model/DescribeCenGeographicSpansRequest.h" +#include "model/DescribeCenGeographicSpansResult.h" +#include "model/DescribeCensRequest.h" +#include "model/DescribeCensResult.h" +#include "model/EnableCenVbrHealthCheckRequest.h" +#include "model/EnableCenVbrHealthCheckResult.h" +#include "model/DeleteCenRequest.h" +#include "model/DeleteCenResult.h" +#include "model/DescribeCenInterRegionBandwidthLimitsRequest.h" +#include "model/DescribeCenInterRegionBandwidthLimitsResult.h" +#include "model/UnassociateCenBandwidthPackageRequest.h" +#include "model/UnassociateCenBandwidthPackageResult.h" +#include "model/DescribeChildInstanceRegionsRequest.h" +#include "model/DescribeChildInstanceRegionsResult.h" +#include "model/DetachCenChildInstanceRequest.h" +#include "model/DetachCenChildInstanceResult.h" +#include "model/AttachCenChildInstanceRequest.h" +#include "model/AttachCenChildInstanceResult.h" +#include "model/SetCenInterRegionBandwidthLimitRequest.h" +#include "model/SetCenInterRegionBandwidthLimitResult.h" +#include "model/DeleteCenBandwidthPackageRequest.h" +#include "model/DeleteCenBandwidthPackageResult.h" +#include "model/ModifyCenAttributeRequest.h" +#include "model/ModifyCenAttributeResult.h" +#include "model/DescribeGeographicRegionMembershipRequest.h" +#include "model/DescribeGeographicRegionMembershipResult.h" +#include "model/DescribeRouteServicesInCenRequest.h" +#include "model/DescribeRouteServicesInCenResult.h" +#include "model/DescribeRouteConflictRequest.h" +#include "model/DescribeRouteConflictResult.h" +#include "model/DescribeCenRegionDomainRouteEntriesRequest.h" +#include "model/DescribeCenRegionDomainRouteEntriesResult.h" +#include "model/DeleteRouteServiceInCenRequest.h" +#include "model/DeleteRouteServiceInCenResult.h" +#include "model/DescribeCenAttachedChildInstancesRequest.h" +#include "model/DescribeCenAttachedChildInstancesResult.h" +#include "model/DescribeCenAttachedChildInstanceAttributeRequest.h" +#include "model/DescribeCenAttachedChildInstanceAttributeResult.h" +#include "model/ModifyCenBandwidthPackageSpecRequest.h" +#include "model/ModifyCenBandwidthPackageSpecResult.h" +#include "model/DescribeCenBandwidthPackagesRequest.h" +#include "model/DescribeCenBandwidthPackagesResult.h" +#include "model/DescribeCenGeographicSpanRemainingBandwidthRequest.h" +#include "model/DescribeCenGeographicSpanRemainingBandwidthResult.h" +#include "model/PublishRouteEntriesRequest.h" +#include "model/PublishRouteEntriesResult.h" +#include "model/AssociateCenBandwidthPackageRequest.h" +#include "model/AssociateCenBandwidthPackageResult.h" + + +namespace AlibabaCloud +{ + namespace Cbn + { + class ALIBABACLOUD_CBN_EXPORT CbnClient : public RpcServiceClient + { + public: + typedef Outcome ResolveAndRouteServiceInCenOutcome; + typedef std::future ResolveAndRouteServiceInCenOutcomeCallable; + typedef std::function&)> ResolveAndRouteServiceInCenAsyncHandler; + typedef Outcome CreateCenBandwidthPackageOutcome; + typedef std::future CreateCenBandwidthPackageOutcomeCallable; + typedef std::function&)> CreateCenBandwidthPackageAsyncHandler; + typedef Outcome WithdrawPublishedRouteEntriesOutcome; + typedef std::future WithdrawPublishedRouteEntriesOutcomeCallable; + typedef std::function&)> WithdrawPublishedRouteEntriesAsyncHandler; + typedef Outcome DescribePublishedRouteEntriesOutcome; + typedef std::future DescribePublishedRouteEntriesOutcomeCallable; + typedef std::function&)> DescribePublishedRouteEntriesAsyncHandler; + typedef Outcome DescribeGrantRulesToCenOutcome; + typedef std::future DescribeGrantRulesToCenOutcomeCallable; + typedef std::function&)> DescribeGrantRulesToCenAsyncHandler; + typedef Outcome DescribeCenPrivateZoneRoutesOutcome; + typedef std::future DescribeCenPrivateZoneRoutesOutcomeCallable; + typedef std::function&)> DescribeCenPrivateZoneRoutesAsyncHandler; + typedef Outcome ModifyCenBandwidthPackageAttributeOutcome; + typedef std::future ModifyCenBandwidthPackageAttributeOutcomeCallable; + typedef std::function&)> ModifyCenBandwidthPackageAttributeAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome DisableCenVbrHealthCheckOutcome; + typedef std::future DisableCenVbrHealthCheckOutcomeCallable; + typedef std::function&)> DisableCenVbrHealthCheckAsyncHandler; + typedef Outcome UnroutePrivateZoneInCenToVpcOutcome; + typedef std::future UnroutePrivateZoneInCenToVpcOutcomeCallable; + typedef std::function&)> UnroutePrivateZoneInCenToVpcAsyncHandler; + typedef Outcome CreateCenOutcome; + typedef std::future CreateCenOutcomeCallable; + typedef std::function&)> CreateCenAsyncHandler; + typedef Outcome DescribeCenVbrHealthCheckOutcome; + typedef std::future DescribeCenVbrHealthCheckOutcomeCallable; + typedef std::function&)> DescribeCenVbrHealthCheckAsyncHandler; + typedef Outcome RoutePrivateZoneInCenToVpcOutcome; + typedef std::future RoutePrivateZoneInCenToVpcOutcomeCallable; + typedef std::function&)> RoutePrivateZoneInCenToVpcAsyncHandler; + typedef Outcome DescribeCenGeographicSpansOutcome; + typedef std::future DescribeCenGeographicSpansOutcomeCallable; + typedef std::function&)> DescribeCenGeographicSpansAsyncHandler; + typedef Outcome DescribeCensOutcome; + typedef std::future DescribeCensOutcomeCallable; + typedef std::function&)> DescribeCensAsyncHandler; + typedef Outcome EnableCenVbrHealthCheckOutcome; + typedef std::future EnableCenVbrHealthCheckOutcomeCallable; + typedef std::function&)> EnableCenVbrHealthCheckAsyncHandler; + typedef Outcome DeleteCenOutcome; + typedef std::future DeleteCenOutcomeCallable; + typedef std::function&)> DeleteCenAsyncHandler; + typedef Outcome DescribeCenInterRegionBandwidthLimitsOutcome; + typedef std::future DescribeCenInterRegionBandwidthLimitsOutcomeCallable; + typedef std::function&)> DescribeCenInterRegionBandwidthLimitsAsyncHandler; + typedef Outcome UnassociateCenBandwidthPackageOutcome; + typedef std::future UnassociateCenBandwidthPackageOutcomeCallable; + typedef std::function&)> UnassociateCenBandwidthPackageAsyncHandler; + typedef Outcome DescribeChildInstanceRegionsOutcome; + typedef std::future DescribeChildInstanceRegionsOutcomeCallable; + typedef std::function&)> DescribeChildInstanceRegionsAsyncHandler; + typedef Outcome DetachCenChildInstanceOutcome; + typedef std::future DetachCenChildInstanceOutcomeCallable; + typedef std::function&)> DetachCenChildInstanceAsyncHandler; + typedef Outcome AttachCenChildInstanceOutcome; + typedef std::future AttachCenChildInstanceOutcomeCallable; + typedef std::function&)> AttachCenChildInstanceAsyncHandler; + typedef Outcome SetCenInterRegionBandwidthLimitOutcome; + typedef std::future SetCenInterRegionBandwidthLimitOutcomeCallable; + typedef std::function&)> SetCenInterRegionBandwidthLimitAsyncHandler; + typedef Outcome DeleteCenBandwidthPackageOutcome; + typedef std::future DeleteCenBandwidthPackageOutcomeCallable; + typedef std::function&)> DeleteCenBandwidthPackageAsyncHandler; + typedef Outcome ModifyCenAttributeOutcome; + typedef std::future ModifyCenAttributeOutcomeCallable; + typedef std::function&)> ModifyCenAttributeAsyncHandler; + typedef Outcome DescribeGeographicRegionMembershipOutcome; + typedef std::future DescribeGeographicRegionMembershipOutcomeCallable; + typedef std::function&)> DescribeGeographicRegionMembershipAsyncHandler; + typedef Outcome DescribeRouteServicesInCenOutcome; + typedef std::future DescribeRouteServicesInCenOutcomeCallable; + typedef std::function&)> DescribeRouteServicesInCenAsyncHandler; + typedef Outcome DescribeRouteConflictOutcome; + typedef std::future DescribeRouteConflictOutcomeCallable; + typedef std::function&)> DescribeRouteConflictAsyncHandler; + typedef Outcome DescribeCenRegionDomainRouteEntriesOutcome; + typedef std::future DescribeCenRegionDomainRouteEntriesOutcomeCallable; + typedef std::function&)> DescribeCenRegionDomainRouteEntriesAsyncHandler; + typedef Outcome DeleteRouteServiceInCenOutcome; + typedef std::future DeleteRouteServiceInCenOutcomeCallable; + typedef std::function&)> DeleteRouteServiceInCenAsyncHandler; + typedef Outcome DescribeCenAttachedChildInstancesOutcome; + typedef std::future DescribeCenAttachedChildInstancesOutcomeCallable; + typedef std::function&)> DescribeCenAttachedChildInstancesAsyncHandler; + typedef Outcome DescribeCenAttachedChildInstanceAttributeOutcome; + typedef std::future DescribeCenAttachedChildInstanceAttributeOutcomeCallable; + typedef std::function&)> DescribeCenAttachedChildInstanceAttributeAsyncHandler; + typedef Outcome ModifyCenBandwidthPackageSpecOutcome; + typedef std::future ModifyCenBandwidthPackageSpecOutcomeCallable; + typedef std::function&)> ModifyCenBandwidthPackageSpecAsyncHandler; + typedef Outcome DescribeCenBandwidthPackagesOutcome; + typedef std::future DescribeCenBandwidthPackagesOutcomeCallable; + typedef std::function&)> DescribeCenBandwidthPackagesAsyncHandler; + typedef Outcome DescribeCenGeographicSpanRemainingBandwidthOutcome; + typedef std::future DescribeCenGeographicSpanRemainingBandwidthOutcomeCallable; + typedef std::function&)> DescribeCenGeographicSpanRemainingBandwidthAsyncHandler; + typedef Outcome PublishRouteEntriesOutcome; + typedef std::future PublishRouteEntriesOutcomeCallable; + typedef std::function&)> PublishRouteEntriesAsyncHandler; + typedef Outcome AssociateCenBandwidthPackageOutcome; + typedef std::future AssociateCenBandwidthPackageOutcomeCallable; + typedef std::function&)> AssociateCenBandwidthPackageAsyncHandler; + + CbnClient(const Credentials &credentials, const ClientConfiguration &configuration); + CbnClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + CbnClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~CbnClient(); + ResolveAndRouteServiceInCenOutcome resolveAndRouteServiceInCen(const Model::ResolveAndRouteServiceInCenRequest &request)const; + void resolveAndRouteServiceInCenAsync(const Model::ResolveAndRouteServiceInCenRequest& request, const ResolveAndRouteServiceInCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResolveAndRouteServiceInCenOutcomeCallable resolveAndRouteServiceInCenCallable(const Model::ResolveAndRouteServiceInCenRequest& request) const; + CreateCenBandwidthPackageOutcome createCenBandwidthPackage(const Model::CreateCenBandwidthPackageRequest &request)const; + void createCenBandwidthPackageAsync(const Model::CreateCenBandwidthPackageRequest& request, const CreateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCenBandwidthPackageOutcomeCallable createCenBandwidthPackageCallable(const Model::CreateCenBandwidthPackageRequest& request) const; + WithdrawPublishedRouteEntriesOutcome withdrawPublishedRouteEntries(const Model::WithdrawPublishedRouteEntriesRequest &request)const; + void withdrawPublishedRouteEntriesAsync(const Model::WithdrawPublishedRouteEntriesRequest& request, const WithdrawPublishedRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + WithdrawPublishedRouteEntriesOutcomeCallable withdrawPublishedRouteEntriesCallable(const Model::WithdrawPublishedRouteEntriesRequest& request) const; + DescribePublishedRouteEntriesOutcome describePublishedRouteEntries(const Model::DescribePublishedRouteEntriesRequest &request)const; + void describePublishedRouteEntriesAsync(const Model::DescribePublishedRouteEntriesRequest& request, const DescribePublishedRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePublishedRouteEntriesOutcomeCallable describePublishedRouteEntriesCallable(const Model::DescribePublishedRouteEntriesRequest& request) const; + DescribeGrantRulesToCenOutcome describeGrantRulesToCen(const Model::DescribeGrantRulesToCenRequest &request)const; + void describeGrantRulesToCenAsync(const Model::DescribeGrantRulesToCenRequest& request, const DescribeGrantRulesToCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGrantRulesToCenOutcomeCallable describeGrantRulesToCenCallable(const Model::DescribeGrantRulesToCenRequest& request) const; + DescribeCenPrivateZoneRoutesOutcome describeCenPrivateZoneRoutes(const Model::DescribeCenPrivateZoneRoutesRequest &request)const; + void describeCenPrivateZoneRoutesAsync(const Model::DescribeCenPrivateZoneRoutesRequest& request, const DescribeCenPrivateZoneRoutesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCenPrivateZoneRoutesOutcomeCallable describeCenPrivateZoneRoutesCallable(const Model::DescribeCenPrivateZoneRoutesRequest& request) const; + ModifyCenBandwidthPackageAttributeOutcome modifyCenBandwidthPackageAttribute(const Model::ModifyCenBandwidthPackageAttributeRequest &request)const; + void modifyCenBandwidthPackageAttributeAsync(const Model::ModifyCenBandwidthPackageAttributeRequest& request, const ModifyCenBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCenBandwidthPackageAttributeOutcomeCallable modifyCenBandwidthPackageAttributeCallable(const Model::ModifyCenBandwidthPackageAttributeRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + DisableCenVbrHealthCheckOutcome disableCenVbrHealthCheck(const Model::DisableCenVbrHealthCheckRequest &request)const; + void disableCenVbrHealthCheckAsync(const Model::DisableCenVbrHealthCheckRequest& request, const DisableCenVbrHealthCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableCenVbrHealthCheckOutcomeCallable disableCenVbrHealthCheckCallable(const Model::DisableCenVbrHealthCheckRequest& request) const; + UnroutePrivateZoneInCenToVpcOutcome unroutePrivateZoneInCenToVpc(const Model::UnroutePrivateZoneInCenToVpcRequest &request)const; + void unroutePrivateZoneInCenToVpcAsync(const Model::UnroutePrivateZoneInCenToVpcRequest& request, const UnroutePrivateZoneInCenToVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnroutePrivateZoneInCenToVpcOutcomeCallable unroutePrivateZoneInCenToVpcCallable(const Model::UnroutePrivateZoneInCenToVpcRequest& request) const; + CreateCenOutcome createCen(const Model::CreateCenRequest &request)const; + void createCenAsync(const Model::CreateCenRequest& request, const CreateCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCenOutcomeCallable createCenCallable(const Model::CreateCenRequest& request) const; + DescribeCenVbrHealthCheckOutcome describeCenVbrHealthCheck(const Model::DescribeCenVbrHealthCheckRequest &request)const; + void describeCenVbrHealthCheckAsync(const Model::DescribeCenVbrHealthCheckRequest& request, const DescribeCenVbrHealthCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCenVbrHealthCheckOutcomeCallable describeCenVbrHealthCheckCallable(const Model::DescribeCenVbrHealthCheckRequest& request) const; + RoutePrivateZoneInCenToVpcOutcome routePrivateZoneInCenToVpc(const Model::RoutePrivateZoneInCenToVpcRequest &request)const; + void routePrivateZoneInCenToVpcAsync(const Model::RoutePrivateZoneInCenToVpcRequest& request, const RoutePrivateZoneInCenToVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RoutePrivateZoneInCenToVpcOutcomeCallable routePrivateZoneInCenToVpcCallable(const Model::RoutePrivateZoneInCenToVpcRequest& request) const; + DescribeCenGeographicSpansOutcome describeCenGeographicSpans(const Model::DescribeCenGeographicSpansRequest &request)const; + void describeCenGeographicSpansAsync(const Model::DescribeCenGeographicSpansRequest& request, const DescribeCenGeographicSpansAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCenGeographicSpansOutcomeCallable describeCenGeographicSpansCallable(const Model::DescribeCenGeographicSpansRequest& request) const; + DescribeCensOutcome describeCens(const Model::DescribeCensRequest &request)const; + void describeCensAsync(const Model::DescribeCensRequest& request, const DescribeCensAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCensOutcomeCallable describeCensCallable(const Model::DescribeCensRequest& request) const; + EnableCenVbrHealthCheckOutcome enableCenVbrHealthCheck(const Model::EnableCenVbrHealthCheckRequest &request)const; + void enableCenVbrHealthCheckAsync(const Model::EnableCenVbrHealthCheckRequest& request, const EnableCenVbrHealthCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableCenVbrHealthCheckOutcomeCallable enableCenVbrHealthCheckCallable(const Model::EnableCenVbrHealthCheckRequest& request) const; + DeleteCenOutcome deleteCen(const Model::DeleteCenRequest &request)const; + void deleteCenAsync(const Model::DeleteCenRequest& request, const DeleteCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCenOutcomeCallable deleteCenCallable(const Model::DeleteCenRequest& request) const; + DescribeCenInterRegionBandwidthLimitsOutcome describeCenInterRegionBandwidthLimits(const Model::DescribeCenInterRegionBandwidthLimitsRequest &request)const; + void describeCenInterRegionBandwidthLimitsAsync(const Model::DescribeCenInterRegionBandwidthLimitsRequest& request, const DescribeCenInterRegionBandwidthLimitsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCenInterRegionBandwidthLimitsOutcomeCallable describeCenInterRegionBandwidthLimitsCallable(const Model::DescribeCenInterRegionBandwidthLimitsRequest& request) const; + UnassociateCenBandwidthPackageOutcome unassociateCenBandwidthPackage(const Model::UnassociateCenBandwidthPackageRequest &request)const; + void unassociateCenBandwidthPackageAsync(const Model::UnassociateCenBandwidthPackageRequest& request, const UnassociateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassociateCenBandwidthPackageOutcomeCallable unassociateCenBandwidthPackageCallable(const Model::UnassociateCenBandwidthPackageRequest& request) const; + DescribeChildInstanceRegionsOutcome describeChildInstanceRegions(const Model::DescribeChildInstanceRegionsRequest &request)const; + void describeChildInstanceRegionsAsync(const Model::DescribeChildInstanceRegionsRequest& request, const DescribeChildInstanceRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeChildInstanceRegionsOutcomeCallable describeChildInstanceRegionsCallable(const Model::DescribeChildInstanceRegionsRequest& request) const; + DetachCenChildInstanceOutcome detachCenChildInstance(const Model::DetachCenChildInstanceRequest &request)const; + void detachCenChildInstanceAsync(const Model::DetachCenChildInstanceRequest& request, const DetachCenChildInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachCenChildInstanceOutcomeCallable detachCenChildInstanceCallable(const Model::DetachCenChildInstanceRequest& request) const; + AttachCenChildInstanceOutcome attachCenChildInstance(const Model::AttachCenChildInstanceRequest &request)const; + void attachCenChildInstanceAsync(const Model::AttachCenChildInstanceRequest& request, const AttachCenChildInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachCenChildInstanceOutcomeCallable attachCenChildInstanceCallable(const Model::AttachCenChildInstanceRequest& request) const; + SetCenInterRegionBandwidthLimitOutcome setCenInterRegionBandwidthLimit(const Model::SetCenInterRegionBandwidthLimitRequest &request)const; + void setCenInterRegionBandwidthLimitAsync(const Model::SetCenInterRegionBandwidthLimitRequest& request, const SetCenInterRegionBandwidthLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetCenInterRegionBandwidthLimitOutcomeCallable setCenInterRegionBandwidthLimitCallable(const Model::SetCenInterRegionBandwidthLimitRequest& request) const; + DeleteCenBandwidthPackageOutcome deleteCenBandwidthPackage(const Model::DeleteCenBandwidthPackageRequest &request)const; + void deleteCenBandwidthPackageAsync(const Model::DeleteCenBandwidthPackageRequest& request, const DeleteCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCenBandwidthPackageOutcomeCallable deleteCenBandwidthPackageCallable(const Model::DeleteCenBandwidthPackageRequest& request) const; + ModifyCenAttributeOutcome modifyCenAttribute(const Model::ModifyCenAttributeRequest &request)const; + void modifyCenAttributeAsync(const Model::ModifyCenAttributeRequest& request, const ModifyCenAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCenAttributeOutcomeCallable modifyCenAttributeCallable(const Model::ModifyCenAttributeRequest& request) const; + DescribeGeographicRegionMembershipOutcome describeGeographicRegionMembership(const Model::DescribeGeographicRegionMembershipRequest &request)const; + void describeGeographicRegionMembershipAsync(const Model::DescribeGeographicRegionMembershipRequest& request, const DescribeGeographicRegionMembershipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGeographicRegionMembershipOutcomeCallable describeGeographicRegionMembershipCallable(const Model::DescribeGeographicRegionMembershipRequest& request) const; + DescribeRouteServicesInCenOutcome describeRouteServicesInCen(const Model::DescribeRouteServicesInCenRequest &request)const; + void describeRouteServicesInCenAsync(const Model::DescribeRouteServicesInCenRequest& request, const DescribeRouteServicesInCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRouteServicesInCenOutcomeCallable describeRouteServicesInCenCallable(const Model::DescribeRouteServicesInCenRequest& request) const; + DescribeRouteConflictOutcome describeRouteConflict(const Model::DescribeRouteConflictRequest &request)const; + void describeRouteConflictAsync(const Model::DescribeRouteConflictRequest& request, const DescribeRouteConflictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRouteConflictOutcomeCallable describeRouteConflictCallable(const Model::DescribeRouteConflictRequest& request) const; + DescribeCenRegionDomainRouteEntriesOutcome describeCenRegionDomainRouteEntries(const Model::DescribeCenRegionDomainRouteEntriesRequest &request)const; + void describeCenRegionDomainRouteEntriesAsync(const Model::DescribeCenRegionDomainRouteEntriesRequest& request, const DescribeCenRegionDomainRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCenRegionDomainRouteEntriesOutcomeCallable describeCenRegionDomainRouteEntriesCallable(const Model::DescribeCenRegionDomainRouteEntriesRequest& request) const; + DeleteRouteServiceInCenOutcome deleteRouteServiceInCen(const Model::DeleteRouteServiceInCenRequest &request)const; + void deleteRouteServiceInCenAsync(const Model::DeleteRouteServiceInCenRequest& request, const DeleteRouteServiceInCenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRouteServiceInCenOutcomeCallable deleteRouteServiceInCenCallable(const Model::DeleteRouteServiceInCenRequest& request) const; + DescribeCenAttachedChildInstancesOutcome describeCenAttachedChildInstances(const Model::DescribeCenAttachedChildInstancesRequest &request)const; + void describeCenAttachedChildInstancesAsync(const Model::DescribeCenAttachedChildInstancesRequest& request, const DescribeCenAttachedChildInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCenAttachedChildInstancesOutcomeCallable describeCenAttachedChildInstancesCallable(const Model::DescribeCenAttachedChildInstancesRequest& request) const; + DescribeCenAttachedChildInstanceAttributeOutcome describeCenAttachedChildInstanceAttribute(const Model::DescribeCenAttachedChildInstanceAttributeRequest &request)const; + void describeCenAttachedChildInstanceAttributeAsync(const Model::DescribeCenAttachedChildInstanceAttributeRequest& request, const DescribeCenAttachedChildInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCenAttachedChildInstanceAttributeOutcomeCallable describeCenAttachedChildInstanceAttributeCallable(const Model::DescribeCenAttachedChildInstanceAttributeRequest& request) const; + ModifyCenBandwidthPackageSpecOutcome modifyCenBandwidthPackageSpec(const Model::ModifyCenBandwidthPackageSpecRequest &request)const; + void modifyCenBandwidthPackageSpecAsync(const Model::ModifyCenBandwidthPackageSpecRequest& request, const ModifyCenBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCenBandwidthPackageSpecOutcomeCallable modifyCenBandwidthPackageSpecCallable(const Model::ModifyCenBandwidthPackageSpecRequest& request) const; + DescribeCenBandwidthPackagesOutcome describeCenBandwidthPackages(const Model::DescribeCenBandwidthPackagesRequest &request)const; + void describeCenBandwidthPackagesAsync(const Model::DescribeCenBandwidthPackagesRequest& request, const DescribeCenBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCenBandwidthPackagesOutcomeCallable describeCenBandwidthPackagesCallable(const Model::DescribeCenBandwidthPackagesRequest& request) const; + DescribeCenGeographicSpanRemainingBandwidthOutcome describeCenGeographicSpanRemainingBandwidth(const Model::DescribeCenGeographicSpanRemainingBandwidthRequest &request)const; + void describeCenGeographicSpanRemainingBandwidthAsync(const Model::DescribeCenGeographicSpanRemainingBandwidthRequest& request, const DescribeCenGeographicSpanRemainingBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCenGeographicSpanRemainingBandwidthOutcomeCallable describeCenGeographicSpanRemainingBandwidthCallable(const Model::DescribeCenGeographicSpanRemainingBandwidthRequest& request) const; + PublishRouteEntriesOutcome publishRouteEntries(const Model::PublishRouteEntriesRequest &request)const; + void publishRouteEntriesAsync(const Model::PublishRouteEntriesRequest& request, const PublishRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishRouteEntriesOutcomeCallable publishRouteEntriesCallable(const Model::PublishRouteEntriesRequest& request) const; + AssociateCenBandwidthPackageOutcome associateCenBandwidthPackage(const Model::AssociateCenBandwidthPackageRequest &request)const; + void associateCenBandwidthPackageAsync(const Model::AssociateCenBandwidthPackageRequest& request, const AssociateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateCenBandwidthPackageOutcomeCallable associateCenBandwidthPackageCallable(const Model::AssociateCenBandwidthPackageRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_CBN_CBNCLIENT_H_ diff --git a/cbn/include/alibabacloud/cbn/CbnExport.h b/cbn/include/alibabacloud/cbn/CbnExport.h new file mode 100644 index 000000000..bd1893e16 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/CbnExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_CBNEXPORT_H_ +#define ALIBABACLOUD_CBN_CBNEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_CBN_LIBRARY) +# define ALIBABACLOUD_CBN_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_CBN_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_CBN_EXPORT +#endif + +#endif // !ALIBABACLOUD_CBN_CBNEXPORT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/AssociateCenBandwidthPackageRequest.h b/cbn/include/alibabacloud/cbn/model/AssociateCenBandwidthPackageRequest.h new file mode 100644 index 000000000..f74a8811e --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/AssociateCenBandwidthPackageRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_ASSOCIATECENBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_ASSOCIATECENBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT AssociateCenBandwidthPackageRequest : public RpcServiceRequest + { + + public: + AssociateCenBandwidthPackageRequest(); + ~AssociateCenBandwidthPackageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getCenBandwidthPackageId()const; + void setCenBandwidthPackageId(const std::string& cenBandwidthPackageId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string cenBandwidthPackageId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_ASSOCIATECENBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/AssociateCenBandwidthPackageResult.h b/cbn/include/alibabacloud/cbn/model/AssociateCenBandwidthPackageResult.h new file mode 100644 index 000000000..66ea1ee7c --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/AssociateCenBandwidthPackageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_ASSOCIATECENBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_ASSOCIATECENBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT AssociateCenBandwidthPackageResult : public ServiceResult + { + public: + + + AssociateCenBandwidthPackageResult(); + explicit AssociateCenBandwidthPackageResult(const std::string &payload); + ~AssociateCenBandwidthPackageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_ASSOCIATECENBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/AttachCenChildInstanceRequest.h b/cbn/include/alibabacloud/cbn/model/AttachCenChildInstanceRequest.h new file mode 100644 index 000000000..8528e8950 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/AttachCenChildInstanceRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_ATTACHCENCHILDINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_ATTACHCENCHILDINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT AttachCenChildInstanceRequest : public RpcServiceRequest + { + + public: + AttachCenChildInstanceRequest(); + ~AttachCenChildInstanceRequest(); + + std::string getChildInstanceId()const; + void setChildInstanceId(const std::string& childInstanceId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getChildInstanceType()const; + void setChildInstanceType(const std::string& childInstanceType); + long getChildInstanceOwnerId()const; + void setChildInstanceOwnerId(long childInstanceOwnerId); + std::string getChildInstanceRegionId()const; + void setChildInstanceRegionId(const std::string& childInstanceRegionId); + + private: + std::string childInstanceId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + long ownerId_; + std::string childInstanceType_; + long childInstanceOwnerId_; + std::string childInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_ATTACHCENCHILDINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/AttachCenChildInstanceResult.h b/cbn/include/alibabacloud/cbn/model/AttachCenChildInstanceResult.h new file mode 100644 index 000000000..e9b37d51d --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/AttachCenChildInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_ATTACHCENCHILDINSTANCERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_ATTACHCENCHILDINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT AttachCenChildInstanceResult : public ServiceResult + { + public: + + + AttachCenChildInstanceResult(); + explicit AttachCenChildInstanceResult(const std::string &payload); + ~AttachCenChildInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_ATTACHCENCHILDINSTANCERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h b/cbn/include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h new file mode 100644 index 000000000..cf96b683b --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateCenBandwidthPackageRequest.h @@ -0,0 +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_CBN_MODEL_CREATECENBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATECENBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT CreateCenBandwidthPackageRequest : public RpcServiceRequest + { + + public: + CreateCenBandwidthPackageRequest(); + ~CreateCenBandwidthPackageRequest(); + + std::string getGeographicRegionBId()const; + void setGeographicRegionBId(const std::string& geographicRegionBId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + std::string getGeographicRegionAId()const; + void setGeographicRegionAId(const std::string& geographicRegionAId); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getBandwidthPackageChargeType()const; + void setBandwidthPackageChargeType(const std::string& bandwidthPackageChargeType); + std::string getName()const; + void setName(const std::string& name); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); + + private: + std::string geographicRegionBId_; + long resourceOwnerId_; + int period_; + std::string geographicRegionAId_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string clientToken_; + int bandwidth_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + std::string bandwidthPackageChargeType_; + std::string name_; + std::string pricingCycle_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenBandwidthPackageResult.h b/cbn/include/alibabacloud/cbn/model/CreateCenBandwidthPackageResult.h new file mode 100644 index 000000000..3965e4c67 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateCenBandwidthPackageResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_CREATECENBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATECENBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT CreateCenBandwidthPackageResult : public ServiceResult + { + public: + + + CreateCenBandwidthPackageResult(); + explicit CreateCenBandwidthPackageResult(const std::string &payload); + ~CreateCenBandwidthPackageResult(); + std::string getCenBandwidthPackageId()const; + std::string getCenBandwidthPackageOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string cenBandwidthPackageId_; + std::string cenBandwidthPackageOrderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenRequest.h b/cbn/include/alibabacloud/cbn/model/CreateCenRequest.h new file mode 100644 index 000000000..d383ccb77 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateCenRequest.h @@ -0,0 +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_CBN_MODEL_CREATECENREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATECENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT CreateCenRequest : public RpcServiceRequest + { + + public: + CreateCenRequest(); + ~CreateCenRequest(); + + std::string getProtectionLevel()const; + void setProtectionLevel(const std::string& protectionLevel); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string protectionLevel_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string name_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/CreateCenResult.h b/cbn/include/alibabacloud/cbn/model/CreateCenResult.h new file mode 100644 index 000000000..70419babf --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/CreateCenResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_CREATECENRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_CREATECENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT CreateCenResult : public ServiceResult + { + public: + + + CreateCenResult(); + explicit CreateCenResult(const std::string &payload); + ~CreateCenResult(); + std::string getCenId()const; + + protected: + void parse(const std::string &payload); + private: + std::string cenId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_CREATECENRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeleteCenBandwidthPackageRequest.h b/cbn/include/alibabacloud/cbn/model/DeleteCenBandwidthPackageRequest.h new file mode 100644 index 000000000..83c930af9 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteCenBandwidthPackageRequest.h @@ -0,0 +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_CBN_MODEL_DELETECENBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETECENBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteCenBandwidthPackageRequest : public RpcServiceRequest + { + + public: + DeleteCenBandwidthPackageRequest(); + ~DeleteCenBandwidthPackageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenBandwidthPackageId()const; + void setCenBandwidthPackageId(const std::string& cenBandwidthPackageId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenBandwidthPackageId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETECENBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeleteCenBandwidthPackageResult.h b/cbn/include/alibabacloud/cbn/model/DeleteCenBandwidthPackageResult.h new file mode 100644 index 000000000..7e1b46839 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteCenBandwidthPackageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DELETECENBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETECENBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteCenBandwidthPackageResult : public ServiceResult + { + public: + + + DeleteCenBandwidthPackageResult(); + explicit DeleteCenBandwidthPackageResult(const std::string &payload); + ~DeleteCenBandwidthPackageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETECENBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeleteCenRequest.h b/cbn/include/alibabacloud/cbn/model/DeleteCenRequest.h new file mode 100644 index 000000000..c20d9584c --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteCenRequest.h @@ -0,0 +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_CBN_MODEL_DELETECENREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETECENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteCenRequest : public RpcServiceRequest + { + + public: + DeleteCenRequest(); + ~DeleteCenRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETECENREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeleteCenResult.h b/cbn/include/alibabacloud/cbn/model/DeleteCenResult.h new file mode 100644 index 000000000..30a48319e --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteCenResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DELETECENRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETECENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteCenResult : public ServiceResult + { + public: + + + DeleteCenResult(); + explicit DeleteCenResult(const std::string &payload); + ~DeleteCenResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETECENRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeleteRouteServiceInCenRequest.h b/cbn/include/alibabacloud/cbn/model/DeleteRouteServiceInCenRequest.h new file mode 100644 index 000000000..e8ef6e552 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteRouteServiceInCenRequest.h @@ -0,0 +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_CBN_MODEL_DELETEROUTESERVICEINCENREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETEROUTESERVICEINCENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteRouteServiceInCenRequest : public RpcServiceRequest + { + + public: + DeleteRouteServiceInCenRequest(); + ~DeleteRouteServiceInCenRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getHost()const; + void setHost(const std::string& host); + std::string getHostRegionId()const; + void setHostRegionId(const std::string& hostRegionId); + std::string getAccessRegionId()const; + void setAccessRegionId(const std::string& accessRegionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + std::string host_; + std::string hostRegionId_; + std::string accessRegionId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETEROUTESERVICEINCENREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DeleteRouteServiceInCenResult.h b/cbn/include/alibabacloud/cbn/model/DeleteRouteServiceInCenResult.h new file mode 100644 index 000000000..a317b918f --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DeleteRouteServiceInCenResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DELETEROUTESERVICEINCENRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DELETEROUTESERVICEINCENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DeleteRouteServiceInCenResult : public ServiceResult + { + public: + + + DeleteRouteServiceInCenResult(); + explicit DeleteRouteServiceInCenResult(const std::string &payload); + ~DeleteRouteServiceInCenResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DELETEROUTESERVICEINCENRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeRequest.h new file mode 100644 index 000000000..9d0d345fb --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeRequest.h @@ -0,0 +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_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenAttachedChildInstanceAttributeRequest : public RpcServiceRequest + { + + public: + DescribeCenAttachedChildInstanceAttributeRequest(); + ~DescribeCenAttachedChildInstanceAttributeRequest(); + + std::string getChildInstanceId()const; + void setChildInstanceId(const std::string& childInstanceId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getChildInstanceType()const; + void setChildInstanceType(const std::string& childInstanceType); + std::string getChildInstanceRegionId()const; + void setChildInstanceRegionId(const std::string& childInstanceRegionId); + + private: + std::string childInstanceId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + long ownerId_; + std::string childInstanceType_; + std::string childInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeResult.h new file mode 100644 index 000000000..75bde2906 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstanceAttributeResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenAttachedChildInstanceAttributeResult : public ServiceResult + { + public: + + + DescribeCenAttachedChildInstanceAttributeResult(); + explicit DescribeCenAttachedChildInstanceAttributeResult(const std::string &payload); + ~DescribeCenAttachedChildInstanceAttributeResult(); + std::string getStatus()const; + std::string getChildInstanceType()const; + std::string getCenId()const; + std::string getChildInstanceAttachTime()const; + long getChildInstanceOwnerId()const; + std::string getChildInstanceName()const; + std::string getChildInstanceId()const; + std::string getChildInstanceRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string childInstanceType_; + std::string cenId_; + std::string childInstanceAttachTime_; + long childInstanceOwnerId_; + std::string childInstanceName_; + std::string childInstanceId_; + std::string childInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstancesRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstancesRequest.h new file mode 100644 index 000000000..6b48d2a38 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstancesRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCESREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenAttachedChildInstancesRequest : public RpcServiceRequest + { + + public: + DescribeCenAttachedChildInstancesRequest(); + ~DescribeCenAttachedChildInstancesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getChildInstanceType()const; + void setChildInstanceType(const std::string& childInstanceType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getChildInstanceRegionId()const; + void setChildInstanceRegionId(const std::string& childInstanceRegionId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + std::string childInstanceType_; + int pageNumber_; + std::string childInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstancesResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstancesResult.h new file mode 100644 index 000000000..4f2b8870c --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenAttachedChildInstancesResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCESRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenAttachedChildInstancesResult : public ServiceResult + { + public: + struct ChildInstance + { + std::string status; + std::string childInstanceType; + std::string cenId; + std::string childInstanceAttachTime; + long childInstanceOwnerId; + std::string childInstanceId; + std::string childInstanceRegionId; + }; + + + DescribeCenAttachedChildInstancesResult(); + explicit DescribeCenAttachedChildInstancesResult(const std::string &payload); + ~DescribeCenAttachedChildInstancesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getChildInstances()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector childInstances_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENATTACHEDCHILDINSTANCESRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesRequest.h new file mode 100644 index 000000000..818dfb031 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENBANDWIDTHPACKAGESREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENBANDWIDTHPACKAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenBandwidthPackagesRequest : public RpcServiceRequest + { + struct Filter + { + std::vector value; + std::string key; + }; + + public: + DescribeCenBandwidthPackagesRequest(); + ~DescribeCenBandwidthPackagesRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + 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); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + bool getIsOrKey()const; + void setIsOrKey(bool isOrKey); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + bool isOrKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENBANDWIDTHPACKAGESREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h new file mode 100644 index 000000000..94660ea0e --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenBandwidthPackagesResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENBANDWIDTHPACKAGESRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENBANDWIDTHPACKAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenBandwidthPackagesResult : public ServiceResult + { + public: + struct CenBandwidthPackage + { + std::string status; + std::string description; + std::string geographicSpanId; + std::string geographicRegionBId; + std::string geographicRegionAId; + bool isCrossBorder; + std::string businessStatus; + std::string name; + std::string bandwidthPackageChargeType; + long bandwidth; + std::string expiredTime; + std::string creationTime; + std::vector cenIds; + std::string cenBandwidthPackageId; + }; + + + DescribeCenBandwidthPackagesResult(); + explicit DescribeCenBandwidthPackagesResult(const std::string &payload); + ~DescribeCenBandwidthPackagesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getCenBandwidthPackages()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector cenBandwidthPackages_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENBANDWIDTHPACKAGESRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthRequest.h new file mode 100644 index 000000000..854345f3e --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANREMAININGBANDWIDTHREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANREMAININGBANDWIDTHREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenGeographicSpanRemainingBandwidthRequest : public RpcServiceRequest + { + + public: + DescribeCenGeographicSpanRemainingBandwidthRequest(); + ~DescribeCenGeographicSpanRemainingBandwidthRequest(); + + std::string getGeographicRegionBId()const; + void setGeographicRegionBId(const std::string& geographicRegionBId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getGeographicRegionAId()const; + void setGeographicRegionAId(const std::string& geographicRegionAId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string geographicRegionBId_; + long resourceOwnerId_; + std::string geographicRegionAId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANREMAININGBANDWIDTHREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthResult.h new file mode 100644 index 000000000..730dedbac --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpanRemainingBandwidthResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANREMAININGBANDWIDTHRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANREMAININGBANDWIDTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenGeographicSpanRemainingBandwidthResult : public ServiceResult + { + public: + + + DescribeCenGeographicSpanRemainingBandwidthResult(); + explicit DescribeCenGeographicSpanRemainingBandwidthResult(const std::string &payload); + ~DescribeCenGeographicSpanRemainingBandwidthResult(); + long getRemainingBandwidth()const; + + protected: + void parse(const std::string &payload); + private: + long remainingBandwidth_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANREMAININGBANDWIDTHRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpansRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpansRequest.h new file mode 100644 index 000000000..e1f14ed3e --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpansRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANSREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenGeographicSpansRequest : public RpcServiceRequest + { + + public: + DescribeCenGeographicSpansRequest(); + ~DescribeCenGeographicSpansRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getGeographicSpanId()const; + void setGeographicSpanId(const std::string& geographicSpanId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string geographicSpanId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANSREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpansResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpansResult.h new file mode 100644 index 000000000..c28699302 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenGeographicSpansResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANSRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenGeographicSpansResult : public ServiceResult + { + public: + struct GeographicSpanModel + { + std::string localGeoRegionId; + std::string geographicSpanId; + std::string oppositeGeoRegionId; + }; + + + DescribeCenGeographicSpansResult(); + explicit DescribeCenGeographicSpansResult(const std::string &payload); + ~DescribeCenGeographicSpansResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getGeographicSpanModels()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector geographicSpanModels_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENGEOGRAPHICSPANSRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsRequest.h new file mode 100644 index 000000000..2e2deb4e7 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENINTERREGIONBANDWIDTHLIMITSREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENINTERREGIONBANDWIDTHLIMITSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenInterRegionBandwidthLimitsRequest : public RpcServiceRequest + { + + public: + DescribeCenInterRegionBandwidthLimitsRequest(); + ~DescribeCenInterRegionBandwidthLimitsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENINTERREGIONBANDWIDTHLIMITSREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsResult.h new file mode 100644 index 000000000..a25fe1888 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenInterRegionBandwidthLimitsResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENINTERREGIONBANDWIDTHLIMITSRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENINTERREGIONBANDWIDTHLIMITSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenInterRegionBandwidthLimitsResult : public ServiceResult + { + public: + struct CenInterRegionBandwidthLimit + { + std::string status; + std::string geographicSpanId; + std::string oppositeRegionId; + std::string cenId; + long bandwidthLimit; + std::string localRegionId; + }; + + + DescribeCenInterRegionBandwidthLimitsResult(); + explicit DescribeCenInterRegionBandwidthLimitsResult(const std::string &payload); + ~DescribeCenInterRegionBandwidthLimitsResult(); + std::vector getCenInterRegionBandwidthLimits()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector cenInterRegionBandwidthLimits_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENINTERREGIONBANDWIDTHLIMITSRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenPrivateZoneRoutesRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenPrivateZoneRoutesRequest.h new file mode 100644 index 000000000..a1e9bed3f --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenPrivateZoneRoutesRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENPRIVATEZONEROUTESREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENPRIVATEZONEROUTESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenPrivateZoneRoutesRequest : public RpcServiceRequest + { + + public: + DescribeCenPrivateZoneRoutesRequest(); + ~DescribeCenPrivateZoneRoutesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getHostRegionId()const; + void setHostRegionId(const std::string& hostRegionId); + std::string getAccessRegionId()const; + void setAccessRegionId(const std::string& accessRegionId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + int pageSize_; + std::string hostRegionId_; + std::string accessRegionId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENPRIVATEZONEROUTESREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenPrivateZoneRoutesResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenPrivateZoneRoutesResult.h new file mode 100644 index 000000000..61b56bf3c --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenPrivateZoneRoutesResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENPRIVATEZONEROUTESRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENPRIVATEZONEROUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenPrivateZoneRoutesResult : public ServiceResult + { + public: + struct PrivateZoneInfo + { + std::string status; + std::string hostRegionId; + std::string accessRegionId; + std::string hostVpcId; + }; + + + DescribeCenPrivateZoneRoutesResult(); + explicit DescribeCenPrivateZoneRoutesResult(const std::string &payload); + ~DescribeCenPrivateZoneRoutesResult(); + int getTotalCount()const; + std::vector getPrivateZoneInfos()const; + int getPageSize()const; + int getPageNumber()const; + std::string getCenId()const; + std::string getPrivateZoneDnsServers()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector privateZoneInfos_; + int pageSize_; + int pageNumber_; + std::string cenId_; + std::string privateZoneDnsServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENPRIVATEZONEROUTESRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h new file mode 100644 index 000000000..c28ac31ce --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesRequest.h @@ -0,0 +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_CBN_MODEL_DESCRIBECENREGIONDOMAINROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENREGIONDOMAINROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenRegionDomainRouteEntriesRequest : public RpcServiceRequest + { + + public: + DescribeCenRegionDomainRouteEntriesRequest(); + ~DescribeCenRegionDomainRouteEntriesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCenRegionId()const; + void setCenRegionId(const std::string& cenRegionId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + std::string cenRegionId_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENREGIONDOMAINROUTEENTRIESREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesResult.h new file mode 100644 index 000000000..4e828ee39 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenRegionDomainRouteEntriesResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENREGIONDOMAINROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENREGIONDOMAINROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenRegionDomainRouteEntriesResult : public ServiceResult + { + public: + struct CenRouteEntry + { + std::string nextHopType; + std::string nextHopRegionId; + std::string type; + std::string destinationCidrBlock; + std::string nextHopInstanceId; + }; + + + DescribeCenRegionDomainRouteEntriesResult(); + explicit DescribeCenRegionDomainRouteEntriesResult(const std::string &payload); + ~DescribeCenRegionDomainRouteEntriesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getCenRouteEntries()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector cenRouteEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENREGIONDOMAINROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckRequest.h new file mode 100644 index 000000000..d420c0a8c --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckRequest.h @@ -0,0 +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_CBN_MODEL_DESCRIBECENVBRHEALTHCHECKREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENVBRHEALTHCHECKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenVbrHealthCheckRequest : public RpcServiceRequest + { + + public: + DescribeCenVbrHealthCheckRequest(); + ~DescribeCenVbrHealthCheckRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + long getVbrInstanceOwnerId()const; + void setVbrInstanceOwnerId(long vbrInstanceOwnerId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVbrInstanceId()const; + void setVbrInstanceId(const std::string& vbrInstanceId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVbrInstanceRegionId()const; + void setVbrInstanceRegionId(const std::string& vbrInstanceRegionId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + long vbrInstanceOwnerId_; + std::string ownerAccount_; + std::string vbrInstanceId_; + int pageSize_; + long ownerId_; + std::string vbrInstanceRegionId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENVBRHEALTHCHECKREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckResult.h new file mode 100644 index 000000000..3f7ba9fb3 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCenVbrHealthCheckResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENVBRHEALTHCHECKRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENVBRHEALTHCHECKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCenVbrHealthCheckResult : public ServiceResult + { + public: + struct VbrHealthCheck + { + std::string linkStatus; + std::string vbrInstanceId; + std::string healthCheckSourceIp; + std::string cenId; + long packetLoss; + std::string healthCheckTargetIp; + long delay; + }; + + + DescribeCenVbrHealthCheckResult(); + explicit DescribeCenVbrHealthCheckResult(const std::string &payload); + ~DescribeCenVbrHealthCheckResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getVbrHealthChecks()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector vbrHealthChecks_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENVBRHEALTHCHECKRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCensRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeCensRequest.h new file mode 100644 index 000000000..3b2e85381 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCensRequest.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENSREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCensRequest : public RpcServiceRequest + { + struct Filter + { + std::vector value; + std::string key; + }; + struct Tag + { + std::string value; + std::string key; + }; + + public: + DescribeCensRequest(); + ~DescribeCensRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + 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); + int getPageSize()const; + void setPageSize(int pageSize); + std::vector getTag()const; + void setTag(const std::vector& tag); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + std::vector tag_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENSREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeCensResult.h b/cbn/include/alibabacloud/cbn/model/DescribeCensResult.h new file mode 100644 index 000000000..b84bed9f4 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeCensResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECENSRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECENSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeCensResult : public ServiceResult + { + public: + struct Cen + { + struct Tag + { + std::string value; + std::string key; + }; + std::string status; + std::string protectionLevel; + std::string description; + std::string cenId; + std::string creationTime; + std::vector cenBandwidthPackageIds; + std::vector tags; + std::string name; + }; + + + DescribeCensResult(); + explicit DescribeCensResult(const std::string &payload); + ~DescribeCensResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getCens()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector cens_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECENSRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeChildInstanceRegionsRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeChildInstanceRegionsRequest.h new file mode 100644 index 000000000..b2b66b7a7 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeChildInstanceRegionsRequest.h @@ -0,0 +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_CBN_MODEL_DESCRIBECHILDINSTANCEREGIONSREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECHILDINSTANCEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeChildInstanceRegionsRequest : public RpcServiceRequest + { + + public: + DescribeChildInstanceRegionsRequest(); + ~DescribeChildInstanceRegionsRequest(); + + 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 getProductType()const; + void setProductType(const std::string& productType); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string productType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECHILDINSTANCEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeChildInstanceRegionsResult.h b/cbn/include/alibabacloud/cbn/model/DescribeChildInstanceRegionsResult.h new file mode 100644 index 000000000..b577ffcf6 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeChildInstanceRegionsResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBECHILDINSTANCEREGIONSRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBECHILDINSTANCEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeChildInstanceRegionsResult : public ServiceResult + { + public: + struct Region + { + std::string regionId; + std::string localName; + }; + + + DescribeChildInstanceRegionsResult(); + explicit DescribeChildInstanceRegionsResult(const std::string &payload); + ~DescribeChildInstanceRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBECHILDINSTANCEREGIONSRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeGeographicRegionMembershipRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeGeographicRegionMembershipRequest.h new file mode 100644 index 000000000..2c269f1b3 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeGeographicRegionMembershipRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBEGEOGRAPHICREGIONMEMBERSHIPREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEGEOGRAPHICREGIONMEMBERSHIPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeGeographicRegionMembershipRequest : public RpcServiceRequest + { + + public: + DescribeGeographicRegionMembershipRequest(); + ~DescribeGeographicRegionMembershipRequest(); + + 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); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getGeographicRegionId()const; + void setGeographicRegionId(const std::string& geographicRegionId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + std::string geographicRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEGEOGRAPHICREGIONMEMBERSHIPREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeGeographicRegionMembershipResult.h b/cbn/include/alibabacloud/cbn/model/DescribeGeographicRegionMembershipResult.h new file mode 100644 index 000000000..33a1e8f5b --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeGeographicRegionMembershipResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBEGEOGRAPHICREGIONMEMBERSHIPRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEGEOGRAPHICREGIONMEMBERSHIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeGeographicRegionMembershipResult : public ServiceResult + { + public: + struct RegionId + { + std::string regionId; + }; + + + DescribeGeographicRegionMembershipResult(); + explicit DescribeGeographicRegionMembershipResult(const std::string &payload); + ~DescribeGeographicRegionMembershipResult(); + int getTotalCount()const; + std::vector getRegionIds()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector regionIds_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEGEOGRAPHICREGIONMEMBERSHIPRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenRequest.h new file mode 100644 index 000000000..ebcf7b05c --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBEGRANTRULESTOCENREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEGRANTRULESTOCENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeGrantRulesToCenRequest : public RpcServiceRequest + { + + public: + DescribeGrantRulesToCenRequest(); + ~DescribeGrantRulesToCenRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProductType()const; + void setProductType(const std::string& productType); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string cenId_; + std::string ownerAccount_; + long ownerId_; + std::string productType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEGRANTRULESTOCENREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenResult.h b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenResult.h new file mode 100644 index 000000000..aa6737313 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeGrantRulesToCenResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBEGRANTRULESTOCENRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEGRANTRULESTOCENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeGrantRulesToCenResult : public ServiceResult + { + public: + struct GrantRule + { + std::string childInstanceType; + std::string cenId; + long childInstanceOwnerId; + std::string childInstanceId; + std::string childInstanceRegionId; + }; + + + DescribeGrantRulesToCenResult(); + explicit DescribeGrantRulesToCenResult(const std::string &payload); + ~DescribeGrantRulesToCenResult(); + std::vector getGrantRules()const; + + protected: + void parse(const std::string &payload); + private: + std::vector grantRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEGRANTRULESTOCENRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribePublishedRouteEntriesRequest.h b/cbn/include/alibabacloud/cbn/model/DescribePublishedRouteEntriesRequest.h new file mode 100644 index 000000000..e82aefc4d --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribePublishedRouteEntriesRequest.h @@ -0,0 +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_CBN_MODEL_DESCRIBEPUBLISHEDROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEPUBLISHEDROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribePublishedRouteEntriesRequest : public RpcServiceRequest + { + + public: + DescribePublishedRouteEntriesRequest(); + ~DescribePublishedRouteEntriesRequest(); + + std::string getChildInstanceId()const; + void setChildInstanceId(const std::string& childInstanceId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getChildInstanceType()const; + void setChildInstanceType(const std::string& childInstanceType); + std::string getChildInstanceRouteTableId()const; + void setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getChildInstanceRegionId()const; + void setChildInstanceRegionId(const std::string& childInstanceRegionId); + + private: + std::string childInstanceId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string destinationCidrBlock_; + int pageSize_; + std::string childInstanceType_; + std::string childInstanceRouteTableId_; + int pageNumber_; + std::string childInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEPUBLISHEDROUTEENTRIESREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribePublishedRouteEntriesResult.h b/cbn/include/alibabacloud/cbn/model/DescribePublishedRouteEntriesResult.h new file mode 100644 index 000000000..9b9ab934b --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribePublishedRouteEntriesResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBEPUBLISHEDROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEPUBLISHEDROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribePublishedRouteEntriesResult : public ServiceResult + { + public: + struct PublishedRouteEntry + { + struct Conflict + { + std::string status; + std::string instanceId; + std::string destinationCidrBlock; + std::string regionId; + std::string instanceType; + }; + std::string nextHopType; + std::string routeType; + std::string nextHopId; + std::vector conflicts; + std::string destinationCidrBlock; + std::string childInstanceRouteTableId; + bool operationalMode; + std::string publishStatus; + }; + + + DescribePublishedRouteEntriesResult(); + explicit DescribePublishedRouteEntriesResult(const std::string &payload); + ~DescribePublishedRouteEntriesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getPublishedRouteEntries()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector publishedRouteEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEPUBLISHEDROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeRouteConflictRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeRouteConflictRequest.h new file mode 100644 index 000000000..c0523bc34 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeRouteConflictRequest.h @@ -0,0 +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_CBN_MODEL_DESCRIBEROUTECONFLICTREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEROUTECONFLICTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeRouteConflictRequest : public RpcServiceRequest + { + + public: + DescribeRouteConflictRequest(); + ~DescribeRouteConflictRequest(); + + std::string getChildInstanceId()const; + void setChildInstanceId(const std::string& childInstanceId); + 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::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getChildInstanceType()const; + void setChildInstanceType(const std::string& childInstanceType); + std::string getChildInstanceRouteTableId()const; + void setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getChildInstanceRegionId()const; + void setChildInstanceRegionId(const std::string& childInstanceRegionId); + + private: + std::string childInstanceId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string destinationCidrBlock_; + int pageSize_; + long ownerId_; + std::string childInstanceType_; + std::string childInstanceRouteTableId_; + int pageNumber_; + std::string childInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEROUTECONFLICTREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeRouteConflictResult.h b/cbn/include/alibabacloud/cbn/model/DescribeRouteConflictResult.h new file mode 100644 index 000000000..fa8abe69f --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeRouteConflictResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBEROUTECONFLICTRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEROUTECONFLICTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeRouteConflictResult : public ServiceResult + { + public: + struct RouteConflict + { + std::string status; + std::string instanceId; + std::string destinationCidrBlock; + std::string regionId; + std::string instanceType; + }; + + + DescribeRouteConflictResult(); + explicit DescribeRouteConflictResult(const std::string &payload); + ~DescribeRouteConflictResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getRouteConflicts()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector routeConflicts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEROUTECONFLICTRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeRouteServicesInCenRequest.h b/cbn/include/alibabacloud/cbn/model/DescribeRouteServicesInCenRequest.h new file mode 100644 index 000000000..6dbdebe54 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeRouteServicesInCenRequest.h @@ -0,0 +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_CBN_MODEL_DESCRIBEROUTESERVICESINCENREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEROUTESERVICESINCENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeRouteServicesInCenRequest : public RpcServiceRequest + { + + public: + DescribeRouteServicesInCenRequest(); + ~DescribeRouteServicesInCenRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getHost()const; + void setHost(const std::string& host); + std::string getHostRegionId()const; + void setHostRegionId(const std::string& hostRegionId); + std::string getAccessRegionId()const; + void setAccessRegionId(const std::string& accessRegionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + int pageSize_; + std::string host_; + std::string hostRegionId_; + std::string accessRegionId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEROUTESERVICESINCENREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DescribeRouteServicesInCenResult.h b/cbn/include/alibabacloud/cbn/model/DescribeRouteServicesInCenResult.h new file mode 100644 index 000000000..fc355a683 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DescribeRouteServicesInCenResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DESCRIBEROUTESERVICESINCENRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DESCRIBEROUTESERVICESINCENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DescribeRouteServicesInCenResult : public ServiceResult + { + public: + struct RouteServiceEntry + { + std::string status; + std::string hostRegionId; + std::string cenId; + std::string host; + std::string accessRegionId; + std::string updateInterval; + std::vector cidrs; + }; + + + DescribeRouteServicesInCenResult(); + explicit DescribeRouteServicesInCenResult(const std::string &payload); + ~DescribeRouteServicesInCenResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getRouteServiceEntries()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector routeServiceEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DESCRIBEROUTESERVICESINCENRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DetachCenChildInstanceRequest.h b/cbn/include/alibabacloud/cbn/model/DetachCenChildInstanceRequest.h new file mode 100644 index 000000000..4c37a9d1d --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DetachCenChildInstanceRequest.h @@ -0,0 +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_CBN_MODEL_DETACHCENCHILDINSTANCEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DETACHCENCHILDINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DetachCenChildInstanceRequest : public RpcServiceRequest + { + + public: + DetachCenChildInstanceRequest(); + ~DetachCenChildInstanceRequest(); + + std::string getChildInstanceId()const; + void setChildInstanceId(const std::string& childInstanceId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getCenOwnerId()const; + void setCenOwnerId(long cenOwnerId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getChildInstanceType()const; + void setChildInstanceType(const std::string& childInstanceType); + long getChildInstanceOwnerId()const; + void setChildInstanceOwnerId(long childInstanceOwnerId); + std::string getChildInstanceRegionId()const; + void setChildInstanceRegionId(const std::string& childInstanceRegionId); + + private: + std::string childInstanceId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + long cenOwnerId_; + long ownerId_; + std::string childInstanceType_; + long childInstanceOwnerId_; + std::string childInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DETACHCENCHILDINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DetachCenChildInstanceResult.h b/cbn/include/alibabacloud/cbn/model/DetachCenChildInstanceResult.h new file mode 100644 index 000000000..145b15b44 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DetachCenChildInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DETACHCENCHILDINSTANCERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DETACHCENCHILDINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DetachCenChildInstanceResult : public ServiceResult + { + public: + + + DetachCenChildInstanceResult(); + explicit DetachCenChildInstanceResult(const std::string &payload); + ~DetachCenChildInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DETACHCENCHILDINSTANCERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DisableCenVbrHealthCheckRequest.h b/cbn/include/alibabacloud/cbn/model/DisableCenVbrHealthCheckRequest.h new file mode 100644 index 000000000..a13e19559 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DisableCenVbrHealthCheckRequest.h @@ -0,0 +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_CBN_MODEL_DISABLECENVBRHEALTHCHECKREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_DISABLECENVBRHEALTHCHECKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DisableCenVbrHealthCheckRequest : public RpcServiceRequest + { + + public: + DisableCenVbrHealthCheckRequest(); + ~DisableCenVbrHealthCheckRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + long getVbrInstanceOwnerId()const; + void setVbrInstanceOwnerId(long vbrInstanceOwnerId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVbrInstanceId()const; + void setVbrInstanceId(const std::string& vbrInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVbrInstanceRegionId()const; + void setVbrInstanceRegionId(const std::string& vbrInstanceRegionId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + long vbrInstanceOwnerId_; + std::string ownerAccount_; + std::string vbrInstanceId_; + long ownerId_; + std::string vbrInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DISABLECENVBRHEALTHCHECKREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/DisableCenVbrHealthCheckResult.h b/cbn/include/alibabacloud/cbn/model/DisableCenVbrHealthCheckResult.h new file mode 100644 index 000000000..fc0cf56cc --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/DisableCenVbrHealthCheckResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_DISABLECENVBRHEALTHCHECKRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_DISABLECENVBRHEALTHCHECKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT DisableCenVbrHealthCheckResult : public ServiceResult + { + public: + + + DisableCenVbrHealthCheckResult(); + explicit DisableCenVbrHealthCheckResult(const std::string &payload); + ~DisableCenVbrHealthCheckResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_DISABLECENVBRHEALTHCHECKRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/EnableCenVbrHealthCheckRequest.h b/cbn/include/alibabacloud/cbn/model/EnableCenVbrHealthCheckRequest.h new file mode 100644 index 000000000..310f0f376 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/EnableCenVbrHealthCheckRequest.h @@ -0,0 +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_CBN_MODEL_ENABLECENVBRHEALTHCHECKREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_ENABLECENVBRHEALTHCHECKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT EnableCenVbrHealthCheckRequest : public RpcServiceRequest + { + + public: + EnableCenVbrHealthCheckRequest(); + ~EnableCenVbrHealthCheckRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getHealthCheckSourceIp()const; + void setHealthCheckSourceIp(const std::string& healthCheckSourceIp); + long getVbrInstanceOwnerId()const; + void setVbrInstanceOwnerId(long vbrInstanceOwnerId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVbrInstanceId()const; + void setVbrInstanceId(const std::string& vbrInstanceId); + std::string getHealthCheckTargetIp()const; + void setHealthCheckTargetIp(const std::string& healthCheckTargetIp); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVbrInstanceRegionId()const; + void setVbrInstanceRegionId(const std::string& vbrInstanceRegionId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string healthCheckSourceIp_; + long vbrInstanceOwnerId_; + std::string ownerAccount_; + std::string vbrInstanceId_; + std::string healthCheckTargetIp_; + long ownerId_; + std::string vbrInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_ENABLECENVBRHEALTHCHECKREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/EnableCenVbrHealthCheckResult.h b/cbn/include/alibabacloud/cbn/model/EnableCenVbrHealthCheckResult.h new file mode 100644 index 000000000..55f68054c --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/EnableCenVbrHealthCheckResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_ENABLECENVBRHEALTHCHECKRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_ENABLECENVBRHEALTHCHECKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT EnableCenVbrHealthCheckResult : public ServiceResult + { + public: + + + EnableCenVbrHealthCheckResult(); + explicit EnableCenVbrHealthCheckResult(const std::string &payload); + ~EnableCenVbrHealthCheckResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_ENABLECENVBRHEALTHCHECKRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ModifyCenAttributeRequest.h b/cbn/include/alibabacloud/cbn/model/ModifyCenAttributeRequest.h new file mode 100644 index 000000000..21f64ae66 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ModifyCenAttributeRequest.h @@ -0,0 +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_CBN_MODEL_MODIFYCENATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_MODIFYCENATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ModifyCenAttributeRequest : public RpcServiceRequest + { + + public: + ModifyCenAttributeRequest(); + ~ModifyCenAttributeRequest(); + + std::string getProtectionLevel()const; + void setProtectionLevel(const std::string& protectionLevel); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string protectionLevel_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + std::string name_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_MODIFYCENATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ModifyCenAttributeResult.h b/cbn/include/alibabacloud/cbn/model/ModifyCenAttributeResult.h new file mode 100644 index 000000000..17d4f282e --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ModifyCenAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_MODIFYCENATTRIBUTERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_MODIFYCENATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ModifyCenAttributeResult : public ServiceResult + { + public: + + + ModifyCenAttributeResult(); + explicit ModifyCenAttributeResult(const std::string &payload); + ~ModifyCenAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_MODIFYCENATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeRequest.h b/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeRequest.h new file mode 100644 index 000000000..b8f230ec5 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ModifyCenBandwidthPackageAttributeRequest : public RpcServiceRequest + { + + public: + ModifyCenBandwidthPackageAttributeRequest(); + ~ModifyCenBandwidthPackageAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenBandwidthPackageId()const; + void setCenBandwidthPackageId(const std::string& cenBandwidthPackageId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenBandwidthPackageId_; + std::string ownerAccount_; + std::string name_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeResult.h b/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeResult.h new file mode 100644 index 000000000..bd570d7f7 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ModifyCenBandwidthPackageAttributeResult : public ServiceResult + { + public: + + + ModifyCenBandwidthPackageAttributeResult(); + explicit ModifyCenBandwidthPackageAttributeResult(const std::string &payload); + ~ModifyCenBandwidthPackageAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageSpecRequest.h b/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageSpecRequest.h new file mode 100644 index 000000000..8cf28d348 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageSpecRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGESPECREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGESPECREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ModifyCenBandwidthPackageSpecRequest : public RpcServiceRequest + { + + public: + ModifyCenBandwidthPackageSpecRequest(); + ~ModifyCenBandwidthPackageSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getCenBandwidthPackageId()const; + void setCenBandwidthPackageId(const std::string& cenBandwidthPackageId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string cenBandwidthPackageId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGESPECREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageSpecResult.h b/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageSpecResult.h new file mode 100644 index 000000000..ffb5ad8bc --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ModifyCenBandwidthPackageSpecResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGESPECRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ModifyCenBandwidthPackageSpecResult : public ServiceResult + { + public: + + + ModifyCenBandwidthPackageSpecResult(); + explicit ModifyCenBandwidthPackageSpecResult(const std::string &payload); + ~ModifyCenBandwidthPackageSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_MODIFYCENBANDWIDTHPACKAGESPECRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/PublishRouteEntriesRequest.h b/cbn/include/alibabacloud/cbn/model/PublishRouteEntriesRequest.h new file mode 100644 index 000000000..f8a277a88 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/PublishRouteEntriesRequest.h @@ -0,0 +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_CBN_MODEL_PUBLISHROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_PUBLISHROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT PublishRouteEntriesRequest : public RpcServiceRequest + { + + public: + PublishRouteEntriesRequest(); + ~PublishRouteEntriesRequest(); + + std::string getChildInstanceId()const; + void setChildInstanceId(const std::string& childInstanceId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + std::string getChildInstanceType()const; + void setChildInstanceType(const std::string& childInstanceType); + std::string getChildInstanceRouteTableId()const; + void setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId); + std::string getChildInstanceRegionId()const; + void setChildInstanceRegionId(const std::string& childInstanceRegionId); + + private: + std::string childInstanceId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string destinationCidrBlock_; + std::string childInstanceType_; + std::string childInstanceRouteTableId_; + std::string childInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_PUBLISHROUTEENTRIESREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/PublishRouteEntriesResult.h b/cbn/include/alibabacloud/cbn/model/PublishRouteEntriesResult.h new file mode 100644 index 000000000..03c774a73 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/PublishRouteEntriesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_PUBLISHROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_PUBLISHROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT PublishRouteEntriesResult : public ServiceResult + { + public: + + + PublishRouteEntriesResult(); + explicit PublishRouteEntriesResult(const std::string &payload); + ~PublishRouteEntriesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_PUBLISHROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenRequest.h b/cbn/include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenRequest.h new file mode 100644 index 000000000..f337c1ca3 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenRequest.h @@ -0,0 +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_CBN_MODEL_RESOLVEANDROUTESERVICEINCENREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_RESOLVEANDROUTESERVICEINCENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ResolveAndRouteServiceInCenRequest : public RpcServiceRequest + { + + public: + ResolveAndRouteServiceInCenRequest(); + ~ResolveAndRouteServiceInCenRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getHost()const; + void setHost(const std::string& host); + std::string getHostRegionId()const; + void setHostRegionId(const std::string& hostRegionId); + std::string getAccessRegionId()const; + void setAccessRegionId(const std::string& accessRegionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getUpdateInterval()const; + void setUpdateInterval(long updateInterval); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string cenId_; + std::string ownerAccount_; + std::string host_; + std::string hostRegionId_; + std::string accessRegionId_; + long ownerId_; + long updateInterval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_RESOLVEANDROUTESERVICEINCENREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenResult.h b/cbn/include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenResult.h new file mode 100644 index 000000000..7cced08e7 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/ResolveAndRouteServiceInCenResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_RESOLVEANDROUTESERVICEINCENRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_RESOLVEANDROUTESERVICEINCENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT ResolveAndRouteServiceInCenResult : public ServiceResult + { + public: + + + ResolveAndRouteServiceInCenResult(); + explicit ResolveAndRouteServiceInCenResult(const std::string &payload); + ~ResolveAndRouteServiceInCenResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_RESOLVEANDROUTESERVICEINCENRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcRequest.h b/cbn/include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcRequest.h new file mode 100644 index 000000000..ce26f070e --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcRequest.h @@ -0,0 +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_CBN_MODEL_ROUTEPRIVATEZONEINCENTOVPCREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_ROUTEPRIVATEZONEINCENTOVPCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT RoutePrivateZoneInCenToVpcRequest : public RpcServiceRequest + { + + public: + RoutePrivateZoneInCenToVpcRequest(); + ~RoutePrivateZoneInCenToVpcRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getHostRegionId()const; + void setHostRegionId(const std::string& hostRegionId); + std::string getAccessRegionId()const; + void setAccessRegionId(const std::string& accessRegionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getHostVpcId()const; + void setHostVpcId(const std::string& hostVpcId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + std::string hostRegionId_; + std::string accessRegionId_; + long ownerId_; + std::string hostVpcId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_ROUTEPRIVATEZONEINCENTOVPCREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcResult.h b/cbn/include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcResult.h new file mode 100644 index 000000000..ddac29cf5 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/RoutePrivateZoneInCenToVpcResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_ROUTEPRIVATEZONEINCENTOVPCRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_ROUTEPRIVATEZONEINCENTOVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT RoutePrivateZoneInCenToVpcResult : public ServiceResult + { + public: + + + RoutePrivateZoneInCenToVpcResult(); + explicit RoutePrivateZoneInCenToVpcResult(const std::string &payload); + ~RoutePrivateZoneInCenToVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_ROUTEPRIVATEZONEINCENTOVPCRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitRequest.h b/cbn/include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitRequest.h new file mode 100644 index 000000000..03ba445ed --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitRequest.h @@ -0,0 +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_CBN_MODEL_SETCENINTERREGIONBANDWIDTHLIMITREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_SETCENINTERREGIONBANDWIDTHLIMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT SetCenInterRegionBandwidthLimitRequest : public RpcServiceRequest + { + + public: + SetCenInterRegionBandwidthLimitRequest(); + ~SetCenInterRegionBandwidthLimitRequest(); + + std::string getLocalRegionId()const; + void setLocalRegionId(const std::string& localRegionId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getOppositeRegionId()const; + void setOppositeRegionId(const std::string& oppositeRegionId); + long getBandwidthLimit()const; + void setBandwidthLimit(long bandwidthLimit); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string localRegionId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + std::string oppositeRegionId_; + long bandwidthLimit_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_SETCENINTERREGIONBANDWIDTHLIMITREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitResult.h b/cbn/include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitResult.h new file mode 100644 index 000000000..cf6e336a2 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/SetCenInterRegionBandwidthLimitResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_SETCENINTERREGIONBANDWIDTHLIMITRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_SETCENINTERREGIONBANDWIDTHLIMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT SetCenInterRegionBandwidthLimitResult : public ServiceResult + { + public: + + + SetCenInterRegionBandwidthLimitResult(); + explicit SetCenInterRegionBandwidthLimitResult(const std::string &payload); + ~SetCenInterRegionBandwidthLimitResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_SETCENINTERREGIONBANDWIDTHLIMITRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageRequest.h b/cbn/include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageRequest.h new file mode 100644 index 000000000..44a453663 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_UNASSOCIATECENBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_UNASSOCIATECENBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT UnassociateCenBandwidthPackageRequest : public RpcServiceRequest + { + + public: + UnassociateCenBandwidthPackageRequest(); + ~UnassociateCenBandwidthPackageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getCenBandwidthPackageId()const; + void setCenBandwidthPackageId(const std::string& cenBandwidthPackageId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string cenBandwidthPackageId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_UNASSOCIATECENBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageResult.h b/cbn/include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageResult.h new file mode 100644 index 000000000..f644a3872 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/UnassociateCenBandwidthPackageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_UNASSOCIATECENBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_UNASSOCIATECENBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT UnassociateCenBandwidthPackageResult : public ServiceResult + { + public: + + + UnassociateCenBandwidthPackageResult(); + explicit UnassociateCenBandwidthPackageResult(const std::string &payload); + ~UnassociateCenBandwidthPackageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_UNASSOCIATECENBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcRequest.h b/cbn/include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcRequest.h new file mode 100644 index 000000000..11a9edcea --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_UNROUTEPRIVATEZONEINCENTOVPCREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_UNROUTEPRIVATEZONEINCENTOVPCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT UnroutePrivateZoneInCenToVpcRequest : public RpcServiceRequest + { + + public: + UnroutePrivateZoneInCenToVpcRequest(); + ~UnroutePrivateZoneInCenToVpcRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAccessRegionId()const; + void setAccessRegionId(const std::string& accessRegionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string ownerAccount_; + std::string accessRegionId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_UNROUTEPRIVATEZONEINCENTOVPCREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcResult.h b/cbn/include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcResult.h new file mode 100644 index 000000000..be374ec66 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/UnroutePrivateZoneInCenToVpcResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_UNROUTEPRIVATEZONEINCENTOVPCRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_UNROUTEPRIVATEZONEINCENTOVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT UnroutePrivateZoneInCenToVpcResult : public ServiceResult + { + public: + + + UnroutePrivateZoneInCenToVpcResult(); + explicit UnroutePrivateZoneInCenToVpcResult(const std::string &payload); + ~UnroutePrivateZoneInCenToVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_UNROUTEPRIVATEZONEINCENTOVPCRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/UntagResourcesRequest.h b/cbn/include/alibabacloud/cbn/model/UntagResourcesRequest.h new file mode 100644 index 000000000..8d04a8374 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/UntagResourcesRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT UntagResourcesRequest : public RpcServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getTagOwnerUid()const; + void setTagOwnerUid(long tagOwnerUid); + std::string getTagOwnerBid()const; + void setTagOwnerBid(const std::string& tagOwnerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::vector getTagKey()const; + void setTagKey(const std::vector& tagKey); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + long resourceOwnerId_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long tagOwnerUid_; + std::string tagOwnerBid_; + long ownerId_; + std::vector tagKey_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/UntagResourcesResult.h b/cbn/include/alibabacloud/cbn/model/UntagResourcesResult.h new file mode 100644 index 000000000..646d0f1d2 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/UntagResourcesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/WithdrawPublishedRouteEntriesRequest.h b/cbn/include/alibabacloud/cbn/model/WithdrawPublishedRouteEntriesRequest.h new file mode 100644 index 000000000..6b54537ad --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/WithdrawPublishedRouteEntriesRequest.h @@ -0,0 +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_CBN_MODEL_WITHDRAWPUBLISHEDROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_CBN_MODEL_WITHDRAWPUBLISHEDROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT WithdrawPublishedRouteEntriesRequest : public RpcServiceRequest + { + + public: + WithdrawPublishedRouteEntriesRequest(); + ~WithdrawPublishedRouteEntriesRequest(); + + std::string getChildInstanceId()const; + void setChildInstanceId(const std::string& childInstanceId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCenId()const; + void setCenId(const std::string& cenId); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + std::string getChildInstanceType()const; + void setChildInstanceType(const std::string& childInstanceType); + std::string getChildInstanceRouteTableId()const; + void setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId); + std::string getChildInstanceRegionId()const; + void setChildInstanceRegionId(const std::string& childInstanceRegionId); + + private: + std::string childInstanceId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string cenId_; + std::string destinationCidrBlock_; + std::string childInstanceType_; + std::string childInstanceRouteTableId_; + std::string childInstanceRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_WITHDRAWPUBLISHEDROUTEENTRIESREQUEST_H_ \ No newline at end of file diff --git a/cbn/include/alibabacloud/cbn/model/WithdrawPublishedRouteEntriesResult.h b/cbn/include/alibabacloud/cbn/model/WithdrawPublishedRouteEntriesResult.h new file mode 100644 index 000000000..0bad13267 --- /dev/null +++ b/cbn/include/alibabacloud/cbn/model/WithdrawPublishedRouteEntriesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CBN_MODEL_WITHDRAWPUBLISHEDROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_CBN_MODEL_WITHDRAWPUBLISHEDROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cbn + { + namespace Model + { + class ALIBABACLOUD_CBN_EXPORT WithdrawPublishedRouteEntriesResult : public ServiceResult + { + public: + + + WithdrawPublishedRouteEntriesResult(); + explicit WithdrawPublishedRouteEntriesResult(const std::string &payload); + ~WithdrawPublishedRouteEntriesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CBN_MODEL_WITHDRAWPUBLISHEDROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/cbn/src/CbnClient.cc b/cbn/src/CbnClient.cc new file mode 100644 index 000000000..8fa475531 --- /dev/null +++ b/cbn/src/CbnClient.cc @@ -0,0 +1,1385 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +namespace +{ + const std::string SERVICE_NAME = "Cbn"; +} + +CbnClient::CbnClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cbn"); +} + +CbnClient::CbnClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cbn"); +} + +CbnClient::CbnClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cbn"); +} + +CbnClient::~CbnClient() +{} + +CbnClient::ResolveAndRouteServiceInCenOutcome CbnClient::resolveAndRouteServiceInCen(const ResolveAndRouteServiceInCenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResolveAndRouteServiceInCenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResolveAndRouteServiceInCenOutcome(ResolveAndRouteServiceInCenResult(outcome.result())); + else + return ResolveAndRouteServiceInCenOutcome(outcome.error()); +} + +void CbnClient::resolveAndRouteServiceInCenAsync(const ResolveAndRouteServiceInCenRequest& request, const ResolveAndRouteServiceInCenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resolveAndRouteServiceInCen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::ResolveAndRouteServiceInCenOutcomeCallable CbnClient::resolveAndRouteServiceInCenCallable(const ResolveAndRouteServiceInCenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resolveAndRouteServiceInCen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::CreateCenBandwidthPackageOutcome CbnClient::createCenBandwidthPackage(const CreateCenBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCenBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCenBandwidthPackageOutcome(CreateCenBandwidthPackageResult(outcome.result())); + else + return CreateCenBandwidthPackageOutcome(outcome.error()); +} + +void CbnClient::createCenBandwidthPackageAsync(const CreateCenBandwidthPackageRequest& request, const CreateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCenBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::CreateCenBandwidthPackageOutcomeCallable CbnClient::createCenBandwidthPackageCallable(const CreateCenBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCenBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::WithdrawPublishedRouteEntriesOutcome CbnClient::withdrawPublishedRouteEntries(const WithdrawPublishedRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return WithdrawPublishedRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return WithdrawPublishedRouteEntriesOutcome(WithdrawPublishedRouteEntriesResult(outcome.result())); + else + return WithdrawPublishedRouteEntriesOutcome(outcome.error()); +} + +void CbnClient::withdrawPublishedRouteEntriesAsync(const WithdrawPublishedRouteEntriesRequest& request, const WithdrawPublishedRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, withdrawPublishedRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::WithdrawPublishedRouteEntriesOutcomeCallable CbnClient::withdrawPublishedRouteEntriesCallable(const WithdrawPublishedRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->withdrawPublishedRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribePublishedRouteEntriesOutcome CbnClient::describePublishedRouteEntries(const DescribePublishedRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePublishedRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePublishedRouteEntriesOutcome(DescribePublishedRouteEntriesResult(outcome.result())); + else + return DescribePublishedRouteEntriesOutcome(outcome.error()); +} + +void CbnClient::describePublishedRouteEntriesAsync(const DescribePublishedRouteEntriesRequest& request, const DescribePublishedRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePublishedRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribePublishedRouteEntriesOutcomeCallable CbnClient::describePublishedRouteEntriesCallable(const DescribePublishedRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePublishedRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeGrantRulesToCenOutcome CbnClient::describeGrantRulesToCen(const DescribeGrantRulesToCenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGrantRulesToCenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGrantRulesToCenOutcome(DescribeGrantRulesToCenResult(outcome.result())); + else + return DescribeGrantRulesToCenOutcome(outcome.error()); +} + +void CbnClient::describeGrantRulesToCenAsync(const DescribeGrantRulesToCenRequest& request, const DescribeGrantRulesToCenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGrantRulesToCen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeGrantRulesToCenOutcomeCallable CbnClient::describeGrantRulesToCenCallable(const DescribeGrantRulesToCenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGrantRulesToCen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeCenPrivateZoneRoutesOutcome CbnClient::describeCenPrivateZoneRoutes(const DescribeCenPrivateZoneRoutesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCenPrivateZoneRoutesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCenPrivateZoneRoutesOutcome(DescribeCenPrivateZoneRoutesResult(outcome.result())); + else + return DescribeCenPrivateZoneRoutesOutcome(outcome.error()); +} + +void CbnClient::describeCenPrivateZoneRoutesAsync(const DescribeCenPrivateZoneRoutesRequest& request, const DescribeCenPrivateZoneRoutesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCenPrivateZoneRoutes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCenPrivateZoneRoutesOutcomeCallable CbnClient::describeCenPrivateZoneRoutesCallable(const DescribeCenPrivateZoneRoutesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCenPrivateZoneRoutes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::ModifyCenBandwidthPackageAttributeOutcome CbnClient::modifyCenBandwidthPackageAttribute(const ModifyCenBandwidthPackageAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCenBandwidthPackageAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCenBandwidthPackageAttributeOutcome(ModifyCenBandwidthPackageAttributeResult(outcome.result())); + else + return ModifyCenBandwidthPackageAttributeOutcome(outcome.error()); +} + +void CbnClient::modifyCenBandwidthPackageAttributeAsync(const ModifyCenBandwidthPackageAttributeRequest& request, const ModifyCenBandwidthPackageAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCenBandwidthPackageAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::ModifyCenBandwidthPackageAttributeOutcomeCallable CbnClient::modifyCenBandwidthPackageAttributeCallable(const ModifyCenBandwidthPackageAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCenBandwidthPackageAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::UntagResourcesOutcome CbnClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void CbnClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::UntagResourcesOutcomeCallable CbnClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DisableCenVbrHealthCheckOutcome CbnClient::disableCenVbrHealthCheck(const DisableCenVbrHealthCheckRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableCenVbrHealthCheckOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableCenVbrHealthCheckOutcome(DisableCenVbrHealthCheckResult(outcome.result())); + else + return DisableCenVbrHealthCheckOutcome(outcome.error()); +} + +void CbnClient::disableCenVbrHealthCheckAsync(const DisableCenVbrHealthCheckRequest& request, const DisableCenVbrHealthCheckAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableCenVbrHealthCheck(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DisableCenVbrHealthCheckOutcomeCallable CbnClient::disableCenVbrHealthCheckCallable(const DisableCenVbrHealthCheckRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableCenVbrHealthCheck(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::UnroutePrivateZoneInCenToVpcOutcome CbnClient::unroutePrivateZoneInCenToVpc(const UnroutePrivateZoneInCenToVpcRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnroutePrivateZoneInCenToVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnroutePrivateZoneInCenToVpcOutcome(UnroutePrivateZoneInCenToVpcResult(outcome.result())); + else + return UnroutePrivateZoneInCenToVpcOutcome(outcome.error()); +} + +void CbnClient::unroutePrivateZoneInCenToVpcAsync(const UnroutePrivateZoneInCenToVpcRequest& request, const UnroutePrivateZoneInCenToVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unroutePrivateZoneInCenToVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::UnroutePrivateZoneInCenToVpcOutcomeCallable CbnClient::unroutePrivateZoneInCenToVpcCallable(const UnroutePrivateZoneInCenToVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unroutePrivateZoneInCenToVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::CreateCenOutcome CbnClient::createCen(const CreateCenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCenOutcome(CreateCenResult(outcome.result())); + else + return CreateCenOutcome(outcome.error()); +} + +void CbnClient::createCenAsync(const CreateCenRequest& request, const CreateCenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::CreateCenOutcomeCallable CbnClient::createCenCallable(const CreateCenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeCenVbrHealthCheckOutcome CbnClient::describeCenVbrHealthCheck(const DescribeCenVbrHealthCheckRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCenVbrHealthCheckOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCenVbrHealthCheckOutcome(DescribeCenVbrHealthCheckResult(outcome.result())); + else + return DescribeCenVbrHealthCheckOutcome(outcome.error()); +} + +void CbnClient::describeCenVbrHealthCheckAsync(const DescribeCenVbrHealthCheckRequest& request, const DescribeCenVbrHealthCheckAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCenVbrHealthCheck(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCenVbrHealthCheckOutcomeCallable CbnClient::describeCenVbrHealthCheckCallable(const DescribeCenVbrHealthCheckRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCenVbrHealthCheck(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::RoutePrivateZoneInCenToVpcOutcome CbnClient::routePrivateZoneInCenToVpc(const RoutePrivateZoneInCenToVpcRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RoutePrivateZoneInCenToVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RoutePrivateZoneInCenToVpcOutcome(RoutePrivateZoneInCenToVpcResult(outcome.result())); + else + return RoutePrivateZoneInCenToVpcOutcome(outcome.error()); +} + +void CbnClient::routePrivateZoneInCenToVpcAsync(const RoutePrivateZoneInCenToVpcRequest& request, const RoutePrivateZoneInCenToVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, routePrivateZoneInCenToVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::RoutePrivateZoneInCenToVpcOutcomeCallable CbnClient::routePrivateZoneInCenToVpcCallable(const RoutePrivateZoneInCenToVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->routePrivateZoneInCenToVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeCenGeographicSpansOutcome CbnClient::describeCenGeographicSpans(const DescribeCenGeographicSpansRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCenGeographicSpansOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCenGeographicSpansOutcome(DescribeCenGeographicSpansResult(outcome.result())); + else + return DescribeCenGeographicSpansOutcome(outcome.error()); +} + +void CbnClient::describeCenGeographicSpansAsync(const DescribeCenGeographicSpansRequest& request, const DescribeCenGeographicSpansAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCenGeographicSpans(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCenGeographicSpansOutcomeCallable CbnClient::describeCenGeographicSpansCallable(const DescribeCenGeographicSpansRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCenGeographicSpans(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeCensOutcome CbnClient::describeCens(const DescribeCensRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCensOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCensOutcome(DescribeCensResult(outcome.result())); + else + return DescribeCensOutcome(outcome.error()); +} + +void CbnClient::describeCensAsync(const DescribeCensRequest& request, const DescribeCensAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCens(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCensOutcomeCallable CbnClient::describeCensCallable(const DescribeCensRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCens(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::EnableCenVbrHealthCheckOutcome CbnClient::enableCenVbrHealthCheck(const EnableCenVbrHealthCheckRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableCenVbrHealthCheckOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableCenVbrHealthCheckOutcome(EnableCenVbrHealthCheckResult(outcome.result())); + else + return EnableCenVbrHealthCheckOutcome(outcome.error()); +} + +void CbnClient::enableCenVbrHealthCheckAsync(const EnableCenVbrHealthCheckRequest& request, const EnableCenVbrHealthCheckAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableCenVbrHealthCheck(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::EnableCenVbrHealthCheckOutcomeCallable CbnClient::enableCenVbrHealthCheckCallable(const EnableCenVbrHealthCheckRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableCenVbrHealthCheck(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DeleteCenOutcome CbnClient::deleteCen(const DeleteCenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCenOutcome(DeleteCenResult(outcome.result())); + else + return DeleteCenOutcome(outcome.error()); +} + +void CbnClient::deleteCenAsync(const DeleteCenRequest& request, const DeleteCenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DeleteCenOutcomeCallable CbnClient::deleteCenCallable(const DeleteCenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeCenInterRegionBandwidthLimitsOutcome CbnClient::describeCenInterRegionBandwidthLimits(const DescribeCenInterRegionBandwidthLimitsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCenInterRegionBandwidthLimitsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCenInterRegionBandwidthLimitsOutcome(DescribeCenInterRegionBandwidthLimitsResult(outcome.result())); + else + return DescribeCenInterRegionBandwidthLimitsOutcome(outcome.error()); +} + +void CbnClient::describeCenInterRegionBandwidthLimitsAsync(const DescribeCenInterRegionBandwidthLimitsRequest& request, const DescribeCenInterRegionBandwidthLimitsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCenInterRegionBandwidthLimits(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCenInterRegionBandwidthLimitsOutcomeCallable CbnClient::describeCenInterRegionBandwidthLimitsCallable(const DescribeCenInterRegionBandwidthLimitsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCenInterRegionBandwidthLimits(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::UnassociateCenBandwidthPackageOutcome CbnClient::unassociateCenBandwidthPackage(const UnassociateCenBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnassociateCenBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnassociateCenBandwidthPackageOutcome(UnassociateCenBandwidthPackageResult(outcome.result())); + else + return UnassociateCenBandwidthPackageOutcome(outcome.error()); +} + +void CbnClient::unassociateCenBandwidthPackageAsync(const UnassociateCenBandwidthPackageRequest& request, const UnassociateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unassociateCenBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::UnassociateCenBandwidthPackageOutcomeCallable CbnClient::unassociateCenBandwidthPackageCallable(const UnassociateCenBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unassociateCenBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeChildInstanceRegionsOutcome CbnClient::describeChildInstanceRegions(const DescribeChildInstanceRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeChildInstanceRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeChildInstanceRegionsOutcome(DescribeChildInstanceRegionsResult(outcome.result())); + else + return DescribeChildInstanceRegionsOutcome(outcome.error()); +} + +void CbnClient::describeChildInstanceRegionsAsync(const DescribeChildInstanceRegionsRequest& request, const DescribeChildInstanceRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeChildInstanceRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeChildInstanceRegionsOutcomeCallable CbnClient::describeChildInstanceRegionsCallable(const DescribeChildInstanceRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeChildInstanceRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DetachCenChildInstanceOutcome CbnClient::detachCenChildInstance(const DetachCenChildInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachCenChildInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachCenChildInstanceOutcome(DetachCenChildInstanceResult(outcome.result())); + else + return DetachCenChildInstanceOutcome(outcome.error()); +} + +void CbnClient::detachCenChildInstanceAsync(const DetachCenChildInstanceRequest& request, const DetachCenChildInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachCenChildInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DetachCenChildInstanceOutcomeCallable CbnClient::detachCenChildInstanceCallable(const DetachCenChildInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachCenChildInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::AttachCenChildInstanceOutcome CbnClient::attachCenChildInstance(const AttachCenChildInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachCenChildInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachCenChildInstanceOutcome(AttachCenChildInstanceResult(outcome.result())); + else + return AttachCenChildInstanceOutcome(outcome.error()); +} + +void CbnClient::attachCenChildInstanceAsync(const AttachCenChildInstanceRequest& request, const AttachCenChildInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachCenChildInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::AttachCenChildInstanceOutcomeCallable CbnClient::attachCenChildInstanceCallable(const AttachCenChildInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachCenChildInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::SetCenInterRegionBandwidthLimitOutcome CbnClient::setCenInterRegionBandwidthLimit(const SetCenInterRegionBandwidthLimitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetCenInterRegionBandwidthLimitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetCenInterRegionBandwidthLimitOutcome(SetCenInterRegionBandwidthLimitResult(outcome.result())); + else + return SetCenInterRegionBandwidthLimitOutcome(outcome.error()); +} + +void CbnClient::setCenInterRegionBandwidthLimitAsync(const SetCenInterRegionBandwidthLimitRequest& request, const SetCenInterRegionBandwidthLimitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setCenInterRegionBandwidthLimit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::SetCenInterRegionBandwidthLimitOutcomeCallable CbnClient::setCenInterRegionBandwidthLimitCallable(const SetCenInterRegionBandwidthLimitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setCenInterRegionBandwidthLimit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DeleteCenBandwidthPackageOutcome CbnClient::deleteCenBandwidthPackage(const DeleteCenBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCenBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCenBandwidthPackageOutcome(DeleteCenBandwidthPackageResult(outcome.result())); + else + return DeleteCenBandwidthPackageOutcome(outcome.error()); +} + +void CbnClient::deleteCenBandwidthPackageAsync(const DeleteCenBandwidthPackageRequest& request, const DeleteCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCenBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DeleteCenBandwidthPackageOutcomeCallable CbnClient::deleteCenBandwidthPackageCallable(const DeleteCenBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCenBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::ModifyCenAttributeOutcome CbnClient::modifyCenAttribute(const ModifyCenAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCenAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCenAttributeOutcome(ModifyCenAttributeResult(outcome.result())); + else + return ModifyCenAttributeOutcome(outcome.error()); +} + +void CbnClient::modifyCenAttributeAsync(const ModifyCenAttributeRequest& request, const ModifyCenAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCenAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::ModifyCenAttributeOutcomeCallable CbnClient::modifyCenAttributeCallable(const ModifyCenAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCenAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeGeographicRegionMembershipOutcome CbnClient::describeGeographicRegionMembership(const DescribeGeographicRegionMembershipRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGeographicRegionMembershipOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGeographicRegionMembershipOutcome(DescribeGeographicRegionMembershipResult(outcome.result())); + else + return DescribeGeographicRegionMembershipOutcome(outcome.error()); +} + +void CbnClient::describeGeographicRegionMembershipAsync(const DescribeGeographicRegionMembershipRequest& request, const DescribeGeographicRegionMembershipAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGeographicRegionMembership(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeGeographicRegionMembershipOutcomeCallable CbnClient::describeGeographicRegionMembershipCallable(const DescribeGeographicRegionMembershipRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGeographicRegionMembership(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeRouteServicesInCenOutcome CbnClient::describeRouteServicesInCen(const DescribeRouteServicesInCenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRouteServicesInCenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRouteServicesInCenOutcome(DescribeRouteServicesInCenResult(outcome.result())); + else + return DescribeRouteServicesInCenOutcome(outcome.error()); +} + +void CbnClient::describeRouteServicesInCenAsync(const DescribeRouteServicesInCenRequest& request, const DescribeRouteServicesInCenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRouteServicesInCen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeRouteServicesInCenOutcomeCallable CbnClient::describeRouteServicesInCenCallable(const DescribeRouteServicesInCenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRouteServicesInCen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeRouteConflictOutcome CbnClient::describeRouteConflict(const DescribeRouteConflictRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRouteConflictOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRouteConflictOutcome(DescribeRouteConflictResult(outcome.result())); + else + return DescribeRouteConflictOutcome(outcome.error()); +} + +void CbnClient::describeRouteConflictAsync(const DescribeRouteConflictRequest& request, const DescribeRouteConflictAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRouteConflict(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeRouteConflictOutcomeCallable CbnClient::describeRouteConflictCallable(const DescribeRouteConflictRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRouteConflict(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeCenRegionDomainRouteEntriesOutcome CbnClient::describeCenRegionDomainRouteEntries(const DescribeCenRegionDomainRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCenRegionDomainRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCenRegionDomainRouteEntriesOutcome(DescribeCenRegionDomainRouteEntriesResult(outcome.result())); + else + return DescribeCenRegionDomainRouteEntriesOutcome(outcome.error()); +} + +void CbnClient::describeCenRegionDomainRouteEntriesAsync(const DescribeCenRegionDomainRouteEntriesRequest& request, const DescribeCenRegionDomainRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCenRegionDomainRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCenRegionDomainRouteEntriesOutcomeCallable CbnClient::describeCenRegionDomainRouteEntriesCallable(const DescribeCenRegionDomainRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCenRegionDomainRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DeleteRouteServiceInCenOutcome CbnClient::deleteRouteServiceInCen(const DeleteRouteServiceInCenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRouteServiceInCenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRouteServiceInCenOutcome(DeleteRouteServiceInCenResult(outcome.result())); + else + return DeleteRouteServiceInCenOutcome(outcome.error()); +} + +void CbnClient::deleteRouteServiceInCenAsync(const DeleteRouteServiceInCenRequest& request, const DeleteRouteServiceInCenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRouteServiceInCen(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DeleteRouteServiceInCenOutcomeCallable CbnClient::deleteRouteServiceInCenCallable(const DeleteRouteServiceInCenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRouteServiceInCen(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeCenAttachedChildInstancesOutcome CbnClient::describeCenAttachedChildInstances(const DescribeCenAttachedChildInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCenAttachedChildInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCenAttachedChildInstancesOutcome(DescribeCenAttachedChildInstancesResult(outcome.result())); + else + return DescribeCenAttachedChildInstancesOutcome(outcome.error()); +} + +void CbnClient::describeCenAttachedChildInstancesAsync(const DescribeCenAttachedChildInstancesRequest& request, const DescribeCenAttachedChildInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCenAttachedChildInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCenAttachedChildInstancesOutcomeCallable CbnClient::describeCenAttachedChildInstancesCallable(const DescribeCenAttachedChildInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCenAttachedChildInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeCenAttachedChildInstanceAttributeOutcome CbnClient::describeCenAttachedChildInstanceAttribute(const DescribeCenAttachedChildInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCenAttachedChildInstanceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCenAttachedChildInstanceAttributeOutcome(DescribeCenAttachedChildInstanceAttributeResult(outcome.result())); + else + return DescribeCenAttachedChildInstanceAttributeOutcome(outcome.error()); +} + +void CbnClient::describeCenAttachedChildInstanceAttributeAsync(const DescribeCenAttachedChildInstanceAttributeRequest& request, const DescribeCenAttachedChildInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCenAttachedChildInstanceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCenAttachedChildInstanceAttributeOutcomeCallable CbnClient::describeCenAttachedChildInstanceAttributeCallable(const DescribeCenAttachedChildInstanceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCenAttachedChildInstanceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::ModifyCenBandwidthPackageSpecOutcome CbnClient::modifyCenBandwidthPackageSpec(const ModifyCenBandwidthPackageSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCenBandwidthPackageSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCenBandwidthPackageSpecOutcome(ModifyCenBandwidthPackageSpecResult(outcome.result())); + else + return ModifyCenBandwidthPackageSpecOutcome(outcome.error()); +} + +void CbnClient::modifyCenBandwidthPackageSpecAsync(const ModifyCenBandwidthPackageSpecRequest& request, const ModifyCenBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCenBandwidthPackageSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::ModifyCenBandwidthPackageSpecOutcomeCallable CbnClient::modifyCenBandwidthPackageSpecCallable(const ModifyCenBandwidthPackageSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCenBandwidthPackageSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeCenBandwidthPackagesOutcome CbnClient::describeCenBandwidthPackages(const DescribeCenBandwidthPackagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCenBandwidthPackagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCenBandwidthPackagesOutcome(DescribeCenBandwidthPackagesResult(outcome.result())); + else + return DescribeCenBandwidthPackagesOutcome(outcome.error()); +} + +void CbnClient::describeCenBandwidthPackagesAsync(const DescribeCenBandwidthPackagesRequest& request, const DescribeCenBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCenBandwidthPackages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCenBandwidthPackagesOutcomeCallable CbnClient::describeCenBandwidthPackagesCallable(const DescribeCenBandwidthPackagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCenBandwidthPackages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::DescribeCenGeographicSpanRemainingBandwidthOutcome CbnClient::describeCenGeographicSpanRemainingBandwidth(const DescribeCenGeographicSpanRemainingBandwidthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCenGeographicSpanRemainingBandwidthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCenGeographicSpanRemainingBandwidthOutcome(DescribeCenGeographicSpanRemainingBandwidthResult(outcome.result())); + else + return DescribeCenGeographicSpanRemainingBandwidthOutcome(outcome.error()); +} + +void CbnClient::describeCenGeographicSpanRemainingBandwidthAsync(const DescribeCenGeographicSpanRemainingBandwidthRequest& request, const DescribeCenGeographicSpanRemainingBandwidthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCenGeographicSpanRemainingBandwidth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::DescribeCenGeographicSpanRemainingBandwidthOutcomeCallable CbnClient::describeCenGeographicSpanRemainingBandwidthCallable(const DescribeCenGeographicSpanRemainingBandwidthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCenGeographicSpanRemainingBandwidth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::PublishRouteEntriesOutcome CbnClient::publishRouteEntries(const PublishRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishRouteEntriesOutcome(PublishRouteEntriesResult(outcome.result())); + else + return PublishRouteEntriesOutcome(outcome.error()); +} + +void CbnClient::publishRouteEntriesAsync(const PublishRouteEntriesRequest& request, const PublishRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::PublishRouteEntriesOutcomeCallable CbnClient::publishRouteEntriesCallable(const PublishRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CbnClient::AssociateCenBandwidthPackageOutcome CbnClient::associateCenBandwidthPackage(const AssociateCenBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateCenBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateCenBandwidthPackageOutcome(AssociateCenBandwidthPackageResult(outcome.result())); + else + return AssociateCenBandwidthPackageOutcome(outcome.error()); +} + +void CbnClient::associateCenBandwidthPackageAsync(const AssociateCenBandwidthPackageRequest& request, const AssociateCenBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateCenBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CbnClient::AssociateCenBandwidthPackageOutcomeCallable CbnClient::associateCenBandwidthPackageCallable(const AssociateCenBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateCenBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/cbn/src/model/AssociateCenBandwidthPackageRequest.cc b/cbn/src/model/AssociateCenBandwidthPackageRequest.cc new file mode 100644 index 000000000..d04a81e74 --- /dev/null +++ b/cbn/src/model/AssociateCenBandwidthPackageRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::AssociateCenBandwidthPackageRequest; + +AssociateCenBandwidthPackageRequest::AssociateCenBandwidthPackageRequest() : + RpcServiceRequest("cbn", "2017-09-12", "AssociateCenBandwidthPackage") +{} + +AssociateCenBandwidthPackageRequest::~AssociateCenBandwidthPackageRequest() +{} + +long AssociateCenBandwidthPackageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AssociateCenBandwidthPackageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssociateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AssociateCenBandwidthPackageRequest::getCenId()const +{ + return cenId_; +} + +void AssociateCenBandwidthPackageRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string AssociateCenBandwidthPackageRequest::getCenBandwidthPackageId()const +{ + return cenBandwidthPackageId_; +} + +void AssociateCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId) +{ + cenBandwidthPackageId_ = cenBandwidthPackageId; + setParameter("CenBandwidthPackageId", cenBandwidthPackageId); +} + +std::string AssociateCenBandwidthPackageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AssociateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AssociateCenBandwidthPackageRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssociateCenBandwidthPackageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/AssociateCenBandwidthPackageResult.cc b/cbn/src/model/AssociateCenBandwidthPackageResult.cc new file mode 100644 index 000000000..df6d412ee --- /dev/null +++ b/cbn/src/model/AssociateCenBandwidthPackageResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +AssociateCenBandwidthPackageResult::AssociateCenBandwidthPackageResult() : + ServiceResult() +{} + +AssociateCenBandwidthPackageResult::AssociateCenBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateCenBandwidthPackageResult::~AssociateCenBandwidthPackageResult() +{} + +void AssociateCenBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/AttachCenChildInstanceRequest.cc b/cbn/src/model/AttachCenChildInstanceRequest.cc new file mode 100644 index 000000000..ea9d11b9f --- /dev/null +++ b/cbn/src/model/AttachCenChildInstanceRequest.cc @@ -0,0 +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::Cbn::Model::AttachCenChildInstanceRequest; + +AttachCenChildInstanceRequest::AttachCenChildInstanceRequest() : + RpcServiceRequest("cbn", "2017-09-12", "AttachCenChildInstance") +{} + +AttachCenChildInstanceRequest::~AttachCenChildInstanceRequest() +{} + +std::string AttachCenChildInstanceRequest::getChildInstanceId()const +{ + return childInstanceId_; +} + +void AttachCenChildInstanceRequest::setChildInstanceId(const std::string& childInstanceId) +{ + childInstanceId_ = childInstanceId; + setParameter("ChildInstanceId", childInstanceId); +} + +long AttachCenChildInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AttachCenChildInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AttachCenChildInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AttachCenChildInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AttachCenChildInstanceRequest::getCenId()const +{ + return cenId_; +} + +void AttachCenChildInstanceRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string AttachCenChildInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AttachCenChildInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AttachCenChildInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void AttachCenChildInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AttachCenChildInstanceRequest::getChildInstanceType()const +{ + return childInstanceType_; +} + +void AttachCenChildInstanceRequest::setChildInstanceType(const std::string& childInstanceType) +{ + childInstanceType_ = childInstanceType; + setParameter("ChildInstanceType", childInstanceType); +} + +long AttachCenChildInstanceRequest::getChildInstanceOwnerId()const +{ + return childInstanceOwnerId_; +} + +void AttachCenChildInstanceRequest::setChildInstanceOwnerId(long childInstanceOwnerId) +{ + childInstanceOwnerId_ = childInstanceOwnerId; + setParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId)); +} + +std::string AttachCenChildInstanceRequest::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + +void AttachCenChildInstanceRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) +{ + childInstanceRegionId_ = childInstanceRegionId; + setParameter("ChildInstanceRegionId", childInstanceRegionId); +} + diff --git a/cbn/src/model/AttachCenChildInstanceResult.cc b/cbn/src/model/AttachCenChildInstanceResult.cc new file mode 100644 index 000000000..f28caceac --- /dev/null +++ b/cbn/src/model/AttachCenChildInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +AttachCenChildInstanceResult::AttachCenChildInstanceResult() : + ServiceResult() +{} + +AttachCenChildInstanceResult::AttachCenChildInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachCenChildInstanceResult::~AttachCenChildInstanceResult() +{} + +void AttachCenChildInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/CreateCenBandwidthPackageRequest.cc b/cbn/src/model/CreateCenBandwidthPackageRequest.cc new file mode 100644 index 000000000..db3d88c29 --- /dev/null +++ b/cbn/src/model/CreateCenBandwidthPackageRequest.cc @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::CreateCenBandwidthPackageRequest; + +CreateCenBandwidthPackageRequest::CreateCenBandwidthPackageRequest() : + RpcServiceRequest("cbn", "2017-09-12", "CreateCenBandwidthPackage") +{} + +CreateCenBandwidthPackageRequest::~CreateCenBandwidthPackageRequest() +{} + +std::string CreateCenBandwidthPackageRequest::getGeographicRegionBId()const +{ + return geographicRegionBId_; +} + +void CreateCenBandwidthPackageRequest::setGeographicRegionBId(const std::string& geographicRegionBId) +{ + geographicRegionBId_ = geographicRegionBId; + setParameter("GeographicRegionBId", geographicRegionBId); +} + +long CreateCenBandwidthPackageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int CreateCenBandwidthPackageRequest::getPeriod()const +{ + return period_; +} + +void CreateCenBandwidthPackageRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string CreateCenBandwidthPackageRequest::getGeographicRegionAId()const +{ + return geographicRegionAId_; +} + +void CreateCenBandwidthPackageRequest::setGeographicRegionAId(const std::string& geographicRegionAId) +{ + geographicRegionAId_ = geographicRegionAId; + setParameter("GeographicRegionAId", geographicRegionAId); +} + +bool CreateCenBandwidthPackageRequest::getAutoPay()const +{ + return autoPay_; +} + +void CreateCenBandwidthPackageRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", std::to_string(autoPay)); +} + +std::string CreateCenBandwidthPackageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateCenBandwidthPackageRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateCenBandwidthPackageRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +int CreateCenBandwidthPackageRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreateCenBandwidthPackageRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string CreateCenBandwidthPackageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateCenBandwidthPackageRequest::getDescription()const +{ + return description_; +} + +void CreateCenBandwidthPackageRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateCenBandwidthPackageRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateCenBandwidthPackageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateCenBandwidthPackageRequest::getBandwidthPackageChargeType()const +{ + return bandwidthPackageChargeType_; +} + +void CreateCenBandwidthPackageRequest::setBandwidthPackageChargeType(const std::string& bandwidthPackageChargeType) +{ + bandwidthPackageChargeType_ = bandwidthPackageChargeType; + setParameter("BandwidthPackageChargeType", bandwidthPackageChargeType); +} + +std::string CreateCenBandwidthPackageRequest::getName()const +{ + return name_; +} + +void CreateCenBandwidthPackageRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateCenBandwidthPackageRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void CreateCenBandwidthPackageRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + diff --git a/cbn/src/model/CreateCenBandwidthPackageResult.cc b/cbn/src/model/CreateCenBandwidthPackageResult.cc new file mode 100644 index 000000000..c174fa914 --- /dev/null +++ b/cbn/src/model/CreateCenBandwidthPackageResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +CreateCenBandwidthPackageResult::CreateCenBandwidthPackageResult() : + ServiceResult() +{} + +CreateCenBandwidthPackageResult::CreateCenBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCenBandwidthPackageResult::~CreateCenBandwidthPackageResult() +{} + +void CreateCenBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["CenBandwidthPackageId"].isNull()) + cenBandwidthPackageId_ = value["CenBandwidthPackageId"].asString(); + if(!value["CenBandwidthPackageOrderId"].isNull()) + cenBandwidthPackageOrderId_ = value["CenBandwidthPackageOrderId"].asString(); + +} + +std::string CreateCenBandwidthPackageResult::getCenBandwidthPackageId()const +{ + return cenBandwidthPackageId_; +} + +std::string CreateCenBandwidthPackageResult::getCenBandwidthPackageOrderId()const +{ + return cenBandwidthPackageOrderId_; +} + diff --git a/cbn/src/model/CreateCenRequest.cc b/cbn/src/model/CreateCenRequest.cc new file mode 100644 index 000000000..98b53bcbd --- /dev/null +++ b/cbn/src/model/CreateCenRequest.cc @@ -0,0 +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::Cbn::Model::CreateCenRequest; + +CreateCenRequest::CreateCenRequest() : + RpcServiceRequest("cbn", "2017-09-12", "CreateCen") +{} + +CreateCenRequest::~CreateCenRequest() +{} + +std::string CreateCenRequest::getProtectionLevel()const +{ + return protectionLevel_; +} + +void CreateCenRequest::setProtectionLevel(const std::string& protectionLevel) +{ + protectionLevel_ = protectionLevel; + setParameter("ProtectionLevel", protectionLevel); +} + +long CreateCenRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateCenRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateCenRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateCenRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateCenRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateCenRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateCenRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateCenRequest::getName()const +{ + return name_; +} + +void CreateCenRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateCenRequest::getDescription()const +{ + return description_; +} + +void CreateCenRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateCenRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateCenRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/CreateCenResult.cc b/cbn/src/model/CreateCenResult.cc new file mode 100644 index 000000000..c1b033580 --- /dev/null +++ b/cbn/src/model/CreateCenResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +CreateCenResult::CreateCenResult() : + ServiceResult() +{} + +CreateCenResult::CreateCenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCenResult::~CreateCenResult() +{} + +void CreateCenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["CenId"].isNull()) + cenId_ = value["CenId"].asString(); + +} + +std::string CreateCenResult::getCenId()const +{ + return cenId_; +} + diff --git a/cbn/src/model/DeleteCenBandwidthPackageRequest.cc b/cbn/src/model/DeleteCenBandwidthPackageRequest.cc new file mode 100644 index 000000000..531c7315f --- /dev/null +++ b/cbn/src/model/DeleteCenBandwidthPackageRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::DeleteCenBandwidthPackageRequest; + +DeleteCenBandwidthPackageRequest::DeleteCenBandwidthPackageRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DeleteCenBandwidthPackage") +{} + +DeleteCenBandwidthPackageRequest::~DeleteCenBandwidthPackageRequest() +{} + +long DeleteCenBandwidthPackageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteCenBandwidthPackageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteCenBandwidthPackageRequest::getCenBandwidthPackageId()const +{ + return cenBandwidthPackageId_; +} + +void DeleteCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId) +{ + cenBandwidthPackageId_ = cenBandwidthPackageId; + setParameter("CenBandwidthPackageId", cenBandwidthPackageId); +} + +std::string DeleteCenBandwidthPackageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteCenBandwidthPackageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteCenBandwidthPackageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/DeleteCenBandwidthPackageResult.cc b/cbn/src/model/DeleteCenBandwidthPackageResult.cc new file mode 100644 index 000000000..da382d8b6 --- /dev/null +++ b/cbn/src/model/DeleteCenBandwidthPackageResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DeleteCenBandwidthPackageResult::DeleteCenBandwidthPackageResult() : + ServiceResult() +{} + +DeleteCenBandwidthPackageResult::DeleteCenBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCenBandwidthPackageResult::~DeleteCenBandwidthPackageResult() +{} + +void DeleteCenBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/DeleteCenRequest.cc b/cbn/src/model/DeleteCenRequest.cc new file mode 100644 index 000000000..0e54cc3bb --- /dev/null +++ b/cbn/src/model/DeleteCenRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::DeleteCenRequest; + +DeleteCenRequest::DeleteCenRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DeleteCen") +{} + +DeleteCenRequest::~DeleteCenRequest() +{} + +long DeleteCenRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteCenRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteCenRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteCenRequest::getCenId()const +{ + return cenId_; +} + +void DeleteCenRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DeleteCenRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteCenRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteCenRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteCenRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/DeleteCenResult.cc b/cbn/src/model/DeleteCenResult.cc new file mode 100644 index 000000000..04132eb21 --- /dev/null +++ b/cbn/src/model/DeleteCenResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DeleteCenResult::DeleteCenResult() : + ServiceResult() +{} + +DeleteCenResult::DeleteCenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCenResult::~DeleteCenResult() +{} + +void DeleteCenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/DeleteRouteServiceInCenRequest.cc b/cbn/src/model/DeleteRouteServiceInCenRequest.cc new file mode 100644 index 000000000..7e9226446 --- /dev/null +++ b/cbn/src/model/DeleteRouteServiceInCenRequest.cc @@ -0,0 +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::Cbn::Model::DeleteRouteServiceInCenRequest; + +DeleteRouteServiceInCenRequest::DeleteRouteServiceInCenRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DeleteRouteServiceInCen") +{} + +DeleteRouteServiceInCenRequest::~DeleteRouteServiceInCenRequest() +{} + +long DeleteRouteServiceInCenRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteRouteServiceInCenRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteRouteServiceInCenRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteRouteServiceInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteRouteServiceInCenRequest::getCenId()const +{ + return cenId_; +} + +void DeleteRouteServiceInCenRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DeleteRouteServiceInCenRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteRouteServiceInCenRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteRouteServiceInCenRequest::getHost()const +{ + return host_; +} + +void DeleteRouteServiceInCenRequest::setHost(const std::string& host) +{ + host_ = host; + setParameter("Host", host); +} + +std::string DeleteRouteServiceInCenRequest::getHostRegionId()const +{ + return hostRegionId_; +} + +void DeleteRouteServiceInCenRequest::setHostRegionId(const std::string& hostRegionId) +{ + hostRegionId_ = hostRegionId; + setParameter("HostRegionId", hostRegionId); +} + +std::string DeleteRouteServiceInCenRequest::getAccessRegionId()const +{ + return accessRegionId_; +} + +void DeleteRouteServiceInCenRequest::setAccessRegionId(const std::string& accessRegionId) +{ + accessRegionId_ = accessRegionId; + setParameter("AccessRegionId", accessRegionId); +} + +long DeleteRouteServiceInCenRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteRouteServiceInCenRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/DeleteRouteServiceInCenResult.cc b/cbn/src/model/DeleteRouteServiceInCenResult.cc new file mode 100644 index 000000000..15f98856f --- /dev/null +++ b/cbn/src/model/DeleteRouteServiceInCenResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DeleteRouteServiceInCenResult::DeleteRouteServiceInCenResult() : + ServiceResult() +{} + +DeleteRouteServiceInCenResult::DeleteRouteServiceInCenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRouteServiceInCenResult::~DeleteRouteServiceInCenResult() +{} + +void DeleteRouteServiceInCenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc new file mode 100644 index 000000000..4ecda72cc --- /dev/null +++ b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeRequest.cc @@ -0,0 +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::Cbn::Model::DescribeCenAttachedChildInstanceAttributeRequest; + +DescribeCenAttachedChildInstanceAttributeRequest::DescribeCenAttachedChildInstanceAttributeRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCenAttachedChildInstanceAttribute") +{} + +DescribeCenAttachedChildInstanceAttributeRequest::~DescribeCenAttachedChildInstanceAttributeRequest() +{} + +std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceId()const +{ + return childInstanceId_; +} + +void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceId(const std::string& childInstanceId) +{ + childInstanceId_ = childInstanceId; + setParameter("ChildInstanceId", childInstanceId); +} + +long DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCenAttachedChildInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCenAttachedChildInstanceAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCenAttachedChildInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCenAttachedChildInstanceAttributeRequest::getCenId()const +{ + return cenId_; +} + +void DescribeCenAttachedChildInstanceAttributeRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DescribeCenAttachedChildInstanceAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCenAttachedChildInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeCenAttachedChildInstanceAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCenAttachedChildInstanceAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceType()const +{ + return childInstanceType_; +} + +void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceType(const std::string& childInstanceType) +{ + childInstanceType_ = childInstanceType; + setParameter("ChildInstanceType", childInstanceType); +} + +std::string DescribeCenAttachedChildInstanceAttributeRequest::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + +void DescribeCenAttachedChildInstanceAttributeRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) +{ + childInstanceRegionId_ = childInstanceRegionId; + setParameter("ChildInstanceRegionId", childInstanceRegionId); +} + diff --git a/cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc new file mode 100644 index 000000000..7a8a8377e --- /dev/null +++ b/cbn/src/model/DescribeCenAttachedChildInstanceAttributeResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCenAttachedChildInstanceAttributeResult::DescribeCenAttachedChildInstanceAttributeResult() : + ServiceResult() +{} + +DescribeCenAttachedChildInstanceAttributeResult::DescribeCenAttachedChildInstanceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCenAttachedChildInstanceAttributeResult::~DescribeCenAttachedChildInstanceAttributeResult() +{} + +void DescribeCenAttachedChildInstanceAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["CenId"].isNull()) + cenId_ = value["CenId"].asString(); + if(!value["ChildInstanceId"].isNull()) + childInstanceId_ = value["ChildInstanceId"].asString(); + if(!value["ChildInstanceType"].isNull()) + childInstanceType_ = value["ChildInstanceType"].asString(); + if(!value["ChildInstanceRegionId"].isNull()) + childInstanceRegionId_ = value["ChildInstanceRegionId"].asString(); + if(!value["ChildInstanceOwnerId"].isNull()) + childInstanceOwnerId_ = std::stol(value["ChildInstanceOwnerId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["ChildInstanceName"].isNull()) + childInstanceName_ = value["ChildInstanceName"].asString(); + if(!value["ChildInstanceAttachTime"].isNull()) + childInstanceAttachTime_ = value["ChildInstanceAttachTime"].asString(); + +} + +std::string DescribeCenAttachedChildInstanceAttributeResult::getStatus()const +{ + return status_; +} + +std::string DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceType()const +{ + return childInstanceType_; +} + +std::string DescribeCenAttachedChildInstanceAttributeResult::getCenId()const +{ + return cenId_; +} + +std::string DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceAttachTime()const +{ + return childInstanceAttachTime_; +} + +long DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceOwnerId()const +{ + return childInstanceOwnerId_; +} + +std::string DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceName()const +{ + return childInstanceName_; +} + +std::string DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceId()const +{ + return childInstanceId_; +} + +std::string DescribeCenAttachedChildInstanceAttributeResult::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + diff --git a/cbn/src/model/DescribeCenAttachedChildInstancesRequest.cc b/cbn/src/model/DescribeCenAttachedChildInstancesRequest.cc new file mode 100644 index 000000000..d04151351 --- /dev/null +++ b/cbn/src/model/DescribeCenAttachedChildInstancesRequest.cc @@ -0,0 +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::Cbn::Model::DescribeCenAttachedChildInstancesRequest; + +DescribeCenAttachedChildInstancesRequest::DescribeCenAttachedChildInstancesRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCenAttachedChildInstances") +{} + +DescribeCenAttachedChildInstancesRequest::~DescribeCenAttachedChildInstancesRequest() +{} + +long DescribeCenAttachedChildInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCenAttachedChildInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCenAttachedChildInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCenAttachedChildInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCenAttachedChildInstancesRequest::getCenId()const +{ + return cenId_; +} + +void DescribeCenAttachedChildInstancesRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DescribeCenAttachedChildInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCenAttachedChildInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeCenAttachedChildInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCenAttachedChildInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeCenAttachedChildInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCenAttachedChildInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceType()const +{ + return childInstanceType_; +} + +void DescribeCenAttachedChildInstancesRequest::setChildInstanceType(const std::string& childInstanceType) +{ + childInstanceType_ = childInstanceType; + setParameter("ChildInstanceType", childInstanceType); +} + +int DescribeCenAttachedChildInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCenAttachedChildInstancesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeCenAttachedChildInstancesRequest::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + +void DescribeCenAttachedChildInstancesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) +{ + childInstanceRegionId_ = childInstanceRegionId; + setParameter("ChildInstanceRegionId", childInstanceRegionId); +} + diff --git a/cbn/src/model/DescribeCenAttachedChildInstancesResult.cc b/cbn/src/model/DescribeCenAttachedChildInstancesResult.cc new file mode 100644 index 000000000..c3fbbae67 --- /dev/null +++ b/cbn/src/model/DescribeCenAttachedChildInstancesResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCenAttachedChildInstancesResult::DescribeCenAttachedChildInstancesResult() : + ServiceResult() +{} + +DescribeCenAttachedChildInstancesResult::DescribeCenAttachedChildInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCenAttachedChildInstancesResult::~DescribeCenAttachedChildInstancesResult() +{} + +void DescribeCenAttachedChildInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allChildInstances = value["ChildInstances"]["ChildInstance"]; + for (auto value : allChildInstances) + { + ChildInstance childInstancesObject; + if(!value["CenId"].isNull()) + childInstancesObject.cenId = value["CenId"].asString(); + if(!value["ChildInstanceId"].isNull()) + childInstancesObject.childInstanceId = value["ChildInstanceId"].asString(); + if(!value["ChildInstanceType"].isNull()) + childInstancesObject.childInstanceType = value["ChildInstanceType"].asString(); + if(!value["ChildInstanceRegionId"].isNull()) + childInstancesObject.childInstanceRegionId = value["ChildInstanceRegionId"].asString(); + if(!value["ChildInstanceOwnerId"].isNull()) + childInstancesObject.childInstanceOwnerId = std::stol(value["ChildInstanceOwnerId"].asString()); + if(!value["Status"].isNull()) + childInstancesObject.status = value["Status"].asString(); + if(!value["ChildInstanceAttachTime"].isNull()) + childInstancesObject.childInstanceAttachTime = value["ChildInstanceAttachTime"].asString(); + childInstances_.push_back(childInstancesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCenAttachedChildInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeCenAttachedChildInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCenAttachedChildInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeCenAttachedChildInstancesResult::getChildInstances()const +{ + return childInstances_; +} + diff --git a/cbn/src/model/DescribeCenBandwidthPackagesRequest.cc b/cbn/src/model/DescribeCenBandwidthPackagesRequest.cc new file mode 100644 index 000000000..fa272b1b1 --- /dev/null +++ b/cbn/src/model/DescribeCenBandwidthPackagesRequest.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::DescribeCenBandwidthPackagesRequest; + +DescribeCenBandwidthPackagesRequest::DescribeCenBandwidthPackagesRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCenBandwidthPackages") +{} + +DescribeCenBandwidthPackagesRequest::~DescribeCenBandwidthPackagesRequest() +{} + +std::vector DescribeCenBandwidthPackagesRequest::getFilter()const +{ + return filter_; +} + +void DescribeCenBandwidthPackagesRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + setParameter(str + ".Key", obj.key); + } +} + +long DescribeCenBandwidthPackagesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCenBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCenBandwidthPackagesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCenBandwidthPackagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCenBandwidthPackagesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCenBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeCenBandwidthPackagesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCenBandwidthPackagesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeCenBandwidthPackagesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCenBandwidthPackagesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeCenBandwidthPackagesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCenBandwidthPackagesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +bool DescribeCenBandwidthPackagesRequest::getIsOrKey()const +{ + return isOrKey_; +} + +void DescribeCenBandwidthPackagesRequest::setIsOrKey(bool isOrKey) +{ + isOrKey_ = isOrKey; + setParameter("IsOrKey", std::to_string(isOrKey)); +} + diff --git a/cbn/src/model/DescribeCenBandwidthPackagesResult.cc b/cbn/src/model/DescribeCenBandwidthPackagesResult.cc new file mode 100644 index 000000000..87ca6f611 --- /dev/null +++ b/cbn/src/model/DescribeCenBandwidthPackagesResult.cc @@ -0,0 +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 +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCenBandwidthPackagesResult::DescribeCenBandwidthPackagesResult() : + ServiceResult() +{} + +DescribeCenBandwidthPackagesResult::DescribeCenBandwidthPackagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCenBandwidthPackagesResult::~DescribeCenBandwidthPackagesResult() +{} + +void DescribeCenBandwidthPackagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCenBandwidthPackages = value["CenBandwidthPackages"]["CenBandwidthPackage"]; + for (auto value : allCenBandwidthPackages) + { + CenBandwidthPackage cenBandwidthPackagesObject; + if(!value["CenBandwidthPackageId"].isNull()) + cenBandwidthPackagesObject.cenBandwidthPackageId = value["CenBandwidthPackageId"].asString(); + if(!value["Name"].isNull()) + cenBandwidthPackagesObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + cenBandwidthPackagesObject.description = value["Description"].asString(); + if(!value["Bandwidth"].isNull()) + cenBandwidthPackagesObject.bandwidth = std::stol(value["Bandwidth"].asString()); + if(!value["BandwidthPackageChargeType"].isNull()) + cenBandwidthPackagesObject.bandwidthPackageChargeType = value["BandwidthPackageChargeType"].asString(); + if(!value["GeographicRegionAId"].isNull()) + cenBandwidthPackagesObject.geographicRegionAId = value["GeographicRegionAId"].asString(); + if(!value["GeographicRegionBId"].isNull()) + cenBandwidthPackagesObject.geographicRegionBId = value["GeographicRegionBId"].asString(); + if(!value["GeographicSpanId"].isNull()) + cenBandwidthPackagesObject.geographicSpanId = value["GeographicSpanId"].asString(); + if(!value["BusinessStatus"].isNull()) + cenBandwidthPackagesObject.businessStatus = value["BusinessStatus"].asString(); + if(!value["CreationTime"].isNull()) + cenBandwidthPackagesObject.creationTime = value["CreationTime"].asString(); + if(!value["ExpiredTime"].isNull()) + cenBandwidthPackagesObject.expiredTime = value["ExpiredTime"].asString(); + if(!value["Status"].isNull()) + cenBandwidthPackagesObject.status = value["Status"].asString(); + if(!value["IsCrossBorder"].isNull()) + cenBandwidthPackagesObject.isCrossBorder = value["IsCrossBorder"].asString() == "true"; + auto allCenIds = value["CenIds"]["CenId"]; + for (auto value : allCenIds) + cenBandwidthPackagesObject.cenIds.push_back(value.asString()); + cenBandwidthPackages_.push_back(cenBandwidthPackagesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCenBandwidthPackagesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeCenBandwidthPackagesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCenBandwidthPackagesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeCenBandwidthPackagesResult::getCenBandwidthPackages()const +{ + return cenBandwidthPackages_; +} + diff --git a/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthRequest.cc b/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthRequest.cc new file mode 100644 index 000000000..7707486eb --- /dev/null +++ b/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthRequest.cc @@ -0,0 +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::Cbn::Model::DescribeCenGeographicSpanRemainingBandwidthRequest; + +DescribeCenGeographicSpanRemainingBandwidthRequest::DescribeCenGeographicSpanRemainingBandwidthRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCenGeographicSpanRemainingBandwidth") +{} + +DescribeCenGeographicSpanRemainingBandwidthRequest::~DescribeCenGeographicSpanRemainingBandwidthRequest() +{} + +std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getGeographicRegionBId()const +{ + return geographicRegionBId_; +} + +void DescribeCenGeographicSpanRemainingBandwidthRequest::setGeographicRegionBId(const std::string& geographicRegionBId) +{ + geographicRegionBId_ = geographicRegionBId; + setParameter("GeographicRegionBId", geographicRegionBId); +} + +long DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCenGeographicSpanRemainingBandwidthRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getGeographicRegionAId()const +{ + return geographicRegionAId_; +} + +void DescribeCenGeographicSpanRemainingBandwidthRequest::setGeographicRegionAId(const std::string& geographicRegionAId) +{ + geographicRegionAId_ = geographicRegionAId; + setParameter("GeographicRegionAId", geographicRegionAId); +} + +std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCenGeographicSpanRemainingBandwidthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getCenId()const +{ + return cenId_; +} + +void DescribeCenGeographicSpanRemainingBandwidthRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCenGeographicSpanRemainingBandwidthRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCenGeographicSpanRemainingBandwidthRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeCenGeographicSpanRemainingBandwidthRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCenGeographicSpanRemainingBandwidthRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeCenGeographicSpanRemainingBandwidthRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCenGeographicSpanRemainingBandwidthRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthResult.cc b/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthResult.cc new file mode 100644 index 000000000..969e91e0c --- /dev/null +++ b/cbn/src/model/DescribeCenGeographicSpanRemainingBandwidthResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCenGeographicSpanRemainingBandwidthResult::DescribeCenGeographicSpanRemainingBandwidthResult() : + ServiceResult() +{} + +DescribeCenGeographicSpanRemainingBandwidthResult::DescribeCenGeographicSpanRemainingBandwidthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCenGeographicSpanRemainingBandwidthResult::~DescribeCenGeographicSpanRemainingBandwidthResult() +{} + +void DescribeCenGeographicSpanRemainingBandwidthResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["RemainingBandwidth"].isNull()) + remainingBandwidth_ = std::stol(value["RemainingBandwidth"].asString()); + +} + +long DescribeCenGeographicSpanRemainingBandwidthResult::getRemainingBandwidth()const +{ + return remainingBandwidth_; +} + diff --git a/cbn/src/model/DescribeCenGeographicSpansRequest.cc b/cbn/src/model/DescribeCenGeographicSpansRequest.cc new file mode 100644 index 000000000..a332dc076 --- /dev/null +++ b/cbn/src/model/DescribeCenGeographicSpansRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::DescribeCenGeographicSpansRequest; + +DescribeCenGeographicSpansRequest::DescribeCenGeographicSpansRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCenGeographicSpans") +{} + +DescribeCenGeographicSpansRequest::~DescribeCenGeographicSpansRequest() +{} + +long DescribeCenGeographicSpansRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCenGeographicSpansRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCenGeographicSpansRequest::getGeographicSpanId()const +{ + return geographicSpanId_; +} + +void DescribeCenGeographicSpansRequest::setGeographicSpanId(const std::string& geographicSpanId) +{ + geographicSpanId_ = geographicSpanId; + setParameter("GeographicSpanId", geographicSpanId); +} + +std::string DescribeCenGeographicSpansRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCenGeographicSpansRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCenGeographicSpansRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCenGeographicSpansRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeCenGeographicSpansRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCenGeographicSpansRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeCenGeographicSpansRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCenGeographicSpansRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeCenGeographicSpansRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCenGeographicSpansRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/cbn/src/model/DescribeCenGeographicSpansResult.cc b/cbn/src/model/DescribeCenGeographicSpansResult.cc new file mode 100644 index 000000000..15f6d0a93 --- /dev/null +++ b/cbn/src/model/DescribeCenGeographicSpansResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCenGeographicSpansResult::DescribeCenGeographicSpansResult() : + ServiceResult() +{} + +DescribeCenGeographicSpansResult::DescribeCenGeographicSpansResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCenGeographicSpansResult::~DescribeCenGeographicSpansResult() +{} + +void DescribeCenGeographicSpansResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allGeographicSpanModels = value["GeographicSpanModels"]["GeographicSpanModel"]; + for (auto value : allGeographicSpanModels) + { + GeographicSpanModel geographicSpanModelsObject; + if(!value["GeographicSpanId"].isNull()) + geographicSpanModelsObject.geographicSpanId = value["GeographicSpanId"].asString(); + if(!value["LocalGeoRegionId"].isNull()) + geographicSpanModelsObject.localGeoRegionId = value["LocalGeoRegionId"].asString(); + if(!value["OppositeGeoRegionId"].isNull()) + geographicSpanModelsObject.oppositeGeoRegionId = value["OppositeGeoRegionId"].asString(); + geographicSpanModels_.push_back(geographicSpanModelsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCenGeographicSpansResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeCenGeographicSpansResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCenGeographicSpansResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeCenGeographicSpansResult::getGeographicSpanModels()const +{ + return geographicSpanModels_; +} + diff --git a/cbn/src/model/DescribeCenInterRegionBandwidthLimitsRequest.cc b/cbn/src/model/DescribeCenInterRegionBandwidthLimitsRequest.cc new file mode 100644 index 000000000..c4cde6ddb --- /dev/null +++ b/cbn/src/model/DescribeCenInterRegionBandwidthLimitsRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::DescribeCenInterRegionBandwidthLimitsRequest; + +DescribeCenInterRegionBandwidthLimitsRequest::DescribeCenInterRegionBandwidthLimitsRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCenInterRegionBandwidthLimits") +{} + +DescribeCenInterRegionBandwidthLimitsRequest::~DescribeCenInterRegionBandwidthLimitsRequest() +{} + +long DescribeCenInterRegionBandwidthLimitsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCenInterRegionBandwidthLimitsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCenInterRegionBandwidthLimitsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCenInterRegionBandwidthLimitsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCenInterRegionBandwidthLimitsRequest::getCenId()const +{ + return cenId_; +} + +void DescribeCenInterRegionBandwidthLimitsRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DescribeCenInterRegionBandwidthLimitsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCenInterRegionBandwidthLimitsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeCenInterRegionBandwidthLimitsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCenInterRegionBandwidthLimitsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeCenInterRegionBandwidthLimitsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCenInterRegionBandwidthLimitsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeCenInterRegionBandwidthLimitsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCenInterRegionBandwidthLimitsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc b/cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc new file mode 100644 index 000000000..2c547047a --- /dev/null +++ b/cbn/src/model/DescribeCenInterRegionBandwidthLimitsResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCenInterRegionBandwidthLimitsResult::DescribeCenInterRegionBandwidthLimitsResult() : + ServiceResult() +{} + +DescribeCenInterRegionBandwidthLimitsResult::DescribeCenInterRegionBandwidthLimitsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCenInterRegionBandwidthLimitsResult::~DescribeCenInterRegionBandwidthLimitsResult() +{} + +void DescribeCenInterRegionBandwidthLimitsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCenInterRegionBandwidthLimits = value["CenInterRegionBandwidthLimits"]["CenInterRegionBandwidthLimit"]; + for (auto value : allCenInterRegionBandwidthLimits) + { + CenInterRegionBandwidthLimit cenInterRegionBandwidthLimitsObject; + if(!value["CenId"].isNull()) + cenInterRegionBandwidthLimitsObject.cenId = value["CenId"].asString(); + if(!value["LocalRegionId"].isNull()) + cenInterRegionBandwidthLimitsObject.localRegionId = value["LocalRegionId"].asString(); + if(!value["OppositeRegionId"].isNull()) + cenInterRegionBandwidthLimitsObject.oppositeRegionId = value["OppositeRegionId"].asString(); + if(!value["GeographicSpanId"].isNull()) + cenInterRegionBandwidthLimitsObject.geographicSpanId = value["GeographicSpanId"].asString(); + if(!value["BandwidthLimit"].isNull()) + cenInterRegionBandwidthLimitsObject.bandwidthLimit = std::stol(value["BandwidthLimit"].asString()); + if(!value["Status"].isNull()) + cenInterRegionBandwidthLimitsObject.status = value["Status"].asString(); + cenInterRegionBandwidthLimits_.push_back(cenInterRegionBandwidthLimitsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +std::vector DescribeCenInterRegionBandwidthLimitsResult::getCenInterRegionBandwidthLimits()const +{ + return cenInterRegionBandwidthLimits_; +} + +int DescribeCenInterRegionBandwidthLimitsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeCenInterRegionBandwidthLimitsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCenInterRegionBandwidthLimitsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/cbn/src/model/DescribeCenPrivateZoneRoutesRequest.cc b/cbn/src/model/DescribeCenPrivateZoneRoutesRequest.cc new file mode 100644 index 000000000..2c0828622 --- /dev/null +++ b/cbn/src/model/DescribeCenPrivateZoneRoutesRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::DescribeCenPrivateZoneRoutesRequest; + +DescribeCenPrivateZoneRoutesRequest::DescribeCenPrivateZoneRoutesRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCenPrivateZoneRoutes") +{} + +DescribeCenPrivateZoneRoutesRequest::~DescribeCenPrivateZoneRoutesRequest() +{} + +long DescribeCenPrivateZoneRoutesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCenPrivateZoneRoutesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCenPrivateZoneRoutesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCenPrivateZoneRoutesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCenPrivateZoneRoutesRequest::getCenId()const +{ + return cenId_; +} + +void DescribeCenPrivateZoneRoutesRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +int DescribeCenPrivateZoneRoutesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCenPrivateZoneRoutesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeCenPrivateZoneRoutesRequest::getHostRegionId()const +{ + return hostRegionId_; +} + +void DescribeCenPrivateZoneRoutesRequest::setHostRegionId(const std::string& hostRegionId) +{ + hostRegionId_ = hostRegionId; + setParameter("HostRegionId", hostRegionId); +} + +std::string DescribeCenPrivateZoneRoutesRequest::getAccessRegionId()const +{ + return accessRegionId_; +} + +void DescribeCenPrivateZoneRoutesRequest::setAccessRegionId(const std::string& accessRegionId) +{ + accessRegionId_ = accessRegionId; + setParameter("AccessRegionId", accessRegionId); +} + +int DescribeCenPrivateZoneRoutesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCenPrivateZoneRoutesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/cbn/src/model/DescribeCenPrivateZoneRoutesResult.cc b/cbn/src/model/DescribeCenPrivateZoneRoutesResult.cc new file mode 100644 index 000000000..32781f9a1 --- /dev/null +++ b/cbn/src/model/DescribeCenPrivateZoneRoutesResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCenPrivateZoneRoutesResult::DescribeCenPrivateZoneRoutesResult() : + ServiceResult() +{} + +DescribeCenPrivateZoneRoutesResult::DescribeCenPrivateZoneRoutesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCenPrivateZoneRoutesResult::~DescribeCenPrivateZoneRoutesResult() +{} + +void DescribeCenPrivateZoneRoutesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPrivateZoneInfos = value["PrivateZoneInfos"]["PrivateZoneInfo"]; + for (auto value : allPrivateZoneInfos) + { + PrivateZoneInfo privateZoneInfosObject; + if(!value["AccessRegionId"].isNull()) + privateZoneInfosObject.accessRegionId = value["AccessRegionId"].asString(); + if(!value["HostRegionId"].isNull()) + privateZoneInfosObject.hostRegionId = value["HostRegionId"].asString(); + if(!value["HostVpcId"].isNull()) + privateZoneInfosObject.hostVpcId = value["HostVpcId"].asString(); + if(!value["Status"].isNull()) + privateZoneInfosObject.status = value["Status"].asString(); + privateZoneInfos_.push_back(privateZoneInfosObject); + } + if(!value["CenId"].isNull()) + cenId_ = value["CenId"].asString(); + if(!value["PrivateZoneDnsServers"].isNull()) + privateZoneDnsServers_ = value["PrivateZoneDnsServers"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCenPrivateZoneRoutesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeCenPrivateZoneRoutesResult::getPrivateZoneInfos()const +{ + return privateZoneInfos_; +} + +int DescribeCenPrivateZoneRoutesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCenPrivateZoneRoutesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeCenPrivateZoneRoutesResult::getCenId()const +{ + return cenId_; +} + +std::string DescribeCenPrivateZoneRoutesResult::getPrivateZoneDnsServers()const +{ + return privateZoneDnsServers_; +} + diff --git a/cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc b/cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc new file mode 100644 index 000000000..8a4275bca --- /dev/null +++ b/cbn/src/model/DescribeCenRegionDomainRouteEntriesRequest.cc @@ -0,0 +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::Cbn::Model::DescribeCenRegionDomainRouteEntriesRequest; + +DescribeCenRegionDomainRouteEntriesRequest::DescribeCenRegionDomainRouteEntriesRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCenRegionDomainRouteEntries") +{} + +DescribeCenRegionDomainRouteEntriesRequest::~DescribeCenRegionDomainRouteEntriesRequest() +{} + +long DescribeCenRegionDomainRouteEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCenRegionDomainRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCenRegionDomainRouteEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCenRegionDomainRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCenRegionDomainRouteEntriesRequest::getCenId()const +{ + return cenId_; +} + +void DescribeCenRegionDomainRouteEntriesRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DescribeCenRegionDomainRouteEntriesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCenRegionDomainRouteEntriesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeCenRegionDomainRouteEntriesRequest::getCenRegionId()const +{ + return cenRegionId_; +} + +void DescribeCenRegionDomainRouteEntriesRequest::setCenRegionId(const std::string& cenRegionId) +{ + cenRegionId_ = cenRegionId; + setParameter("CenRegionId", cenRegionId); +} + +int DescribeCenRegionDomainRouteEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCenRegionDomainRouteEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeCenRegionDomainRouteEntriesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCenRegionDomainRouteEntriesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeCenRegionDomainRouteEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCenRegionDomainRouteEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc b/cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc new file mode 100644 index 000000000..2e26aed2a --- /dev/null +++ b/cbn/src/model/DescribeCenRegionDomainRouteEntriesResult.cc @@ -0,0 +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. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCenRegionDomainRouteEntriesResult::DescribeCenRegionDomainRouteEntriesResult() : + ServiceResult() +{} + +DescribeCenRegionDomainRouteEntriesResult::DescribeCenRegionDomainRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCenRegionDomainRouteEntriesResult::~DescribeCenRegionDomainRouteEntriesResult() +{} + +void DescribeCenRegionDomainRouteEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCenRouteEntries = value["CenRouteEntries"]["CenRouteEntry"]; + for (auto value : allCenRouteEntries) + { + CenRouteEntry cenRouteEntriesObject; + if(!value["DestinationCidrBlock"].isNull()) + cenRouteEntriesObject.destinationCidrBlock = value["DestinationCidrBlock"].asString(); + if(!value["Type"].isNull()) + cenRouteEntriesObject.type = value["Type"].asString(); + if(!value["NextHopInstanceId"].isNull()) + cenRouteEntriesObject.nextHopInstanceId = value["NextHopInstanceId"].asString(); + if(!value["NextHopType"].isNull()) + cenRouteEntriesObject.nextHopType = value["NextHopType"].asString(); + if(!value["NextHopRegionId"].isNull()) + cenRouteEntriesObject.nextHopRegionId = value["NextHopRegionId"].asString(); + cenRouteEntries_.push_back(cenRouteEntriesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCenRegionDomainRouteEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeCenRegionDomainRouteEntriesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCenRegionDomainRouteEntriesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeCenRegionDomainRouteEntriesResult::getCenRouteEntries()const +{ + return cenRouteEntries_; +} + diff --git a/cbn/src/model/DescribeCenVbrHealthCheckRequest.cc b/cbn/src/model/DescribeCenVbrHealthCheckRequest.cc new file mode 100644 index 000000000..43f71c54b --- /dev/null +++ b/cbn/src/model/DescribeCenVbrHealthCheckRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::DescribeCenVbrHealthCheckRequest; + +DescribeCenVbrHealthCheckRequest::DescribeCenVbrHealthCheckRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCenVbrHealthCheck") +{} + +DescribeCenVbrHealthCheckRequest::~DescribeCenVbrHealthCheckRequest() +{} + +long DescribeCenVbrHealthCheckRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCenVbrHealthCheckRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCenVbrHealthCheckRequest::getCenId()const +{ + return cenId_; +} + +void DescribeCenVbrHealthCheckRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +long DescribeCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const +{ + return vbrInstanceOwnerId_; +} + +void DescribeCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId) +{ + vbrInstanceOwnerId_ = vbrInstanceOwnerId; + setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId)); +} + +std::string DescribeCenVbrHealthCheckRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceId()const +{ + return vbrInstanceId_; +} + +void DescribeCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId) +{ + vbrInstanceId_ = vbrInstanceId; + setParameter("VbrInstanceId", vbrInstanceId); +} + +int DescribeCenVbrHealthCheckRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCenVbrHealthCheckRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeCenVbrHealthCheckRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCenVbrHealthCheckRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeCenVbrHealthCheckRequest::getVbrInstanceRegionId()const +{ + return vbrInstanceRegionId_; +} + +void DescribeCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId) +{ + vbrInstanceRegionId_ = vbrInstanceRegionId; + setParameter("VbrInstanceRegionId", vbrInstanceRegionId); +} + +int DescribeCenVbrHealthCheckRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCenVbrHealthCheckRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/cbn/src/model/DescribeCenVbrHealthCheckResult.cc b/cbn/src/model/DescribeCenVbrHealthCheckResult.cc new file mode 100644 index 000000000..6a425b96a --- /dev/null +++ b/cbn/src/model/DescribeCenVbrHealthCheckResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCenVbrHealthCheckResult::DescribeCenVbrHealthCheckResult() : + ServiceResult() +{} + +DescribeCenVbrHealthCheckResult::DescribeCenVbrHealthCheckResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCenVbrHealthCheckResult::~DescribeCenVbrHealthCheckResult() +{} + +void DescribeCenVbrHealthCheckResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVbrHealthChecks = value["VbrHealthChecks"]["VbrHealthCheck"]; + for (auto value : allVbrHealthChecks) + { + VbrHealthCheck vbrHealthChecksObject; + if(!value["CenId"].isNull()) + vbrHealthChecksObject.cenId = value["CenId"].asString(); + if(!value["VbrInstanceId"].isNull()) + vbrHealthChecksObject.vbrInstanceId = value["VbrInstanceId"].asString(); + if(!value["LinkStatus"].isNull()) + vbrHealthChecksObject.linkStatus = value["LinkStatus"].asString(); + if(!value["PacketLoss"].isNull()) + vbrHealthChecksObject.packetLoss = std::stol(value["PacketLoss"].asString()); + if(!value["HealthCheckSourceIp"].isNull()) + vbrHealthChecksObject.healthCheckSourceIp = value["HealthCheckSourceIp"].asString(); + if(!value["HealthCheckTargetIp"].isNull()) + vbrHealthChecksObject.healthCheckTargetIp = value["HealthCheckTargetIp"].asString(); + if(!value["Delay"].isNull()) + vbrHealthChecksObject.delay = std::stol(value["Delay"].asString()); + vbrHealthChecks_.push_back(vbrHealthChecksObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCenVbrHealthCheckResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeCenVbrHealthCheckResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCenVbrHealthCheckResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeCenVbrHealthCheckResult::getVbrHealthChecks()const +{ + return vbrHealthChecks_; +} + diff --git a/cbn/src/model/DescribeCensRequest.cc b/cbn/src/model/DescribeCensRequest.cc new file mode 100644 index 000000000..a33659777 --- /dev/null +++ b/cbn/src/model/DescribeCensRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::DescribeCensRequest; + +DescribeCensRequest::DescribeCensRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeCens") +{} + +DescribeCensRequest::~DescribeCensRequest() +{} + +std::vector DescribeCensRequest::getFilter()const +{ + return filter_; +} + +void DescribeCensRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + setParameter(str + ".Key", obj.key); + } +} + +long DescribeCensRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCensRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeCensRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCensRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCensRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCensRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeCensRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCensRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::vector DescribeCensRequest::getTag()const +{ + return tag_; +} + +void DescribeCensRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setParameter(str + ".Value", obj.value); + setParameter(str + ".Key", obj.key); + } +} + +long DescribeCensRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCensRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeCensRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCensRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/cbn/src/model/DescribeCensResult.cc b/cbn/src/model/DescribeCensResult.cc new file mode 100644 index 000000000..1e24e6bae --- /dev/null +++ b/cbn/src/model/DescribeCensResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeCensResult::DescribeCensResult() : + ServiceResult() +{} + +DescribeCensResult::DescribeCensResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCensResult::~DescribeCensResult() +{} + +void DescribeCensResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCens = value["Cens"]["Cen"]; + for (auto value : allCens) + { + Cen censObject; + if(!value["CenId"].isNull()) + censObject.cenId = value["CenId"].asString(); + if(!value["Name"].isNull()) + censObject.name = value["Name"].asString(); + if(!value["Description"].isNull()) + censObject.description = value["Description"].asString(); + if(!value["ProtectionLevel"].isNull()) + censObject.protectionLevel = value["ProtectionLevel"].asString(); + if(!value["Status"].isNull()) + censObject.status = value["Status"].asString(); + if(!value["CreationTime"].isNull()) + censObject.creationTime = value["CreationTime"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + Cen::Tag tagsObject; + if(!value["Key"].isNull()) + tagsObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + tagsObject.value = value["Value"].asString(); + censObject.tags.push_back(tagsObject); + } + auto allCenBandwidthPackageIds = value["CenBandwidthPackageIds"]["CenBandwidthPackageId"]; + for (auto value : allCenBandwidthPackageIds) + censObject.cenBandwidthPackageIds.push_back(value.asString()); + cens_.push_back(censObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCensResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeCensResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCensResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeCensResult::getCens()const +{ + return cens_; +} + diff --git a/cbn/src/model/DescribeChildInstanceRegionsRequest.cc b/cbn/src/model/DescribeChildInstanceRegionsRequest.cc new file mode 100644 index 000000000..3797c561f --- /dev/null +++ b/cbn/src/model/DescribeChildInstanceRegionsRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::DescribeChildInstanceRegionsRequest; + +DescribeChildInstanceRegionsRequest::DescribeChildInstanceRegionsRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeChildInstanceRegions") +{} + +DescribeChildInstanceRegionsRequest::~DescribeChildInstanceRegionsRequest() +{} + +long DescribeChildInstanceRegionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeChildInstanceRegionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeChildInstanceRegionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeChildInstanceRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeChildInstanceRegionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeChildInstanceRegionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeChildInstanceRegionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeChildInstanceRegionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeChildInstanceRegionsRequest::getProductType()const +{ + return productType_; +} + +void DescribeChildInstanceRegionsRequest::setProductType(const std::string& productType) +{ + productType_ = productType; + setParameter("ProductType", productType); +} + diff --git a/cbn/src/model/DescribeChildInstanceRegionsResult.cc b/cbn/src/model/DescribeChildInstanceRegionsResult.cc new file mode 100644 index 000000000..2ad4de97a --- /dev/null +++ b/cbn/src/model/DescribeChildInstanceRegionsResult.cc @@ -0,0 +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. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeChildInstanceRegionsResult::DescribeChildInstanceRegionsResult() : + ServiceResult() +{} + +DescribeChildInstanceRegionsResult::DescribeChildInstanceRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeChildInstanceRegionsResult::~DescribeChildInstanceRegionsResult() +{} + +void DescribeChildInstanceRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRegions = value["Regions"]["Region"]; + for (auto value : allRegions) + { + Region regionsObject; + if(!value["RegionId"].isNull()) + regionsObject.regionId = value["RegionId"].asString(); + if(!value["LocalName"].isNull()) + regionsObject.localName = value["LocalName"].asString(); + regions_.push_back(regionsObject); + } + +} + +std::vector DescribeChildInstanceRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/cbn/src/model/DescribeGeographicRegionMembershipRequest.cc b/cbn/src/model/DescribeGeographicRegionMembershipRequest.cc new file mode 100644 index 000000000..2a90b142e --- /dev/null +++ b/cbn/src/model/DescribeGeographicRegionMembershipRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::DescribeGeographicRegionMembershipRequest; + +DescribeGeographicRegionMembershipRequest::DescribeGeographicRegionMembershipRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeGeographicRegionMembership") +{} + +DescribeGeographicRegionMembershipRequest::~DescribeGeographicRegionMembershipRequest() +{} + +long DescribeGeographicRegionMembershipRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeGeographicRegionMembershipRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeGeographicRegionMembershipRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeGeographicRegionMembershipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeGeographicRegionMembershipRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeGeographicRegionMembershipRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeGeographicRegionMembershipRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGeographicRegionMembershipRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeGeographicRegionMembershipRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeGeographicRegionMembershipRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeGeographicRegionMembershipRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGeographicRegionMembershipRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeGeographicRegionMembershipRequest::getGeographicRegionId()const +{ + return geographicRegionId_; +} + +void DescribeGeographicRegionMembershipRequest::setGeographicRegionId(const std::string& geographicRegionId) +{ + geographicRegionId_ = geographicRegionId; + setParameter("GeographicRegionId", geographicRegionId); +} + diff --git a/cbn/src/model/DescribeGeographicRegionMembershipResult.cc b/cbn/src/model/DescribeGeographicRegionMembershipResult.cc new file mode 100644 index 000000000..701d2dab7 --- /dev/null +++ b/cbn/src/model/DescribeGeographicRegionMembershipResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeGeographicRegionMembershipResult::DescribeGeographicRegionMembershipResult() : + ServiceResult() +{} + +DescribeGeographicRegionMembershipResult::DescribeGeographicRegionMembershipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGeographicRegionMembershipResult::~DescribeGeographicRegionMembershipResult() +{} + +void DescribeGeographicRegionMembershipResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRegionIds = value["RegionIds"]["RegionId"]; + for (auto value : allRegionIds) + { + RegionId regionIdsObject; + if(!value["RegionId"].isNull()) + regionIdsObject.regionId = value["RegionId"].asString(); + regionIds_.push_back(regionIdsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeGeographicRegionMembershipResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeGeographicRegionMembershipResult::getRegionIds()const +{ + return regionIds_; +} + +int DescribeGeographicRegionMembershipResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGeographicRegionMembershipResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/cbn/src/model/DescribeGrantRulesToCenRequest.cc b/cbn/src/model/DescribeGrantRulesToCenRequest.cc new file mode 100644 index 000000000..1b66df8d4 --- /dev/null +++ b/cbn/src/model/DescribeGrantRulesToCenRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::DescribeGrantRulesToCenRequest; + +DescribeGrantRulesToCenRequest::DescribeGrantRulesToCenRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeGrantRulesToCen") +{} + +DescribeGrantRulesToCenRequest::~DescribeGrantRulesToCenRequest() +{} + +long DescribeGrantRulesToCenRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeGrantRulesToCenRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeGrantRulesToCenRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeGrantRulesToCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeGrantRulesToCenRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeGrantRulesToCenRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeGrantRulesToCenRequest::getCenId()const +{ + return cenId_; +} + +void DescribeGrantRulesToCenRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DescribeGrantRulesToCenRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeGrantRulesToCenRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeGrantRulesToCenRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeGrantRulesToCenRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeGrantRulesToCenRequest::getProductType()const +{ + return productType_; +} + +void DescribeGrantRulesToCenRequest::setProductType(const std::string& productType) +{ + productType_ = productType; + setParameter("ProductType", productType); +} + diff --git a/cbn/src/model/DescribeGrantRulesToCenResult.cc b/cbn/src/model/DescribeGrantRulesToCenResult.cc new file mode 100644 index 000000000..cfa4acfd7 --- /dev/null +++ b/cbn/src/model/DescribeGrantRulesToCenResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeGrantRulesToCenResult::DescribeGrantRulesToCenResult() : + ServiceResult() +{} + +DescribeGrantRulesToCenResult::DescribeGrantRulesToCenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGrantRulesToCenResult::~DescribeGrantRulesToCenResult() +{} + +void DescribeGrantRulesToCenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allGrantRules = value["GrantRules"]["GrantRule"]; + for (auto value : allGrantRules) + { + GrantRule grantRulesObject; + if(!value["CenId"].isNull()) + grantRulesObject.cenId = value["CenId"].asString(); + if(!value["ChildInstanceRegionId"].isNull()) + grantRulesObject.childInstanceRegionId = value["ChildInstanceRegionId"].asString(); + if(!value["ChildInstanceType"].isNull()) + grantRulesObject.childInstanceType = value["ChildInstanceType"].asString(); + if(!value["ChildInstanceId"].isNull()) + grantRulesObject.childInstanceId = value["ChildInstanceId"].asString(); + if(!value["ChildInstanceOwnerId"].isNull()) + grantRulesObject.childInstanceOwnerId = std::stol(value["ChildInstanceOwnerId"].asString()); + grantRules_.push_back(grantRulesObject); + } + +} + +std::vector DescribeGrantRulesToCenResult::getGrantRules()const +{ + return grantRules_; +} + diff --git a/cbn/src/model/DescribePublishedRouteEntriesRequest.cc b/cbn/src/model/DescribePublishedRouteEntriesRequest.cc new file mode 100644 index 000000000..0b7f1356e --- /dev/null +++ b/cbn/src/model/DescribePublishedRouteEntriesRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::DescribePublishedRouteEntriesRequest; + +DescribePublishedRouteEntriesRequest::DescribePublishedRouteEntriesRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribePublishedRouteEntries") +{} + +DescribePublishedRouteEntriesRequest::~DescribePublishedRouteEntriesRequest() +{} + +std::string DescribePublishedRouteEntriesRequest::getChildInstanceId()const +{ + return childInstanceId_; +} + +void DescribePublishedRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId) +{ + childInstanceId_ = childInstanceId; + setParameter("ChildInstanceId", childInstanceId); +} + +long DescribePublishedRouteEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribePublishedRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribePublishedRouteEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribePublishedRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribePublishedRouteEntriesRequest::getCenId()const +{ + return cenId_; +} + +void DescribePublishedRouteEntriesRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DescribePublishedRouteEntriesRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void DescribePublishedRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + +int DescribePublishedRouteEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribePublishedRouteEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribePublishedRouteEntriesRequest::getChildInstanceType()const +{ + return childInstanceType_; +} + +void DescribePublishedRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType) +{ + childInstanceType_ = childInstanceType; + setParameter("ChildInstanceType", childInstanceType); +} + +std::string DescribePublishedRouteEntriesRequest::getChildInstanceRouteTableId()const +{ + return childInstanceRouteTableId_; +} + +void DescribePublishedRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId) +{ + childInstanceRouteTableId_ = childInstanceRouteTableId; + setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); +} + +int DescribePublishedRouteEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribePublishedRouteEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribePublishedRouteEntriesRequest::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + +void DescribePublishedRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) +{ + childInstanceRegionId_ = childInstanceRegionId; + setParameter("ChildInstanceRegionId", childInstanceRegionId); +} + diff --git a/cbn/src/model/DescribePublishedRouteEntriesResult.cc b/cbn/src/model/DescribePublishedRouteEntriesResult.cc new file mode 100644 index 000000000..2ec92450d --- /dev/null +++ b/cbn/src/model/DescribePublishedRouteEntriesResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribePublishedRouteEntriesResult::DescribePublishedRouteEntriesResult() : + ServiceResult() +{} + +DescribePublishedRouteEntriesResult::DescribePublishedRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePublishedRouteEntriesResult::~DescribePublishedRouteEntriesResult() +{} + +void DescribePublishedRouteEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPublishedRouteEntries = value["PublishedRouteEntries"]["PublishedRouteEntry"]; + for (auto value : allPublishedRouteEntries) + { + PublishedRouteEntry publishedRouteEntriesObject; + if(!value["DestinationCidrBlock"].isNull()) + publishedRouteEntriesObject.destinationCidrBlock = value["DestinationCidrBlock"].asString(); + if(!value["ChildInstanceRouteTableId"].isNull()) + publishedRouteEntriesObject.childInstanceRouteTableId = value["ChildInstanceRouteTableId"].asString(); + if(!value["NextHopType"].isNull()) + publishedRouteEntriesObject.nextHopType = value["NextHopType"].asString(); + if(!value["RouteType"].isNull()) + publishedRouteEntriesObject.routeType = value["RouteType"].asString(); + if(!value["NextHopId"].isNull()) + publishedRouteEntriesObject.nextHopId = value["NextHopId"].asString(); + if(!value["OperationalMode"].isNull()) + publishedRouteEntriesObject.operationalMode = value["OperationalMode"].asString() == "true"; + if(!value["PublishStatus"].isNull()) + publishedRouteEntriesObject.publishStatus = value["PublishStatus"].asString(); + auto allConflicts = value["Conflicts"]["Conflict"]; + for (auto value : allConflicts) + { + PublishedRouteEntry::Conflict conflictsObject; + if(!value["DestinationCidrBlock"].isNull()) + conflictsObject.destinationCidrBlock = value["DestinationCidrBlock"].asString(); + if(!value["RegionId"].isNull()) + conflictsObject.regionId = value["RegionId"].asString(); + if(!value["InstanceId"].isNull()) + conflictsObject.instanceId = value["InstanceId"].asString(); + if(!value["InstanceType"].isNull()) + conflictsObject.instanceType = value["InstanceType"].asString(); + if(!value["Status"].isNull()) + conflictsObject.status = value["Status"].asString(); + publishedRouteEntriesObject.conflicts.push_back(conflictsObject); + } + publishedRouteEntries_.push_back(publishedRouteEntriesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribePublishedRouteEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribePublishedRouteEntriesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribePublishedRouteEntriesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribePublishedRouteEntriesResult::getPublishedRouteEntries()const +{ + return publishedRouteEntries_; +} + diff --git a/cbn/src/model/DescribeRouteConflictRequest.cc b/cbn/src/model/DescribeRouteConflictRequest.cc new file mode 100644 index 000000000..6ff4b9bdb --- /dev/null +++ b/cbn/src/model/DescribeRouteConflictRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::DescribeRouteConflictRequest; + +DescribeRouteConflictRequest::DescribeRouteConflictRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeRouteConflict") +{} + +DescribeRouteConflictRequest::~DescribeRouteConflictRequest() +{} + +std::string DescribeRouteConflictRequest::getChildInstanceId()const +{ + return childInstanceId_; +} + +void DescribeRouteConflictRequest::setChildInstanceId(const std::string& childInstanceId) +{ + childInstanceId_ = childInstanceId; + setParameter("ChildInstanceId", childInstanceId); +} + +long DescribeRouteConflictRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRouteConflictRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRouteConflictRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRouteConflictRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRouteConflictRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRouteConflictRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRouteConflictRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void DescribeRouteConflictRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + +int DescribeRouteConflictRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouteConflictRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeRouteConflictRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRouteConflictRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRouteConflictRequest::getChildInstanceType()const +{ + return childInstanceType_; +} + +void DescribeRouteConflictRequest::setChildInstanceType(const std::string& childInstanceType) +{ + childInstanceType_ = childInstanceType; + setParameter("ChildInstanceType", childInstanceType); +} + +std::string DescribeRouteConflictRequest::getChildInstanceRouteTableId()const +{ + return childInstanceRouteTableId_; +} + +void DescribeRouteConflictRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId) +{ + childInstanceRouteTableId_ = childInstanceRouteTableId; + setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); +} + +int DescribeRouteConflictRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouteConflictRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeRouteConflictRequest::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + +void DescribeRouteConflictRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) +{ + childInstanceRegionId_ = childInstanceRegionId; + setParameter("ChildInstanceRegionId", childInstanceRegionId); +} + diff --git a/cbn/src/model/DescribeRouteConflictResult.cc b/cbn/src/model/DescribeRouteConflictResult.cc new file mode 100644 index 000000000..c51459fa3 --- /dev/null +++ b/cbn/src/model/DescribeRouteConflictResult.cc @@ -0,0 +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. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeRouteConflictResult::DescribeRouteConflictResult() : + ServiceResult() +{} + +DescribeRouteConflictResult::DescribeRouteConflictResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRouteConflictResult::~DescribeRouteConflictResult() +{} + +void DescribeRouteConflictResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRouteConflicts = value["RouteConflicts"]["RouteConflict"]; + for (auto value : allRouteConflicts) + { + RouteConflict routeConflictsObject; + if(!value["DestinationCidrBlock"].isNull()) + routeConflictsObject.destinationCidrBlock = value["DestinationCidrBlock"].asString(); + if(!value["RegionId"].isNull()) + routeConflictsObject.regionId = value["RegionId"].asString(); + if(!value["InstanceId"].isNull()) + routeConflictsObject.instanceId = value["InstanceId"].asString(); + if(!value["InstanceType"].isNull()) + routeConflictsObject.instanceType = value["InstanceType"].asString(); + if(!value["Status"].isNull()) + routeConflictsObject.status = value["Status"].asString(); + routeConflicts_.push_back(routeConflictsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeRouteConflictResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeRouteConflictResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeRouteConflictResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeRouteConflictResult::getRouteConflicts()const +{ + return routeConflicts_; +} + diff --git a/cbn/src/model/DescribeRouteServicesInCenRequest.cc b/cbn/src/model/DescribeRouteServicesInCenRequest.cc new file mode 100644 index 000000000..7b48ef7bb --- /dev/null +++ b/cbn/src/model/DescribeRouteServicesInCenRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::DescribeRouteServicesInCenRequest; + +DescribeRouteServicesInCenRequest::DescribeRouteServicesInCenRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DescribeRouteServicesInCen") +{} + +DescribeRouteServicesInCenRequest::~DescribeRouteServicesInCenRequest() +{} + +long DescribeRouteServicesInCenRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRouteServicesInCenRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRouteServicesInCenRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRouteServicesInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRouteServicesInCenRequest::getCenId()const +{ + return cenId_; +} + +void DescribeRouteServicesInCenRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DescribeRouteServicesInCenRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRouteServicesInCenRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeRouteServicesInCenRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouteServicesInCenRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeRouteServicesInCenRequest::getHost()const +{ + return host_; +} + +void DescribeRouteServicesInCenRequest::setHost(const std::string& host) +{ + host_ = host; + setParameter("Host", host); +} + +std::string DescribeRouteServicesInCenRequest::getHostRegionId()const +{ + return hostRegionId_; +} + +void DescribeRouteServicesInCenRequest::setHostRegionId(const std::string& hostRegionId) +{ + hostRegionId_ = hostRegionId; + setParameter("HostRegionId", hostRegionId); +} + +std::string DescribeRouteServicesInCenRequest::getAccessRegionId()const +{ + return accessRegionId_; +} + +void DescribeRouteServicesInCenRequest::setAccessRegionId(const std::string& accessRegionId) +{ + accessRegionId_ = accessRegionId; + setParameter("AccessRegionId", accessRegionId); +} + +long DescribeRouteServicesInCenRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRouteServicesInCenRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeRouteServicesInCenRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouteServicesInCenRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/cbn/src/model/DescribeRouteServicesInCenResult.cc b/cbn/src/model/DescribeRouteServicesInCenResult.cc new file mode 100644 index 000000000..3fe9ce341 --- /dev/null +++ b/cbn/src/model/DescribeRouteServicesInCenResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DescribeRouteServicesInCenResult::DescribeRouteServicesInCenResult() : + ServiceResult() +{} + +DescribeRouteServicesInCenResult::DescribeRouteServicesInCenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRouteServicesInCenResult::~DescribeRouteServicesInCenResult() +{} + +void DescribeRouteServicesInCenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRouteServiceEntries = value["RouteServiceEntries"]["RouteServiceEntry"]; + for (auto value : allRouteServiceEntries) + { + RouteServiceEntry routeServiceEntriesObject; + if(!value["CenId"].isNull()) + routeServiceEntriesObject.cenId = value["CenId"].asString(); + if(!value["Host"].isNull()) + routeServiceEntriesObject.host = value["Host"].asString(); + if(!value["HostRegionId"].isNull()) + routeServiceEntriesObject.hostRegionId = value["HostRegionId"].asString(); + if(!value["AccessRegionId"].isNull()) + routeServiceEntriesObject.accessRegionId = value["AccessRegionId"].asString(); + if(!value["UpdateInterval"].isNull()) + routeServiceEntriesObject.updateInterval = value["UpdateInterval"].asString(); + if(!value["Status"].isNull()) + routeServiceEntriesObject.status = value["Status"].asString(); + auto allCidrs = value["Cidrs"]["Cidr"]; + for (auto value : allCidrs) + routeServiceEntriesObject.cidrs.push_back(value.asString()); + routeServiceEntries_.push_back(routeServiceEntriesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeRouteServicesInCenResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeRouteServicesInCenResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeRouteServicesInCenResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeRouteServicesInCenResult::getRouteServiceEntries()const +{ + return routeServiceEntries_; +} + diff --git a/cbn/src/model/DetachCenChildInstanceRequest.cc b/cbn/src/model/DetachCenChildInstanceRequest.cc new file mode 100644 index 000000000..4d492a804 --- /dev/null +++ b/cbn/src/model/DetachCenChildInstanceRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::DetachCenChildInstanceRequest; + +DetachCenChildInstanceRequest::DetachCenChildInstanceRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DetachCenChildInstance") +{} + +DetachCenChildInstanceRequest::~DetachCenChildInstanceRequest() +{} + +std::string DetachCenChildInstanceRequest::getChildInstanceId()const +{ + return childInstanceId_; +} + +void DetachCenChildInstanceRequest::setChildInstanceId(const std::string& childInstanceId) +{ + childInstanceId_ = childInstanceId; + setParameter("ChildInstanceId", childInstanceId); +} + +long DetachCenChildInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DetachCenChildInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DetachCenChildInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DetachCenChildInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DetachCenChildInstanceRequest::getCenId()const +{ + return cenId_; +} + +void DetachCenChildInstanceRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string DetachCenChildInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DetachCenChildInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DetachCenChildInstanceRequest::getCenOwnerId()const +{ + return cenOwnerId_; +} + +void DetachCenChildInstanceRequest::setCenOwnerId(long cenOwnerId) +{ + cenOwnerId_ = cenOwnerId; + setParameter("CenOwnerId", std::to_string(cenOwnerId)); +} + +long DetachCenChildInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DetachCenChildInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DetachCenChildInstanceRequest::getChildInstanceType()const +{ + return childInstanceType_; +} + +void DetachCenChildInstanceRequest::setChildInstanceType(const std::string& childInstanceType) +{ + childInstanceType_ = childInstanceType; + setParameter("ChildInstanceType", childInstanceType); +} + +long DetachCenChildInstanceRequest::getChildInstanceOwnerId()const +{ + return childInstanceOwnerId_; +} + +void DetachCenChildInstanceRequest::setChildInstanceOwnerId(long childInstanceOwnerId) +{ + childInstanceOwnerId_ = childInstanceOwnerId; + setParameter("ChildInstanceOwnerId", std::to_string(childInstanceOwnerId)); +} + +std::string DetachCenChildInstanceRequest::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + +void DetachCenChildInstanceRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) +{ + childInstanceRegionId_ = childInstanceRegionId; + setParameter("ChildInstanceRegionId", childInstanceRegionId); +} + diff --git a/cbn/src/model/DetachCenChildInstanceResult.cc b/cbn/src/model/DetachCenChildInstanceResult.cc new file mode 100644 index 000000000..219fa7e25 --- /dev/null +++ b/cbn/src/model/DetachCenChildInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DetachCenChildInstanceResult::DetachCenChildInstanceResult() : + ServiceResult() +{} + +DetachCenChildInstanceResult::DetachCenChildInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachCenChildInstanceResult::~DetachCenChildInstanceResult() +{} + +void DetachCenChildInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/DisableCenVbrHealthCheckRequest.cc b/cbn/src/model/DisableCenVbrHealthCheckRequest.cc new file mode 100644 index 000000000..e54929b01 --- /dev/null +++ b/cbn/src/model/DisableCenVbrHealthCheckRequest.cc @@ -0,0 +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::Cbn::Model::DisableCenVbrHealthCheckRequest; + +DisableCenVbrHealthCheckRequest::DisableCenVbrHealthCheckRequest() : + RpcServiceRequest("cbn", "2017-09-12", "DisableCenVbrHealthCheck") +{} + +DisableCenVbrHealthCheckRequest::~DisableCenVbrHealthCheckRequest() +{} + +long DisableCenVbrHealthCheckRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DisableCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DisableCenVbrHealthCheckRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DisableCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DisableCenVbrHealthCheckRequest::getCenId()const +{ + return cenId_; +} + +void DisableCenVbrHealthCheckRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +long DisableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const +{ + return vbrInstanceOwnerId_; +} + +void DisableCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId) +{ + vbrInstanceOwnerId_ = vbrInstanceOwnerId; + setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId)); +} + +std::string DisableCenVbrHealthCheckRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DisableCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DisableCenVbrHealthCheckRequest::getVbrInstanceId()const +{ + return vbrInstanceId_; +} + +void DisableCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId) +{ + vbrInstanceId_ = vbrInstanceId; + setParameter("VbrInstanceId", vbrInstanceId); +} + +long DisableCenVbrHealthCheckRequest::getOwnerId()const +{ + return ownerId_; +} + +void DisableCenVbrHealthCheckRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DisableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const +{ + return vbrInstanceRegionId_; +} + +void DisableCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId) +{ + vbrInstanceRegionId_ = vbrInstanceRegionId; + setParameter("VbrInstanceRegionId", vbrInstanceRegionId); +} + diff --git a/cbn/src/model/DisableCenVbrHealthCheckResult.cc b/cbn/src/model/DisableCenVbrHealthCheckResult.cc new file mode 100644 index 000000000..b849766fa --- /dev/null +++ b/cbn/src/model/DisableCenVbrHealthCheckResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +DisableCenVbrHealthCheckResult::DisableCenVbrHealthCheckResult() : + ServiceResult() +{} + +DisableCenVbrHealthCheckResult::DisableCenVbrHealthCheckResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableCenVbrHealthCheckResult::~DisableCenVbrHealthCheckResult() +{} + +void DisableCenVbrHealthCheckResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/EnableCenVbrHealthCheckRequest.cc b/cbn/src/model/EnableCenVbrHealthCheckRequest.cc new file mode 100644 index 000000000..05dcd35b4 --- /dev/null +++ b/cbn/src/model/EnableCenVbrHealthCheckRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::EnableCenVbrHealthCheckRequest; + +EnableCenVbrHealthCheckRequest::EnableCenVbrHealthCheckRequest() : + RpcServiceRequest("cbn", "2017-09-12", "EnableCenVbrHealthCheck") +{} + +EnableCenVbrHealthCheckRequest::~EnableCenVbrHealthCheckRequest() +{} + +long EnableCenVbrHealthCheckRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void EnableCenVbrHealthCheckRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string EnableCenVbrHealthCheckRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void EnableCenVbrHealthCheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string EnableCenVbrHealthCheckRequest::getCenId()const +{ + return cenId_; +} + +void EnableCenVbrHealthCheckRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string EnableCenVbrHealthCheckRequest::getHealthCheckSourceIp()const +{ + return healthCheckSourceIp_; +} + +void EnableCenVbrHealthCheckRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) +{ + healthCheckSourceIp_ = healthCheckSourceIp; + setParameter("HealthCheckSourceIp", healthCheckSourceIp); +} + +long EnableCenVbrHealthCheckRequest::getVbrInstanceOwnerId()const +{ + return vbrInstanceOwnerId_; +} + +void EnableCenVbrHealthCheckRequest::setVbrInstanceOwnerId(long vbrInstanceOwnerId) +{ + vbrInstanceOwnerId_ = vbrInstanceOwnerId; + setParameter("VbrInstanceOwnerId", std::to_string(vbrInstanceOwnerId)); +} + +std::string EnableCenVbrHealthCheckRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void EnableCenVbrHealthCheckRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string EnableCenVbrHealthCheckRequest::getVbrInstanceId()const +{ + return vbrInstanceId_; +} + +void EnableCenVbrHealthCheckRequest::setVbrInstanceId(const std::string& vbrInstanceId) +{ + vbrInstanceId_ = vbrInstanceId; + setParameter("VbrInstanceId", vbrInstanceId); +} + +std::string EnableCenVbrHealthCheckRequest::getHealthCheckTargetIp()const +{ + return healthCheckTargetIp_; +} + +void EnableCenVbrHealthCheckRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) +{ + healthCheckTargetIp_ = healthCheckTargetIp; + setParameter("HealthCheckTargetIp", healthCheckTargetIp); +} + +long EnableCenVbrHealthCheckRequest::getOwnerId()const +{ + return ownerId_; +} + +void EnableCenVbrHealthCheckRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string EnableCenVbrHealthCheckRequest::getVbrInstanceRegionId()const +{ + return vbrInstanceRegionId_; +} + +void EnableCenVbrHealthCheckRequest::setVbrInstanceRegionId(const std::string& vbrInstanceRegionId) +{ + vbrInstanceRegionId_ = vbrInstanceRegionId; + setParameter("VbrInstanceRegionId", vbrInstanceRegionId); +} + diff --git a/cbn/src/model/EnableCenVbrHealthCheckResult.cc b/cbn/src/model/EnableCenVbrHealthCheckResult.cc new file mode 100644 index 000000000..c6d1239a3 --- /dev/null +++ b/cbn/src/model/EnableCenVbrHealthCheckResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +EnableCenVbrHealthCheckResult::EnableCenVbrHealthCheckResult() : + ServiceResult() +{} + +EnableCenVbrHealthCheckResult::EnableCenVbrHealthCheckResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableCenVbrHealthCheckResult::~EnableCenVbrHealthCheckResult() +{} + +void EnableCenVbrHealthCheckResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/ModifyCenAttributeRequest.cc b/cbn/src/model/ModifyCenAttributeRequest.cc new file mode 100644 index 000000000..a6e0f59de --- /dev/null +++ b/cbn/src/model/ModifyCenAttributeRequest.cc @@ -0,0 +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::Cbn::Model::ModifyCenAttributeRequest; + +ModifyCenAttributeRequest::ModifyCenAttributeRequest() : + RpcServiceRequest("cbn", "2017-09-12", "ModifyCenAttribute") +{} + +ModifyCenAttributeRequest::~ModifyCenAttributeRequest() +{} + +std::string ModifyCenAttributeRequest::getProtectionLevel()const +{ + return protectionLevel_; +} + +void ModifyCenAttributeRequest::setProtectionLevel(const std::string& protectionLevel) +{ + protectionLevel_ = protectionLevel; + setParameter("ProtectionLevel", protectionLevel); +} + +long ModifyCenAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyCenAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyCenAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyCenAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyCenAttributeRequest::getCenId()const +{ + return cenId_; +} + +void ModifyCenAttributeRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string ModifyCenAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyCenAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyCenAttributeRequest::getName()const +{ + return name_; +} + +void ModifyCenAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyCenAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyCenAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyCenAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyCenAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/ModifyCenAttributeResult.cc b/cbn/src/model/ModifyCenAttributeResult.cc new file mode 100644 index 000000000..88758bf3e --- /dev/null +++ b/cbn/src/model/ModifyCenAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +ModifyCenAttributeResult::ModifyCenAttributeResult() : + ServiceResult() +{} + +ModifyCenAttributeResult::ModifyCenAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCenAttributeResult::~ModifyCenAttributeResult() +{} + +void ModifyCenAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/ModifyCenBandwidthPackageAttributeRequest.cc b/cbn/src/model/ModifyCenBandwidthPackageAttributeRequest.cc new file mode 100644 index 000000000..7d131671e --- /dev/null +++ b/cbn/src/model/ModifyCenBandwidthPackageAttributeRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::ModifyCenBandwidthPackageAttributeRequest; + +ModifyCenBandwidthPackageAttributeRequest::ModifyCenBandwidthPackageAttributeRequest() : + RpcServiceRequest("cbn", "2017-09-12", "ModifyCenBandwidthPackageAttribute") +{} + +ModifyCenBandwidthPackageAttributeRequest::~ModifyCenBandwidthPackageAttributeRequest() +{} + +long ModifyCenBandwidthPackageAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyCenBandwidthPackageAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyCenBandwidthPackageAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyCenBandwidthPackageAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyCenBandwidthPackageAttributeRequest::getCenBandwidthPackageId()const +{ + return cenBandwidthPackageId_; +} + +void ModifyCenBandwidthPackageAttributeRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId) +{ + cenBandwidthPackageId_ = cenBandwidthPackageId; + setParameter("CenBandwidthPackageId", cenBandwidthPackageId); +} + +std::string ModifyCenBandwidthPackageAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyCenBandwidthPackageAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyCenBandwidthPackageAttributeRequest::getName()const +{ + return name_; +} + +void ModifyCenBandwidthPackageAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyCenBandwidthPackageAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyCenBandwidthPackageAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyCenBandwidthPackageAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyCenBandwidthPackageAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/ModifyCenBandwidthPackageAttributeResult.cc b/cbn/src/model/ModifyCenBandwidthPackageAttributeResult.cc new file mode 100644 index 000000000..bfd8a19d8 --- /dev/null +++ b/cbn/src/model/ModifyCenBandwidthPackageAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +ModifyCenBandwidthPackageAttributeResult::ModifyCenBandwidthPackageAttributeResult() : + ServiceResult() +{} + +ModifyCenBandwidthPackageAttributeResult::ModifyCenBandwidthPackageAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCenBandwidthPackageAttributeResult::~ModifyCenBandwidthPackageAttributeResult() +{} + +void ModifyCenBandwidthPackageAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/ModifyCenBandwidthPackageSpecRequest.cc b/cbn/src/model/ModifyCenBandwidthPackageSpecRequest.cc new file mode 100644 index 000000000..5f6b50e42 --- /dev/null +++ b/cbn/src/model/ModifyCenBandwidthPackageSpecRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::ModifyCenBandwidthPackageSpecRequest; + +ModifyCenBandwidthPackageSpecRequest::ModifyCenBandwidthPackageSpecRequest() : + RpcServiceRequest("cbn", "2017-09-12", "ModifyCenBandwidthPackageSpec") +{} + +ModifyCenBandwidthPackageSpecRequest::~ModifyCenBandwidthPackageSpecRequest() +{} + +long ModifyCenBandwidthPackageSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyCenBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyCenBandwidthPackageSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyCenBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +int ModifyCenBandwidthPackageSpecRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyCenBandwidthPackageSpecRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string ModifyCenBandwidthPackageSpecRequest::getCenBandwidthPackageId()const +{ + return cenBandwidthPackageId_; +} + +void ModifyCenBandwidthPackageSpecRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId) +{ + cenBandwidthPackageId_ = cenBandwidthPackageId; + setParameter("CenBandwidthPackageId", cenBandwidthPackageId); +} + +std::string ModifyCenBandwidthPackageSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyCenBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyCenBandwidthPackageSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyCenBandwidthPackageSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/ModifyCenBandwidthPackageSpecResult.cc b/cbn/src/model/ModifyCenBandwidthPackageSpecResult.cc new file mode 100644 index 000000000..c6a3b72cb --- /dev/null +++ b/cbn/src/model/ModifyCenBandwidthPackageSpecResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +ModifyCenBandwidthPackageSpecResult::ModifyCenBandwidthPackageSpecResult() : + ServiceResult() +{} + +ModifyCenBandwidthPackageSpecResult::ModifyCenBandwidthPackageSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCenBandwidthPackageSpecResult::~ModifyCenBandwidthPackageSpecResult() +{} + +void ModifyCenBandwidthPackageSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/PublishRouteEntriesRequest.cc b/cbn/src/model/PublishRouteEntriesRequest.cc new file mode 100644 index 000000000..1fdcca20c --- /dev/null +++ b/cbn/src/model/PublishRouteEntriesRequest.cc @@ -0,0 +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::Cbn::Model::PublishRouteEntriesRequest; + +PublishRouteEntriesRequest::PublishRouteEntriesRequest() : + RpcServiceRequest("cbn", "2017-09-12", "PublishRouteEntries") +{} + +PublishRouteEntriesRequest::~PublishRouteEntriesRequest() +{} + +std::string PublishRouteEntriesRequest::getChildInstanceId()const +{ + return childInstanceId_; +} + +void PublishRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId) +{ + childInstanceId_ = childInstanceId; + setParameter("ChildInstanceId", childInstanceId); +} + +long PublishRouteEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void PublishRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string PublishRouteEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void PublishRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string PublishRouteEntriesRequest::getCenId()const +{ + return cenId_; +} + +void PublishRouteEntriesRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string PublishRouteEntriesRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void PublishRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + +std::string PublishRouteEntriesRequest::getChildInstanceType()const +{ + return childInstanceType_; +} + +void PublishRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType) +{ + childInstanceType_ = childInstanceType; + setParameter("ChildInstanceType", childInstanceType); +} + +std::string PublishRouteEntriesRequest::getChildInstanceRouteTableId()const +{ + return childInstanceRouteTableId_; +} + +void PublishRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId) +{ + childInstanceRouteTableId_ = childInstanceRouteTableId; + setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); +} + +std::string PublishRouteEntriesRequest::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + +void PublishRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) +{ + childInstanceRegionId_ = childInstanceRegionId; + setParameter("ChildInstanceRegionId", childInstanceRegionId); +} + diff --git a/cbn/src/model/PublishRouteEntriesResult.cc b/cbn/src/model/PublishRouteEntriesResult.cc new file mode 100644 index 000000000..60a572873 --- /dev/null +++ b/cbn/src/model/PublishRouteEntriesResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +PublishRouteEntriesResult::PublishRouteEntriesResult() : + ServiceResult() +{} + +PublishRouteEntriesResult::PublishRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishRouteEntriesResult::~PublishRouteEntriesResult() +{} + +void PublishRouteEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/ResolveAndRouteServiceInCenRequest.cc b/cbn/src/model/ResolveAndRouteServiceInCenRequest.cc new file mode 100644 index 000000000..aa5b2393b --- /dev/null +++ b/cbn/src/model/ResolveAndRouteServiceInCenRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Cbn::Model::ResolveAndRouteServiceInCenRequest; + +ResolveAndRouteServiceInCenRequest::ResolveAndRouteServiceInCenRequest() : + RpcServiceRequest("cbn", "2017-09-12", "ResolveAndRouteServiceInCen") +{} + +ResolveAndRouteServiceInCenRequest::~ResolveAndRouteServiceInCenRequest() +{} + +long ResolveAndRouteServiceInCenRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ResolveAndRouteServiceInCenRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ResolveAndRouteServiceInCenRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ResolveAndRouteServiceInCenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ResolveAndRouteServiceInCenRequest::getClientToken()const +{ + return clientToken_; +} + +void ResolveAndRouteServiceInCenRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ResolveAndRouteServiceInCenRequest::getCenId()const +{ + return cenId_; +} + +void ResolveAndRouteServiceInCenRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string ResolveAndRouteServiceInCenRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ResolveAndRouteServiceInCenRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ResolveAndRouteServiceInCenRequest::getHost()const +{ + return host_; +} + +void ResolveAndRouteServiceInCenRequest::setHost(const std::string& host) +{ + host_ = host; + setParameter("Host", host); +} + +std::string ResolveAndRouteServiceInCenRequest::getHostRegionId()const +{ + return hostRegionId_; +} + +void ResolveAndRouteServiceInCenRequest::setHostRegionId(const std::string& hostRegionId) +{ + hostRegionId_ = hostRegionId; + setParameter("HostRegionId", hostRegionId); +} + +std::string ResolveAndRouteServiceInCenRequest::getAccessRegionId()const +{ + return accessRegionId_; +} + +void ResolveAndRouteServiceInCenRequest::setAccessRegionId(const std::string& accessRegionId) +{ + accessRegionId_ = accessRegionId; + setParameter("AccessRegionId", accessRegionId); +} + +long ResolveAndRouteServiceInCenRequest::getOwnerId()const +{ + return ownerId_; +} + +void ResolveAndRouteServiceInCenRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +long ResolveAndRouteServiceInCenRequest::getUpdateInterval()const +{ + return updateInterval_; +} + +void ResolveAndRouteServiceInCenRequest::setUpdateInterval(long updateInterval) +{ + updateInterval_ = updateInterval; + setParameter("UpdateInterval", std::to_string(updateInterval)); +} + diff --git a/cbn/src/model/ResolveAndRouteServiceInCenResult.cc b/cbn/src/model/ResolveAndRouteServiceInCenResult.cc new file mode 100644 index 000000000..dd148d1c6 --- /dev/null +++ b/cbn/src/model/ResolveAndRouteServiceInCenResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +ResolveAndRouteServiceInCenResult::ResolveAndRouteServiceInCenResult() : + ServiceResult() +{} + +ResolveAndRouteServiceInCenResult::ResolveAndRouteServiceInCenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResolveAndRouteServiceInCenResult::~ResolveAndRouteServiceInCenResult() +{} + +void ResolveAndRouteServiceInCenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/RoutePrivateZoneInCenToVpcRequest.cc b/cbn/src/model/RoutePrivateZoneInCenToVpcRequest.cc new file mode 100644 index 000000000..7dfb5d12b --- /dev/null +++ b/cbn/src/model/RoutePrivateZoneInCenToVpcRequest.cc @@ -0,0 +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::Cbn::Model::RoutePrivateZoneInCenToVpcRequest; + +RoutePrivateZoneInCenToVpcRequest::RoutePrivateZoneInCenToVpcRequest() : + RpcServiceRequest("cbn", "2017-09-12", "RoutePrivateZoneInCenToVpc") +{} + +RoutePrivateZoneInCenToVpcRequest::~RoutePrivateZoneInCenToVpcRequest() +{} + +long RoutePrivateZoneInCenToVpcRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RoutePrivateZoneInCenToVpcRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RoutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RoutePrivateZoneInCenToVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RoutePrivateZoneInCenToVpcRequest::getCenId()const +{ + return cenId_; +} + +void RoutePrivateZoneInCenToVpcRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string RoutePrivateZoneInCenToVpcRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RoutePrivateZoneInCenToVpcRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RoutePrivateZoneInCenToVpcRequest::getHostRegionId()const +{ + return hostRegionId_; +} + +void RoutePrivateZoneInCenToVpcRequest::setHostRegionId(const std::string& hostRegionId) +{ + hostRegionId_ = hostRegionId; + setParameter("HostRegionId", hostRegionId); +} + +std::string RoutePrivateZoneInCenToVpcRequest::getAccessRegionId()const +{ + return accessRegionId_; +} + +void RoutePrivateZoneInCenToVpcRequest::setAccessRegionId(const std::string& accessRegionId) +{ + accessRegionId_ = accessRegionId; + setParameter("AccessRegionId", accessRegionId); +} + +long RoutePrivateZoneInCenToVpcRequest::getOwnerId()const +{ + return ownerId_; +} + +void RoutePrivateZoneInCenToVpcRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RoutePrivateZoneInCenToVpcRequest::getHostVpcId()const +{ + return hostVpcId_; +} + +void RoutePrivateZoneInCenToVpcRequest::setHostVpcId(const std::string& hostVpcId) +{ + hostVpcId_ = hostVpcId; + setParameter("HostVpcId", hostVpcId); +} + diff --git a/cbn/src/model/RoutePrivateZoneInCenToVpcResult.cc b/cbn/src/model/RoutePrivateZoneInCenToVpcResult.cc new file mode 100644 index 000000000..48361fb48 --- /dev/null +++ b/cbn/src/model/RoutePrivateZoneInCenToVpcResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +RoutePrivateZoneInCenToVpcResult::RoutePrivateZoneInCenToVpcResult() : + ServiceResult() +{} + +RoutePrivateZoneInCenToVpcResult::RoutePrivateZoneInCenToVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RoutePrivateZoneInCenToVpcResult::~RoutePrivateZoneInCenToVpcResult() +{} + +void RoutePrivateZoneInCenToVpcResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/SetCenInterRegionBandwidthLimitRequest.cc b/cbn/src/model/SetCenInterRegionBandwidthLimitRequest.cc new file mode 100644 index 000000000..40ad88661 --- /dev/null +++ b/cbn/src/model/SetCenInterRegionBandwidthLimitRequest.cc @@ -0,0 +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::Cbn::Model::SetCenInterRegionBandwidthLimitRequest; + +SetCenInterRegionBandwidthLimitRequest::SetCenInterRegionBandwidthLimitRequest() : + RpcServiceRequest("cbn", "2017-09-12", "SetCenInterRegionBandwidthLimit") +{} + +SetCenInterRegionBandwidthLimitRequest::~SetCenInterRegionBandwidthLimitRequest() +{} + +std::string SetCenInterRegionBandwidthLimitRequest::getLocalRegionId()const +{ + return localRegionId_; +} + +void SetCenInterRegionBandwidthLimitRequest::setLocalRegionId(const std::string& localRegionId) +{ + localRegionId_ = localRegionId; + setParameter("LocalRegionId", localRegionId); +} + +long SetCenInterRegionBandwidthLimitRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SetCenInterRegionBandwidthLimitRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SetCenInterRegionBandwidthLimitRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SetCenInterRegionBandwidthLimitRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SetCenInterRegionBandwidthLimitRequest::getCenId()const +{ + return cenId_; +} + +void SetCenInterRegionBandwidthLimitRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string SetCenInterRegionBandwidthLimitRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SetCenInterRegionBandwidthLimitRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string SetCenInterRegionBandwidthLimitRequest::getOppositeRegionId()const +{ + return oppositeRegionId_; +} + +void SetCenInterRegionBandwidthLimitRequest::setOppositeRegionId(const std::string& oppositeRegionId) +{ + oppositeRegionId_ = oppositeRegionId; + setParameter("OppositeRegionId", oppositeRegionId); +} + +long SetCenInterRegionBandwidthLimitRequest::getBandwidthLimit()const +{ + return bandwidthLimit_; +} + +void SetCenInterRegionBandwidthLimitRequest::setBandwidthLimit(long bandwidthLimit) +{ + bandwidthLimit_ = bandwidthLimit; + setParameter("BandwidthLimit", std::to_string(bandwidthLimit)); +} + +long SetCenInterRegionBandwidthLimitRequest::getOwnerId()const +{ + return ownerId_; +} + +void SetCenInterRegionBandwidthLimitRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/SetCenInterRegionBandwidthLimitResult.cc b/cbn/src/model/SetCenInterRegionBandwidthLimitResult.cc new file mode 100644 index 000000000..91b230020 --- /dev/null +++ b/cbn/src/model/SetCenInterRegionBandwidthLimitResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +SetCenInterRegionBandwidthLimitResult::SetCenInterRegionBandwidthLimitResult() : + ServiceResult() +{} + +SetCenInterRegionBandwidthLimitResult::SetCenInterRegionBandwidthLimitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetCenInterRegionBandwidthLimitResult::~SetCenInterRegionBandwidthLimitResult() +{} + +void SetCenInterRegionBandwidthLimitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/UnassociateCenBandwidthPackageRequest.cc b/cbn/src/model/UnassociateCenBandwidthPackageRequest.cc new file mode 100644 index 000000000..260e41b05 --- /dev/null +++ b/cbn/src/model/UnassociateCenBandwidthPackageRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::UnassociateCenBandwidthPackageRequest; + +UnassociateCenBandwidthPackageRequest::UnassociateCenBandwidthPackageRequest() : + RpcServiceRequest("cbn", "2017-09-12", "UnassociateCenBandwidthPackage") +{} + +UnassociateCenBandwidthPackageRequest::~UnassociateCenBandwidthPackageRequest() +{} + +long UnassociateCenBandwidthPackageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnassociateCenBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnassociateCenBandwidthPackageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnassociateCenBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnassociateCenBandwidthPackageRequest::getCenId()const +{ + return cenId_; +} + +void UnassociateCenBandwidthPackageRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string UnassociateCenBandwidthPackageRequest::getCenBandwidthPackageId()const +{ + return cenBandwidthPackageId_; +} + +void UnassociateCenBandwidthPackageRequest::setCenBandwidthPackageId(const std::string& cenBandwidthPackageId) +{ + cenBandwidthPackageId_ = cenBandwidthPackageId; + setParameter("CenBandwidthPackageId", cenBandwidthPackageId); +} + +std::string UnassociateCenBandwidthPackageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnassociateCenBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long UnassociateCenBandwidthPackageRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnassociateCenBandwidthPackageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/UnassociateCenBandwidthPackageResult.cc b/cbn/src/model/UnassociateCenBandwidthPackageResult.cc new file mode 100644 index 000000000..52fa3e6e5 --- /dev/null +++ b/cbn/src/model/UnassociateCenBandwidthPackageResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +UnassociateCenBandwidthPackageResult::UnassociateCenBandwidthPackageResult() : + ServiceResult() +{} + +UnassociateCenBandwidthPackageResult::UnassociateCenBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassociateCenBandwidthPackageResult::~UnassociateCenBandwidthPackageResult() +{} + +void UnassociateCenBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/UnroutePrivateZoneInCenToVpcRequest.cc b/cbn/src/model/UnroutePrivateZoneInCenToVpcRequest.cc new file mode 100644 index 000000000..79e19ac12 --- /dev/null +++ b/cbn/src/model/UnroutePrivateZoneInCenToVpcRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::UnroutePrivateZoneInCenToVpcRequest; + +UnroutePrivateZoneInCenToVpcRequest::UnroutePrivateZoneInCenToVpcRequest() : + RpcServiceRequest("cbn", "2017-09-12", "UnroutePrivateZoneInCenToVpc") +{} + +UnroutePrivateZoneInCenToVpcRequest::~UnroutePrivateZoneInCenToVpcRequest() +{} + +long UnroutePrivateZoneInCenToVpcRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnroutePrivateZoneInCenToVpcRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnroutePrivateZoneInCenToVpcRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnroutePrivateZoneInCenToVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnroutePrivateZoneInCenToVpcRequest::getCenId()const +{ + return cenId_; +} + +void UnroutePrivateZoneInCenToVpcRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string UnroutePrivateZoneInCenToVpcRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnroutePrivateZoneInCenToVpcRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string UnroutePrivateZoneInCenToVpcRequest::getAccessRegionId()const +{ + return accessRegionId_; +} + +void UnroutePrivateZoneInCenToVpcRequest::setAccessRegionId(const std::string& accessRegionId) +{ + accessRegionId_ = accessRegionId; + setParameter("AccessRegionId", accessRegionId); +} + +long UnroutePrivateZoneInCenToVpcRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnroutePrivateZoneInCenToVpcRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/cbn/src/model/UnroutePrivateZoneInCenToVpcResult.cc b/cbn/src/model/UnroutePrivateZoneInCenToVpcResult.cc new file mode 100644 index 000000000..491027a19 --- /dev/null +++ b/cbn/src/model/UnroutePrivateZoneInCenToVpcResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +UnroutePrivateZoneInCenToVpcResult::UnroutePrivateZoneInCenToVpcResult() : + ServiceResult() +{} + +UnroutePrivateZoneInCenToVpcResult::UnroutePrivateZoneInCenToVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnroutePrivateZoneInCenToVpcResult::~UnroutePrivateZoneInCenToVpcResult() +{} + +void UnroutePrivateZoneInCenToVpcResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/UntagResourcesRequest.cc b/cbn/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..595527e31 --- /dev/null +++ b/cbn/src/model/UntagResourcesRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cbn::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RpcServiceRequest("cbn", "2017-09-12", "UntagResources") +{} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + +long UntagResourcesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector UntagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string UntagResourcesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UntagResourcesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long UntagResourcesRequest::getTagOwnerUid()const +{ + return tagOwnerUid_; +} + +void UntagResourcesRequest::setTagOwnerUid(long tagOwnerUid) +{ + tagOwnerUid_ = tagOwnerUid; + setParameter("TagOwnerUid", std::to_string(tagOwnerUid)); +} + +std::string UntagResourcesRequest::getTagOwnerBid()const +{ + return tagOwnerBid_; +} + +void UntagResourcesRequest::setTagOwnerBid(const std::string& tagOwnerBid) +{ + tagOwnerBid_ = tagOwnerBid; + setParameter("TagOwnerBid", tagOwnerBid); +} + +long UntagResourcesRequest::getOwnerId()const +{ + return ownerId_; +} + +void UntagResourcesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::vector UntagResourcesRequest::getTagKey()const +{ + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector& tagKey) +{ + tagKey_ = tagKey; + for(int i = 0; i!= tagKey.size(); i++) + setParameter("TagKey."+ std::to_string(i), tagKey.at(i)); +} + +std::string UntagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + diff --git a/cbn/src/model/UntagResourcesResult.cc b/cbn/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..c248c9cfc --- /dev/null +++ b/cbn/src/model/UntagResourcesResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/cbn/src/model/WithdrawPublishedRouteEntriesRequest.cc b/cbn/src/model/WithdrawPublishedRouteEntriesRequest.cc new file mode 100644 index 000000000..7146cf9c0 --- /dev/null +++ b/cbn/src/model/WithdrawPublishedRouteEntriesRequest.cc @@ -0,0 +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::Cbn::Model::WithdrawPublishedRouteEntriesRequest; + +WithdrawPublishedRouteEntriesRequest::WithdrawPublishedRouteEntriesRequest() : + RpcServiceRequest("cbn", "2017-09-12", "WithdrawPublishedRouteEntries") +{} + +WithdrawPublishedRouteEntriesRequest::~WithdrawPublishedRouteEntriesRequest() +{} + +std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceId()const +{ + return childInstanceId_; +} + +void WithdrawPublishedRouteEntriesRequest::setChildInstanceId(const std::string& childInstanceId) +{ + childInstanceId_ = childInstanceId; + setParameter("ChildInstanceId", childInstanceId); +} + +long WithdrawPublishedRouteEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void WithdrawPublishedRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string WithdrawPublishedRouteEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void WithdrawPublishedRouteEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string WithdrawPublishedRouteEntriesRequest::getCenId()const +{ + return cenId_; +} + +void WithdrawPublishedRouteEntriesRequest::setCenId(const std::string& cenId) +{ + cenId_ = cenId; + setParameter("CenId", cenId); +} + +std::string WithdrawPublishedRouteEntriesRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void WithdrawPublishedRouteEntriesRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + +std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceType()const +{ + return childInstanceType_; +} + +void WithdrawPublishedRouteEntriesRequest::setChildInstanceType(const std::string& childInstanceType) +{ + childInstanceType_ = childInstanceType; + setParameter("ChildInstanceType", childInstanceType); +} + +std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRouteTableId()const +{ + return childInstanceRouteTableId_; +} + +void WithdrawPublishedRouteEntriesRequest::setChildInstanceRouteTableId(const std::string& childInstanceRouteTableId) +{ + childInstanceRouteTableId_ = childInstanceRouteTableId; + setParameter("ChildInstanceRouteTableId", childInstanceRouteTableId); +} + +std::string WithdrawPublishedRouteEntriesRequest::getChildInstanceRegionId()const +{ + return childInstanceRegionId_; +} + +void WithdrawPublishedRouteEntriesRequest::setChildInstanceRegionId(const std::string& childInstanceRegionId) +{ + childInstanceRegionId_ = childInstanceRegionId; + setParameter("ChildInstanceRegionId", childInstanceRegionId); +} + diff --git a/cbn/src/model/WithdrawPublishedRouteEntriesResult.cc b/cbn/src/model/WithdrawPublishedRouteEntriesResult.cc new file mode 100644 index 000000000..9c9780a88 --- /dev/null +++ b/cbn/src/model/WithdrawPublishedRouteEntriesResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cbn; +using namespace AlibabaCloud::Cbn::Model; + +WithdrawPublishedRouteEntriesResult::WithdrawPublishedRouteEntriesResult() : + ServiceResult() +{} + +WithdrawPublishedRouteEntriesResult::WithdrawPublishedRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +WithdrawPublishedRouteEntriesResult::~WithdrawPublishedRouteEntriesResult() +{} + +void WithdrawPublishedRouteEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} +